TL;DR
This paper introduces Staged Semantic Distillation, a method to transform expensive, slow LLM-based multi-agent simulators into tiny, lightning-fast (0.14ms per decision) non-LLM surrogates. By encoding intermediate reasoning steps into semantic vectors and training a 13.2M-parameter Transformer to predict them, the authors create a deterministic "student" model that preserves the agents' internal logic without ever generating a single word of text at inference.
What Problem Does This Paper Address?
Large Language Model (LLM) agents are increasingly used to build realistic social and market simulators. However, these simulations are prohibitively expensive: a single 100-day run with 200 agents can require over 200,000 LLM calls and hundreds of millions of tokens.
The standard solution is distillation—training a smaller model to mimic the larger one. But traditional distillation usually focuses only on the final output (e.g., "buy" or "sell"). In "staged" agents—which might query news, summarize indicators, and write a rationale before acting—this approach throws away the very thing that makes them useful: their intermediate reasoning. Existing surrogates either keep a small LLM (which is still slow) or use simple tabular models that ignore the "meaning" of the agents' thoughts.
Methods
The authors propose a four-part recipe to build a low-compute surrogate that keeps the "semantic channel" open:
- Semantic Encoding: Instead of processing text, the student model works entirely with 1024-dimensional vectors. Every piece of text the "teacher" (LLM) produces is encoded once by a frozen embedding model (Qwen3-0.6B).
- Typed, Stage-Tagged Interface: The student is a small Transformer that sees these vectors as tokens. Each token is tagged by its stage (e.g., "Analysis" or "Rationale") and has specific visibility rules—mimicking what the original agent was allowed to see at each step.
- Joint Stage Supervision: The model has six "heads" (one per stage). It is trained to predict all stages simultaneously, ensuring that its internal "analysis" vector is both close to the teacher's meaning and useful for making the final decision.
- Scheduled Self-History: During deployment, the teacher isn't there to provide the "correct" analysis for the next round. To handle this, the student is trained using a schedule where it sometimes receives its own previous vector outputs as history, learning to stay on track even when its reasoning isn't perfect.
Datasets
The method was validated using TwinMarket, a multi-agent market simulator.
- The Trace: A recorded 102-day run involving 200 agents across ten industry indices. This trace provided the "ground truth" for training.
- Scale: The original run issued 203,100 LLM calls and 691.5M prompt tokens.
- Evaluation: The student was tested on a held-out set of trading days and compared against real-world market data (Chinese industry indices) to check if it preserved "stylized facts" like heavy-tailed returns.
Key Insights and Ideas
- Semantics are "Live": The authors proved the student actually "reads" the semantic vectors. When they swapped an agent's analysis vector with one from an agent taking the opposite action, the student flipped its decision 64.7% of the time.
- The "Deployment Gain" is in the Schedule: Surprisingly, the specific content of the history matters less during the rollout than the fact that the model was trained to handle its own generated history. Investing in the "scheduled self-history" protocol provided a +2.2 point accuracy boost.
- Determinism is a Feature: Because the student is deterministic and fast, researchers can run "20-seed sweeps" (200,000 decisions) in just 12 minutes. This makes it a powerful instrument for studying simulator variance, which would take hours and thousands of dollars using the original LLM teacher.
- No Text, No Problem: By operating entirely in vector space, the model avoids the massive computational overhead of autoregressive text generation while still benefiting from the "reasoning" encoded in those vectors.
Key Results
- Efficiency: The student is a 13.2M parameter model (52.7 MB) that runs in 0.14 ms per decision on a consumer GPU.
- Fidelity: On "round-one" decisions, the student achieved a 97.1% agreement rate (relative to the teacher's own stochastic re-sampling level).
- Accuracy: It reached 0.8347 balanced accuracy when "teacher-forced" (given the LLM's actual analysis) and 0.7783 when running entirely on its own.
- Market Realism: In closed-loop simulations, the deterministic student preserved the "heavy tails" (kurtosis) of market returns better than simple sampling methods.
Limitations and Future Work
- Single Case Study: The paper focuses on one simulator (TwinMarket) and one trace. While the "recipe" is general, its performance on other types of agents (e.g., social simulators) remains to be seen.
- The "Thinner" Market: The student model tended to trade lower volumes than the teacher (2,322 vs 13,484 lots per day), suggesting that while the direction of the logic is preserved, the intensity or "size" of actions might need better calibration.
- Initial Cost: You still need to run the expensive LLM simulation at least once to generate the training trace. The savings only kick in for all subsequent runs and experiments.
Summary updated