TL;DR
Generative video models can look like real video games, right up until your ammo mysteriously ticks upward while firing or dead monsters resurrect themselves out of thin air. FANE (Function-Aligned Neural Engine) solves this hallucination problem by pairing a tiny, trainable neural "state engine" with a massive, frozen video generator in a two-way feedback loop. The engine enforces strict game logic (health, ammo), while the video model feeds spatial awareness (walls, monster positions) back to the engine—creating a playable, editable simulator without fine-tuning billions of parameters.
What Problem Does This Paper Address?
Turning a text-to-video generator into an interactive "world model"—where pressing W moves you forward and clicking fires a weapon—is one of AI’s coolest party tricks. However, pixel-only video models track the state of the world implicitly. Over long play sessions, they inevitably forget the rules: health drops without taking damage, or players keep running around at 0% health.
Recent work tries to fix this by adding an explicit state layer above the video renderer. Yet, this creates a catch-22 in 3D games:
- If you use hard-coded rules or a separate learned state model without access to the 3D map file, the state engine is blind to geometry—meaning players walk through walls because the state doesn't know a wall is there.
- If you jointly fine-tune the entire video model alongside a state tracker, it costs a fortune in compute and often entangles visual quality with logic, hurting generalization to unseen maps.
The authors ask: How can a lightweight, learned state engine keep strict game rules at its own level while borrowing spatial geometry from a frozen video generator?
Methods
FANE introduces a hierarchical, bi-directional architecture inspired by function alignment—coupling two distinct autoregressive models that run on synchronized clocks.
- Level 1: The Neural State Engine (New): A lightweight, 8-layer causal transformer trained from logged gameplay. It splits game state into rule states (discrete logic like health, ammo) and geometry states (continuous poses and velocities). Crucially, player actions enter only here, not into the video model.
- Level 0: Frozen Video Backbone (Standard): A pretrained Diffusion Transformer ( primarily SkyReels-V2-DF-1.3B, plus tests on Wan2.2-5B) whose base weights remain completely untouched.
- Top-Down Steering (State $\rightarrow$ Video): The engine steers the frozen video model using parameter-efficient modules (adding just ~6% trainable parameters): LoRA for visual style, time-sliced cross-attention for frame-by-frame state tokens, and a CNN Adapter that rasterizes state data (entity depth/occupancy, camera rays, and HUD digits) into spatial condition maps.
- Selective Bottom-Up Correction (Video $\rightarrow$ State): This is the secret sauce. A small cross-attention "Vision Corrector" reads the newest rendered video latents and nudges the engine's predictions so it doesn't drift through walls. Importantly, this correction is selective: it updates only the continuous geometry state, leaving discrete rule states untouched so visual artifacts don't corrupt the game logic.
Datasets
- DoomState (Newly Introduced): Built on ViZDoom and Freedoom maps, comprising over 70 hours of gameplay at 17.5 FPS. Unlike standard video datasets, every frame includes exact ground-truth engine states, actions, and counterfactual re-simulations for testing mid-game state edits. It includes 15 training maps and 5 held-out maps to test out-of-distribution (OOD) generalization, alongside independent vision evaluators to read HUDs and detect monsters.
- WildWorld: A 40-hour subset of photorealistic, third-person gameplay from the AAA title Monster Hunter: Wilds, used to test visual generalization beyond retro shooters.
Key Insights and Ideas
- Actions belong in the engine, not the renderer: In traditional game code, user inputs update the game state, and the renderer just draws that state. FANE proves this holds for neural models too. Feeding actions only to the video model—forcing the state engine to guess what happened from pixels—doubles position drift over 30 seconds.
- Full fine-tuning buys pretty pixels, not better rules: Fully fine-tuning a 1.5B+ parameter video model yields sharper videos (lower FVD) than freezing it, but still breaks game rules ~24–61 times per minute on unseen maps. Explicit, decoupled state modeling is what actually enforces logic.
- Blind rule engines fail in 3D space: A baseline using perfect, hand-written Doom physics code (
Rule-Engine) still lost badly to FANE on camera motion and enemy tracking because it lacked map files; FANE's bottom-up visual link let it "see" the walls generated by the video prior and cut 30-second position drift by 37% on unseen maps. - Spatial adapters beat text prompts: Feeding exact engine states to a video model via text prompts (
State-as-Text) still resulted in ~29 rule violations per minute. Rasterizing states into spatial maps via the CNN adapter was essential for locking monsters in place and keeping HUD numbers legible.
Key Results
On 30-second closed-loop rollouts on unseen DoomState maps, FANE (with just 128M trainable parameters) outperformed both frozen and 1.8B-parameter fully fine-tuned baselines:
- Rule Consistency: FANE averaged just 1.92 rule violations per minute on unseen maps, compared to 23.67–61.00 for end-to-end/state-free models and 4.33 for a hand-coded rule engine.
- State & Spatial Accuracy: Achieved 74.3% HUD status accuracy (vs. 44.4%–58.7% for state-free baselines) and the lowest ego-motion camera error (6.85 map units/frame).
- Programmable Editability: Because the state is explicit, you can hack the game mid-rollout (e.g., grant ammo, teleport, summon monsters). FANE successfully rendered 78.3% of counterfactual edits within 1 second on unseen maps, versus 13.0%–21.7% for baselines.
Limitations and Future Work
- Not yet real-time: Closed-loop generation currently chugs along at 0.35 FPS on a single GPU; the authors point to few-step causal distillation as the next step toward real-time playability.
- Map drift over long horizons: Without an explicit map file or long-term spatial memory, the frozen video backbone still invents unseen rooms, causing map layouts to gradually drift from reality.
- Bespoke state schemas: Training FANE requires ground-truth state logs from the target game and a hand-picked state schema. Future work aims to replace the game-specific transformer with a generalist state model (like an LLM pretrained across many game logs) to build a universal game simulator.
Summary updated