Manuscript Offprint
arXiv:2611.08763CrowdDirector: Runtime Orchestration of Crowd Simulation through Natural-Language Directives
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Xiaohan Sun Trinity College Dublin Dublin, Ireland sunx4@tcd.ie
Carol O'Sullivan Trinity College Dublin Dublin, Ireland carol.osullivan@tcd.ie
Vuk Radovanovic Trinity College Dublin Dublin, Ireland radovanv@tcd.ie
Yiorgos Chrysanthou CYENS - Centre of Excellence Nicosia, Cyprus y.chrysanthou@cyens.org.cy
Merce Alvarez CYENS - Centre of Excellence Nicosia, Cyprus m.alvarez@cyens.org.cy
Panayiotis Charalambous CYENS - Centre of Excellence Nicosia, Cyprus p.charalambous@cyens.org.cy

Figure 1: CrowdDirector directs a running crowd with natural language. Four instructions are active at once: visitors gather for a party in the Event Hall, agents waiting at the broken coffee machine (☒) are redirected to another drink source, visitors collect in the Music Room before a concert, and interested visitors move to the Gallery. Circles mark the agents each instruction affects. Each instruction is interpreted once, then applied locally without further language inference.
Abstract
Natural language offers an intuitive way to direct a virtual crowd while a simulation is running. Handwritten rules execute efficiently but cannot respond flexibly to varied instructions, whereas asking a large language model (LLM) to control the crowd at every update introduces repeated latency, cost, and the risk of unsupported actions. We present CrowdDirector, a framework that uses an LLM
only when the user adds or changes an instruction. The LLM translates the request into a structured instruction, and a scene validator checks whether the entities and actions it references exist in the current Unity scene. Accepted instructions are stored and remain continuously active as the simulation is running. At each simulation tick, a graph neural network uses the current scene state and active instruction to choose an available action and target for each agent, while Unity handles movement, interactions, and animation. The network is trained offline on simulated scenarios, with LLM guidance on how agents should respond to instructions. Our evaluations show the scene validator's feasibility decisions matched human judgements more often than the LLM's own assessment, and on a behavioural benchmark CrowdDirector follows user instructions

This work is licensed under a Creative Commons Attribution 4.0 International License. MIG '26, Charleston, SC, USA © 2026 Copyright held by the owner/author(s). ACM ISBN 979-8-4007-2824-2/2026/12 https://doi.org/10.1145/3828647.3857300
Sun et al.
more closely than handwritten rules while avoiding repeated LLM calls. It therefore provides a practical middle ground between fixed rules and continuous LLM control.
CCS Concepts
• Computing methodologies → Multi-agent systems; Intelligent agents; Animation; • Human-centered computing → Interactive systems and tools.
ACM Reference Format:
Xiaohan Sun, Vuk Radovanovic, Merce Alvarez, Carol O'Sullivan, Yiorgos Chrysanthou, and Panayiotis Charalambous. 2026. CrowdDirector: Runtime Orchestration of Crowd Simulation through Natural-Language Directives. In The 19th ACM SIGGRAPH Conference on Motion, Interaction, and Games (MIG '26), December 11–13, 2026, Charleston, SC, USA. ACM, New York, NY, USA, 10 pages. https://doi.org/10.1145/3828647.3857300
1 Introduction
Crowd simulation is commonly organized as a hierarchy. Global planning selects routes, local navigation avoids collisions, and behavioural logic determines which goals and interactions agents should pursue [Helbing and Molnár 1995; Reynolds 1987; Treuille et al. 2006; van den Berg et al. 2011]. This separation supports real-time animation, but the behavioural layer remains expensive to author. For every event, a designer must decide in advance who is affected, where those characters should go, and how their current activity is interrupted or resumed. These requirements become restrictive in interactive scenes, where the desired response may be introduced only after the simulation has started.
Natural language is an attractive runtime interface because a single instruction can express intent, scope, and context: for example, "staff gather at the entrance," "the coffee machine is broken; redirect anyone waiting for a drink," or "keep visitors away from the spill." Recent systems use language models to generate agent plans, crowd scenarios, motion, dialogue, and animation [Cao et al. 2026; Ji et al. 2024; Li et al. 2024; Liu et al. 2025; Park et al. 2023]. Direct LLM control, however, is difficult to place inside a repeated crowd-control loop. The model may reference objects or actions that do not exist in the scene, or select the wrong agents. Calling it at every update is also slow, costly, and nondeterministic, and its output must still respect simulator constraints such as capacity and navigation.
This leaves a practical gap. A runtime authoring system must understand a new instruction, determine whether it can be carried out in the current scene, keep it active for the requested duration, and turn it into decisions for many agents. Handwritten rules make these decisions efficiently, but only for responses that were authored in advance. Per-tick LLM control can handle varied instructions, but querying the model at every update multiplies latency and API cost by the length of the session, even when the user's intent has not changed.
Our central premise is that the LLM should interpret a new instruction, not control every agent at every update. CrowdDirector therefore calls the LLM only when the user introduces or revises an instruction, and only to convert the text into a structured form. Each new instruction then passes through three steps: (1) a fixed, programmatic scene validator resolves the named agents, zones, and objects, checks whether the requested actions exist, and reports whether all, part, or none of the instruction can be executed; (2) an accepted instruction is stored as a directive, a checked instruction that remains part of the simulation state while it is active; and (3) at each later update, a graph neural network policy (graph policy) chooses an available action and target for each agent.
The graph policy is trained offline on generated scenarios. For every decision, short simulation rollouts estimate how well each available action would turn out, which gives a base training label. When a decision is related to an instruction, an LLM additionally ranks the same list of available actions, and this ranking is blended with the base label using fixed weights (Section 3.5). This design uses language to guide responses to an instruction without allowing the LLM to add actions or targets that the scene does not support.
Our contributions are:
(1) A runtime crowd-control framework integrated with Unity that interprets a natural-language instruction once, checks it against the current scene, and stores it as an active part of the simulation instead of calling an LLM at every update.
(2) A graph policy that chooses from the actions and targets available to each agent. It is trained from simulation rollouts, supplemented by constrained LLM rankings for instruction-related responses.
(3) An evaluation against handwritten rules and per-tick LLM control. It measures whether instructions are checked correctly, whether the right agents respond, and how much each update costs in latency and API calls.
2 Related Work
2.1 Crowd Simulation and Authoring
Foundational crowd models generate collective motion through local interaction rules, continuous forces, reciprocal avoidance, and aggregate flow fields [Helbing and Molnár 1995; Narain et al. 2009; Reynolds 1987; Treuille et al. 2006; van den Berg et al. 2011, 2008]. Empirical work has further identified compact interaction laws for pedestrian motion [Karamouzas et al. 2014]. These approaches primarily determine how agents move once a goal is known. Behavioural simulation adds perception, roles, schedules, and cognitive state to determine what agents do [Funge et al. 1999; Musse and Thalmann 2001; Pelechano et al. 2007; Shao and Terzopoulos 2005; Sung et al. 2004].
Crowd authoring systems expose higher-level controls through spatial painting, behaviour trees, semantic environments, and smart objects [Kallmann and Thalmann 1999; Shoulson et al. 2011; Ulicny et al. 2004]. Recent learned approaches provide controllable behaviour profiles, example-driven policies, or interpretable mesoscopic parameters [Lemonari et al. 2025; Panayiotou et al. 2025, 2022]. LexiCrowd adds natural-language authoring by learning a mapping from textual descriptions to continuous simulator parameters for goal seeking, grouping, and interaction with areas of interest; its training data consist of LLM-generated text–behaviour pseudo-pairs [Lemonari et al. 2024]. Its output is therefore a crowd-level behaviour profile. Our focus is different. We address live edits: an instruction arrives while the simulation is running and refers to the entities present in the scene at that time.
2.2 Language-Based Control of Virtual Agents and Crowds
LLMs have enabled agents that plan, remember, converse, and acquire skills. Generative Agents store memories and use them to plan long-horizon social behaviour [Park et al. 2023]; Voyager uses repeated LLM calls to acquire executable skills [Wang et al. 2024]; and SayCan combines language with a separate estimate of executable affordances [Ichter et al. 2023]. Shan and Michel similarly combine an LLM with goal-oriented action planning: natural-language player commands change the priorities of predefined NPC goals, and the planner constructs an executable response [Shan and Michel 2024]. These works use a language model to reason on behalf of a single agent.
In crowd animation, Text-Guided Synthesis of Crowd Animation generates group distributions and velocity fields [Ji et al. 2024]; CrowdMoGen uses an LLM-assisted planner for collective motion generation [Cao et al. 2026]; and Gen-C uses LLM-generated scenarios to train graph generative models of crowd actions and interactions [Panayiotou et al. 2026]. These methods map language to a generated animation, motion pattern, or reusable crowd model.
CrowdVLA instead places language-conditioned reasoning inside the runtime controller. It models each pedestrian as a vision-language-action agent that uses an agent-centric visual observation to select one of 64 short-horizon motion skills and replans after executing each skill [Hwang et al. 2026]. Its goal is context-aware navigation and social-norm compliance through an end-to-end visual-language policy. Other runtime systems query agent-centric LLMs to couple dialogue, social state, and navigation [Liu et al. 2025; Wang et al. 2025]. CrowdDirector instead interprets a crowd-level instruction once when it arrives, and the resulting directive conditions later graph-policy decisions without further language inference.
2.3 Graph-Based Policies and LLM Training Labels
Interactive scenes are naturally relational: agents belong to groups, occupy zones, reserve objects, and respond to operations targeting other entities. Graph networks provide an inductive bias for this structure [Battaglia et al. 2018], while relational graph convolutions distinguish typed edges [Schlichtkrull et al. 2018]. Pointer-style prediction is suitable when outputs select from a variable set of available choices [Vinyals et al. 2015]. We combine these ideas by propagating state over a crowd graph and scoring the candidate actions available to each agent rather than predicting from a fixed action vocabulary alone.
Imitation learning and policy distillation train a policy from the decisions of a more expensive teacher [Hinton et al. 2015; Ross et al. 2011; Rusu et al. 2015]. CrowdVLA applies a related idea to crowd
simulation, using simulator rollouts to supervise the counterfactual outcomes of alternative motion skills [Hwang et al. 2026]. We follow the same approach, using simulation rollouts together with a language model ranking of the available actions as training labels for our policy.
3 Method
3.1 System Overview
CrowdDirector applies an instruction to a running crowd simulation in five stages (Figure 2):
(1) an LLM converts the raw instruction into a structured instruction;
(2) the scene validator checks that instruction and stores an accepted result as a directive;
(3) the current scene and directive are represented as a crowd graph, and a candidate generator lists the actions available to each agent;
(4) the graph policy selects one candidate action for each agent; and
(5) the Unity execution layer carries out the selected actions and requests replanning when necessary.
Only the first stage requires language inference, and it runs only when an instruction is introduced or revised. The remaining stages form the local runtime loop. We use one running example throughout this section: in a cafe, the user states, "The coffee machine is broken; redirect anyone waiting for a drink."
3.2 Translating and Checking an Instruction
The LLM (Claude Haiku) [Anthropic 2024] converts a user instruction into a compact structured instruction. It proposes one or more operations, each a requested change to scene state, such as disabling the drink affordance of the coffee machine. For the running example, a shortened JSON record is:
{ "operation": "disable_affordance", "target": {"object": "coffee_machine_1", "affordance": "drink"} }
This example and the two later examples omit internal identifiers and timestamps for readability. The structured instruction is a claim about the user's intent, not permission to change the scene.
The scene validator resolves every referenced entity against the live simulation. For each name, it finds the matching entity in the current scene and checks that this entity supports the requested action. It returns one of five states:
- executable: the complete request is valid;
- partially executable: a supported subset can be applied;
- unsupported: the requested behaviour is outside the simulator vocabulary;
- ambiguous: several plausible groundings remain; and
- invalid reference: a named entity does not exist or has the wrong type.
In the running example, the validator resolves the coffee machine, verifies its drink affordance, and accepts the operation. Its shortened output makes the decision explicit:
Sun et al.

Figure 2: Overview of CrowdDirector. (a) Offline policy training. In generated worlds, simulation rollouts and a constrained LLM ranking score the same set of available actions, giving and . Averaging them yields the hybrid target , which trains the graph policy. Because both distributions cover the same candidates, the blend cannot introduce an unavailable action. (b) Runtime orchestration. An LLM interprets a new instruction once (1), and the scene validator checks it against the live scene, storing an accepted result as a directive and rejecting an unsupported target (2). The current scene and active directives are then rebuilt as a crowd graph with a candidate list for each agent (3), the trained policy selects one candidate per agent (4), and Unity executes the result (5).
{ "status": "executable", "resolved_target": "coffee_machine_1:drink", "scope": "all" }
Only executable structured instructions, or partial instructions explicitly accepted by the user, modify the simulation. This boundary prevents the LLM from inventing an unsupported action or silently bypassing scene constraints. It also separates two questions that an LLM can otherwise conflate: what the user appears to mean, and what the current simulator can actually execute.
After validation, the resolved instruction is stored as a directive. It records who is affected, what scene change is requested, and when the request should stop. The directive is not a copy of the structured instruction: it restates the request as a set of scene patches, and one requested operation may expand into several. An abridged form is:
{ "intent": "object_disable", "scope": "all", "operations": ["disable drink at coffee_machine_1", "enable drink in lounge", "raise lounge attraction"], "lifetime": "60 ticks" }
The directive does not name the agents it affects. It changes the scene rather than selecting a group, and which agents respond is left to the policy. The candidate generator and graph policy read
all active directives at every decision update. The coffee-machine directive therefore continues to redirect agents who become thirsty later, without another LLM call. A higher-priority interruption may temporarily override it; when that interruption ends, the original directive becomes active again.
3.3 Representing the Current Crowd Scene
The current scene is encoded as a crowd graph with six node types:
- agents, zones, objects, and groups, which describe the scene itself; and
- events and operations, which describe active directives. An event node records an active situation, and its operation nodes record the requested scene changes.
Directed relations connect these nodes. They record which zone an agent is in, which group it belongs to, which affordances each object offers, and which agents an operation applies to. The graph is rebuilt at every decision update, so a new instruction adds only its own event and operation nodes, together with the relations linking them to the agents and objects it names.
A fixed, Maslow-inspired rule [Maslow 1943] sorts an agent's nine needs into three tiers, from basic physical needs up to social and self-fulfilment needs, so an urgent lower-tier need is addressed before a higher-tier one. Needs grow over time and fall when the agent performs a relevant action. They follow fixed simulation rules and are not learned, but they form part of the agent's node in the graph.
Table 1: Action types the candidate generator can list, with examples from the running example. The actions available to an agent depend on what the current scene provides.
| Action | Target | Example |
|---|---|---|
| walk | zone | walk to the lounge |
| leave | exit | leave by the fire exit |
| drink | object | drink at the water cooler |
| rest | object | rest on the sofa |
| work | object | work at a desk |
| observe | object | look at the whiteboard |
| idle | agent | wait in place |
For each agent, the candidate generator then lists at most 64 actions the agent could take now, drawn from the scene, these needs, and the active directives. Table 1 gives the action types. Each listed action also records its target and how easy that target is to reach and use, such as its distance and whether it still has room.
Hard structural impossibilities are removed before inference. For example, a candidate is excluded when its action requires an affordance that the target type cannot provide. Conditions that may change at runtime, such as a disabled machine or a temporary hazard, are kept in the candidate features instead of being filtered out. The policy can therefore learn to avoid such targets and to reconsider them once the condition clears.
Some directives assign a specific destination, as in “staff gather at the entrance.” The entrance zone already appears in the graph and in each staff member’s candidate list, but nothing yet tells the policy which candidate the directive is pointing at. We therefore mark it with a single binary directive-target feature: it is 1 for the candidate that matches the agent’s assigned destination and 0 for every other candidate. This is a marker, not a priority: it does not add an action or force its selection, and the policy learns during training how strongly to follow it.
3.4 Choosing an Action for Each Agent
The graph policy uses a three-layer relational graph neural network with a 64-dimensional hidden representation (Figure 3). Per-type encoders first project the six node types into the shared space. Relation-specific message passing then propagates information between connected entities. Each message-passing layer moves information one edge further through the graph, so the number of layers equals the maximum path length information can travel. Three layers allow an agent to receive directive information along three-edge paths such as
The graph policy contains no text encoder: natural language has already been converted into resolved operations and explicit graph state before inference.
For each candidate action of agent , the policy scores every entry of the agent’s candidate list and normalizes those scores into a distribution over the list itself. This follows the idea of pointer networks [Vinyals et al. 2015]: the output is a selection from the input list, so the number of choices can differ per agent and per update, unlike a classifier with a fixed set of output classes. The
scorer combines the agent embedding, target embedding, their element-wise interaction, and the 34 candidate features into a single 226-dimensional vector:
where is the encoded agent state, is the encoded target, is the candidate feature vector, and is a multilayer perceptron. A masked softmax over the candidate actions produces the final action distribution.
In the running example, the directive has disabled the broken coffee machine’s drink affordance, so the water cooler is the remaining way for a thirsty agent to get a drink. The graph policy sees only actions supported by the scene and selects the water cooler for the affected agent:
{ "agent": "agent_07", "candidate_actions": [ "use coffee_machine_1 (unavailable)", "use water-cooler_1", "rest", "selected_action": "use water-cooler_1" ] }
3.5 Creating the Training Labels
This stage is offline: it produces the labels used to train the graph policy, and does not run during the loop above. The graph policy learns a probability distribution over each agent’s candidate actions. Simulation rollouts generate a base label for every decision. For instruction-related decisions with a valid LLM ranking, the rollout and language distributions are averaged; routine decisions and invalid or missing LLM outputs use the rollout distribution alone.
Routine decisions. For every candidate action, the data generator clones the headless simulation and performs perturbed rollouts over a horizon of committed steps. The return is dominated by need relief and event progress, and penalizes costs such as travel delay and failed actions. Returns are standardized within the candidate set and converted into a soft target distribution . This distribution reflects consequences that are difficult to infer from a static snapshot, including changing needs, capacity, travel cost, and contention.
Instruction-related decisions. For each world containing an active instruction, one temperature-zero LLM call labels all agents in that world. The prompt describes the active operations, the current scene state, each agent’s most urgent needs, and each agent’s numbered candidate list. The LLM returns the top three candidate indices for each agent. We assign probability masses of 0.60, 0.25, and 0.15 to the first-, second-, and third-ranked candidates, respectively, forming . Invalid indices, missing predictions, and unparseable outputs are discarded; in those cases, the simulation label is retained. The LLM can therefore indicate which available response best follows the instruction, but cannot invent a new behaviour. The ranking weights express a strong first preference while retaining two alternatives; they are a fixed data-generation choice rather than a tuned model parameter.
Sun et al.

Figure 3: Architecture of the graph policy. Type-specific encoders produce 64-dimensional node representations, which are updated by three relational GNN layers. A shared multilayer perceptron scores each candidate from its agent representation, target representation, their interaction, and the 34-dimensional candidate features.
Table 2: Abridged example of an instruction-related LLM label. Probabilities follow the displayed candidate order.
| Field | Example |
|---|---|
| Instruction | "The coffee machine is broken; redirect anyone waiting for a drink." |
| Relevant state | coffee_machine_1: broken;agent_07: waiting, thirst high |
| Candidate 0 | use water_cooler_1 |
| Candidate 1 | continue current_activity |
| Candidate 2 | move to lounge |
| LLM ranking | [0, 2, 1] |
| LLM label |
The final training target is a hybrid of the two distributions:
This blend retains information about travel, capacity, and contention from the rollouts while shifting probability toward actions that better follow the instruction. Both distributions follow the same candidate order, so their average cannot introduce an unavailable action.
Table 2 shows an abridged instruction-related training record. The LLM call contains the candidate lists for all agents in the world, but only one agent is shown here for clarity. Candidate indices are created by the simulator before the LLM is queried. The table shows the LLM component numerically; the final training target also includes the rollout component as defined in Equation 2.
Training corpus and optimization. We generate the training worlds procedurally, varying the layout, the number of agents, and the instruction that arrives. They cover ordinary behaviour, where agents simply satisfy their own needs, and the instruction types used in evaluation, such as a broken machine, an evacuation, and a gathering. The corpus holds 2,776 worlds and 73,606 agent decisions in
Table 3: Generated training corpus. Validation is used for checkpoint selection; composition splits are held out.
| Split | Use | Worlds | Decisions | LLM-blended |
|---|---|---|---|---|
| full/train | train | 1,280 | 40,283 | 35,115 |
| full/validation | selection | 258 | 8,340 | 7,369 |
| full/composition | held out | 268 | 8,406 | 8,306 |
| ext/train | train | 584 | 9,483 | 4,624 |
| ext/composition | held out | 102 | 1,685 | 616 |
| new-event/train | train | 284 | 5,409 | 5,409 |
| Total | 2,776 | 73,606 | 61,439 |
total: 2,148 worlds train the policy, 258 select the final checkpoint, and 370 are held out to test combinations of instructions the policy never saw during training. An LLM ranking is available for 61,439 of the decisions (Table 3).
Training minimizes the Kullback–Leibler (KL) divergence between the policy’s distribution over an agent’s candidates and the training target. KL divergence measures how far one probability distribution is from another, so minimizing it makes the policy’s choices match the target. Additional ranking terms encourage the policy to prefer actions that relieve a need, respond to an active instruction, choose a working alternative when the usual one is unavailable, or continue an activity the agent has already started. We use Adam with batch size 64 and an initial learning rate of , and keep the checkpoint with the lowest validation KL under early stopping.
3.6 Executing the Selected Actions in Unity
The policy decides what an agent should attempt; the Unity runtime determines how that decision is executed. Our implementation splits this across two processes. A Python process holds the symbolic state, meaning agent needs, active directives, and the crowd graph, and runs the trained policy. A Unity 2D client holds the scene geometry and executes each selected action. The two exchange messages over a WebSocket: Unity reports what has happened in the scene, and Python replies with the action each agent should attempt next.
After a level is instantiated, Unity reports which objects and zones actually exist, where each object can be used from, and which of them can be reached. The policy draws its targets from that report, so an object that was never placed, or that cannot be reached, is never offered as an action. Unity then handles path planning and collision avoidance, object interactions, and animation transitions.
An agent keeps its selected action until that action finishes, fails, or the directive changes, so the policy runs less often than the animation and agents do not stop and restart on the spot. The interface summarizes the nine needs as five bars, labelled hunger, thirst, rest, comfort, and social, so that an observer can read an agent's state at a glance. This grouping affects the display only.
4 Evaluation
We organize the evaluation around three questions. E1 asks whether the system correctly identifies instructions that the current scene can execute. E2 asks whether the graph policy selects the intended agents and responses. E3 measures runtime cost and scaling relative to handwritten rules and per-tick LLM control.
Each question is reported in three parts: how the measurement was made, what the result shows, and what it implies for the design.
4.1 Evaluation Setup and Comparison Methods
Participant reference. Fifteen volunteers (11 male and 4 female; age 18–50+) completed an anonymous, approximately 15-minute web form. A 5 × 4 pool covered five instruction categories across four venues; each participant received a stratified random sample of 10 scenarios. Q1 assessed scene feasibility, Q2 identified the affected agents, and Q3 selected the preferred response from four executable, scene-specific candidate actions. Answer order was randomized. Scenarios overlapped across participants, so confidence intervals use a cluster bootstrap over scenarios.
Behavioural benchmark. We use a frozen benchmark of 100 scenarios, each run under 10 initializations. It is generated once and reused unchanged, so every method is measured on identical situations. Each scenario states in advance which agents should respond, and which of the actions open to them the instruction permits. An agent that takes a permitted action gives an acceptable response, and one that takes an action the user ruled out gives a prohibited response, even though both are physically executable in the scene. The agents that actually changed behaviour are compared against the intended set by precision, recall, and F1, so disturbing a bystander and missing an intended agent are counted separately. Learned variants are averaged over three seeds.
We compare CrowdDirector, which interprets an instruction once and then decides locally, with two alternatives. A handwritten rule set never uses language at runtime, and a temperature-zero LLM decides every update from one batched call covering the whole crowd. E2 uses the matched subset in which all three faced the same situation, 760 of the 840 cached calls. Fifteen LLM outputs in that
subset could not be parsed, leaving 745 valid rows; where the LLM validly assigned no agent, default behaviour is retained.
4.2 E1: Can the Instruction Be Executed?
Method. For each instruction–scene pair we collect two independent feasibility judgements and compare both against people. The LLM judges first: while interpreting the instruction, it also states whether it believes the scene can execute it. The scene validator then checks the same instruction against the live scene and returns its five-state verdict, which we reduce to a binary decision by treating executable and partially executable as supported, and unsupported, ambiguous, and invalid reference as unsupported. The reference is the majority Q1 judgement of the participants, and agreement is the proportion of scenarios on which an assessor matches that reference.
Results. Table 5 reports the agreement. The scene validator agrees more closely with participant judgements than the LLM's self-assessment. The intervals overlap, so the margin alone is not conclusive, but the direction is consistent: where the two disagree, the validator is usually the one people side with. The LLM's errors are not random. It tends to accept instructions that read sensibly but name something the scene does not contain, which is exactly the case its own confidence cannot detect.
Why separate interpretation from validation. These results support separating language interpretation from scene validation. An LLM can infer the likely meaning of an instruction, but its own confidence does not establish that the referenced object, affordance, or group exists, because that is a fact about the scene rather than about the sentence. Checking the interpretation against the explicit contents of the scene also produces a clear failure state before an invalid instruction reaches the graph policy, which is what allows the system to tell the user that part of a request cannot be carried out rather than silently doing something else.
4.3 E2: Do Agents Respond to the Instruction?
Method. E2 asks two separate questions about a response: whether the right agents reacted, and whether they did the right thing. Q2 scores the affected scope as the Jaccard overlap between the agents an approach moves and the agents participants identified, so both missing an affected agent and moving an unaffected one are penalized. Q3 scores the chosen response as the proportion of cases matching the participants' preferred candidate. The benchmark additionally reports the acceptable and prohibited rates defined above, and precision, recall, and F1 over the affected agents. Panel A compares the three approaches on the matched subset. Panel B removes one component of CrowdDirector at a time, holding the data, candidates, masks, labels, and optimization identical, so a change can be attributed to that component.
Results: comparison with rules and per-tick LLM. Panel A of Table 4 compares the three approaches. The ordering is the same on every behavioural measure. Per-tick LLM control is strongest, CrowdDirector is close behind, and the handwritten rules are far below both. CrowdDirector roughly doubles the rule set on both scope and response agreement, and it recovers most of the gap between the rules and an LLM that reasons at every update. On
Sun et al.
Table 4: Policy evaluation. Panel A compares alternative approaches. Q2 Jaccard measures agreement on the affected scope; Q3 measures agreement on the preferred candidate action. The per-tick LLM is a comparison method rather than a local decision maker. Panel B reports controlled ablations with identical data, candidates, masks, labels, and optimization. Learned results are means over three seeds. Best value in bold, second best underlined.
Panel A: Comparison with alternative approaches
| Approach | Runtime language use | Q2 Jaccard ↑ | Q3 ↑ | Acceptable ↑ | Prohibited ↓ |
|---|---|---|---|---|---|
| CrowdDirector | per new instruction | 0.595 | 0.611 | 0.479 | 0.211 |
| Handwritten rules | none | 0.300 | 0.233 | 0.312 | 0.368 |
| Per-tick LLM control | every tick | 0.683 | 0.667 | 0.566 | 0.217 |
Panel B: Controlled component ablations
| Variant | Q2 Jaccard ↑ | Q3 ↑ | Acceptable ↑ | Prohibited ↓ | Aff. recall ↑ | Aff. F1 ↑ |
|---|---|---|---|---|---|---|
| CrowdDirector | 0.595 | 0.611 | 0.479 | 0.211 | 0.844 | 0.760 |
| w/o directive-target encoding | 0.595 | 0.278 | 0.367 | 0.172 | 0.799 | 0.729 |
| w/o message passing | 0.578 | 0.400 | 0.482 | 0.344 | 0.803 | 0.741 |
Table 5: Feasibility agreement with participant Q1 judgements. Best value in bold.
| Feasibility assessor | Agreement ↑ | 95% CI |
|---|---|---|
| Scene validator | 0.83 | [0.61, 1.00] |
| LLM self-assessment | 0.47 | [0.21, 0.72] |
prohibited responses the two are effectively level, so the remaining gap is one of coverage rather than safety: CrowdDirector sometimes fails to find the intended response, but it is no more likely to choose one the instruction ruled out. These results match the intended operating point: CrowdDirector does not reproduce the full flexibility of recurrent LLM reasoning, but transfers substantially more instruction sensitivity into local control than a fixed rule set.
Why store an instruction. This comparison is the case for storing the instruction rather than regenerating it. The handwritten rules show what is lost without language at runtime: they are efficient, but they only cover responses someone anticipated, and varied instructions fall outside them. Per-tick LLM control shows what continuous language buys, and it is real but modest relative to its cost, since it repeats the same inference even when the user's intent has not changed. Keeping the validated instruction as state captures most of that benefit once, and leaves the repeated work to a component that can run locally.
Results: component ablations. Panel B isolates two design choices. Removing the directive-target marker leaves scope agreement untouched but roughly halves response agreement. The two are therefore decided separately: the marker tells an already-affected agent which destination the directive assigned, and contributes nothing to deciding whether that agent is affected at all. Removing message passing behaves differently. Response agreement falls less sharply, but affected-agent recall and F1 both drop and the prohibited rate rises by more than half, which is the clearest single degradation anywhere in the table.
What the graph policy contributes. The two components address complementary failures. A policy cannot follow an assigned destination unless that assignment is visible in its candidate representation, which is what the directive-target marker supplies and why its removal affects only the response. Relational context does something the marker cannot: it connects an agent's decision to the surrounding event, object, and group structure, and without it the policy more often selects a response the instruction ruled out. One ablation is worth noting against us. Removing the directive-target marker lowers the prohibited rate slightly, because a policy that less often pursues the assigned destination also less often reaches the situation where a prohibited alternative is attractive. The marker improves instruction following, and that is what it is for, but it does not by itself make responses safer.
4.4 E3: Runtime Cost and Scaling
Method. E3 tests the central runtime premise of CrowdDirector: language is used when the scene or director's intent changes, while repeated crowd-control updates are performed locally. Let denote the number of user instructions and the number of decision updates in a session. Including one initial scene-generation call, the API-call counts are
Both configurations retain language-based authoring. CrowdDirector removes the recurrent calls from the crowd-control loop. The difference is small symbolically and large in practice, because is the length of the session while is only the number of times the user speaks: for five instructions over 600 updates, six calls against 606. We measure latency per complete decision update on identical 20-agent worlds, and price each call at the provider's published rate. Panel B then raises the crowd size at approximately constant density to separate the cost of the graph policy from the cost of language. Panel C reports how often the whole-crowd LLM returned a parseable assignment for every agent, over 15 calls at each crowd size.
Results. Table 6 reports runtime and scaling. Removing language from the control loop reduces per-update latency by 189×, and over a session of five instructions and 600 updates it reduces estimated cost by nearly two orders of magnitude. Both configurations pay the same price to author an instruction; the difference is entirely in what recurs.
Table 6: Runtime and scaling. (a) separates the sparse cost of authoring an instruction from the recurrent cost of control, instantiated for a session of instructions and updates. (b) reports CPU scaling at approximately constant agent density. (c) reports the fraction of whole-crowd LLM calls that assigned every agent before reaching the output-token limit, over 15 calls per crowd size. Measured on an Intel i9-13900H (14 physical cores), CPU only. Best value in bold.
| (a) Authoring and recurrent control | |||||||
|---|---|---|---|---|---|---|---|
| Approach | Calls/instr. | Calls/update | Calls/session | Latency/update | Cost/update | Cost/session | |
| CrowdDirector | 1 | 0 | 20.5 ms | $0 | $0.03 | ||
| Whole-crowd LLM | 1 | 1 | 3,880 ms | $0.0038 | $2.30 | ||
| (b) CrowdDirector computational scaling | ||||||||
|---|---|---|---|---|---|---|---|---|
| Crowd size | 20 | 50 | 100 | 200 | 500 | 1,000 | 2,000 | 5,000 |
| Latency/update (ms) | 20.5 | 36.4 | 64.7 | 113.1 | 281.2 | 566.7 | 1,130 | 3,230 |
| (c) Whole-crowd LLM assignment completeness | ||||||
|---|---|---|---|---|---|---|
| Crowd size | 20 | 30 | 40 | 60 | 80 | |
| Complete assignment rate | 1.00 | 0.33 | 0.00 | 0.00 | 0.00 | |
Local runtime grows close to linearly with crowd size and adds no further API calls, staying interactive well past the range the policy was trained on. The whole-crowd LLM interface fails for a different reason: because it enumerates one assignment per agent, its output grows with the crowd and it stops returning complete responses shortly above the smallest size tested. Its limit is the response format, not the reasoning. Multiple calls or a grouped representation would move it, and CrowdDirector takes the compressed route by naming the event, scope, and target once and expanding it locally.
The policy was trained on crowds of 8–40 agents. The large-crowd experiment therefore demonstrates computational scaling, not behavioural generalization. It shows that the crowd graph and graph policy can be evaluated beyond the training range without language cost; it does not establish that response quality is unchanged for thousands of agents.
Connecting decisions to Unity execution. These savings depend on the boundary the method draws. The Unity implementation is not a separate decision maker but the execution side of the same pipeline: the graph policy selects an action and target, and the engine plans movement, carries the action out, and reports completion or failure. Keeping that boundary explicit is what makes the recurrent loop cheap, since the learned component never has to produce physically valid trajectories, and established navigation and animation systems continue to do the work they already do well.
5 Conclusion and Future Work
We presented CrowdDirector, a framework for directing a running crowd simulation with natural language. An LLM converts a new instruction into a structured instruction, the scene validator checks it against the current scene, the accepted directive remains active, and the graph policy selects a candidate action for each agent. Unity then executes those choices with its navigation and interaction systems. The evaluation shows that explicit scene validation improves agreement with participant judgements and that the graph policy follows instructions more closely than handwritten rules without requiring language inference at every update. Per-tick LLM control achieves higher response agreement in our benchmark, but with substantially higher recurrent latency and API cost. CrowdDirector therefore provides a practical middle ground between flexible instruction following and efficient runtime crowd control.
However, we identify several limitations of the present study as follows: (1) the current implementation supports only the actions and interactions defined in its operation library and has been evaluated in 2D environments; (2) the participant study involved 15 volunteers and a limited set of instruction scenarios; and (3) the policy was trained with crowds of 8–40 agents, so the larger-crowd experiment evaluates computational scaling rather than behavioral generalization beyond the training range. Future work will extend CrowdDirector to richer environments and interactions, evaluate a broader range of participants and instructions, and improve large-crowd efficiency.
Acknowledgments
This work was conducted with the financial support of the Research Ireland Centre for Research Training in Digitally-Enhanced Reality (d-real) under Grant No. 18/CRT/6224. For the purpose of Open Access, the author has applied a CC BY public copyright licence to any Author Accepted Manuscript version arising from this submission.
References
Anthropic. 2024. The Claude 3 Model Family: Opus, Sonnet, Haiku. Technical Report. Anthropic. https://www-cdn.anthropic.com/de8ba9b01c9ab7cbabf5c33b80b7bbc618857627/Model_Card_Claude_3.pdf
Peter W. Battaglia, Jessica B. Hamrick, Victor Bapst, Alvaro Sanchez-Gonzalez, Vinicius Zambaldi, Mateusz Malinowski, Andrea Tacchetti, David Raposo, Adam Santoro, Ryan Faulkner, Caglar Gulcehre, Francis Song, Andrew Ballard, Justin Gilmer, George E. Dahl, Ashish Vaswani, Kelsey Allen, Charles Nash, Victoria Langston, Chris Dyer, Nicolas Heess, Daan Wierstra, Pushmeet Kohli, Matthew Botvinick, Oriol Vinyals, Yujia Li, and Razvan Pascanu. 2018. Relational Inductive Biases, Deep Learning, and Graph Networks. arXiv preprint arXiv:1806.01261 (2018). arXiv:1806.01261 [cs.LG] doi:10.48550/arXiv.1806.01261
Yukang Cao, Xinying Guo, Mingyuan Zhang, Haozhe Xie, Chenyang Gu, and Ziwei Liu. 2026. CrowdMoGen: Event-Driven Collective Human Motion Generation. International Journal of Computer Vision 134 (2026), 29. doi:10.1007/s11263-025-02677-z
John Funge, Xiaoyuan Tu, and Demetri Terzopoulos. 1999. Cognitive Modeling: Knowledge, Reasoning and Planning for Intelligent Characters. In Proceedings of the 26th
Sun et al.
Annual Conference on Computer Graphics and Interactive Techniques (SIGGRAPH '99). ACM Press/Adison-Wesley Publishing Co., 29–38. doi:10.1145/31535.311538
Dirk Helbing and Péter Molnár. 1995. Social Force Model for Pedestrian Dynamics. Physical Review E 51, 5 (1995), 4282–4286. doi:10.1103/PhysRevE.51.4282
Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. 2015. Distilling the Knowledge in a Neural Network. arXiv preprint arXiv:1503.02531 (2015). arXiv:1503.02531 [stat.ML]. doi:10.48550/arXiv.1503.02531
Juyeong Hwang, Seong-Eun Hong, Jinhyun Kim, JaeYoung Seon, Giljoo Nam, Hanyoung Jang, and HyeongYeop Kang. 2026. CrowdVLA: Embodied Vision-Language-Action Agents for Context-Aware Crowd Simulation. arXiv preprint arXiv:2604.05525 (2026). arXiv:2604.05525 [cs.GR]. doi:10.48550/arXiv.2604.05525
Brian Ichter, Anthony Brohan, Yevgen Chebotar, Chelsea Finn, Karol Hausman, Alexander Herzog, Daniel Ho, Julian Ibarz, Alex Irpan, Eric Jang, Ryan Julian, Dmitry Kalashnikov, Sergey Levine, Yao Lu, Carolina Parada, Kanishka Rao, Pierre Sermanet, Alexander T. Toshev, Vincent Vanhoucke, Fei Xia, Ted Xiao, Peng Xu, Mengyuan Yan, Noah Brown, Michael Ahn, Omar Cortes, Nicolas Sievers, Clayton Tan, Sichun Xu, Diego Reyes, Jarek Rettinghouse, Cornell Quiambao, Peter Pastor, Linda Luu, Kuang-Huei Lee, Yuheng Kuang, Sally Jesmonth, Nikhil J. Joshi, Kyle Jeffrey, Rosario Jauregui Ruano, Jasmine Hsu, Keerthana Gopalakrishnan, Byron David, Andy Zeng, and Chuyuan Kelly Fu. 2023. Do As I Can, Not As I Say: Grounding Language in Robotic Affordances. In Proceedings of the 6th Conference on Robot Learning (Proceedings of Machine Learning Research, Vol. 205). PMLR, 287–318. https://proceedings.mlr.press/v205/ichter23a.html
Xuebo Ji, Zherong Pan, Xifeng Gao, and Jia Pan. 2024. Text-Guided Synthesis of Crowd Animation. In ACM SIGGRAPH 2024 Conference Papers (SIGGRAPH '24). Association for Computing Machinery, New York, NY, USA, 1–11. doi:10.1145/364159.3657516
Marcelo Kallmann and Daniel Thalmann. 1999. Modeling Objects for Interaction Tasks. In Computer Animation and Simulation '98. Springer, Vienna, 73–86. doi:10.1007/978-3-7091-6375-7_6
Ioannis Karamouzas, Brian Skinner, and Stephen J. Guy. 2014. Universal Power Law Governing Pedestrian Interactions. Physical Review Letters 113, 23 (2014), 238701. doi:10.1103/PhysRevLett.113.238701
Marilena Lemonari, Nefeli Andreou, Nuria Pelechano, Panayiotis Charalambous, and Yiorgos Chrysanthou. 2024. LexiCrowd: A Learning Paradigm towards Text to Behaviour Parameters for Crowds. In CLIPE 2024 – Creating Lively Interactive Populated Environments, Nuria Pelechano and Julien Pettre (Eds.). The Eurographics Association. doi:10.2312/cl.20241049
Marilena Lemonari, Andreas Panayiotou, Theodoros Kyriakou, Nuria Pelechano, Yiorgos Chrysanthou, Andreas Aristidou, and Panayiotis Charalambous. 2025. MPACT: Mesoscopic Profiling and Abstraction of Crowd Trajectories. Computer Graphics Forum 44, 6 (2025), e70156. doi:10.1111/cgf.70156
Danrui Li, Samuel S. Sohn, Sen Zhang, Che-Jui Chang, and Mubasir Kapadia. 2024. From Words to Worlds: Transforming One-line Prompts into multi-modal Digital Stories with LLM Agents. In Proceedings of the 17th ACM SIGGRAPH Conference on Motion, Interaction, and Games (MIG '24). Association for Computing Machinery, New York, NY, USA, 1–12. doi:10.1145/3677388.3696321
Yibo Liu, Liam Shatzel, Brandon Haworth, and Teseo Schneider. 2025. Emergent Crowd Dynamics from Language-Driven Multi-Agent Interactions. arXiv preprint arXiv:2508.15047 (2025). arXiv:2508.15047 [cs.MA]. doi:10.48550/arXiv.2508.15047
A. H. Maslow. 1943. A Theory of Human Motivation. Psychological Review 50, 4 (1943), 370–396.
Soraia Raupp Musse and Daniel Thalmann. 2001. Hierarchical Model for Real Time Simulation of Virtual Human Crowds. IEEE Transactions on Visualization and Computer Graphics 7, 2 (2001), 152–164. doi:10.1109/2945.928167
Rahul Narain, Abhinav Golas, Sean Curtis, and Ming C. Lin. 2009. Aggregate Dynamics for Dense Crowd Simulation. ACM Transactions on Graphics 28, 5, Article 122 (2009), 8 pages. doi:10.1145/1618452.1618468
Andreas Panayiotou, Andreas Aristidou, and Panayiotis Charalambous. 2025. CEDRL: Simulating Diverse Crowds with Example-Driven Deep Reinforcement Learning. Computer Graphics Forum 44, 2 (2025), e70015. doi:10.1111/cgf.70015
Andreas Panayiotou, Panayiotis Charalambous, and Ioannis Karamouzas. 2026. Gen-C: Populating Virtual Worlds with Generative Crowds. Proceedings of the ACM on Computer Graphics and Interactive Techniques 9, 1, Article 6 (2026), 20 pages. doi:10.1145/3804500
Andreas Panayiotou, Theodoros Kyriakou, Marilena Lemonari, Yiorgos Chrysanthou, and Panayiotis Charalambous. 2022. CCP: Configurable Crowd Profiles. In ACM SIGGRAPH 2022 Conference Proceedings (SIGGRAPH '22). Association for Computing Machinery, New York, NY, USA, 1–10. doi:10.1145/3528233.3530712
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, Article 2, 22 pages. doi:10.1145/3586183.3606763
Nuria Pelechano, Jan M. Allbeck, and Norman I. Badler. 2007. Controlling Individual Agents in High-Density Crowd Simulation. In Proceedings of the 2007 ACM SIGGRAPH/Eurographics Symposium on Computer Animation (SCA '07). Eurographics Association, Goslar, Germany, 99–108. https://dl.acm.org/doi/10.5555/1272690.1272705
Craig W. Reynolds. 1987. Flocks, Herds and Schools: A Distributed Behavioral Model. In Proceedings of the 14th Annual Conference on Computer Graphics and Interactive Techniques (SIGGRAPH '87). Association for Computing Machinery, New York, NY, USA, 25–34. doi:10.1145/37401.37406
Stéphane Ross, Geoffrey J. Gordon, and J. Andrew Bagnell. 2011. A Reduction of Imitation Learning and Structured Prediction to No-Regret Online Learning. In Proceedings of the 14th International Conference on Artificial Intelligence and Statistics (Proceedings of Machine Learning Research, Vol. 15). PMLR, 627–635. https://proceedings.mlr.press/v15/ross11a.html
Andrei A. Rusu, Sergio Gomez Colmenarejo, Caglar Gulcehre, Guillaume Desjardins, James Kirkpatrick, Razvan Pascanu, Volodymyr Mnih, Koray Kavukcuoglu, and Raia Hadsell. 2015. Policy Distillation. arXiv preprint arXiv:1511.06295 (2015). arXiv:1511.06295 [cs.LG]. doi:10.48550/arXiv.1511.06295
Michael Schlichtkrull, Thomas N. Kipf, Peter Bloem, Rianne van den Berg, Ivan Titov, and Max Welling. 2018. Modeling Relational Data with Graph Convolutional Networks. In The Semantic Web. Lecture Notes in Computer Science, Vol. 10843. Springer International Publishing, Cham, 593–607. doi:10.1007/978-3-319-93417-4_48
Tiger Shan and Kay Michel. 2024. Generative AI with GOAP for Fast-Paced Dynamic Decision-Making in Game Environments. In 2024 IEEE Conference on Games (CoG). IEEE, Milan, Italy, 1–5. doi:10.1109/CoG60054.2024.10645549
Wei Shao and Demetri Terzopoulous. 2005. Autonomous Pedestrians. In Proceedings of the 2005 ACM SIGGRAPH/Eurographics Symposium on Computer Animation (SCA '05). Association for Computing Machinery, New York, NY, USA, 19–28. doi:10.1145/1073368.1073731
Alexander Shoulson, Francisco M. Garcia, Matthew Jones, Robert Mead, and Norman I. Badler. 2011. Parameterizing Behavior Trees. In Motion in Games. Lecture Notes in Computer Science, Vol. 7060. Springer, Berlin, Heidelberg, 144–155. doi:10.1007/978-3-642-25090-3_13
Mankyu Sung, Michael Gleicher, and Stephen Chenney. 2004. Scalable Behaviors for Crowd Simulation. Computer Graphics Forum 23, 3 (2004), 519–528. doi:10.1111/j.1467-8659.2004.00783.x
Adrien Treuille, Seth Cooper, and Zoran Popović. 2006. Continuum Crowds. ACM Transactions on Graphics 3, 3 (2006), 1160–1168. doi:10.1145/1141911.1142008
Branislav Ulicny, Pablo de Heras Ciecchomski, and Daniel Thalmann. 2004. Crowd-brush: Interactive Authoring of Real-Time Crowd Scenes. In Proceedings of the 2004 ACM SIGGRAPH/Eurographics Symposium on Computer Animation (SCA '04). Eurographics Association, Goslar, Germany, 243–252. doi:10.1145/1028523.1028555
Jur van den Berg, Stephen J. Guy, Ming Lin, and Dinesh Manocha. 2011. Reciprocal n-Body Collision Avoidance. In Robotics Research. Springer Tracts in Advanced Robotics, Vol. 70. Springer, Berlin, Heidelberg, 3–19. doi:10.1007/978-3-642-19457-3_1
Jur van den Berg, Ming Lin, and Dinesh Manocha. 2008. Reciprocal Velocity Obstacles for Real-Time Multi-Agent Navigation. In 2008 IEEE International Conference on Robotics and Automation. IEEE, 1928–1935. doi:10.1109/ROBOT.2008.4543489
Oriol Vinyals, Meire Fortunato, and Navdeep Jaitly. 2015. Pointer Networks. In Advances in Neural Information Processing Systems 28. Curran Associates, Inc., 2692–2700. https://proceedings.neurips.cc/paper/hash/29921001f2f04bd3baee84a1e298098f-Abstract.html
Guanzhi Wang, Yuqi Xie, Yunfan Jiang, Ajay Mandlekar, Chaowei Xiao, and Yuke Zhu. 2024. Voyager: An Open-Ended Embodied Agent with Large Language Models. Transactions on Machine Learning Research (2024). https://openreview.net/forum?id=ehfRiF0R3a
Yunzhe Wang, Gale Lucas, Burcin Becerik-Gerber, and Volkan Ustun. 2025. Implicit Behavioral Alignment of Language Agents in High-Stakes Crowd Simulations. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics, Suzhou, China, 30681–30698. doi:10.18653/v1/2025.emnlp-main.1562