SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2510.11083 · NeurIPS · 2025

Flow Matching-Based Autonomous Driving Planning with Advanced Interactive Behavior Modeling

Jingjing Liu, Xianyuan Zhan, Jianxiong Li, Jinliang Zheng, Tianyi Tan, Inan Zheng, Ruiming Liang, Zexu Wang, Kexin Zheng

arXiv · PDF · Open in the Atlas

Code that ran

5 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 4 failures of our instrument; 4 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2510.11083.json · badge: /api/ran/2510.11083.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
DiffusionAD/Flow-Planner community
Papers with Code archive
5 ran · 4 no recorded run
FunctionStatusWhere it lives
NuPlanDataSample Ran
ran on a synthesized input · constructed an object; no result was computed
DiffusionAD/Flow-Planner/flow_planner/model/flow_planner_model/flow_planner.py
code served (permissive licence) · get_code("cdc1d623341ce166")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, NuPlanDataSample: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import copy

torch.manual_seed(0)

ARGS = {
    "batched": True,
    "ego_past": torch.randn(2, 4),
    "ego_current": torch.randn(2, 3),
    "ego_future": torch.randn(2, 5),
    "neighbor_past": torch.randn(2, 6),
    "neighbor_future": torch.randn(2, 7),
    "neighbor_future_observed": torch.randn(2, 8),
    "lanes": torch.randn(2, 9),
    "lanes_speedlimit": torch.randn(2, 10),
    "lanes_has_speedlimit": torch.randn(2, 11),
    "routes": torch.randn(2, 12),
    "routes_speedlimit": torch.randn(2, 13),
    "routes_has_speedlimit": torch.randn(2, 14),
    "map_objects": torch.randn(2, 15),
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type NuPlanDataSample — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a NuPlanDataSample output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
assemble_actions Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
DiffusionAD/Flow-Planner/flow_planner/model/flow_planner_model/flow_planner.py
code served (permissive licence) · get_code("2e557baf6b5464c3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 4, dtype family float, shape (2, 1, 12, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Parameters for assemble_actions
# x: (B, P, action_length * state_dim) tensor
# - B = batch size = 2
# - P = number of actions = 3
# - action_length = 5
# - state_dim = 4
# So x shape should be (2, 3, 5*4) = (2, 3, 20)

batch_size = 2
num_actions = 3
action_length = 5
state_dim = 4
action_overlap = 2
future_length = 12  # This should be enough to hold all assembled actions

# Create input tensor x
# Shape: (B, P, action_length * state_dim)
x = torch.randn(batch_size, num_actions, action_length * state_dim)

ARGS = {
    'x': x,
    'future_length': future_length,
    'action_length': action_length,
    'action_overlap': action_overlap,
    'state_dim': state_dim,
    'method': 'average'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 1, 12, 4) — shape (2, 1, 12, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
average_assemble Ran
ran; our contract draft was wrong, not the code
DiffusionAD/Flow-Planner/flow_planner/model/flow_planner_model/flow_planner.py
code served (permissive licence) · get_code("4af62e5d35c4081f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 4, dtype family float, shape (2, 1, 11, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Analyze the function:
# - x: tensor with shape (B, num_actions, action_length, state_dim)
# - future_length: int, total length of output sequence
# - action_length: int, length of each action chunk
# - action_overlap: int, overlap between consecutive actions
# - state_dim: int, dimension of state

# The function assembles overlapping action chunks into a final sequence
# by averaging where they overlap.

# Set up reasonable dimensions
B = 2  # batch size
state_dim = 4  # state dimension
action_length = 5  # length of each action
action_overlap = 2  # overlap between actions
num_actions = 3  # number of action chunks in x

# Calculate future_length based on how chunks are positioned:
# start_pivot for chunk i: i * (action_length - action_overlap)
# last chunk i would be at: (num_actions - 1) * (action_length - action_overlap)
# and extends to: start_pivot + action_length
# So future_length should accommodate the last chunk
future_length = (num_actions - 1) * (action_length - action_overlap) + action_length
future_length = 11  # (3-1) * (5-2) + 5 = 2*3 + 5 = 11

# Create x tensor: (B, num_actions, action_length, state_dim)
x = torch.randn(B, num_actions, action_length, state_dim)

ARGS = {
    "x": x,
    "future_length": future_length,
    "action_length": action_length,
    "action_overlap": action_overlap,
    "state_dim": state_dim,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 1, 11, 4) — shape (2, 1, 11, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
linear_assemble Ran
ran; our contract draft was wrong, not the code
DiffusionAD/Flow-Planner/flow_planner/model/flow_planner_model/flow_planner.py
code served (permissive licence) · get_code("daa5b1a4625103c8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 4, dtype family float, shape (2, 1, 11, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Determine dimensions based on function usage
# x shape is (B, N, L * D) where:
#   B = batch size
#   N = number of segments
#   L * D = flattened action_length * state_dim
# The function reshapes x to (B, 1, action_length, state_dim)

B = 2
N = 3  # number of segments
action_length = 5
state_dim = 4
action_overlap = 2
future_length = 11  # computed based on overlapping segments: (N-1)*(action_length - action_overlap) + action_length

# Construct x tensor with shape (B, N, action_length * state_dim)
x = torch.randn(B, N, action_length * state_dim)

ARGS = {
    'x': x,
    'future_length': future_length,
    'action_length': action_length,
    'action_overlap': action_overlap,
    'state_dim': state_dim
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 1, 11, 4) — shape (2, 1, 11, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
traj_chunking Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
DiffusionAD/Flow-Planner/flow_planner/model/flow_planner_model/flow_planner.py
code served (permissive licence) · get_code("944e6b4958b023e7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 4, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Analyzing the function:
# - future: accessed with indexing future[..., index - delta:index - delta + action_length, :]
#   This suggests a tensor with at least 2 dimensions where:
#   - second-to-last dimension (-2) is the time/sequence dimension
#   - last dimension (-1) is features
# - action_length: integer, used in slicing and comparison
# - action_overlap: integer, used in slicing and comparison

# Create a small future tensor
# Shape: (batch=2, seq_len=10, features=4)
# This gives us enough sequence length to chunk with reasonable action_length and action_overlap
future = torch.randn(2, 10, 4)

# action_length: length of each action chunk
action_length = 4

# action_overlap: how much overlap between consecutive chunks
action_overlap = 2

ARGS = {
    "future": future,
    "action_length": action_length,
    "action_overlap": action_overlap,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 4, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
DiffusionADPlanner Not yet run
unverified (harvested, no recorded run)
DiffusionAD/Flow-Planner/flow_planner/model/flow_planner_model/flow_planner.py
code served (permissive licence) · get_code("0b8ad030a30d115a")
How it ran

no invocation recorded.

FlowPlanner Not yet run
unverified (harvested, no recorded run)
DiffusionAD/Flow-Planner/flow_planner/model/flow_planner_model/flow_planner.py
code served (permissive licence) · get_code("e86f2214d1ebf3f2")
How it ran

no invocation recorded.

ModelInputProcessor Not yet run
unverified (harvested, no recorded run)
DiffusionAD/Flow-Planner/flow_planner/model/flow_planner_model/flow_planner.py
code served (permissive licence) · get_code("d7f9e7397a2a13e2")
How it ran

no invocation recorded.

gather_tensor Not yet run
unverified (harvested, no recorded run)
DiffusionAD/Flow-Planner/flow_planner/model/flow_planner_model/flow_planner.py
code served (permissive licence) · get_code("012dff4fc6c32e0d")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 9 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Modeling interactive driving behaviors in complex scenarios remains a fundamental challenge for autonomous driving planning. Learning-based approaches attempt to address this challenge with advanced generative models, removing the dependency on over-engineered architectures for representation fusion. However, brute-force implementation by simply stacking transformer blocks lacks a dedicated mechanism for modeling interactive behaviors that are common in real driving scenarios. The scarcity of interactive driving data further exacerbates this problem, leaving conventional imitation learning methods ill-equipped to capture high-value interactive behaviors. We propose Flow Planner, which tackles these problems through coordinated innovations in data modeling, model architecture, and learning scheme. Specifically, we first introduce fine-grained trajectory tokenization, which decomposes the trajectory into overlapping segments to decrease the complexity of whole trajectory modeling. With a sophisticatedly designed architecture, we achieve efficient temporal and spatial fusion of planning and scene information, to better capture interactive behaviors. In addition, the framework incorporates flow matching with classifier-free guidance for multi-modal behavior generation, which dynamically reweights agent interactions during inference to maintain coherent response strategies, providing a critical boost for interactive scenario understanding. Experimental results on the large-scale nuPlan dataset and challenging interactive interPlan dataset demonstrate that Flow Planner achieves state-of-the-art performance among learning-based approaches while effectively modeling interactive behaviors in complex driving scenarios. Official implementation can be found in https://github.com/DiffusionAD/Flow-Planner.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2510.11083")
get_code_for_paper("2510.11083")
have("2510.11083")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2510.11083.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2510.11083.svg)](https://syntology.ai/paper/2510.11083)

Connect an agent — have() is free.