PAPER DEEP DIVE
WorldCompiler: Learn What the View Shows, Execute How the World Changes
Ant International's WorldCompiler splits streaming video understanding into a learned typed-value readout and a deterministic state compiler, letting one frozen Qwen3-VL-8B checkpoint lead StreamingBench (87.01), OVO-Bench (70.09) and OST-Bench (60.29).
Paper Metadata
- Title: WorldCompiler: Learn What the View Shows, Execute How the World Changes
- Authors: Yihao Hu, Yitong Lin, Pan Wang, Deyuan Liu, Hang Wang, Xianglong Zeng, Mingda Wan, Yongqi Tong, Jiang-Ming Yang, Wei Wu, Zhihao Wen (Ant International, Westlake University, University of Science and Technology of China)
- Published: arXiv 2611.41237 (cs.CV, 2026-11-30, v1)
- Code status: no public code is provided. Neither the paper nor its footnotes link a repository, and searches on GitHub and the Hugging Face paper page turned up no official implementation.
One-Sentence Summary
WorldCompiler splits streaming video understanding into two jobs: a VLM predicts only a typed observational value, and a deterministic compiler executes declared temporal laws over persistent state; one frozen Qwen3-VL-8B checkpoint reaches 87.01 on StreamingBench, 70.09 on OVO-Bench, and 60.29 on OST-Bench.
Background and Motivation
Streaming video understanding differs from offline long-video QA in its protocol: questions arrive while the video plays, the model may only use the causal history available at question time, and each call has a frame budget. StreamingBench, OVO-Bench, and OST-Bench probe real-time perception, backward tracing, forward active responding, and long-horizon scene state. Many answers depend on facts established earlier rather than on the current frame: whether an object appeared before, how many times an event has occurred, when a condition first became true.
Most existing streaming systems organize memory: they compress history, retrieve relevant segments, maintain recurrent representations, or adaptively access past frames. These mechanisms decide which historical evidence is available. The model itself is usually still supervised by direct answering, producing a natural-language answer per query while the temporal maintenance of state remains implicit.
The paper diagnoses this supervision as transition entanglement: direct-answer training couples what the view establishes with how state evolves over time. The same numeric prediction carries different temporal semantics across tasks. Counting needs disjoint local increments, cumulative estimation needs a maximum over estimates, and occurrence questions need a persistent Boolean. Direct-answer supervision cannot separate these roles, and perception errors cannot be told apart from state-maintenance errors.
The theory in Appendix G shows the issue is not an implementation preference. Proposition 1 constructs two histories that expose the same view and query with identical answer targets but different typed update targets. Pure answer supervision allows a representation to merge the two views at zero answer risk; once update supervision carries weight, every merged representation incurs a strictly positive risk floor. Answer correctness and update correctness place different demands on the representation.
WorldCompiler separates the responsibilities: the perceptual model emits one typed value, and a deterministic compiler executes the declared temporal law. The design is related to slot updates in dialogue state tracking and operator execution in programmatic visual reasoning, but the emphasis here is on persistence, typing, and replayability: an accepted update modifies only the addressed variable, an invalid transaction leaves state unchanged, and the entire state trajectory can be replayed deterministically.
Figure 1 (paper Fig. 1): answers come from persistent state, not only the current view. Typed values from one frozen VLM are compiled, executed, and retained across queries.
Preliminaries: Protocol and Formalization
The paper formalizes streaming interaction as executable state maintenance. Let $S_t$ be the executable state summarizing accepted evidence. When new visual evidence $v_t$ and query $q_t$ arrive, the perceptual model produces only a typed value:
$$z_{t}=P_{\theta}(v_{t},q_{t}). \tag{1}$$
How state changes is decided by the temporal operator $o_t$ declared for the predicate, not by the model:
$$S_{t+1}=U_{o_{t}}(S_{t},z_{t}). \tag{2}$$
Each predicate declares a key $k_t$, a value domain $\mathcal{Z}_{k_t}$, and an operator $o_t$. On the evaluation side, StreamingBench uses the authors' locked population of 2,495 queries (the released protocol has 2,498; the paper flags the difference), OVO-Bench scores 3,035 queries with a task-then-group macro, and OST-Bench covers 1,386 scenes, 10,165 turns, and 9,528 scored items. The controlled reference is the same Qwen3-VL-8B-Instruct run under the same protocol with direct answering. All WorldCompiler results come from a single frozen checkpoint with at most 32 frames per call.
Method in Detail
1. A typed operator library: same number, different meaning
The library covers five temporal roles. Each operator fixes the state type, the initial value, the update law, and the prediction semantics the model must supply (paper Table 7):
| Operator | Domain | Init | Update law | Prediction semantics |
|---|---|---|---|---|
| Add | $\mathbb{N}_0$ | 0 | $c \leftarrow c+\delta$ | local increment over disjoint intervals |
| Max | $\mathbb{N}_0$ | 0 | $c \leftarrow \max(c,z)$ | cumulative estimate so far |
| Persist | Bool | false | $e \leftarrow e \lor z$ | occurrence flag |
| First | timestamp | unset ($+\infty$) | $\tau \leftarrow \min(\tau,z)$ | earliest time |
| Replace | typed literal | unset | $s \leftarrow z$ | revisable current fact |
Add and Max differ semantically, not at the type level: both consume non-negative integers, but Add accumulates each prediction as a new increment while Max treats it as a cumulative estimate. Feeding an accumulated count into Add would double-count the same events, which is why the two-surface deployment uses only Max and Persist, and Add is evaluated separately in the counting diagnostics. Replace is a right projection: associative but order-sensitive, appropriate for transient attributes that later evidence may revise.
Figure 2 (paper appendix Fig. 4): the temporal law determines what a value means. Values 1, 1, 0 drive Add to state 2; estimates 1, 3, 2 leave Max at 3. Persist never reverts, First keeps the earliest time, Replace follows the latest fact.
2. Compiler and executor: validation, namespaces, replay
A perceptual value never touches state directly. The compiler binds it to the declared key and operator, forming a typed update transaction:
$$u_{t}=C(k_{t},o_{t},z_{t}). \tag{3}$$
The executor validates $u_t$ against the predicate's type and domain, and only then applies the law:
$$S_{t+1}=E(S_{t},u_{t}). \tag{4}$$
Answers are read from the updated state rather than from free-form model output:
$$\hat{y}_{t}=R(S_{t+1},q_{t}). \tag{5}$$
Accepted updates modify only the addressed variable inside a source-local namespace; invalid transactions preserve the previous state and are recorded as failed. Transactions carry identity, so replaying one does not change state twice. The ownership boundary is explicit: the compiler owns predicate identity, type, law, and namespace; the VLM supplies only the observation-grounded value. Execution decides how an accepted value changes state; whether the value is correct remains a perceptual question.
The typed interface has a measured advantage over free-form code generation. On 938 eligible OVO-Bench queries, the same fixed model produces only 338 valid free-form Python programs (accuracy 58.16), while the typed frontend yields 938 valid updates out of 938 (Appendix E.5). Typing removes the failure mode of generating code that does not run.
3. State-aware multi-view execution
A single causal view often exposes only part of the evidence. WorldCompiler runs two visual surfaces: a recent-detail surface (Recent-4, four frames over the last four seconds) and an expanded-history surface (an event view or a compact history view). Both share all language and state parameters. Each executes against its own view-local state under the same declared semantics, producing state-aware readouts $r_t^{(m)}$ that a fixed composition function combines:
$$\tilde{z}_{t}=G\!\left(\{r_{t}^{(m)}\}_{m=1}^{M}\right). \tag{6}$$
The composed proposal is interpreted under the global operator contract and, after validation, committed to the global persistent register (paper Eq. 7). The temporal law is the same at both levels: view-local execution interprets each proposal's temporal semantics, and global execution maintains the composed state across subsequent interactions. Because the idempotent laws of Max and Persist accommodate cumulative state-aware values, the two-surface deployment uses only these two operators; Add's local-increment semantics are evaluated separately in the counting diagnostics.
Figure 3 (paper Fig. 2): overall architecture. (a) Learned visual perception: the VLM reads the current view and emits a typed prediction (integers for counts, Booleans for presence). (b) Compiled state dynamics: bind key and law, check types, execute the update, persist state, read out; the bottom panel shows per-view execution, composition, and a global commit under the same law.
Figure 4 (paper appendix Fig. 5): each surface compiles and executes locally; a fixed rule G composes the readouts before a global commit. The recent-detail surface uses a state-trained merger, the expanded-history surface a reference merger; both memory levels persist across chronological queries.
flowchart TB A["Recent-detail surface
Recent-4: 4 frames over 4 s"] --> P["Shared frozen VLM
Qwen3-VL-8B"] B["Expanded-history surface
event view or compact history"] --> P P --> Z["Typed value z
cumulative estimate or occurrence flag"] Z --> L1["View-local execution
Max and Persist"] L1 --> R1["State-aware readout r(m)"] R1 --> G["Fixed composition rule G
composed typed proposal"] G --> C["Compiler binds key and operator
type and domain validation"] C -->|"valid"| S["Global state commit
same temporal law"] C -->|"invalid"| X["Keep previous state
record failed transaction"] S --> Y["Read out the answer
y = R(S, q)"]
Figure 5: inference pipeline drawn from paper §3.3 and Appendix A.3. View selection and the composition rule stay fixed during evaluation.
4. Learning: supervise the typed value, not the answer
Training targets exactly the typed value consumed by executable state transitions. Given a target $z_t^{\star}$, the objective is
$$\mathcal{L}_{\mathrm{state}}=-\log P_{\theta}(z_{t}^{\star}\mid v_{t},q_{t}). \tag{8}$$
The training mixture (Appendix B) combines ordinary QA, annotated OST state targets, and local action-count targets, refining the shared Qwen3-VL-8B; a separate operator-balanced checkpoint is used only for controlled comparisons. The same typed value is supervised, executed, and diagnosed, which the paper calls representation-execution alignment: the quantity optimized in training, executed at runtime, and inspected on failure is one object.
5. Theory: why the split is necessary
Appendix G states four propositions. Proposition 1 addresses what supervision demands of a representation. Weight answer risk and update risk as $\mathcal{R}_{\lambda}=\lambda\mathcal{R}_{\mathrm{ans}}+(1-\lambda)\mathcal{R}_{\mathrm{upd}}$ (Eq. 15). If two views share the same supervised answer support but carry distinct typed targets, each with mass at least $w$, then every representation that merges them satisfies
$$\mathcal{R}_{\lambda}\geq 2(1-\lambda)w\log 2. \tag{16}$$
Under pure answer supervision ($\lambda=1$) the bound is zero; any weight on update supervision makes merging provably costly. Proposition 2 gives the correctness condition for execution: if the reference state map is answer-sufficient and every received prediction is correct, the executed state equals the reference state at every step, so every supported answer can be read from state. Perceptual correctness plus execution correctness implies answer correctness.
Proposition 3 establishes partition invariance. Suppose the state action of operator $o$ satisfies
$$U_{o}(U_{o}(S,z_{1}),z_{2})=U_{o}(S,z_{1}\oplus_{o}z_{2}), \tag{20}$$
where $\oplus_o$ is an associative composition on legal values (addition for increments, maximum for cumulative estimates, Boolean OR for occurrence, minimum for first occurrence, right projection for replacement). If predictions compose over intervals, folding any chronological partition equals a single whole-interval update. For counting this is the additive law of Eq. 9:
$$\delta(I_{L}\cup I_{R})=\delta(I_{L})+\delta(I_{R}). \tag{9}$$
Proposition 4 marks the boundary of this law: a systematically biased predictor $\hat{\delta}_\alpha=\alpha\cdot\delta^{\star}$ composes perfectly under every partition yet is wrong on every interval. The all-zero predictor is the extreme case. Compositional consistency and perceptual correctness are different properties, which is why the experiments measure them separately.
6. Deployment details and call cost
Appendix A.3 specifies view acquisition. Candidate frames come from a 64-point causal grid probed with 16x16 RGB patches, scored by 0.20x novelty + 0.45x curvature + 0.10x time recency ranks. The event view adds up to 16 history frames beyond the recent window; the compact history covers 8 seconds with 8 frames plus up to 24 history frames, with frames capped at 224 px on the long edge. A low answer margin on the recent view triggers the event view; disagreement between surfaces triggers the compact history. StreamingBench additionally enforces answer-space consistency: a majority over adaptive views, binary verification, and option-orbit permutations (three cyclic rotations), with ties falling back to the unpermuted Recent-4. Measured mean/max calls per question: 2.43/12 on StreamingBench, 3.12/4 on OVO-Bench, 1.00/1 on OST-Bench.
Experimental Results
Main results: gains land on history-dependent tasks
The full system's scores against two kinds of baselines (paper Tables 2-4; "strongest published" keeps each row's released protocol and serves as context, while attribution is carried by the controlled interventions below):
| Model | StreamingBench | OVO RT | OVO BT | OVO FAR | OVO overall | OST |
|---|---|---|---|---|---|---|
| Strongest published (released protocols) | — | 81.7 | 62.54 | 58.3 | 64.02 | 54.2 |
| Qwen3-VL-8B-Instruct reference | 80.52 | 81.38 | 51.45 | 44.09 | 58.97 | 50.52 |
| WorldCompiler | 87.01 | 81.52 | 67.44 | 61.32 | 70.09 | 60.29 |
| Delta vs reference | +6.49 | +0.14 | +15.99 | +17.23 | +11.12 | +9.77 |
| Delta vs strongest published | — | −0.18 | +4.90 | +3.02 | +6.07 | +6.09 |
The distribution of gains says more than the totals. On OVO-Bench, backward tracing improves by 15.99 and forward active responding by 17.23, while real-time visual perception moves by only 0.14 (and sits 0.18 below the strongest published row): the benefit concentrates where answers require previously established conditions or accumulated clues. On StreamingBench, nine of ten task families improve; causal reasoning gains 15.62 and action perception 14.69, while attribute perception drops 3.60. OST-Bench improves in fourteen of fifteen subtypes, with direction estimation up 22.49. On StreamingBench, the strongest published rows under their own protocols, JoyAI-VL-Interaction-8B at 82.7 and Mage-VL-4B at 82.1, and the online agent EventMemAgent at 77.00, all sit below 87.01; GPT-4o scores 73.28 and humans 91.46, so the human gap remains. On OVO, the strongest published result is Gemini 3 Flash at 64.02.
Controlled diagnostics: separating execution from learning
Three interventions locate the source of the gains (Table 1). (a) Interfaces within one trained model: on OST, direct answering scores 58.53, full-history transactions 57.97 (−0.56), and typed updates 60.26 (+1.73). Emitting more history does not automatically help. (b) Holding an OVO model's predictions fixed and changing only execution: view-local 64.74 versus persistent 67.06 (+2.32, 95% paired-bootstrap CI [1.33, 3.19]). Perception is identical, so the entire gain comes from how the same predictions are maintained and read across time. (c) Perturbing commit order: chronological 67.62, reset 65.20, reversed 63.07. State maintenance depends on correct temporal semantics.
Visit-group attribution sharpens the picture. Among 938 state-bearing queries over 130 source-local keys, first visits are equal at 100/130 for both execution modes; at visits three through five, persistent execution answers 143/359 correctly versus 78/359 locally; at visits six and later, 14/319 versus 4/319. The gap widens with repeated access to shared variables, matching the mechanism, while longer histories alone do not guarantee larger gains.
Matched training: supervision and readout jointly shape performance
Table 5a compares three supervision targets with matched data, initialization, and optimization (9,848 OST training records over 5,169 scenes, zero overlap with evaluation; three seeds):
| Supervision target | Native readout (3-seed mean±SD) | Unified value-only readout (seed 59) | Mean target length (chars) |
|---|---|---|---|
| Direct answer | 53.46±1.21 | 51.83 | 33.85 |
| Full transaction | 60.87±0.71 | 43.41 | 66.44 |
| Typed value | 61.15±0.73 | 47.03 | 17.34 |
Under native readouts, typed-value training beats direct answering by 7.69 points with positive differences on all three seeds. But forcing all three models into the same value-only readout reverses the ordering: direct 51.83 > typed 47.03 > full transaction 43.41. The authors state the qualification explicitly: the matched-training effect includes readout matching and cannot be attributed to the supervision target alone. The fixed-prediction intervention (+2.32 above) is the independent evidence for execution's benefit.
Execution ablations and operator-matched controls
Table 5b fixes predictions, keeps view-local execution and composition, and varies only the final global commit: no-commit and reset score 86.89/69.93/60.22 across the three benchmarks, reversed order 86.45/66.40/60.24, merged source namespaces 86.37/69.49/54.88, and full chronological commitment 87.01/70.09/60.29. Merging sources hurts OST most (−5.41), indicating that source-local entity namespaces carry real disambiguation weight. Table 5c decomposes OVO execution stages: composition without state scores 68.45 versus 70.09 with both stages (+1.65 from unrounded scores, CI [0.76, 2.31]).
The operator-matched control in Appendix E.5 asks whether typing merely tidies up answer accumulation. Accumulating direct answers with Max/Persist reaches 67.25 on OVO, essentially matching typed updates at 67.06; but on OST subtypes requiring First, typed updates lead by 5.58, and on Replace subtypes by 1.06. Structured updates earn their keep exactly where answer accumulation cannot express the temporal semantics.
Temporal-partition diagnostics: consistency and correctness diverge
RQ4 (Table 6) measures counting behavior across window widths on 63 source-held videos and 4,470 sources. Target-matched adjacent training improves all-partition correctness from 6/63 to 8/63 and pairwise agreement from 60/189 to 69/189, and shrinks the mean prediction range across 2/4/8-second partitions from 1.937 to 1.873; on the larger population, four-second correctness rises from 33.58% to 39.80%. Yet unmatched adjacent training achieves the highest pairwise agreement (42.49%) and all-partition correctness (575/4,470). At the unseen 12-second width the ordering reverses: target-matched 19/63 versus independent training 28/63. Single-width accuracy, cross-partition stability, and temporal-scale transfer are three distinct objectives, and Proposition 4's "consistent but wrong" regime appears in the data.
Figure 6 (paper Fig. 3): a recorded OVO-Bench item 1613 trace (reference count 2). Fresh-window direct answers are 1, 1, 0, with only an end card in the last window; WorldCompiler composes historical evidence into 2 and Max retains it, reading out 2 even on the end card.
The same trace exposes a limitation of monotone retention: at the earlier 15-second query the stored count was already 2 against a reference of 1. Later events made the value correct without repairing the earlier error. As the authors note, correctness at later queries does not imply correctness throughout the state trajectory.
Limitations
Author-stated, first: semantics are declared, not learned. Predicate keys and temporal operators come from deterministic rules over public question wording, and the library covers five temporal roles. This keeps the compiler free of task labels and every trajectory replayable, but the interface only covers questions those rules recognize. The authors propose a small declaration model that proposes key, type, and operator for open-ended questions, with the compiler validating proposals against the typed state; new operators must remain associative to join the same algebra (Proposition 3).
Author-stated, second: updates do not transfer across temporal scales. Adjacent-family training improves correctness and consistency at 2-8-second partitions, but the ordering reverses at 12 seconds, and counting remains the weakest StreamingBench category. Two concrete remedies are proposed: train over wider, randomized window widths with composition-matched targets, and turn Eq. 9 into a consistency loss penalizing disagreement between an interval's predicted update and the sum over its sub-intervals.
Editorial assessment: two further points deserve attention. First, evaluation scope: the StreamingBench headline table uses the authors' locked 2,495-query population while published rows keep their released protocols (for example 2,498 queries), so cross-row comparisons are context, not a strict like-for-like leaderboard; the paper itself assigns attribution to the controlled experiments. Second, the trade-off surface: real-time perception sits 0.18 below the strongest published row and attribute perception drops 3.60, so the architecture's gains are not free. The view-acquisition thresholds in Appendix A.3 are constants written out to seven and even sixteen decimal places (for example 0.9976896), and the paper does not report their sensitivity on new domains, leaving the tuning cost of transfer unknown.
Conclusion and Outlook
WorldCompiler's contribution is less any single module than the alignment of supervision, execution, and diagnosis on one typed value. Matched training shows how supervision and readout jointly shape native performance; fixed-prediction experiments establish an independent benefit from persistent execution; operator-matched controls locate where structured updates add value beyond answer accumulation; temporal-partition diagnostics separate compositional consistency from perceptual correctness. For embodied systems that must maintain world state over long horizons, the "learn observations, compile change" interface offers a replayable, auditable pattern for state maintenance. Learning declarations for open-ended question semantics and transferring updates across temporal scales are the two directions the authors leave open.
Golden Quote
Let the VLM say only what the view establishes, and hand how the world changes to a replayable compiler: perception sees, execution remembers.
SOURCE LINKS



