Papers › MGF: Mixed Gaussian Flow for Diverse Trajectory Prediction

MGF: Mixed Gaussian Flow for Diverse Trajectory Prediction

19 Feb 2024arXiv:2402.12238archive 2025-07-28

Jiahe Chen, Jinkun Cao, Dahua Lin, Kris Kitani, Jiangmiao Pang

To predict future trajectories, the normalizing flow with a standard Gaussian prior suffers from weak diversity. The ineffectiveness comes from the conflict between the fact of asymmetric and multi-modal distribution of likely outcomes and symmetric and single-modal original distribution and supervision losses. Instead, we propose constructing a mixed Gaussian prior for a normalizing flow model for trajectory prediction. The prior is constructed by analyzing the trajectory patterns in the training samples without requiring extra annotations while showing better expressiveness and being multi-modal and asymmetric. Besides diversity, it also provides better controllability for probabilistic trajectory generation. We name our method Mixed Gaussian Flow (MGF). It achieves state-of-the-art performance in the evaluation of both trajectory alignment and diversity on the popular UCY/ETH and SDD datasets. Code is available at https://github.com/mulplue/MGF.

PaperPDFCodeCode Syntology ranMethod as code

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 30 code samples harvested from 1 repository linked to this paper: 21 ran (of which 7 constructed an object rather than computing a result; 9 with no instrument failure: 0 honoured, 0 violated, 9 with no contract checked; 12 where Syntology's instrument failed) · 9 unverified. Where Syntology's instrument failed: 11 where our contract draft was wrong; 1 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: official repository: 30 samples from 1 repository, 21 ran (9 with no instrument failure; 12 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written between 2026-09-22 and 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed. 1 of the 21 samples that ran has no recorded date.

mulplue/mgf officialmentioned in papermentioned on GitHubpytorchMITSyntology: 30 samples, 21 ran (12 instrument-failed) · 9 unverified report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

30 samples harvested: 21 ran (of which 7 constructed an object rather than computing a result; 9 with no instrument failure: 0 honoured, 0 violated, 9 with no contract checked; 12 where Syntology's instrument failed) · 9 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

11ran · our draft was wrong
1ran; the contract check could not run
9ran
9unverified

Licence: 1 of the 30 samples is pointer only, meaning Syntology does not serve that copy's text. For that sample, this paper's copy is under a permissive licence and cleared, but the stored copy of the same code that Syntology serves is not; the licence label's tooltip gives Syntology's recorded reason. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from mulplue/mgf. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. For 3 samples that ran, the graph records a signature this page does not show: for a class the fixture built without calling, the harness called the object with inputs it made up itself, so the recorded signature is the harness's probe, not the fixture's arguments. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.

mulplue/mgf official repository 30 samples, 21 ran (12 instrument-failed) · 9 unverified
BatchNorm in 19 papers src/models/TP/fastpredNF.py ran fingerprinted MIT (permissive) · 5b716a5982a339d2 · report fixture: returned BatchNorm · level recorded 2026-09-22
Build_TP_model src/models/TP/TP_models.py ran; the contract check could not run (DEP_MISSING) MIT (permissive) · 2826248c43f41a45 · report fixture: signature cfg:dict/0/? · returned MockFastpredNF_TP · level recorded 2026-09-24
CIF_step src/models/TP/fastpredNF.py ran MIT (permissive) · a0ca33c8b6e66193 · report fixture: returned CIF_step · level recorded 2026-09-22
DiagonalGaussianConditionalDensity src/models/TP/fastpredNF.py ran MIT (permissive) · b9e0ff9a558438e1 · report fixture: returned DiagonalGaussianConditionalDensity · level recorded 2026-09-22
LinearMaskedCoupling src/models/TP/fastpredNF.py ran MIT (permissive) · 4d0d2d2745b54b63 · report fixture: returned LinearMaskedCoupling · level recorded 2026-09-22
MADE in 7 papers src/models/TP/fastpredNF.py ran fingerprinted MIT (permissive) · 26209689fe626f49 · report fixture: returned MADE · level recorded 2026-09-22
MaskedLinear in 9 papers src/models/TP/fastpredNF.py ran fingerprinted MIT (permissive) · ca93d4c44305509b · report fixture: returned MaskedLinear · level recorded 2026-09-22
cluster_GMM_Dist src/models/TP/fastpredNF.py ran MIT (permissive) · 90c765ce469cc84d · report fixture: returned cluster_GMM_Dist · level recorded 2026-09-22
create_RealNVP_step src/models/TP/fastpredNF.py ran · our draft was wrong MIT (permissive) · 920ca1a223d05c89 · report fixture: signature n_blocks:int/0/int, input_size:int/0/int, hidden_size:int/0/int, n_hidden:int/0/int, cond_label_size:int/0/int, batch_norm:bool/0/bool · returned FlowSequential · level recorded 2026-09-22
create_masks in 17 papers src/models/TP/TFCondARFlow.py ran · our draft was wrong MIT (permissive) here; the stored copy is pointer only · 5a2e1cee97642f25 · report fixture: signature input_size:int/0/int, hidden_size:int/0/int, n_hidden:int/0/int, input_order:str/0/str, input_degrees:NoneType/0/? · returned tuple · level recorded, date not recorded
cyclical_lr src/models/TP/model_utils.py ran MIT (permissive) · ff1848a826b358a0 · report fixture: signature stepsize:int/0/int, min_lr:float/0/float, max_lr:float/0/float, decay:float/0/float · returned function · level recorded 2026-09-24
diagonal_gaussian_log_prob src/models/TP/fastpredNF.py ran · our draft was wrong fingerprinted MIT (permissive) · 507ad74b8141f11f · report fixture: signature w:Tensor/2/float, means:Tensor/2/float, log_stddevs:Tensor/2/float · returned Tensor · level recorded 2026-09-22
diagonal_gaussian_sample src/models/TP/fastpredNF.py ran · our draft was wrong fingerprinted MIT (permissive) · 9b77c0354d2d0aaa · report fixture: signature means:Tensor/2/float, log_stddevs:Tensor/2/float · returned tuple · level recorded 2026-09-22
displacement_error src/metrics/TP_metrics.py ran · our draft was wrong fingerprinted MIT (permissive) · 283aa4275dc465c0 · report fixture: signature pred_traj:Tensor/3/float, gt_traj:Tensor/3/float · returned Tensor · level recorded 2026-09-24
evaluate_helper in 5 papers src/metrics/TP_metrics.py ran · our draft was wrong MIT (permissive) · 9bb40f2536a46a93 · report fixture: signature error:list/1/Tensor · returned Tensor · level recorded 2026-09-24
evaluate_helper_mean src/metrics/TP_metrics.py ran · our draft was wrong MIT (permissive) · ddbf6d5de516a0dc · report fixture: signature error:list/1/Tensor · returned Tensor · level recorded 2026-09-24
exp_anneal src/models/TP/model_utils.py ran · our draft was wrong MIT (permissive) · 6b2d284bebc1dc60 · report fixture: signature anneal_kws:dict/0/? · returned function · level recorded 2026-09-24
get_mlp in 15 papers src/models/TP/fastpredNF.py ran · our draft was wrong MIT (permissive) · 3508c00acbc73d66 · report fixture: signature num_input_channels:int/0/int, hidden_channels:list/1/int, num_output_channels:int/0/int, activation:callable/0/?, log_softmax_outputs:bool/0/bool · returned Sequential · level recorded 2026-09-22
get_model_device in 8 papers src/models/TP/Trajectron.py ran · our draft was wrong MIT (permissive) · 5a0beb315ee2d6b3 · report fixture: signature model:callable/0/? · returned device · level recorded 2026-09-24
load_tuned src/utils/common.py ran · our draft was wrong MIT (permissive) · 92dfbf360b9c387e · report fixture: signature args:Namespace/0/?, cfg:dict/0/? · returned CfgNode · level recorded 2026-09-24
to_one_hot in 44 papers
census: 5 implementations from 6 papers, 4 distinct outputs across 2 buckets, one shared input per bucket
src/models/TP/model_utils.py ran MIT (permissive) · 8f0b65c232680906 · report fixture: signature labels:Tensor/1/int, n_labels:int/0/int · returned Tensor · level recorded 2026-09-24
Build_Metrics src/metrics/build_metrics.py unverified MIT (permissive) · 6ebdf632e0a6ad62 · report
FlowSequential src/models/TP/fastpredNF.py unverified MIT (permissive) · f8f3b999a11d5d3e · report
create_MAF_step src/models/TP/fastpredNF.py unverified MIT (permissive) · 70f0ce27583cb926 · report
fastpredNF src/models/TP/fastpredNF.py unverified MIT (permissive) · 53b654d10ae7d946 · report
fastpredNF_CIF_separate_cond src/models/TP/fastpredNF.py unverified MIT (permissive) · e762f39de147d718 · report
fastpredNF_CIF_separate_cond_clusterGMM src/models/TP/fastpredNF.py unverified MIT (permissive) · 4effd10a00bbdc37 · report
fastpredNF_separate src/models/TP/fastpredNF.py unverified MIT (permissive) · ef3d886fa6434784 · report
fastpredNF_separate_cond src/models/TP/fastpredNF.py unverified MIT (permissive) · 8f74fa4acbfdec65 · report
load_config in 389 papers src/utils/common.py unverified MIT (permissive) · e158e0cb62772b3d · report

Method as code Syntology

What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it.

1 assembly on this paper: 1 harvested, 0 generated.

harvested Assembly for Mixed Gaussian Flow (MGF) (graph method: Mixed Gaussian Flow (MGF)). 19 bricks; individually on a fixture: 12 ran (of which 7 constructed an object rather than computing a result; 7 with no instrument failure: 0 honoured, 0 violated, 7 with no contract checked; 5 where Syntology's instrument failed) · 7 unverified. The assembly has not been run end-to-end.

  1. fastpredNF_CIF_separate_cond_clusterGMM entry · level 0 · unverified · 4effd10a00bbdc37
  2. cluster_GMM_Dist model · level 1 · ran · 90c765ce469cc84d
  3. fastpredNF_CIF_separate_cond helper · level 0 · unverified · e762f39de147d718
  4. CIF_step model · level 1 · ran · a0ca33c8b6e66193
  5. fastpredNF_separate_cond helper · level 0 · unverified · 8f74fa4acbfdec65
  6. DiagonalGaussianConditionalDensity model · level 1 · ran · b9e0ff9a558438e1
  7. fastpredNF_separate helper · level 0 · unverified · ef3d886fa6434784
  8. diagonal_gaussian_log_prob helper · level 1 · ran · our draft was wrong · 507ad74b8141f11f
  9. diagonal_gaussian_sample helper · level 1 · ran · our draft was wrong · 9b77c0354d2d0aaa
  10. get_mlp helper · level 1 · ran · our draft was wrong · 3508c00acbc73d66
  11. fastpredNF helper · level 0 · unverified · 53b654d10ae7d946
  12. create_MAF_step helper · level 0 · unverified · 70f0ce27583cb926
  13. create_RealNVP_step helper · level 1 · ran · our draft was wrong · 920ca1a223d05c89
  14. BatchNorm helper · level 1 · ran · 5b716a5982a339d2
  15. FlowSequential helper · level 0 · unverified · f8f3b999a11d5d3e
  16. MADE helper · level 1 · ran · 26209689fe626f49
  17. LinearMaskedCoupling helper · level 1 · ran · 4d0d2d2745b54b63
  18. MaskedLinear helper · level 1 · ran · ca93d4c44305509b
  19. create_masks helper · level 1 · ran · our draft was wrong · 5a2e1cee97642f25

Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="2402.12238") returns these assemblies with each brick's role and wiring (how to connect).

Tasks

DiversityPredictionTrajectory Prediction

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections