Papers › Social Physics Informed Diffusion Model for Crowd Simulation

Social Physics Informed Diffusion Model for Crowd Simulation

8 Feb 2024arXiv:2402.06680archive 2025-07-28

Hongyi Chen, Jingtao Ding, Yong Li, Yue Wang, Xiao-Ping Zhang

Crowd simulation holds crucial applications in various domains, such as urban planning, architectural design, and traffic arrangement. In recent years, physics-informed machine learning methods have achieved state-of-the-art performance in crowd simulation but fail to model the heterogeneity and multi-modality of human movement comprehensively. In this paper, we propose a social physics-informed diffusion model named SPDiff to mitigate the above gap. SPDiff takes both the interactive and historical information of crowds in the current timeframe to reverse the diffusion process, thereby generating the distribution of pedestrian movement in the subsequent timeframe. Inspired by the well-known social physics model, i.e., Social Force, regarding crowd dynamics, we design a crowd interaction module to guide the denoising process and further enhance this module with the equivariant properties of crowd interactions. To mitigate error accumulation in long-term simulations, we propose a multi-frame rollout training algorithm for diffusion modeling. Experiments conducted on two real-world datasets demonstrate the superior performance of SPDiff in terms of macroscopic and microscopic evaluation metrics. Code and appendix are available at https://github.com/tsinghua-fib-lab/SPDiff.

PaperPDFCodeCode Syntology ran

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

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2402.06680")

Code

Syntology Ran 14 of 16 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 12 ran with no contract checked.

By repository: official repository: 16 samples from 1 repository, 14 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

tsinghua-fib-lab/spdiff officialmentioned in papermentioned on GitHubpytorch 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

16 samples harvested; 14 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · our draft was wrong
12ran
2unverified

Licence: 16 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from tsinghua-fib-lab/SPDiff. “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. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (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 from a repository marked official are listed first. 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 four 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; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). 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.

angle_to_rotation_matrix tsinghua-fib-lab/SPDiff/dataset/homography_warper.py official repository ran fingerprinted no licence file found · pointer only · 094136346d83712e · report
clear_nan tsinghua-fib-lab/SPDiff/models/autoencoder.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 4f9621071f0ed4e8 · report
collate tsinghua-fib-lab/SPDiff/models/trajectron.py official repository ran no licence file found · pointer only · d6c9e8ba93a85e0e · report
deg2rad tsinghua-fib-lab/SPDiff/dataset/homography_warper.py official repository ran fingerprinted no licence file found · pointer only · a96e009d7ca2c870 · report
get_graph_features tsinghua-fib-lab/SPDiff/models/vnn_models.py official repository ran no licence file found · pointer only · e992dfa7ba64b1e5 · report
get_model_device tsinghua-fib-lab/SPDiff/utils/model_registrar.py official repository ran no licence file found · pointer only · 5a0beb315ee2d6b3 · report
get_relative_robot_traj tsinghua-fib-lab/SPDiff/models/trajectron.py official repository ran no licence file found · pointer only · 0c2d063349b39fb3 · report
get_rotation_matrix2d tsinghua-fib-lab/SPDiff/dataset/homography_warper.py official repository ran no licence file found · pointer only · 534a2d5685ceb894 · report
index_sum tsinghua-fib-lab/SPDiff/models/egnn.py official repository ran no licence file found · pointer only · 86b9bb6734370ad6 · report
linear tsinghua-fib-lab/SPDiff/models/multi_attention_forward.py official repository ran fingerprinted no licence file found · pointer only · 93e49f2486b2b26d · report
mean_pool tsinghua-fib-lab/SPDiff/models/vnns.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 19b639ea820e6dbc · report
multi_head_attention_forward tsinghua-fib-lab/SPDiff/models/multi_attention_forward.py official repository ran no licence file found · pointer only · 4a5f247d4b18ad03 · report
restore tsinghua-fib-lab/SPDiff/models/trajectron.py official repository ran no licence file found · pointer only · 18974426ec3297c6 · report
standard_normal_logprob tsinghua-fib-lab/SPDiff/models/common.py official repository ran fingerprinted no licence file found · pointer only · 1d6e462a448df843 · report
gaussian_entropy tsinghua-fib-lab/SPDiff/models/common.py official repository unverified no licence file found · pointer only · 82816eb1edfdbd19 · report
reparameterize_gaussian tsinghua-fib-lab/SPDiff/models/common.py official repository unverified no licence file found · pointer only · 534f60a963b5e21b · report

Tasks

DenoisingPhysics-informed machine learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Diffusion

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