Manuscript Offprint
arXiv:2610.24168Model Capacity Frontier: A Development Framework for LLM-Supported Social Simulation
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Large language model (LLM) agents are increasingly incorporated into agent-based models (ABMs) on the premise that richer, context-sensitive human behavior can improve empirical fidelity. However, LLM-supported ABMs introduce an open-ended design space in which subtle modeling and configuration choices, such as prompt design and environment coupling, can substantially alter outcomes. Developing LLM-supported ABMs to simulate human collective behavior therefore requires navigating configuration sensitivity while identifying the limitations of the current model architecture. In this paper, we introduce the Model Capacity Frontier (MCF), a framework that characterizes the empirical performance attainable by a specified architecture across its admissible configurations. In multi-objective settings, this capacity is represented by an estimated Pareto frontier obtained through systematic configuration exploration. We demonstrate MCF in crowd simulation of university commencement events with approximately 12,000 agents, using empirical movement data on temporal occupancy, spatial distribution, and flow direction. We first characterize the capacity of a conventional crowd model and then evaluate successive LLM-supported architectural extensions. In the process, MCF reveals which dimensions of attainable performance expand and which remain limited, providing empirical targets for refinement and reevaluation. Initial LLM integration improves flow direction but degrades temporal occupancy and spatial distribution; subsequent architectural refinement of the LLM layer improves temporal occupancy and recovers spatial performance, while retaining much of the earlier gain in flow direction. Our case study shows how MCF guides the systematic architectural development of LLM-supported ABMs in configuration-sensitive, open-ended design spaces.
Keywords
LLM-supported agent-based modeling, Model calibration and validation, Multi-objective evaluation, Crowd simulation, Pareto frontier analysis

Metric 1 error
Figure 1: Model Capacity Frontier. Each point represents an admissible configuration from one of two simulation architectures evaluated on two empirical error metrics, and the Pareto frontier traces the nondominated performance attainable by each architecture. Architectural improvement should be judged across configurations, because conclusions based on selected configurations can be fragile, as illustrated here.
simulations are used as evidence about human behavior or to inform consequential decisions [11, 16].
However, LLM-supported ABMs compound this challenge by enlarging the model-development space: outcomes can depend on prompts, personas, memory, behavioral parameters, and how LLM agents are coupled to the simulated environment [23, 56]. Parameter calibration and sensitivity are already longstanding challenges in ABMs [1, 40], and LLM integration adds open-ended architectural choices. When a simulation fails to reproduce an empirical pattern, it can therefore be difficult to tell whether another configuration would suffice or whether the architecture itself lacks necessary modeling capacity [9]. Comparisons between selected configurations can also provide a fragile basis for judging broader modeling progress [16], and may even reverse the apparent conclusion about an architectural extension (Fig. 1).
To address this problem, we introduce the Model Capacity Frontier (MCF), a development framework that characterizes the empirical performance attainable by a specified architecture across its admissible configurations. In multi-objective settings, MCF is represented by the estimated Pareto frontier of attainable outcomes [7]. Rather than treating a selected configuration as representative of an architecture, MCF distinguishes configuration-level variation from limitations in the architecture's attainable empirical performance.
Both authors contributed equally to this research.
Iterative refinement is often required for ABM development [9, 12]. MCF structures this process by first characterizing the attainable performance of the current architecture and identifying dimensions or trade-off regions where it remains empirically limited. Modelers can then introduce a theoretically or empirically motivated architectural refinement and evaluate how the attainable frontier changes. MCF itself does not prescribe which mechanism should be added; it provides empirical targets for refinement and a common basis for judging whether that refinement expands modeling capacity.
We demonstrate this process in a crowd simulation of university commencement events involving over 12,000 attendees. We evaluate temporal occupancy, spatial distribution, and flow direction while developing a conventional crowd model through two successive LLM-supported extensions. The first improves flow direction but degrades temporal and spatial fit; the second improves temporal occupancy and recovers spatial performance while retaining the earlier flow improvement.
Our main contributions are:
• Model Capacity Frontier (MCF): a framework for characterizing the empirical performance attainable by a specified architecture across its admissible configurations.
• Frontier-Guided Development: an iterative workflow that diagnoses whether frontier gaps call for reconfiguration or architectural refinement, and evaluates refinements by the outcomes they newly make attainable.
• Empirical Demonstration: a 12,000-agent crowd simulation showing how successive LLM-supported extensions reshape attainable performance across multiple empirical dimensions.
Although demonstrated in LLM-supported crowd simulation, MCF applies more broadly to configuration-sensitive social simulations with an appropriate empirical evaluation space.
2 Related Work
2.1 Calibration, Validation, and Model Refinement
Agent-based models are commonly evaluated through parameter calibration, sensitivity analysis, and comparison with empirical patterns [12, 50]. These activities are intertwined with model structure: parameter calibration presupposes an adequate architecture, yet architectural adequacy can only be assessed under particular parameter settings [9]. Statistical approaches address structural error through model-discrepancy terms [18] or selection among candidate models [43], but typically reduce fit to a likelihood or a scalar distance and assume a fixed set of alternatives. Prior work has therefore emphasized systematic parameter exploration and empirical validation rather than judging a model from a single realization [1, 40].
LLM-supported ABMs intensify this problem because behavior can depend on prompts, personas, memory, model choice, and environment coupling [11, 23, 42]. Recent work has accordingly questioned validation based mainly on plausibility, selected demonstrations, or relative improvements between particular LLM configurations [16, 23, 53, 56]. This leaves a development question open: when empirical fit remains limited, is the shortcoming addressable through configuration, or does it reflect a limit of the current architecture? We address this by characterizing empirical capacity across admissible configurations and comparing how it changes across successive architectures.
2.2 Multi-Objective Evaluation and Pareto Analysis
Social simulations are often evaluated against multiple empirical targets, and success on one pattern need not imply success on another [12, 24]. Scalar calibration can obscure such trade-offs because the resulting optimum depends on how objectives are weighted. Multi-objective approaches instead characterize non-dominated configurations through a Pareto frontier [7], and have been applied to ABM calibration across conflicting empirical objectives [34, 35].
In these applications, Pareto analysis primarily supports parameter calibration or selection within a model architecture. We use the same principle for a different development question: what empirical performance combinations are attainable by a specified architecture, and how does that attainable region change after architectural refinement? Comparing these frontiers across successive architectures provides the basis for the Model Capacity Frontier introduced in Section 3.
2.3 Crowd Simulation
Crowd simulation is a useful setting for studying model capacity because it combines mature mechanistic models with higher-level behavioral decisions and multiple observable outcomes [13, 55]. Established approaches such as social-force and velocity-based models reproduce important movement dynamics with relatively parsimonious assumptions [14, 38, 44], and have been validated against observed crowd movement and evacuation data [1, 29].
Real crowd movement also depends on higher-level decisions about when to move, where to go, and how behavior responds to social and situational context. Agent-based crowd models have incorporated group behavior, destination choice, and communication [46, 52], while recent work has begun integrating language models with crowd and mobility simulation [4, 22, 25, 51]. Our case study examines whether successive LLM-supported decision layers expand the empirical performance attainable by a conventional velocity-based model across temporal, spatial, and directional properties of crowd dispersal.
3 Model Capacity Frontier
MCF has three components: a definition of capacity relative to an explicitly declared model space, a procedure for estimating and comparing frontiers, and diagnostics that turn frontier gaps into development decisions.
3.1 Model Space and Capacity
A model is specified by an architecture M and a configuration . The architecture fixes the model's mechanisms, such as its decision structure, action space, and interaction rules, and for LLM-supported ABMs also the language model, prompts, and the interface through which agents act on the environment. The configuration collects the quantities that are tuned within that architecture.
Where this boundary is drawn is a modeling choice, and every MCF conclusion holds relative to it. The choice is especially consequential for LLM-supported ABMs, where prompts and action menus could be placed on either side and where evaluation costs can differ by orders of magnitude across architectures.
Configurations are restricted to an admissible space , whose ranges are justified by the literature, theory, or measurements that are independent of the evaluation metrics. Admissibility prevents an architecture from attaining empirical fit through implausible settings, and it is what makes a frontier that presses against a parameter bound informative (Section 3.3).
Each configuration is scored on empirical targets by the expected error vector , where is the error of a single run with random seed and lower values indicate better fit. An error vector dominates , written , if for all and for at least one . The Model Capacity Frontier of is the nondominated set of its attainable errors,
The frontier describes the best trade-offs among empirical targets that the architecture can attain within its admissible space, not the capacity of all possible models.
3.2 Estimating and Comparing Frontiers
Because cannot be evaluated exhaustively, we evaluate a finite sample and approximate each by the mean error over seeds, which yields the estimated attainable set . The estimated frontier is the nondominated subset of . MCF is agnostic to how is constructed, which may rely on low-discrepancy sequences, random sampling, Bayesian optimization, or evolutionary multi-objective search, depending on the computational budget.
The estimate is subject to two errors that act in opposite directions. Sparse sampling makes conservative, since additional configurations can only move it outward. Stochastic evaluation makes it optimistic, since configurations that appear nondominated are partly those that drew favorable noise, and this bias grows as decreases. When architectures are evaluated under different budgets, comparisons should therefore report both the number of configurations and the number of seeds behind each frontier.
We compare architectures through the outcomes that one attains and the other does not. For an extension of an architecture , the set of newly attainable outcomes is
where means for all . expands capacity when this set is nonempty, even if it does not dominate the previous frontier everywhere, since an extension may open one trade-off region while receding in another. Dominance is assessed in all dimensions, and two-dimensional projections serve only for visualization. When two architectures share a configuration space, evaluating them at matched configurations additionally reveals how the same underlying parameter setting responds to architectural change.
3.3 Frontier-Guided Development
MCF supports an iterative loop in which the modeler estimates , diagnoses where it falls short of the empirical targets, refines the architecture to , and evaluates how the attainable frontier changes. The critical step is diagnosis, because a gap in the frontier does not by itself reveal whether the remedy is another configuration or another architecture.
Evidence for an architectural limitation may come from several sources. The best configurations may press against an empirically justified parameter bound, the failing dimension may change little across the admissible configuration space, or the behavior required to close the gap may be absent from the architecture's action space. These patterns are diagnostics rather than proofs, but they indicate when further tuning is unlikely to resolve the observed limitation.
The frontier does not prescribe which mechanism to add. Refinements should instead be motivated by empirical observation, theory, or domain knowledge rather than by the metric being optimized. MCF then provides a common basis for evaluating whether a refinement expands the model's empirical capacity.
4 Crowd Simulation Case
4.1 Empirical Context and Validation Data
Our case study models crowd dispersal following a university commencement ceremony held in a football stadium. The event contains about 12,300 attendees: 3,000 students seated on the field and 9,300 guests distributed across field-level and grandstand seating (Fig. 2a). Following the ceremony, attendees exhibit heterogeneous behaviors, including leaving the venue through an exit, remaining near the field, gathering with others, and moving among different destinations. These behaviors combine local pedestrian dynamics with higher-level decisions about when and where to move.
We record the event in 2025 and 2026 from a press-box camera overlooking the stadium (Fig. 2b). The two years provide repeated observations of the same recurring event under the largely similar venue layouts, but with different attendees and realized crowd behavior. These observations allow us to evaluate whether simulation configurations reproduce crowd patterns consistently across event instances rather than matching the idiosyncrasies or measurement noise of a single realization.
From the videos, we derive both the venue layout and the observed crowd distribution. We manually identify seating, aisles, stage, obstacles, stairways, and exits, and use landmark correspondences to map the camera view into the top-down simulation coordinate system through a homography. We then estimate pedestrian positions every 10 seconds over a 25-minute period and map them into the same coordinate system, producing video-derived crowd density measurements that can be compared directly with the simulation. Details of the spatial calibration and pedestrian-detection pipeline, including validation against manually labeled frames, are provided in Appendix B and Appendix C .
Because detection reliability decreases with distance from the camera and in dense regions, we restrict quantitative evaluation to the blue-shaded evaluation region in Fig. 2, while still simulating the full stadium. This region is well observed by the camera and
Appendices are provided in the supplementary material.
(a)

(b)

Figure 2: Empirical crowd setting and simulation environment. (a) Top-down simulation environment of the commencement venue, including student and guest seating, stage, obstacles, exits, and the evaluation region. (b) A snapshot from the 2026 commencement recording showing the corresponding real-world scene. The shaded polygon marks the same evaluation region shown in (a), projected onto the camera view for empirical comparison.
captures a major intersection through which many attendees pass during dispersal.
4.2 Empirical Evaluation Metrics
Following Section 3, each configuration is evaluated along three empirical dimensions: temporal occupancy, spatial distribution, and flow direction,
Each component measures error, so lower values indicate better performance on all three dimensions. Each metric is computed separately for the 2025 and 2026 observations using the video-derived density and simulated crowd density within the evaluation region. To require configurations to reproduce the recurring crowd pattern across both event instances, we aggregate the two years using the larger error:
Thus, a configuration receives a low error only when it performs well in both years.
4.2.1 Temporal Occupancy. The temporal occupancy error measures how accurately the simulation reproduces the number of people present in the evaluation region R over time. Let
denote the number of people in R at time t. We define temporal error as the mean absolute difference between simulated and observed occupancy:
4.2.2 Spatial Distribution. The spatial distribution error measures how accurately the simulation reproduces where people are, independently of the total number present. For both the observed data and the simulation, we pool density across sampling times and normalize it to unit mass within R:
Because p is normalized, this metric captures spatial distribution separately from temporal occupancy. Crowded moments contribute proportionally more mass than sparse moments.
We measure spatial error using the 1-Wasserstein distance [45],
Because the ground distance is measured in meters, can be interpreted as the average distance by which simulated crowd mass must be moved to match the observed spatial distribution.
4.2.3 Flow Direction. The flow error measures how accurately the simulation reproduces the direction of crowd movement. We divide the evaluation region into 2 m cells c and, within each cell, average all walking motion faster than 0.3 m/s over the evaluation period to obtain a unit direction vector (Appendix C). We then compute the cosine distance between the simulated and observed directions, weighted by the observed pedestrian mass in each cell:
where C contains cells with sufficient walking motion in both the simulation and observation. The error is 0 for aligned directions, 1 for perpendicular directions, and 2 for opposite directions.
4.3 Shared Simulation Setup
All model architectures share the same environment, population initialization, pedestrian movement model, and admissible parameter space. They differ only in the higher-level policy governing when and where agents move.
Table 1: Admissible parameter ranges used in configuration exploration.
| symbol | meaning | range |
|---|---|---|
| leaving-delay scale (s) | 0–182 | |
| mean desired speed (m/s) | 1.0–1.6 | |
| desired-speed spread (m/s) | 0.2–0.4 | |
| time gap (s) | 0.8–1.2 | |
| standstill spacing (m) | 0.3–0.5 | |
| steering strength | 0–16 | |
| steering range (m) | 0.05–0.3 |
4.3.1 Environment and Population. The simulation represents the real stadium in metric coordinates (Fig. 2), using the spatial calibration described in Appendix B. The environment includes the field, track, seating, stage, obstacles, grandstand stairways, and exits. We simulate 12,278 agents: 2,928 students and 9,350 guests. Agents begin in their corresponding seating areas, except for the observed number already on the track at the start of the evaluation period (276 in 2025 and 538 in 2026). Because social-group membership cannot be recovered from the recordings, we synthetically assign each student a party of 1–6 guests seated in the same guest section.
4.3.2 Routing and Pedestrian Movement. Given a destination, agents follow a shortest-time route around seating and obstacles (Appendix D). Local movement follows a collision-free speed model [5, 44], with heterogeneous desired walking speeds and shared parameters governing time gap, standstill spacing, and neighbor steering.
We define admissible parameter ranges using prior pedestrian research and measurements from the observed events (Table 1; Appendix E). Within each configuration,
while , and are shared across agents. Configurations are sampled from these ranges using a Sobol low-discrepancy sequence [41].
5 Frontier-Guided Development
We apply the development loop of Section 3 to the commencement case. We begin with a conventional crowd model (M0) and then introduce two successive LLM-supported architectures (M1 and M2), both using GPT-6 Luna [30] as the language-model decision component. For each architecture, we describe its design, estimate its frontier, diagnose the remaining empirical limitation, and ask whether that limitation can plausibly be addressed through another configuration or instead motivates an architectural change. Table 2 summarizes the behavioral assumptions introduced at each step.
All three architectures share the same environment, population, pedestrian movement model, empirical evaluation metrics, and admissible configuration space described in Section 4.3 and Table 1. Architectural changes are confined to the higher-level decision layer governing when and where agents move; for M1 and M2, the language model, prompts, action space, and query schedule are fixed within each architecture.
We sample configurations from a Sobol low-discrepancy sequence [41] over . Because M0 is inexpensive, we evaluate 512 configurations with three seeds each. M1 and M2 require LLM calls for agent decisions, so we evaluate the first 16 configurations of the same Sobol sequence with one seed each. Each M1 or M2 run therefore has a matched M0 configuration with the same pedestrian parameters, which allows us to examine how an architectural change affects the same configuration. Details of the pilot-based sample-size calculation are provided in Appendix F.
Table 2: Behavioral assumptions of the three architectures. Bold entries are introduced relative to the preceding architecture.
| M0 | M1 | M2 | |
|---|---|---|---|
| Onset | individual delay | group delay | group delay |
| Destination | nearest exit | LLM-chosen destination | LLM-chosen destination |
| Coordination | none | group coordination | POI gathering + group coordination |
| Stopping | none | wait/stage | gather and linger |
| Routing | static | crowd-aware | crowd-aware |
Following Section 3.2, the sparse M1 and M2 frontiers give conservative evidence wherever they extend beyond the 512-configuration M0 frontier, although their single-seed estimates are more exposed to favorable noise.
5.1 M0: Conventional Egress Model
5.1.1 Design. In M0, each agent remains seated for a leaving delay drawn from , then walks to its nearest exit and leaves without stopping. Agents interact only through the pedestrian movement model. This follows the standard structure of egress models, combining pre-movement delay [21, 28, 33], shortest-path exit routing [19], and calibrated pedestrian dynamics [5, 44]. The admissible range of is constrained by the observed onset of crowd movement: in both years, most attendees leave their seats within about three minutes. At the upper bound, s, of agents begin moving by s (Appendix E).
5.1.2 Frontier and Diagnosis. Across M0 configurations, the minimum marginal errors are 274 people for temporal occupancy, 2.35 m for spatial distribution, and 1.15 for flow direction (Fig. 3). M0 reproduces spatial distribution relatively well, but its temporal and directional behavior reveal limitations that further tuning is unlikely to resolve.
M0 empties the evaluation region too quickly: occupancy falls to half its peak after 7.8 min, compared with 11.3 and 11.8 min in the two observations (Fig. 4a). The best temporal configurations push toward its upper bound, but increasing it further would keep agents seated longer than observed. The remaining temporal error therefore points to what agents do after they begin moving rather than to insufficient pre-movement delay.
Flow error is even less responsive to configuration, ranging only from 1.15 to 1.47 across all 512 configurations. Because an error above 1 indicates movement more than orthogonal to the observed direction on average, no explored M0 configuration reproduces the dominant flow well. This limitation follows from the architecture:

M0: Conventional
M0, shared 16
M1: Initial LLM
M2: Refined LLM
Figure 3: Estimated frontiers in the worse-year view. The left panel shows temporal versus spatial error, and the right panel shows temporal versus flow error. Lower is better on all axes. Gray points show the 512 M0 configurations; black points highlight the 16 M0 configurations at the matched Sobol locations used to evaluate M1 and M2. Lines connect the nondominated configurations of each architecture.
under nearest-exit routing, each agent’s seat determines its destination, while only affects movement timing and local walking dynamics. Observed attendees frequently move toward the field and farther exits, whereas M0 directs them toward the nearest exit (Fig. 4b). We therefore replace the destination decision policy in M1 while keeping the pedestrian model and fixed.
5.2 M1: LLM Decision Layer
5.2.1 Design. Post-ceremony movement is shaped by higher-level social decisions: attendees look for family, coordinate with their party, and choose destinations based on what lies beyond different exits. Such choices can be represented with rules-based or utility-based policies [46, 52], but fitting these policies would require individual choice data that our observations do not provide. M1 instead replaces nearest-exit routing with an LLM-supported decision layer.
After the inherited leaving delay, each agent chooses among actions such as walking to an exit, going to a family member, or waiting. Members of a party share messages and can coordinate on an exit. The pedestrian model and configuration space remain unchanged from the matched M0 configuration. To support the dynamic exit choice, we update the navigation field (see Appendix D). The leaving-delay distribution is also unchanged, although M1 draws one shared delay per family rather than independently per agent to support coordination. Full prompts and implementation details are provided in the supplementary material.
5.2.2 Frontier and Diagnosis. M1 substantially improves directional behavior. Flow error improves in 15 of 16 matched configurations (median -0.31, ), and the best flow error decreases from 1.15 to 0.82 (Table 3). Even in the temporal-flow projection, 15 of 16 M1 configurations are not dominated by the M0 frontier, so all 15 belong to in Eq. (2). However, this expansion comes with regressions in the other dimensions: temporal error increases in 15 of 16 matched configurations (median +81 people), and spatial error increases in 12 (median +0.91 m).
Simulation replays show that M1 disperses attendees too efficiently. Although matched M0 and M1 configurations begin moving at the same times, M1 distributes agents across more exits and reduces congestion, causing the evaluation region to empty even faster. Part of M0's temporal fit was therefore produced by congestion rather than realistic post-ceremony behavior, a compensating error [12]. Observed attendees instead form persistent clusters on the track and near the stage, whereas M1 agents mostly pass through the region.
This limitation is unlikely to be resolved by further tuning of the current configuration space. The leaving-delay range is already constrained by observed movement onset, and M1's action space lacks a behavior for traveling to a location, gathering there, and remaining before leaving. Simply asking agents to wait would keep them near their starting locations rather than reproduce the timing and location of the observed clusters. This motivates M2, which adds explicit gathering behavior to the decision architecture.
5.3 M2: Gathering at Points of Interest
5.3.1 Design. The M1 diagnosis points to a missing post-ceremony behavior: attendees often travel to a location, gather with others, and remain there before leaving. In the observations, families meet graduates on the track, take photos near the stage, and wait near exits before departing together. M2 therefore extends the M1 action space with explicit gathering behavior. Party members may agree on a point of interest (POI), travel there, wait for the group to assemble, linger, and then coordinate an exit. Candidate POIs are selected from recurring gathering locations visible in the venue and observations. All other components are inherited from M1.
5.3.2 Frontier and Diagnosis. Adding gathering substantially improves temporal and spatial fit. Relative to M1, temporal error decreases in all 16 matched configurations (median -276 people), and spatial error decreases in 14 (median -1.18 m). Flow error, however, increases in most configurations (median +0.19). Relative to M0, M2
(a)

(b)
M1: flow error = 0.90
M2: flow error = 0.98
cosine distance to the observation's direction
Figure 4: Behavioral diagnosis across architectures. (a) Observed occupancy and median simulated occupancy in the evaluation region over time. Shaded areas represent the 25th to 75th percentile over the 16 configurations. (b) Mean walking direction by spatial cell in 2026, weighted by observed pedestrian movement. Arrows are scaled by the amount of observed walking.
improves the median error on all three dimensions (-223 people, -0.45 m, and -0.13), and its temporal-flow frontier extends beyond the M0 frontier. M2 nevertheless does not recover the lowest spatial error attained by M0.
The behavioral traces explain this trade-off. M2 keeps more attendees in the evaluation region and better reproduces the observed occupancy decline (Fig. 4a), consistent with its added gathering behavior. At the same time, the remaining flow error is concentrated near the track in front of the grandstand (Fig. 4b). M2 therefore captures the fact that attendees gather and linger, but only approximately where they gather and how they move toward those locations. These residual errors identify the target for further architectural refinement.
Table 3: Changes across development over the 16 matched configurations. Entries report the median change in error, with the number of configurations that improve in parentheses. Negative values indicate better fit and are shown in bold.
| Transition | Temporal | Spatial | Flow |
|---|---|---|---|
| M0 → M1 | +81 (1) | +0.91 (4) | -0.31 (15) |
| M1 → M2 | -276 (16) | -1.18 (14) | +0.19 (3) |
| M0 → M2 | -223 (15) | -0.45 (11) | -0.13 (12) |
6 Discussion
LLM-supported ABMs open a design space in which a disappointing result may stem from the chosen configuration or from the architecture itself. In our case study, MCF helped distinguish these two sources of error and guided two architectural refinements that moved the attainable frontier into regions the conventional model could not reach. We now consider what this process reveals beyond the specific case, what it implies for the design of LLM-supported agents, and where its conclusions are limited.
What the frontier revealed. First, configuration-level comparisons alone would have suggested a different conclusion about M1. Across matched configurations, M1 is worse than M0 on two of three metrics in most cases, and a modeler comparing only selected configurations might therefore have abandoned it. Viewed through the frontier, however, M1 opens a region of flow performance that no M0 configuration attains, and it provides the basis for M2. The transition from M0 to M1 is thus an empirical instance of the situation sketched in Figure 1.
Second, an architectural change can expose compensating errors that calibration within a single architecture cannot detect. M0's temporal fit depended partly on congestion at the nearest exits and on a leaving delay pressed against its bound. When M1 corrected agents' destinations, these compensations disappeared and the temporal error increased. A frontier that recedes after a well-motivated change can therefore still be informative, signaling that the predecessor matched the data for the wrong reasons .
Third, configuration quality is not preserved across architectures. The matched trajectories show that configurations performing relatively well under M0 are not necessarily those that perform well under M2, and vice versa (Fig. 5). Architectural changes therefore reshape the mapping from configuration space to empirical performance rather than simply shifting all configurations in the same direction. This makes conclusions based on a single matched comparison fragile: the apparent benefit or cost of an architectural extension can depend strongly on which configuration happens to be selected.
Implications for LLM-supported agents. The development trajectory also indicates where an LLM adds modeling capacity. The LLM layer improved the model where behavior depends on social context and knowledge of the setting, such as choosing destinations and coordinating within a party, while the walker remained the appropriate mechanism for physical movement. This division of labor favors hybrid architectures in which LLMs govern decisions and established mechanistic models govern motion.

Figure 5: Configuration-matched trajectories from M0 to M2 in the temporal-flow error space. Dashed lines connect configurations with identical values of . The black and orange points and the corresponding frontier lines are the same as in Figure 3.
The trajectory further shows that the capacity of an LLM layer is bounded by the action space through which it is coupled to the environment. M1 agents rarely lingered, because their action space allowed individuals to wait but offered no way for a party to gather, and they defaulted to efficient, goal-directed departure. This tendency is consistent with evidence that LLM agents behave more purposefully and less variably than the people they represent [26, 32, 47]. Adding the gathering affordance in M2 changed what the same language model could express. Evaluating an LLM-supported ABM therefore requires attention to the interface that connects the language model to the simulated world, in addition to the model and its prompts. MCF makes this interface explicit by treating it as part of the architecture.
Using MCF in practice. The MCF protocol carries over to other configuration-sensitive simulations. However, evaluation dimensions and admissible parameter ranges should be grounded in theory and empirical evidence, because pressure against a parameter bound is interpretable only when that bound is defensible. Frontier gaps should not automatically be attributed to architectural limitations [9]. In our case, pressure against empirically justified parameter bounds, weak sensitivity to configuration changes, and missing behaviors in the action space provided practical evidence for distinguishing configuration-level shortcomings from architectural limitations. These remain diagnostics rather than proofs. When computational budgets differ across architectures, sparse frontiers should also be interpreted asymmetrically: expansion beyond a densely sampled frontier provides relatively strong evidence of increased capacity, whereas an apparent shortfall may still reflect sparse exploration.
MCF also does not determine when refinement should stop. When repeated observations of the target phenomenon are available, variation across those observations provides one natural reference point. Once simulation discrepancies approach the variation observed across empirical instances, further improvement may increasingly reflect overfitting realization-specific differences rather than better generalization to the target phenomenon. This empirical benchmark is not universal, however. The fidelity required in practice depends on the simulation's intended use and on which errors matter to its users. MCF characterizes attainable performance; whether that performance is good enough remains a purpose-dependent validation judgment [24].
Limitations. Our conclusions are conditional on several choices. For example, MCF characterizes capacity relative to a chosen boundary between architecture and configuration. We held the language model and prompts fixed within each architecture, yet LLM outputs are sensitive to prompt wording and format [36, 54]. Treating prompt variants as configurations would enlarge the admissible configuration space and could widen the M1 and M2 frontiers.
Second, iterative development on the same empirical data risks fitting the idiosyncrasies of one event. Grounding each refinement in observed behavior, holding the configuration space fixed, and scoring the worse of two years reduce this risk, but a held-out event remains the decisive test. We therefore plan to evaluate the final architecture prospectively on the 2027 commencement.
Third, the LLM frontiers rest on 16 configurations with one seed each, so stochastic variation in the language model is not separated from configuration effects. Finally, our evidence comes from a single venue observed through one camera and evaluated in one region; party structures were assumed from the seating layout; and the LLM layers depend on a commercial model whose behavior may change over time. To support replication, we will release the simulator, prompts, and evaluation code.
7 Conclusion
Integrating LLMs into agent-based models enlarges the design space and makes it harder to distinguish configuration problems from architectural limitations. We introduced the Model Capacity Frontier, which characterizes the empirical performance attainable by an architecture across its admissible configurations and uses frontier shifts to guide simulation development.
Applying MCF to a 12,000-agent crowd simulation, we found that a conventional egress model could not reproduce observed flow direction across the explored configurations. An LLM decision layer expanded attainable flow performance but exposed missing post-ceremony lingering behavior; adding explicit gathering then improved temporal and spatial fit while retaining much of the flow gain. MCF also revealed improvements that selected configuration comparisons could miss and compensating errors hidden by calibration within a single architecture.
Our case study suggests that LLM-supported ABMs should be developed by characterizing the empirical capacity of each architecture across its admissible configurations, diagnosing where that capacity remains limited, and introducing architectural refinements when further configuration is unlikely to resolve those limitations.
References
[1] Bikramjit Banerjee and Landon Kraemer. 2010. Validation of agent based crowd egress simulation (extended abstract). In Proceedings of the 9th International Conference on Autonomous Agents and Multiagent Systems (AAMAS 2010), Wiebe van der Hoek, Gal A. Kaminka, Yves Lespérance, Michael Luck, and Sandip Sen (Eds.). International Foundation for Autonomous Agents and Multiagent Systems, Toronto, Canada, 1551–1552.
[2] Ernst Bosina and Ulrich Weidmann. 2017. Estimating pedestrian speed using aggregated literature data. Physica A: Statistical Mechanics and its Applications 468 (2017), 1–29. doi:10.1016/j.physa.2016.09.044
[3] Stefan Buchmüller and Ulrich Weidmann. 2006. Parameters of pedestrians, pedestrian traffic and walking facilities. Technical Report. Institut für Verkehrspolitik und Transportsysteme (IVT), ETH Zürich. Publication Title: IVT Schriftenreihe Volume: 132. doi:10.3929/ethz-b-000047950
[4] Christian Calderón, Pasqual Marti, Jaume Jordán, Javier Palanca, and Vicente Julian. 2025. Cognitive agents in urban mobility: Integrating LLM reasoning into multi-agent simulations. Sensors 25, 18 (2025), 5688.
[5] Mohcine Chraibi, Kai Kratz, Tobias Schrödter, and The JuPedSim Development Team. 2026. JuPedSim. doi:10.5281/ZENODO.1293771
[6] Maria Davidich and Gerta Köster. 2013. Predicting Pedestrian Flow: A Methodology and a Proof of Concept Based on Real-Life Data. PLOS ONE 8, 12 (Dec. 2013), e83355. doi:10.1371/journal.pone.0083355
[7] Kalyanmoy Deb. 2011. Multi-objective optimisation using evolutionary algorithms: an introduction. In Multi-objective evolutionary optimisation for product design and manufacturing. Springer, 3–34.
[8] Gunnar Farnebäck. 2003. Two-Frame Motion Estimation Based on Polynomial Expansion. In Image Analysis, Josef Bigun and Tomas Gustavsson (Eds.). Springer, Berlin, Heidelberg, 363–370. doi:10.1007/3-540-45103-X_50
[9] Manuel Fehler, Franziska Klügl, and Frank Puppe. 2006. Approaches for resolving the dilemma between model structure refinement and parameter calibration in agent-based simulations. In Proceedings of the 5th International Joint Conference on Autonomous Agents and Multiagent Systems (AAMAS 2006). Association for Computing Machinery, New York, NY, USA, 120–122. doi:10.1145/1160633.1160651
[10] Chen Gao, Xiaochong Lan, Nian Li, Yuan Yuan, Jingtao Ding, Zhilun Zhou, Fengli Xu, and Yong Li. 2023. Large Language Models Empowered Agent-based Modeling and Simulation: A Survey and Perspectives. doi:10.48550/arXiv.2312.11970
[11] Yuan Gao, Dokyun Lee, Gordon Burtch, and Sina Fazelpour. 2025. Take caution in using LLMs as human surrogates. Proceedings of the National Academy of Sciences 122, 24 (2025), e2501660122. doi:10.1073/pnas.2501660122
[12] Volker Grimm, Eloy Revilla, Uta Berger, Florian Jeltsch, Wolf M Mooij, Steven F Railsback, Hans-Hermann Thulke, Jacob Weiner, Thorsten Wiegand, and Donald L DeAngelis. 2005. Pattern-oriented modeling of agent-based complex systems: lessons from ecology. Science 310, 5750 (2005), 987–991.
[13] Dirk Helbing, Dirk Brockmann, Thomas Chadefaux, Karsten Donnay, Ulf Blanke, Olivia Woolley-Meza, Mehdi Moussaid, Anders Johansson, Jens Krause, Sebastian Schutte, et al. 2015. Saving human lives: What complexity science and information systems can contribute. Journal of Statistical Physics 158, 3 (2015), 735–781.
[14] Dirk Helbing and Peter Molnar. 1995. Social Force Model for Pedestrian Dynamics. Physical Review E 51, 5 (1995), 4282–4286. doi:10.1103/PhysRevE.51.4282
[15] John J. Horton. 2023. Large Language Models as Simulated Economic Agents: What Can We Learn from Homo Silicus? doi:10.48550/arXiv.2301.07543
[16] Jessica Hullman, David Broska, Huaman Sun, and Aaron Shaw. 2026. This human study did not involve human subjects: Validating LLM simulations as behavioral evidence. https://arxiv.org/abs/2602.15785
[17] Glenn Jocher. 2022. YOLOv5 by ultralytics. doi:10.5281/zenodo.3908559
[18] Marc C Kennedy and Anthony O'Hagan. 2001. Bayesian calibration of computer models. Journal of the Royal Statistical Society: Series B (Statistical Methodology) 63, 3 (2001), 425–464.
[19] Benedikt Kleinmeier, Benedikt Zönnchen, Marion Gödel, and Gerta Köster. 2019. Vadere: An open-source simulation framework to promote interdisciplinary understanding. doi:10.48550/arXiv.1907.09520
[20] Tobias Kretz. 2009. Pedestrian Traffic: on the Quickest Path. Journal of Statistical Mechanics: Theory and Experiment 2009, 03 (March 2009), P03012. arXiv:0901.0170 [physics.soc-ph]. doi:10.1088/1742-5468/2009/03/P03012
[21] Erica D. Kuligowski, Richard D. Peacock, and Bryan L. Hoskins. 2010. A Review of Building Evacuation Models, 2nd Edition. Technical Note (NIST TN) 1680. National Institute of Standards and Technology, Gaithersburg, MD. doi:10.6028/NIST.TN.1680
[22] Simon Lämmer, Mark Colley, and Patrick Ebel. 2026. GTA: Generative traffic agents for simulating realistic mobility behavior. In Proceedings of the 2026 CHI Conference on Human Factors in Computing Systems (CHI 2026). 1–16.
[23] Maik Larooij and Petter Törnberg. 2025. Validation is the central challenge for generative social simulation: a critical review of LLMs in agent-based modeling. Artificial Intelligence Review 59, 1 (2025), 15. doi:10.1007/s10462-025-11412-6
[24] Robert Lempert. 2002. Agent-based modeling as organizational and public policy simulators. Proceedings of the National Academy of Sciences 99, suppl_3 (2002), 7195–7196. doi:10.1073/pnas.072079399
[25] Yuxuan Li, Kyzyl Monteiro, Hirokazu Shirado, and Sauvik Das. 2027. WhatIf: Interactive Exploration of LLM-Powered Social Simulations for Policy Reasoning. In Proceedings of the 40th Annual ACM Symposium on User Interface Software and Technology (UIST '27). Association for Computing Machinery.
[26] Yuxuan Li, Hirokazu Shirado, and Sauvik Das. 2025. Actions speak louder than words: Agent decisions reveal implicit biases in language models. In Proceedings of the 2025 ACM Conference on Fairness, Accountability, and Transparency (FAcT 2025). Association for Computing Machinery, 3303–3325.
[27] Yuhong Li, Xiaofan Zhang, and Deming Chen. 2018. CSRNet: Dilated Convolutional Neural Networks for Understanding the Highly Congested Scenes. arXiv:1802.10062 [cs.CV]. doi:10.48550/arXiv.1802.10062
[28] R. Lovreglio, E. Kuligowski, S. Gwynne, and K. Boyce. 2019. A pre-evacuation database for use in egress simulations. Fire Safety Journal 105 (2019), 107–128. doi:10.1016/j.firesaf.2018.12.009
[29] Fumiyasu Makinoshima, Tetsuro Takahashi, and Yusuke Oishi. 2024. Bayesian behavioural model estimation for live crowd simulation. In Proceedings of the 23rd International Conference on Autonomous Agents and Multiagent Systems (AAMAS 2024). International Foundation for Autonomous Agents and Multiagent Systems, 1355–1362.
[30] OpenAI. 2026. Introducing GPT-6 Sol and Luna. https://openai.com/index/introducing-gpt-6-sol-and-luna/.
[31] Joon Sung Park, Joseph C. O'Brien, Carrie J. Cai, Meredith Ringel Morris, Percy Liang, and Michael S. Bernstein. 2023. Generative Agents: Interactive Simulacra of Human Behavior. In Proceedings of the 36th Annual ACM Symposium on User Interface Software and Technology (UIST '23). Association for Computing Machinery, New York, NY, USA, 1–22. doi:10.1145/3586183.3606763
[32] Tianyi Peng, Melanie Brucks, George Gui, Daniel J Merlau, Grace Jiarui Fan, Malek Ben Sliman, Eric J Johnson, Abdullah Althenayyan, Silvia Bellezza, Dante Donati, et al. 2026. Digital twins are funhouse mirrors: Five systematic distortions. Science Advances 12, 36 (2026), eaeh8260.
[33] D. A Purser and M Bensilum. 2001. Quantification of behaviour for engineering design standards and escape time calculations. Safety Science 38, 2 (2001), 157–182. doi:10.1016/S0925-7535(00)00066-7
[34] Mark N Read, Kieran Alden, Louis M Rose, and Jon Timmis. 2016. Automated multi-objective calibration of biological agent-based simulations. Journal of the Royal Society Interface 13, 122 (2016), 20160543.
[35] Alex Rogers and Peter Von Tessin. 2004. Multi-objective calibration for agent-based models. (2004).
[36] Melanie Sclar, Yejin Choi, Yulia Tsvetkov, and Alane Suhr. 2024. Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formatting. In Proceedings of the Twelfth International Conference on Learning Representations (ICLR 2024). doi:10.48550/arXiv.2310.11324
[37] J A Sethian. 1996. A fast marching level set method for monotonically advancing fronts. Proceedings of the National Academy of Sciences 93, 4 (Feb. 1996), 1591–1595. doi:10.1073/pnas.93.4.1591
[38] Armin Seyfried, Bernhard Steffen, Wolfram Klingsch, and Maik Boltes. 2005. The Fundamental Diagram of Pedestrian Movement Revisited. Journal of Statistical Mechanics: Theory and Experiment 2005, 10 (2005), P10002–P10002. doi:10.1088/1742-5468/2005/10/P10002
[39] Shuai Shao, Zijian Zhao, Boxun Li, Tete Xiao, Gang Yu, Xiangyu Zhang, and Jian Sun. 2018. CrowdHuman: A Benchmark for Detecting Human in a Crowd. arXiv:1805.00123 [cs.CV]. doi:10.48550/arXiv.1805.00123
[40] Shusuke Shigenaka, Shunki Takami, Shuhei Watanabe, Yuki Tanigaki, Yoshihiko Ozaki, and Masaki Onishi. 2021. MAS-Bench: Parameter Optimization Benchmark for Multi-agent Crowd Simulation. In Proceedings of the 20th International Conference on Autonomous Agents and Multiagent Systems (AAMAS 2021). International Foundation for Autonomous Agents and Multiagent Systems, Richland, SC, 1652–1654. https://dl.acm.org/doi/10.5555/3463952.3464190
[41] I. M Sobol'. 1967. On the distribution of points in a cube and the approximate evaluation of integrals. U. S. S. R. Comput. Math. and Math. Phys. 7, 4 (1967), 86–112. doi:10.1016/0041-5553(67)90144-9
[42] Theodore R Sumers, Shunyu Yao, Karthik Narasimhan, and Thomas L Griffiths. 2023. Cognitive architectures for language agents. https://arxiv.org/abs/2309.02427
[43] Tina Toni, David Welch, Natalja Strelkowa, Andreas Ipsen, and Michael PH Stumpf. 2009. Approximate Bayesian computation scheme for parameter inference and model selection in dynamical systems. Journal of the Royal Society Interface 6, 31 (2009), 187–202.
[44] Antoine Tordeux, Mohcine Chraibi, and Armin Seyfried. 2016. Collision-Free Speed Model for Pedestrian Dynamics. In Traffic and Granular Flow '15, Victor L. Knoop and Winnie Daamen (Eds.). Springer International Publishing, Cham, 225–232. doi:10.1007/978-3-319-33482-0_29
[45] Cédric Villani. 2009. The Wasserstein distances. In Optimal Transport: Old and New, Cédric Villani (Ed.). Springer, Berlin, Heidelberg, 93–111. doi:10.1007/978-3-540-71050-9_6
[46] Giuseppe Vizzari, Lorenza Manenti, et al. 2012. An agent-based model for pedestrian and group dynamics: experimental and real-world scenarios.. In Proceedings of the 11th International Conference on Autonomous Agents and Multiagent Systems (AAMAS 2012). International Foundation for Autonomous Agents and Multiagent Systems, 1341–1342.
[47] Angelina Wang, Jamie Morgenstern, and John P Dickerson. 2025. Large language models that replace human participants can harmfully misportray and flatten identity groups. Nature Machine Intelligence 7, 3 (2025), 400–411.
[48] Boyu Wang, Huidong Liu, Dimitris Samaras, and Minh Hoai. 2020. Distribution Matching for Crowd Counting. arXiv:2009.13077 [cs.CV]. doi:10.48550/arXiv.2009.13077
[49] Ulrich Weidmann. 1992. Transporttechnik der Fussgänger. Technical Report. Institut für Verkehrsplanung, Transporttechnik, Strassen- und Eisenbahnbau (IVT), ETH Zürich, Zürich. doi:10.3929/ethz-a-000687810
[50] Paul Windrum, Giorgio Fagiolo, and Alessio Moneta. 2007. Empirical validation of agent-based models: Alternatives and prospects. Journal of Artificial Societies and Social Simulation 10, 2 (2007), 8.
[51] Sen Yang, Luis Ceferino, Yi Zhang, Chen Gu, Tong Guo, and Gen Kondo. 2025. When agents learn to think: Large language model-enhanced agent-based modeling for crowd evacuation in disaster scenarios. Reliability Engineering & System Safety (2025), 112056.
[52] Xiaoyan Zhang, Graham Coates, Sarah Dunn, and Jean Hall. 2022. An agent-based model for emergency evacuation from a multi-floor building. In Proceedings of the 21st International Conference on Autonomous Agents and Multiagent Systems (AAMAS 2022). International Foundation for Autonomous Agents and Multiagent Systems, 1777–1779.
[53] Patrick Zhao, David Huu Pham, and Nicholas Vincent. 2026. Mechanism Plausibility in Generative Agent-Based Modeling. In Proceedings of the 2026 ACM Conference on Fairness, Accountability, and Transparency (FAccT 2026). 5915–5940. doi:10.1145/3805689.3812388
[54] Chujie Zheng, Hao Zhou, Fandong Meng, Jie Zhou, and Minlie Huang. 2024. Large Language Models Are Not Robust Multiple Choice Selectors. In Proceedings of the Twelfth International Conference on Learning Representations (ICLR 2024). doi:10.48550/arXiv.2309.03882
[55] Xiaoping Zheng, Tingkuan Zhong, and Mengting Liu. 2009. Modeling crowd evacuation of a building based on seven methodological approaches. Building and Environment 44, 3 (2009), 437–445.
[56] Xuhui Zhou, Zhe Su, Tiwalayo Eisape, Hyunwoo Kim, and Maarten Sap. 2024. Is this the real life? Is this just fantasy? The Misleading Success of Simulating Social Interactions With LLMs. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing (EMNLP 2024). Association for Computational Linguistics, Miami, Florida, USA, 21692–21714. doi:10.18653/v1/2024.emnlp-main.1208
A AI Usage Disclosure
The authors acknowledge using Claude Code sessions running Opus 5/5.5 and Fable 5.1 to assist with simulation code, analysis, drafting, and figure polishing. The authors retained control over the experiments and made all design decisions.
B Calibration of Arena
Determining meters in the video. To allow the video and simulation to share one unit of measurement, we calibrate them against the dimensions of a standard football field. Between the goal lines a field measures 91.44 by 48.77 m, and a yard line appears every 4.57 m.
We record the commencement through a camera in the press box. For each year we map the image to the ground with a homography H and a radial lens correction , fitted to landmarks that we clicked by hand. In a wide-angle camera, straight lines on the ground appear slightly bent in the image. We apply a radial lens correction to adjust each pixel p from the image center c,
We choose such that running track lines become straight in the corrected image (Figure App.1b). Next, we fit H, a homography matrix to landmarks across the image, such as the running track's lane lines and the football field's yard lines. Leaving each landmark out in turn, the model predicts their locations within a median of 0.16 m (2025) and 0.20 m (2026).



(d)
person
seating, obstacles
evaluation region
Figure App.1: Calibration details from the video to the simulation’s map. (a) A grid in world meters projected back onto the camera’s background. (b) The simulation’s arena projected onto the same view: seating (purple), obstacles (blue), running track lanes (white) and the evaluation region (yellow). (c) The camera view projected into the top-down frame of the simulation. (d) DM-Count’s density map at min on the simulation map.
C Measurement of the crowd
C.1 Crowd detection
We compared three counting setups on 11 image patches spread out over both years' videos, where every head of a person was labeled by hand. We also compared 2 hybrid setups, where density-based methods are applied in medium-dense areas and a conventional head detector in sparse ones. The setups are as follows:
(1) A YOLOv5 model [17] trained on CrowdHuman [39], a benchmark for detecting humans in a crowd. The model is taken off-the-shelf from HuggingFace .
(2) CSRNet, a density-based method [27]. Public weights are retrieved from and distributed by the LWCC library .
(3) DM-Count, a second density-based method [48] also used through the LWCC library.
(4) (Hybrid) YOLOv5 × CSRNet
(5) (Hybrid) YOLOv5 × DM-Count
Table App.1 presents the results. Across the different density levels, the hybrid DM-Count setup has the lowest mean absolute at all density levels except the sparse condition. This becomes our main way to count people in the evaluation region .
Hybrid. DM-Count is accurate in medium crowds but over-counts the jam by a steady factor, so we calibrate it against the hand labels in the following steps.
(1) Estimate the density. DM-Count returns a number of people; dividing it by the area of the region gives an estimated density .
(2) Measure the error in known settings. Compare DM-Count's count with the hand count at different densities. In medium crowds (0.4 to 1.5 persons/m, n=5), DM-Count counts slightly low, by a factor of 0.944 at a median estimate of 0.78 persons/m. In dense crowds (above 1.5 persons/m, n=4), it counts high, by a factor of 1.273 at a median estimate of 2.29 persons/m.
(3) Interpolate the error for different densities. Interpolate linearly between the points above to obtain a correction factor for any density. Divide each DM-Count count by at its estimated density.
In addition to this, hybrid setups use the head detector in sparse crowds. On the two sparse patches it finds 18 of 18 and 36 of 40 people, so we divide its count by 0.95 to correct the small undercount, similarly to step 3. To prevent jumps in the count value, we take a weighted average of the two corrected counts, so the count is from the detector below 0.15 persons/m, DM-Count above 0.35, and a linear mix in between.
C.2 Flow direction
The flow measurement uses Farnebäck optical flow [8] between video frames 0.5 s apart. We divide the arena into 2 m cells and sum the average direction for each cell across the entire video, counting any pixel faster than 0.3 m/s as a walker. In the simulation, each agent's velocity is measured in the same way between two samples. Since the simulation records positions once every 10 seconds, an
Table App.1: Mean absolute percentage error (lower is better) of each counting setup on 11 hand-labeled image patches, sorted by crowd density (persons/m; 2, 5, and 4 images). A hybrid setup uses the head detector in sparse crowds and the network in dense ones. We settle on the DM-Count hybrid.
| crowd density | head detector | CSRNet | DM-Count | CSRNet (hybrid) | DM-Count (hybrid) |
|---|---|---|---|---|---|
| all | 37% | 16% | 20% | 11% | 7% |
| sparse (<0.3) | 5% | 3% | 34% | 6% | 13% |
| medium (0.3–1.5) | 21% | 18% | 9% | 17% | 7% |
| dense (>1.5) | 74% | 19% | 28% | 5% | 3% |
agent's velocity is its net movement over 10 s. Thus, we compare only direction, not speed.
To check the validity of the flow detection we hand annotate six one-minute clips per year spread across the video. In each clip, a human annotator draws the direction in which most people in the cell walked (Figure App.2). For 95 annotated cells, we measure the angle between the annotator's direction and the measured mean direction. The median difference in angle is 12°.
D Walking and Routing
Walking. The walker sets how fast an agent goes along the route, using a collision-free speed model [5, 44]. An agent walks at its own desired speed unless someone is close ahead, in which case it slows down using
where is the free distance to the agent ahead, the desired stand-still spacing, and the desired time gap. Agents additionally steer away from nearby pedestrians using steering strength and interaction range , following the formulation implemented in JuPed-Sim [5].
Routing. Each agent needs a route to its desired destination that goes around the seating and other obstacles. Instead of individually planning a path for every agent, we precompute a navigation field for every exit and POI in the stadium and let every agent use its direction.
The arena is divided into cells of 0.5 m, each assigned a traversal cost: 1 per meter on open ground, 20 inside seating and obstacles, and 500 on the rail at the foot of the grandstand, except at its four exit stairways. These values are a design choice rather than carefully calibrated; the purpose is to choose the values large enough that no route will cross the seating when it can go around, but still finite so routes can be calculated. For a destination, we then compute the travel time , which is the least total cost of reaching the destination from each point. It is the solution of the eikonal equation
where is the cost per meter at , solved through the fast marching method [37]. At each step, an agent heads in the direction in which the travel time falls fastest (Figure App.3).
Crowd-aware routing in M1 and M2. In M0 the fields stay fixed for the whole run, but in M1 and M2, every 30 s we adjust the
https://huggingface.co/MK-CUPIST/crowdhuman_yolov5m
https://github.com/tersekmatija/lwcc
(a) Occupancy labels

(b) Flow labels

hand label
measured direction
head detector
mixed or no walking
hand direction
Figure App.2: Hand labels for the two measurements. (a) Heads in a patch, labeled by hand (yellow dots). Cyan circles are the head detector's detections. (b) Flow direction: the 13 sampled cells of one minute. Yellow arrows are the hand labeled direction and cyan arrows are measured mean direction; dotted cells were marked as mixed or without walking.
cost of each cell according to its density. Weidmann’s fundamental diagram [20, 49] gives a walking-speed-density relationship
with and . We cap the cost at 20 so that traffic never costs more than moving through seating obstacles. This information is used in the prompts (Appendix G) to describe crowdedness, allowing LLM agents to consciously choose to avoid crowded areas.
E Configuration Space
We describe below how the pedestrian literature and video inform our values in Table 1:
• Leaving delay scale , 0–182: Each agent stays seated for a delay drawn from the half-normal distribution . We bound this by inspection of the video, in which most people are out of their seats within about three minutes. We allow roughly twice this duration as headroom. For a half-normal distribution, 90% of the draws lie below ,
way out
heading
seating, obstacles
rail

travel time to the way out (m of open ground)
Figure App.3: Navigation fields of two ways out, presented as examples. Different shading levels describe the travel time to the way out (m of open ground).
because for a standard normal Z. Setting s gives the upper bound s.
• Mean desired speed , 1.0–1.6 m/s: This is not measurable from the video because it is the implicit desired speed on open ground, and the video only contains speeds within traffic. Instead, we set the range to cover valued reported by Davidich et al. (0.97–1.04 m/s), Bosina et al. (1.0 to 1.6 m/s), and Weidmann (1.34 m/s) [2, 6, 49].
• Spread of desired speed , 0.2–0.4 m/s: For the same reasons, we draw this range from related work, namely Weidmann (0.26 m/s) and Buchmüller (0.37 m/s) [3, 49].
• Time gap , 0.8–1.2 s: Published values are from Tordeux et al. (1.0 s) and Seyfried (1.06 s) [38, 44]; we allow around 1.0 s.
• Standstill spacing , 0.3–0.5 m: Published values are again from Tordeux et al. (0.3 m) and Seyfried (0.36 m), but also a default of the JuPedSim library (0.4 m) [5, 38, 44]
• Steering strength a, 0–16, and range D, 0.05–0.3 m: JuPedSim’s defaults are , while Tordeux reports [5, 44].
F Power analysis
In Section 5, we discuss how only 16 configurations in M1 and M2 were evaluated due to required LLM calls. We chose 16 configurations based on a power analysis. Across the three metrics, the weakest matched-configuration effect was approximately . At this effect size, roughly 16 configurations give 80% power with Bonferroni-adjusted .
G LLM Implementation Details
An agent is prompted for a plan when its family’s leaving time arrives, when its plan is completed, when the agent is blocked (less than 1 m of progress in 60 s; a stall within 8 m of its target counts as arrival), when something changes in its family (a member arrives, the family comes together, a member sets off to leave), and otherwise every 300 s.
The language model is gpt-6-luna used through the API with no extended reasoning. In the case of malformed or missing responses, the agent keeps its current plan, or tries again after 5 seconds if it is its first decision. However, only 0.010% of M1 responses and 0.006% of M2 responses trigger the fallback.
G.1 Messaging and Family Coordination
Both architectures share the same mechanism for agreeing on a plan within a family. The family agrees on the place with the most proposals, and all family members adopt that action. In the event of a tie, the leader is the tiebreaker.
In M1, family members cannot vote to meet at POIs within the stadium; they can only adopt the same exit choice. In M2, family members can propose to meet at POIs such as the running track area or stage front. If agreed upon, the group gets assigned the closest point within the POI's range. Once every member is within 8 m of that point, the members group up within 3 m, then vote on a way out and leave together. If traffic keeps them from coming within 3 m of each other for 180 s, but they have all been within 8 m, then the family counts as met. If the family has not gathered after 180 s while more than half the members are outside of the POI (or after 540 s in any scenario), it discards the current plan and decides a new plan.
G.2 Agent action menu
M1 You are one person at the end of a university commencement in a stadium. Answer as that person, in the first person, briefly. [...] who you are, where you are, your family, messages, what you have done, what you thought last time ...] What you can do now (pick one id): wait:120: wait here for 2 minutes goto:stage_front: go to the front of the stage: the open ground in front of the stage, where people can stop for a few minutes for pictures with the stage behind them, then move on; about 40 m on foot; few people there now leave:bend_west: leave via the west bend of the track: ... into the main campus, where the college diploma ceremonies and receptions are held from 1 p.m.; about 120 m on foot; few people on the way leave:stairs_east: leave via the inner east stairway up through the stand: ... down into the campus garage, the paid garage where guests who reserved a space for the day parked; about 60 m on foot; some people on the way [...] other ways out ...] propose: ... the id of one leave via line, meaning we all head to that exit now and meet beyond it, outside; or the id of one go to line that is a meeting place ...; a photo spot or a wait is never a family plan Answer: option: leave:bend_west reasoning: "The west bend is recommended for my section, so I'll head there and meet my family beyond it." propose: "leave:bend_west"
M2 You are one person at the end of a university commencement in a stadium. Answer as that person, in the first person, briefly. [...] who you are, where you are, your family, messages, what you have done, what you thought last time ...] What you can do now (pick one id): wait:120: wait here for 2 minutes goto:stage_front: go to the front of the stage: the open ground in front of the stage, where people can stop for a few minutes for pictures with the stage behind them, then move on; about 40 m on foot; few people there now leave:bend_west: leave via the west bend of the track: ... into the main campus, where the college diploma ceremonies and receptions are held from 1 p.m.; about 120 m on foot; few people on the way leave:stairs_east: leave via the inner east stairway up through the stand: ... down into the campus garage, the paid garage where guests who reserved a space for the day parked; about 70 m on foot; some people on the way [...] other ways out ...]
- goto:near_track: go to the near track:
- the running track in front of the
- stand, below the rail; about 40 m on
- foot; some people there now propose: ... the id of one leave via line, meaning we all head to that exit now and meet beyond it, outside; or the id of one go to line that is a meeting place ...; a go to line of a photo place is a meeting place too; a wait is never a family plan Answer: option: goto:near_track reasoning: "My family is still in the stand, so I'll head to the near track as a clear nearby meeting place." propose: "goto:near_track"
Figure App.4: The menu shown to one student against at its first decision (abridged) in both M1 and M2. Every prompt opens with the same one-line instruction, followed by the facts of the agent's situation, the menu, and the instruction for the answer. M2 adds the near track as a meeting place and clarifies how a family can agree to meet at a place inside the stadium (bold; the new menu lines are marked +). In M1 the graduate walks to the stage front to find its family, but it can propose only an exit as the family's plan; in M2 it proposes the near track, and its family agrees.