Staged Semantic Distillation: Preserving Free-Form Semantics in a Low-Compute Non-LLM Surrogate of a Staged LLM Agent

Zhiyang Niu, Huayuan Shen, Chuanjie Li, Mengmeng Zhao, Jiajia ZhangarXiv 2026

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:

  1. 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).
  2. 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.
  3. 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.
  4. 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

Abstract

Staged LLM agents make market and social simulators realistic, but one 102-day run of a 200-agent, ten-index market simulator issues 203,100 language-model calls and returns one realization. Conventional low-compute distillation drops their free-form intermediate state. We present staged semantic distillation, a low-compute method that preserves non-structured semantics in a non-LLM student trained from one recorded trace. A frozen encoder maps each teacher output to a 1024-d vector; the student sees typed stage-tagged vectors with stage-specific visibility, is jointly supervised, and trains with scheduled self-history. One TwinMarket trace yields a 13.2M-parameter deterministic student that trains in 1,658 seconds on one 8-GB GPU and runs with zero teacher or decoder calls and no text generation (0.14 ms per decision). Its analysis stays close to the teacher (cosine 0.943), and swapping semantic inputs between agents moves 64.7% of decisions against 12.8% for a matched donor, so the channel is preserved and live. We use the surrogate to study what the transfer carries. It reaches 0.8347 balanced accuracy on the teacher-forced replay and 0.7783 [0.766,0.791] on the deployment decoder; the five-seed gain over a no-semantic retrain is +2.2 [1.21,3.14]. Against the teacher's own re-sampling level, round-one R is 97.1% [95.8,98.4] and 92.3% [89.0,95.4]; R is a diagnostic, not an accuracy. A five-seed content-by-schedule study isolates the gain: scheduled self-history carries it (+2.2 [1.21,3.14]); shuffled and constant content controls reproduce it, while content matters teacher-forced. The design rule: invest in the deployment schedule, let content earn its place at the teacher-forced operating point. A 20-seed, 200,000-decision sweep takes 12 minutes with zero LLM calls, versus three hours for the teacher. The paper is a method-and-case-study contribution on one simulator and trace.
BibTeX
@misc{niu2026staged,
  author = {Zhiyang Niu and Huayuan Shen and Chuanjie Li and Mengmeng Zhao and Jiajia Zhang},
  title = {{Staged Semantic Distillation: Preserving Free-Form Semantics in a Low-Compute Non-LLM Surrogate of a Staged LLM Agent}},
  year = {2026},
  eprint = {2611.19299},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.19299},
}
Figure