Yan : Foundational Interactive Video Generation Yan Team Abstract We present Yan , a foundational framework for interactive video generation, covering the entire pipeline from simulation and generation to editing. Specifically, Yan comprises three core modules. AAA-level Simulation : We design a highly-compressed, low-latency 3D-VAE coupled with a KV-cache-based shift-window denoising inference process, achieving real-time 1080P/60FPS interactive simulation. Multi-Modal Generation : We introduce a hierarchical autoregressive caption method that injects game-specific knowledge into open-domain multi-modal video diffusion models (VDMs), then transforming the VDM into a frame-wise, action-controllable, real-time infinite interactive video generator. Notably, when the textual and visual prompts are sourced from different domains, the model demonstrates strong generalization, allowing it to blend and compose the style and mechanics across domains flexibly according to user prompts. Multi-Granularity Editing : We propose a hybrid model that explicitly disentangles interactive mechanics simulation from visual rendering, enabling multi-granularity video content editing during interaction through text. Collectively, Yan offers an integration of these modules, pushing interactive video generation beyond isolated capabilities toward a comprehensive AI-driven interactive creation paradigm, paving the way for the next generation of creative tools, media, and entertainment. The project is shown at: here . Figure 1: Comprehensive capabilities of Yan . Yan supports real-time interactive video generation, with all interactions driven by user input. It offers a wide range of capabilities, including AAA-level simulations, multi-modal generation, and multi-granularity editing. Notably, during the editing process, users can dynamically modify prompts to edit subsequent generated content interactively. 1 Introduction Recent breakthroughs in Artificial Intelligence Generated Content (AIGC) have evolved from text ( Yu et al. 2024 ; Li et al. 2024 ; Zhao et al. 2023 ) and images ( Rombach et al. 2022b ) to video synthesis ( Brooks et al. 2024 ) , now reaching a transformative frontier: interactive generative video (IGV) ( Yu et al. 2025a ) . Unlike conventional video generation, IGV dynamically responds to user inputs, enabling real-time, personalized visual experiences. This paradigm holds the potential to revolutionize fields that demand ongoing human-AI interaction, ranging from immersive media and virtual simulation to embodied intelligence. However, it confronts significant challenges: existing methods ( Alonso et al. 2024 ; Bruce et al. 2024 ; Parker-Holder et al. 2024 ) struggle to simultaneously attain high visual fidelity, sustained temporal coherence, and rich interactivity. Moreover, generated content typically remains static post-creation, lacking real-time adaptability or user customization. The challenges manifest acutely in complex interactive scenarios. Consider modern video games: they demand not only 1080P/60FPS rendering and intricate physics simulation, but also granular response to diverse inputs and dynamic content adaptation. These requirements make games an ideal testbed for IGV capabilities. However, existing methods remain with critical gaps. For instance, GameNGen ( Valevski et al. 2024 ) , PlayGen ( Yang et al. 2024 ) , and MineWorld ( Guo et al. 2025 ) suffer from limited visual quality and generalizability. Meanwhile, The-Matrix ( Feng et al. 2024 ) , GameFactory ( Yu et al. 2025b ) , and Matrix-Game ( Zhang et al. 2025 ) lack intricate physics simulation and fall short of real-time performance. Besides, these methods treat interactive video as fixed content generation, unable to support dynamic modification during interaction, severely restricting practical creativity and flexibility. Thus, three core challenges remain unresolved: (1) achieving high-fidelity, real-time visual experience; (2) enabling generalizable and prompt-controllable generation; and (3) empowering dynamic, interactive editing and on-the-fly content customization during interaction. To tackle these challenges, we propose Yan , a foundational framework for interactive video generation, integrating three targeted modules trained on a shared dataset from modern 3D game environments 1 1 1 https://en.wikipedia.org/wiki/Yuan_Meng_Star . Specifically, for the first challenge of real-time, high-fidelity visual experience, our AAA-level Simulation module leverages a high-compression, low-latency 3D-VAE together with KV-cache-based shift-window denoising inference process, achieving unprecedented performance at 1080P/60FPS while preserving complex mechanics. To address the second challenge of prompt-controllable and generalizable content generation, our multi-modal generation module introduces a hierarchical captioning method that injects game-specific knowledge into open-domain video diffusion models, and further transforms them for frame-wise, action-controllable generation. This supports real-time interactive content creation driven by both text and image prompts across diverse domains. Finally, to tackle interactive editing, our multi-granularity editing module adopts a hybrid architecture that explicitly disentangles interactive mechanics simulation from visual rendering, supporting coarse-to-fine control and real-time editing of video content at any moment during interaction. The comprehensive capabilities of Yan are illustrated in Fig. 1 . We believe Yan marks a milestone—moving interactive video generation from fragmented prototypes toward a coherent, and truly generative paradigm, and charting a path for the next generation of open, creative, AI-powered digital worlds. 2 Related Work Interactive Generative Video Prior work falls into two lines. (i) Game-centric interactive video generation transfers action control and structural priors learned from game datasets to open-ended settings ( Yu et al. 2025b ; Guo et al. 2025 ; Zhang et al. 2025 ; Feng et al. 2024 ; Bruce et al. 2024 ; Parker-Holder et al. 2024 ) . These methods typically rely on action annotations and demonstrate some generalization beyond the source game, but they are often not truly frame-wise interactive (chunked control or high latency), emphasize navigation over accurate physics, and run at modest resolutions and real-time capability. (ii) Real-world world models aim to predict future frames or trajectories under control ( Bar et al. 2025 ; Yang et al. 2023 ; Agarwal et al. 2025 ) , but they generally do not provide real-time, frame-wise action responsiveness with promptable content control. In contrast, Yan targets real-time, causal, frame-wise control with accurate physics, high visual fidelity, and prompt-controllable generation in open domains. Game Simulation with Neural Networks Works in this category aim to simulate a game using neural networks. MarioVGG ( Protocol 2024 ) generates game video segments of Super Mario Bros ( Pinto 2021 ) from text-based actions and the first frame of the game, but it lacks real-time capabilities. GameNGen ( Valevski et al. 2024 ) uses a diffusion model to simulate games at 20 FPS on Doom ( Kempka et al. 2016 ) . PlayGen ( Yang et al. 2024 ) achieves 20 FPS on both Doom and Super Mario Bros ( Amidos 2019 ) . Oasis ( Decart et al. 2024 ) is able to simulate Minecraft ( Studios 2011 ) at 20 FPS. However, all the above approaches are constrained to relatively low-resolution results and limited frame rates, and are mainly tested in simplified or classic 2D/3D game environments. In contrast, Yan targets a modern 3D game Yuan Meng Star ( Tencent 2023 ) , achieving 1080P rendering at 60 FPS while preserving intricate game mechanics, expanding the capabilities and application range of game simulation. Video Editing. Diffusion-based video editing methods transform a given source video while preserving spatiotemporal coherence ( Brooks et al. 2024 ; Wan et al. 2025a ; Kong et al. 2024 ; Ceylan et al. 2023 ; Liu et al. 2024 ; Jiang et al. 2025 ) . However, these approaches assume non-interactive inputs and do not ensure that edited content remains responsive to user actions in real time. Within interactive video generation, most efforts prioritize high-fidelity simulation ( Valevski et al. 2024 ; Decart et al. 2024 ; Yang et al. 2024 ; Zhang et al. 2025 ) , leaving interactive video editing largely unaddressed. Yan fills this gap by explicitly disentangling mechanics simulation from visual rendering: a depth-driven mechanics simulator preserves structure-dependent physics and interactivity, while a renderer—guided by textual prompts—handles style. This design enables on-the-fly, multi-granularity edits (both structure and style) during interaction, with temporal consistency and real-time action alignment. 3 Overview Figure 2: The overall framework of Yan . First, we leverage the agent to collect and clean data in the game environment. Next, we use a vision language model and a depth estimation model to annotate the collected data, generating a structured text prompt and depth. Finally, both the labeled data and the unlabeled open-domain data are used together for training. Yan presents a unified framework for interactive video generation, integrating the full pipeline from data collection to simulation, generation, and editing, as illustrated in Fig. 2 . The process begins with the automated gathering of a large-scale, high-quality interactive video dataset in a modern 3D game environment, ensuring both diversity and precise action-visual correspondence. At its core, Yan consists of three interconnected modules: • Yan-Sim: AAA-level Simulation achieves high-fidelity, real-time rendering and physics simulation, seamlessly translating user actions into 1080P/60FPS interactive visuals. • Yan-Gen: Multi-Modal Generation enables prompt-controllable and generalizable video generation guided by text or images, supporting creative content formation and style/mechanics blending. • Yan-Edit: Multi-Granularity Editing disentangles interactive mechanics simulation and visual rendering, allowing flexible, real-time editing of both structure and style during interaction through simple text prompts. These modules are deeply integrated to deliver a coherent, end-to-end workflow for truly interactive video generation. Each component will be discussed in detail in the following sections: data collection and preprocessing in Sec. 4 , simulation ( Yan-Sim ) in Sec. 5.1 , generation ( Yan-Gen ) in Sec. 5.2 , and editing ( Yan-Edit ) in Sec. 5.3 . 4 Data Collection Figure 3: The overview of the data collection pipeline. In this section, we present the full pipeline of constructing a high-quality interactive video dataset, which serves as a shared dataset for training Yan-Sim , Yan-Gen , and Yan-Edit . Compared to video datasets ( Nan et al. 2024 ; Wang et al. 2023b ; Chen et al. 2024b ; Chen et al. 2025 ) used for video generation tasks that do not involve frame-wise interaction, the interactive video datasets should additionally include per-frame interaction annotations to reflect the transition between two adjacent frames of the video (e.g., the movement of the subject in the video). Previous related works ( Valevski et al. 2024 ; Yang et al. 2024 ) usually utilize interactive video datasets that only contain a few scenarios with simple physical laws. To enable interactive video generation with intricate physical laws in various scenarios, we develop an automated interactive video data collection pipeline, as shown in Fig. 3 . We select a renowned modern 3D game ( Tencent 2023 ) as our data collection environment due to its complex and diverse scenarios, and rich action space. With this pipeline, we are able to efficiently collect interactive video data, providing a solid foundation for training interactive video generation models. The details of the pipeline are described below. 4.1 Data Collection Pipeline Exploration Agent. Collecting interactive video data manually is tedious and complex, hindering the automation of the collection pipeline. To address this, we develop a scene exploration agent to automatically interact with the environment to generate interactive video data. Specifically, it will take action a_{t} (i.e., the interaction annotation) to interact with the environment according to the image state o_{t} of the environment at each timestep t . The interaction strategy of this agent is decided by a combination of a random model that chooses random actions at every interaction and a reinforcement learning based (RL) model trained using the proximal policy optimization (PPO) ( Schulman et al. 2017 ) algorithm, similar to PlayGen ( Yang et al. 2024 ) . Our data collection environment covers more than 90 scenarios with different interactive mechanics, each presenting unique exploration challenges. Using only the random model is able to collect data in a small area around the initial position of each scenario. Hence, the RL model is employed to enable the agent to explore various positions in each scenario. In general, we leverage the random model and the RL model to increase the breadth and depth of the agent’s exploration area, respectively, which effectively enhances data diversity. Collection of Image-Action Pair Sequences. We use a modern 3D game engine ( Tencent 2023 ) as our data collection environment, where the exploration agent collects interactive video data consisting of image-action pair sequences \{o_{t},a_{t}\} . High-precision image-action pair sequences are crucial for the interactive video generation model to learn correct interaction responses. Given the complexity of the environment engine, we align actions and images by recording timestamps. Specifically, during the exploration, we capture screenshots at the exact timestamps when the agent performs actions, simultaneously saving the action signals alongside their corresponding high-resolution images. This approach ensures high-precision \{o_{t},a_{t}\} . Data Filters. Due to limitations in data collection equipment, some data may experience lag or rendering failures. Additionally, as the camera view changes, parts of the data may be obscured by scene elements, making large areas of the image invisible. We also encounter data that does not conform to game rules (i.e., interactive mechanics). These noisy data will negatively impact the model’s learning process. To remove low-quality data from the vast amount of raw interactive video data, we apply a series of three filters: the visual filter, the anomaly filter, and the rule filter. Below is a detailed introduction to these filters: The visual filter is responsible for removing image data that exists rendering failures or is occluded by scene elements. Such image data typically exhibits low color variance. Therefore, we compute the mean color variance of all image data in a segment and compare it to a threshold. Specifically, let the color variance of each frame be \sigma_{i}^{2} . We calculate the mean as follows: \bar{\sigma}^{2}=\frac{1}{n}\sum_{i=1}^{n}\sigma_{i}^{2}. If \bar{\sigma}^{2} is less than a certain threshold \tau_{1} , the data is deemed to be a rendering failure or occluded and is discarded. The anomaly filter is designed to identify data that indicates video stuttering. This type of anomalous data often includes an excess of redundant frames, resulting in noticeable stuttering and an abnormally high frame count. Therefore, the anomaly filter removes samples with frame counts exceeding a threshold. Let the frame count of a video segment be f . If f>\tau_{2} , the segment is considered anomalous and filtered out. This process prevents the model from learning abnormal video behavior from stuttering data. The rule filter aims to remove data with inconsistent environmental interaction rules. Such inconsistencies are primarily due to the characteristics of the game engine. For example, during the "preparation phase", mechanisms in the scene are inactive, meaning non-interactive, leading to inconsistencies in the data regarding mechanism properties. After processing through these three filters, we obtain a set of interactive video data with highly consistent mechanics. Data Balancer. Strongly biased data can cause the model to overfit to specific scenarios, hindering its ability to learn general and diverse interactive video generation. After filtering the data, we perform balanced sampling to ensure a relatively even distribution across various dimensions. Specifically, when recording image-action pairs, we also capture additional information from the engine at timestep t (such as xyz coordinates, whether the agent is alive, whether it is colliding, etc.) and store it alongside the image-action pairs. Following the PlayGen ( Yang et al. 2024 ) , we perform the balanced sampling method across these attributes to ensure that the sampled subset possesses balanced transition characteristics overall, such as a uniform positional distribution. 4.2 High-Quality Interactive Video Data 1080P High-Resolution Images. When launching the 3D game engine, we set the resolution to 1920 \times 1080, allowing us to capture and save high-resolution 1080P images during exploration. Consequently, this places higher demands on the performance of the graphics card. We use an NVIDIA RTX 4060 graphics card for rendering the images within one engine. 30FPS High-Frame-Rate Videos. When an agent performs actions at a high frame rate, the game engine may not respond quickly enough, causing inconsistencies in the image-action pair sequences. To address this and collect high-frame-rate interactive video data, we use a simple yet effective strategy: action interpolation. The exploration agent sends actions 10 times per second and records their timestamps. Simultaneously, we capture screenshots at 30 times per second and match them to the corresponding actions using these timestamps. Consequently, only 10 frames have corresponding actions, which we refer to as valid frames. For the two frames between each pair of adjacent valid frames, we assign the action value of the preceding valid frame. This approach allows us to generate interactive video data at 30 frames per second (FPS). High-Precision Image-Action Pair Sequences. By aligning image and action sequences through matching timestamps, the precision of the collected interactive data is significantly enhanced. For instance, an action recorded at frame t is captured in the subsequent 1-2 image frames. These nearly delay-free image-action pair sequences enable models to learn accurate responses to actions effectively. Diverse Action Space. Beyond basic actions like moving up, down, left, right, and jumping, we integrate skills such as swooping and view-turning actions like left and right rotations. This expansion enriches the action space and enhances user freedom. Additionally, compared to a static viewpoint, view-turning actions enable the exploration agent to discover more scenes, resulting in a broader range of image data. Diverse Interactive Scenarios. We use the 3D game environment as our testbed because it not only allows for high-precision image-action pair sequences but also offers over 90 different styles of scenarios for the exploration agent to gather interactive video data. These scenarios cover grasslands, castles, rainforests, valleys, and more. Notably, the out-of-domain test scenarios mentioned later do not include the in-domain scenarios mentioned above. Table 1: Comparison with other interactive datasets. Resolution FPS Frame-wise Action Space Scale The Matrix ( Feng et al. 2024 ) 720P 60 \checkmark 5 792M PlayGen ( Yang et al. 2024 ) 128P 30 \checkmark 5 250M GameGenX ( Che et al. 2024 ) 720P-4K 1-24 \times \times 192M GameFactory ( Yu et al. 2025b ) 360P 16 \checkmark 9 4M Matrix-Game ( Zhang et al. 2025 ) 720P 16 \checkmark 7 50M Ours 1080P 30 \checkmark 8 400M 4.3 Data Summary Utilizing the automated data collection pipeline constructed above, we collect a large-scale, high-quality set of interactive video data. Specifically, we collect over 400 million frames of interactive video data, covering more than 90 different styles of scenarios. This dataset includes high-quality sequences of image-action pairs and a diverse action space, ensuring correct action responses and high interactivity. We compare our collected dataset with other interactive datasets, as shown in Tab. 1 . Overall, the data we collected has the following core features: high resolution (1080P), high frame rate (30FPS), high precision (alignment of images and actions), and diversity (in both action space and scenarios). 5 Methods 5.1 Yan-Sim: AAA-level Simulation 5.1.1 Model Architecture Yan-Sim leverages Stable Diffusion (SD) ( Rombach et al. 2022a ) as its foundational architecture. We achieve substantial improvements in modeling efficiency for dynamic in-game interactions through three key modifications: increasing the Variational Autoencoder (VAE) ( Kingma et al. 2013 ) compression ratio, adapting the diffusion process for real-time interactive inference, and implementing lightweight structural modifications and inference-time optimizations. These innovations enable Yan-Sim to simulate the world at 1080P resolution, achieving speeds of 50–60 FPS. VAE Design The VAE encodes raw input images into a latent representation, enabling efficient diffusion model training and inference. To increase inference speed, we enhance spatial compression by augmenting the VAE encoder with two single-layer down blocks, raising the spatial downsampling factor from 8 to 32. Consecutive video frames are concatenated along the channel dimension to achieve a temporal downsampling factor of 2. As a result, we increase the compression rate of VAE from 1\times 8\times 8 to 2\times 32\times 32 . The increased spatial and temporal compression necessitates higher information density per latent token, so we expand the latent channel dimension C to 16. Since only the decoder’s model latency is considered during inference, lightweight decoders are essential. Thus, we prune each up block by reducing one layer, while also adding a single-layer up block and a pixel-shuffle layer ( Shi et al. 2016 ) to maintain alignment with the encoder’s downscaling factor. These adjustments achieve an optimal balance between visual quality and inference speed. Diffusion Model Design We adapt the diffusion model for autoregressive, frame-by-frame inference. As shown in Fig. 4 , the diffusion model includes three types of attention blocks. Spatial attention models dependencies between tokens at different spatial positions within the same frame. The model takes both image latents and frame-level action signals as input. Action signals are processed by a multi-layer perceptron (MLP) to generate a 768-dimensional token for each frame, which is injected with each token exclusively attending to its corresponding visual frame via action cross-attention. Following prior work ( Zhou et al. 2022 ; Guo et al. 2023 ; Wang et al. 2023a ) , we introduce 1D temporal attention to model inter-frame dependencies. To enable autoregressive generation, this temporal attention is causal: a token from frame F_{t} can only attend to tokens from previous frames F_{<=t} . Unlike bidirectional diffusion models, which are constrained to fixed-length sequences, our causal framework supports iterative frame-by-frame prediction. This capability is essential for achieving real-time interactivity and low-latency generation. 5.1.2 Training The training process involves two sequential stages: VAE training and diffusion model training. Due to the abundant data resources and explicit world mechanics of the game environment, we choose the modern 3D game ( Tencent 2023 ) as our world simulation testbed. VAE Training Given two consecutive frames concatenated along the channel dimension x\in\mathbb{R}^{H\times W\times 6} , where H is 1024 and W is 1792 for our 1080P implementation, the encoder encodes x into a latent z\in\mathbb{R}^{h\times w\times 16} . The model is optimized using a combined loss function consisting of Mean Squared Error (MSE) and Learned Perceptual Image Patch Similarity (LPIPS) ( Zhang et al. 2018 ) . Diffusion Model Training Following the SD framework ( Rombach et al. 2022b ) , the diffusion model is trained using the Denoising Diffusion Probabilistic Models (DDPM) paradigm ( Ho et al. 2020 ) . To achieve autoregressive inference, we employ the Diffusion Forcing strategy ( Chen et al. 2024a ; Song et al. 2025 ) : during training, independent noise is added to the latent representation of each frame in a sampled video clip. The first frame, lacking prior context, is treated as a clean ground-truth conditioning signal and receives no noise. To mirror the inference process where noise levels progressively increase along the time axis, we implement a staged noise addition schedule during training. Figure 4: The overall framework of Yan-Sim . The top part of the image depicts Yan-Sim ’s entire inference flow, where init frames are only provided during initial inference. 5.1.3 Inference The primary objectives during inference are minimizing latency and maximizing throughput. To achieve this, we use a DDIM sampler ( Song et al. 2020 ) that reduces denoising steps to 4, ensuring minimal iterations while maintaining satisfactory visual quality. Fig. 4 shows the inference loop: Given an initial frame, the VAE compresses it into the latent space. A user-provided action signal serves as the conditioning input. The initial latent is then concatenated with a noisy latent and passed into the diffusion model. The diffusion model denoises the noisy latent, resulting in a clean latent representing the next frame corresponding to the specified action. This clean latent is then decoded by the VAE to produce the next frame, which becomes the input latent for the subsequent inference step. This continuous loop allows for real-time, interactive content generation. To further optimize performance and reduce latency, several strategies are implemented, including shift window denoising inference, pruning & quantization, and additional optimizations. These improvements enhance model efficiency, enabling faster and more responsive video generation. Shift Window Denoising Inference Traditional denoising methods require multiple iterations per sample, causing latency to increase linearly with the number of denoising steps. To reduce latency, we propose a shift window denoising inference pipeline, where each inference step processes a window of frames. Within this window, frames vary in noise levels—earlier frames are cleaner, while later frames are noisier. At each step, a pure noise latent is concatenated to the input latent(as shown in Fig. 4 ①). Each inference step produces a clean latent, which is then decoded back into RGB images (Fig. 4 ④). Additionally, we implement KV caching to store historical states and avoid redundant computations (Fig. 4 ③). This method effectively reduces the average latency per generated frame. Pruning & Quantization To meet the real-time requirements of AAA-simulating, we apply structural pruning to the UNet architecture and quantize both weights and activations to FP8 across all GEMM operations. This FP8 quantization delivers a 1.5\times-2\times speedup over FP16, contributing to a 1.18\times overall inference speedup with minimal loss in generation quality. Additionally, capturing the entire inference pipeline as a single CUDA graph eliminates kernel-launch overhead, while Triton-based custom kernels optimize thread-block geometry and memory access. By enabling torch.compile with max-autotune mode, these optimizations are automatically applied, further boosting performance by 1.15\times . Additionally, to avoid the latency caused by serial inference, we deploy the two models on separate GPUs and use a queue to transfer the diffusion-generated latent to the VAE. 5.1.4 Evaluation In this subsection, we qualitatively evaluate the AAA-level simulation performance of Yan-Sim across four dimensions: visual quality, motion consistency, world physics, and long video generation capability. Additionally, we compare it with other game world simulation technologies. Visual Quality The simulation faces two major challenges in terms of visual quality. First, the game features a wide range of artistic styles, and the simulation must faithfully reproduce all of these diverse visuals. Second, it is required to achieve this reproduction at high resolution. As shown in Fig. 5 , Yan-Sim successfully renders the intricate details of eight different levels in high resolution and high FPS, accurately reflecting the vibrant scenes. Figure 5: The visualization results of visual quality using Yan-Sim . Yan-Sim possesses the ability to simulate diverse styles and interactive scenarios. Motion Consistency Interactive simulation emphasizes the ability for users to control the generated visuals with frame-level action signals. As shown in Fig. 6 , Yan-Sim responds accurately to different user inputs, generating the correct feedback in the subsequent frames. Thanks to high FPS and low latency, the experience closely mirrors real gameplay. Figure 6: The visualization results of motion consistency using Yan-Sim . The top-left corner marks the starting frame. Actions performed in each frame will be reflected in the subsequent frame. Due to the high fps, differences between consecutive frames are minor. For clarity, some frames have been skipped in this demonstration. Accurate Mechanism Simulation The simulation also aims to realistically reproduce the physical characteristics. Fig. 7 demonstrates various interactive effects, for example, Water Slide : the character’s natural inertia when sliding down a ramp; Electric Fence : the character being unable to move after touching an electric fence; Trampoline : players can jump higher on the trampoline. These examples showcase Yan-Sim ’s accurate replication of the world’s physics. Figure 7: The visualization results of accurate mechanism simulation using Yan-Sim . Long Video Generation Capability Yan-Sim can generate long interactive videos. The visual consistency remains high throughout, further validating Yan-Sim ’s ability to produce continuous high-quality content. Additionally, in Table 2 , we compare Yan-Sim with other interactive simulation systems. Yan-Sim stands out due to its high resolution, low latency, and high FPS—core attributes that provide a solid foundation for achieving AAA-level simulation quality. Table 2: Comparison with other world simulation works. Video Length Resolution Real Time Low Latency The Matrix ( Feng et al. 2024 ) Infinite 720p \checkmark (16fps) \times PlayGen ( Yang et al. 2024 ) Infinite 128p \checkmark (20fps) \checkmark (0.05s) Genie 2 ( Parker-Holder et al. 2024 ) 10 - 20s 360p \times \times GameFactory ( Yu et al. 2025b ) Infinite 640p \times \times Matrix-Game ( Zhang et al. 2025 ) Infinite 720p \times \times Genie 3 ( Ball et al. 2025 ) few minutes 720p \checkmark (24fps) \checkmark Yan-Sim Infinite 1080p \checkmark ( 60fps ) \checkmark (0.11s) 5.2 Yan-Gen: Multi-Modal Generation In this section, we present Yan-Gen , a novel framework for real-time, interactive world generation. To address the critical challenge of long-term semantic drift inherent in auto-regressive video models, Yan-Gen employs a multi-stage training pipeline, as illustrated in Fig. 8 . Our process begins by training a foundational world generation model conditioned on a combination of multi-modal inputs: images, text, and frame-wise action signals. This relies on our hierarchical captioning system, which provides both a stable global context to prevent drift and detailed local descriptions for high-fidelity event rendering. Next, to enable continuous, open-ended generation, we convert this base model into a causal, auto-regressive generator by training it on the ordinary differential equation (ODE) trajectories of its predecessor. Finally, to achieve the real-time interaction, we distill this many-step causal model into a highly efficient few-step generator using a self-forcing distillation technique. Figure 8: The training pipeline of Yan-Gen , a real-time interactive world generation framework. It includes four stages: hierarchical video captioning, multi-modal conditions to interactive video generation training, auto-regressive post-training for infinite generation, and self-forcing post-training for efficient inference. 5.2.1 Hierarchical Captioning for World and Local Context Modeling A fundamental challenge in generating long, coherent video sequences is the "anti-drifting" problem. Auto-regressive models, which predict subsequent frames based on previously generated ones, are susceptible to error accumulation and exposure bias. Over time, these compounding errors can cause the generated content to "drift" from the initial context, leading to a degradation of visual quality and a loss of temporal and spatial consistency. This is particularly problematic in game environments, where the world must remain stable and consistent as a character navigates it. To address this, our methodology establishes a stable "world" through a two-level hierarchical captioning pipeline. This approach decouples the static, global environment from the dynamic, local events occurring within it. By providing the generative model with a constant global reference, we anchor the generation process, preventing long-term semantic drift. Simultaneously, a detailed local caption ensures that fine-grained details are rendered with high fidelity. This dual-context strategy is crucial for producing videos that are both globally coherent over extended durations and locally accurate to fine-grained events. Global Captioning: Defining the Static World The first level of the hierarchy creates the static world model. A single global caption is generated for an entire world, based on a video of the environment’s traversal. This caption acts as a constant, unchanging point of reference for all subsequent video generation within the world. It aims to capture the world’s unchanging characteristics, guaranteeing long-term consistency. The global caption outlines three main elements: the global layout, which details the game world’s topology, including its primary regions and interconnections; the visual theme, which covers the overall aesthetic, such as the color palette, main materials, and architectural style; and base lighting and weather, which describes the consistent ambient environmental conditions throughout the world. This static, high-level description provides a stable basis, preventing the model from drifting during continuous auto-regressive inference. Local Captioning: Grounding Dynamic Events The second level of the hierarchy provides the dynamic, local context. For each video clip, a local caption is generated to describe the transient events occurring within that specific window. This detailed, time-sensitive information is essential for training the model to accurately align the distribution of text with the distribution of video data, enabling precise rendering of dynamic environmental interactions. The local caption describes the local scene, which includes immediate surroundings and environmental elements visible within the camera’s view; the interactive objects, encompassing any objects whose state visibly changes during the clip, capturing real-time environmental interactivity; and critical events like character death or task completion. This local description ensures that the model output is precisely aligned with the fine-grained details of the ongoing interaction. In this paper, we adopt Qwen2.5-VL ( Bai et al. 2025b ) to perform hierarchical captioning. A typical environment’s traversal video is 1 minute long, and a local video clip length is 3 seconds. In total, we label 98 million frames for training. Figure 9: The model architecture of Yan-Gen . The multi-modal conditions are injected via decoupled cross-attention layers. 5.2.2 Multi-modal Conditions to Interactive Worlds To construct the real-time interactive generation pipeline, Yan-Gen builds upon a pre-trained Wan model ( Wan et al. 2025b ) , which employs a cross-attention mechanism to embed the input text or image conditions. We first adapt this model to the interactive video data distribution by fine-tuning all its linear layers with Low-Rank Adaptation (LoRA) for both text-to-video and image-to-video generation. During this adaptation phase, we leverage our hierarchical captions to explicitly address the "anti-drifting" problem. The model is conditioned on the concatenated global and local captions, providing the dense supervision necessary for precise text-to-video feature alignment. With a probability of p=0.1 , the model is provided with only the global caption, which enforces the model to generate a plausible video sequence even with minimal, high-level guidance. Next, we introduce and train an interactive module to incorporate action-based conditions. While using identical hierarchical captions, action-related descriptions are dropped. To achieve fine-grained, temporally coherent video control, this module features a simple yet effective action encoder. The encoded action sequences are then injected into each block of the DiT via a separate cross-attention layer, guiding the flow matching process. The model detail is shown in Fig. 9 . To enforce action causality and precise frame-wise control, we employ an attention mask similar to that in Yan-Sim . Crucially, to ensure the interactive module learns a style-independent control mapping that generalizes effectively to other worlds, all other model parameters remain frozen during this training phase. To further improve robustness and enable classifier-free guidance, we randomly replace action sequences with null actions with a probability of p=0.1 . Yan-Gen is trained to predict the velocity following Rectified Flows ( Esser et al. 2024 ) , thus the loss function can be formulated as \mathcal{L}_{fm}=\mathbb{E}_{x_{0},x_{1},c_{txt},c_{img},c_{act},t}||u(x_{t},c_{txt},c_{img},c_{act},t;\theta)-v_{t}||^{2}, (1) where c_{txt} is the umt5-xxl ( Chung et al. 2023 ) text embedding sequence of 512 tokens long, c_{img} is the ViT-H-14 ( Radford et al. 2021 ) image embedding sequence of 257 tokens long, c_{act} is the action sequence of video length, \theta is the model weights, and u(x_{t},c_{txt},c_{img},c_{act},t;\theta) denotes the output velocity predicted by the model. Upon completion of this training, Yan-Gen can generate fixed-length videos guided by a reference image, descriptive text prompts, and a sequence of user actions via \displaystyle u_{output} \displaystyle=u(x_{t},\varnothing,c_{img},\varnothing,t;\theta) (2) \displaystyle+g_{uncond}\cdot\bigl(u(x_{t},c_{txt},c_{img},c_{act},t;\theta)-u(x_{t},\varnothing,c_{img},\varnothing,t;\theta)\bigr). 5.2.3 Auto-regressive Post-training To enable real-time interaction in Yan-Gen , we follow Yin et al. 2025 to convert Yan-Gen into a few-step causal model. The process begins with auto-regressive initialization. We collect prompts from the Yuanmeng World dataset and use Yan-Gen trained in Sec . 5.2.2 to perform multi-step denoising via flow matching. This generates a ode trajectory of samples \{x_{t}\}_{t=T}^{0} , and we select a subset of 4 noise samples that are used in our 4-step generator \{x_{T},x_{t_{1}},x_{t_{2}},x_{0}\} . Here, x_{T} represents pure noise, and x_{0} is the clean latent. Next, we modify Yan-Gen into a causal model by employing block causal attention in the self-attention layer (ensuring each frame’s token can only attend to prior frames). Causal Yan-Gen is trained on the 4-step ode trajectory dataset with the diffusion forcing paradigm. During training, each frame’s latent in a clip is randomly sampled from one of 4 predefined noise levels, and the generated output is compared to the clean latent x_{0} using a regression loss, which can be formulated as \displaystyle\mathcal{L}_{mse}=\mathbb{E}_{x,c_{txt},c_{img},c_{act},t^{i}}\left\|u^{\prime}\left(\{x_{t^{i}}^{i}\}_{i=1}^{N},\{t^{i}\}_{i=1}^{N}\right)-\{x_{0}^{i}\}_{i=1}^{N}\right\|^{2}, (3) where u^{\prime} is the causal Yan-Gen , N is the latent length, and t^{i} can be selected from \{T,t_{1},t_{2},0\} . 5.2.4 Self-forcing Post-training We train causal Yan-Gen using distribution matching distillation (DMD) ( Yin et al. 2024b ) to extract a few-step generator. DMD minimizes the KL divergence between the generator’s output distribution and the true data distribution. DMD uses two score functions initialized from the Yan-Gen trained in Sec . 5.2.2 . The real score is frozen, representing the true data distribution, while the fake score continuously fits to the generator’s distribution by learning from the generator’s output. The DMD loss can be formulated as \displaystyle\nabla_{\phi}\mathcal{L}_{dmd} \displaystyle\triangleq\mathbb{E}_{t}\left(\nabla_{\phi}\mathbf{KL}\left(p_{\text{gen},t}\|p_{\text{data},t}\right)\right) (4) \displaystyle\approx-\mathbb{E}_{t}\left(\int\left(s_{\text{real}}\left(u(u_{\phi}^{\prime}(\epsilon),t),t\right)-s_{\text{fake}}\left(u(u_{\phi}^{\prime}(\epsilon),t),t\right)\right)\frac{du_{\phi}^{\prime}(\epsilon)}{d\phi}d\epsilon\right), where \phi represents the learnable parameter of causal Yan-Gen , and \epsilon is random Gaussian noise. DMD2 ( Yin et al. 2024a ) converts the one-step generator into a few-step generator by replacing pure noise with noisy sample data. Self-forcing ( Huang et al. 2025 ) trains the generator using an auto-regressive paradigm to generate training samples, reducing the cumulative errors introduced by teacher forcing. The distilled few-step Yan-Gen enables real-time interaction at 12-17 FPS on a single NVIDIA H20. With unified sequence parallel inference, Yan-Gen can scale to 30 FPS using 4 NVIDIA H20. After post-training, Yan-Gen can generate infinite content and respond to action signals in real-time, or adapt the content by switching prompts. 5.2.5 Evaluation In this section, we qualitatively evaluate the multi-modal generation ability of Yan-Gen by illustrating text-to-world and image-to-world results. All the results are real-time interactive gameplay by humans, with precise frame-by-frame responsiveness to user actions. Figure 10: The visualization results of text-to-interaction using Yan-Gen , which demonstrates exceptional real-time physical-aware interaction and instruction following ability. Figure 11: The visualization results of text-guided expansion using Yan-Gen , where Yan-Gen can expand the original scene following the modified scene descriptions in a continuous manner. Figure 12: The visualization results of image-to-interaction. Given an initial reference image, Yan-Gen can perform interactive generation based on user-input actions without losing the features of the reference image. Figure 13: The visualization results of cross-domain fusion. Yan-Gen can fuse out-of-domain images with in-domain subjects, demonstrating its interactive generation capability of cross-domain knowledge fusion. Text-to-interaction. As shown in Fig. 10 , Yan-Gen generates interactive scenes where a character sprints across snowy terrain and leaps over a railing with realistic momentum; navigates a hedge maze, maintaining spatial awareness even after prolonged occlusion behind foliage before emerging at a marble plaza; dynamically interacts with billowing curtains on sunlit adobe rooftops, adjusting movements to avoid entanglement; and halts upon colliding with glass panes in a greenhouse, distinguishing transparent barriers from foliage. These behaviors reflect the model’s ability to synthesize real-time physics-aligned actions, contextual spatial reasoning, material-aware interaction synthesis, and adaptive obstacle negotiation within immersive text-driven environments. Text-Guided Expansion. As illustrated in Fig. 11 , Yan-Gen implements text-guided scene expansion. During interactive sessions, Yan-Gen dynamically expands the scene when provided with modified textual descriptors. For example, Yan-Gen expands the original disco-themed environment to a classical musician scene. Crucially, this expansion process exhibits continuity, where shared structural elements (e.g., tiling patterns and platform colors) serve as transitional elements that mediate cross-domain scene morphogenesis. Image-to-interaction. As illustrated in Fig. 12 , Yan-Gen seamlessly responds to diverse open-world scenarios. These results confirm consistent responsiveness across various scenarios, including urban chaos and technological wilderness, validating the action cross-attention mechanism’s scalability for open-world real-time interactions without domain-specific tuning. Corss-Domain Fusion. As illustrated in Fig. 13 , Yan-Gen is able to perform cross-domain fusion generation. We use out-of-domain reference images and text containing in-domain character descriptions as prompts to guide the model in combining knowledge from different domains. Ultimately, Yan-Gen achieves cross-domain fusion interactive video generation. 5.3 Yan-Edit: Multi-Granularity Editing In this section, we propose Yan-Edit , a text-driven interactive video editing model that enables users to modify the video content through texts at any moment during interaction. Besides, Yan-Edit supports multi-granularity video content editing, encompassing both structure editing (e.g., adding interactive objects) and style editing (e.g., altering an object’s color and texture). In the following, we first introduce the model design and architecture of Yan-Edit in Sec . 5.3.1 . We then describe the training and inference strategy in Sec . 5.3.2 . Finally, we present qualitative results to demonstrate the versatile editing capabilities of Yan-Edit in Sec. 5.3.3 . 5.3.1 Model Design and Architecture Figure 14: The overall framework of Yan-Edit . It consists of an interactive mechanics simulator and a visual renderer. The interactive mechanics simulator is built upon Yan-Sim , which learns the structure-dependent interactive mechanics based on the depth maps. The visual renderer based on Yan-Gen is responsible for rendering the depth maps generated by the interactive mechanics simulator in versatile open-domain styles. Two types of text prompts are introduced to enable multi-granularity editing: structure prompt for structure editing (e.g., adding interactive objects) and style prompt for style editing (e.g., altering an object’s color and texture). Compared to previous video editing ( Jiang et al. 2025 ; Ceylan et al. 2023 ; Liu et al. 2024 ) that does not involve real-time user interaction, the main challenge of interactive video editing is how to ensure that the editing content meets the interactivity requirements. For example, in a racing game video, if we change the color of the controlled car from blue to green, how can we maintain the original interactive mechanics of the blue car when the user interacts with the new green car. To realize interactive video editing with accurate interactive mechanics simulation, we propose a hybrid model Yan-Edit that disentangles interactive mechanics simulation from visual rendering. The overall framework of Yan-Edit is shown in Fig. 14 . Specifically, we first extract the depth map for each frame in the interactive video data, which retains the 3D structure of objects in the video and removes its visual rendering information (e.g., the color and texture of objects). Then, we utilize an interactive mechanics simulator to learn the simulation of interactive mechanics based on the depth maps. In this way, we can learn a more general simulation of interactive mechanics that depends on the structures of objects rather than their colors and textures. Next, we employ a visual renderer to render the depth map as the final output video frame. To enable user-friendly editing, we introduce two types of text prompts: a structure prompt for structure editing and a style prompt for style editing. The model architecture of the interactive mechanics simulator and visual renderer is described below. Interactive Mechanics Simulator. The interactive mechanics simulator needs to learn structure-dependent interactive mechanics based on the depth maps, so we adopt Yan-Sim as the base model of the interactive mechanics simulator, leveraging its high-fidelity simulation of interactive mechanics. Given the initial depth, it generates consecutive depth frames auto-regressively conditioned on the user’s per-frame action signal (e.g., keyboard control signal) and structure text prompt. The structure text prompt is integrated into Yan-Sim by inserting a text cross-attention layer after the action cross-attention layer of each attention block. Visual Renderer. The visual renderer aims to render the depth frames generated by the interactive mechanics simulator. We use style text prompts to control the rendering style (i.e., the color and texture of objects in depth frames). To enable versatile rendering, the visual renderer takes advantage of Yan-Gen for its powerful generation capabilities on various open-domain visual content. The depth frames are injected into Yan-Gen via a ControlNet ( Zhang et al. 2023 ) . Similar to the structure of VACE ( Jiang et al. 2025 ) , the ControlNet consists of several DiT blocks copied from the original DiT blocks in Yan-Gen , and the output of each DiT block in ControlNet is added back to the original DiT blocks in Yan-Gen . 5.3.2 Training and Inference We first train the interactive mechanics simulator to learn high-fidelity interactive mechanics simulation on the depth maps. We incorporate structure prompts that describe the scene structure to train Yan-Sim . For precise structural characterization, we segment the interactive video data collected in Sec . 4 into 81-frame temporal chunks and employ Qwen2.5-VL ( Bai et al. 2025a ) to perform three-dimensional structural decomposition, categorizing elements as: (1) dynamic objects, (2) wall structures, and (3) environmental platforms. Following the training paradigm of Yan-Sim , our training protocol comprises two distinct phases. In the first phase, we utilize DepthFM ( Gui et al. 2025 ) to extract the depth maps from videos and train the VAE specifically for depth maps. In the second phase, we train the action and text cross-attention layers simultaneously for accelerated convergence, and then freeze the text attention weights while fine-tuning the action ones alone to boost consistency and fidelity. Then, we train the visual renderer to learn versatile-style rendering on depth frames generated by the interactive mechanics simulator. Following the training paradigm of Yan-Gen , we should first train a non-casual video generation model conditioned on the depth frames using the method in Sec. 5.2.2 , and then distill it into a few-step casual model for real-time interaction through post-training in Sec. 5.2.3 and Sec. 5.2.4 . Thanks to VACE ( Jiang et al. 2025 ) , we find that directly combining the Yan-Gen model before post-training in Sec. 5.2.2 with the open-source ControlNet weights of VACE can perform versatile and temporally consistent style rendering on depth frames. Therefore, we only need to distill the combined model into the corresponding few-step causal model following the post-training method in Yan-Gen . To generate depth videos for distillation, we employ the trained interactive mechanics simulator to generate diverse depth videos by giving random input (i.e., random initial depths, random action signals, and random structure prompts). The length of each generated depth video is 81 frames. The style prompts used for distillation contain two parts: in-domain style prompts and out-of-domain style prompts. We extract the style description part from each caption generated in Sec . 5.2.1 as the in-domain style prompt. The out-of-domain style prompts describing open-domain styles are generated by GPT-4 ( Achiam et al. 2023 ) , with the aim of improving the open-domain style rendering ability of the distillation model. After training, Yan-Edit is able to generate infinite-length videos auto-regressively in an interactive way. Specifically, given an initial depth frame, the interactive mechanics simulator receives the action signals and the structure prompts from the user to generate the next depth frames, which are then input into the visual render for style rendering conditioned on the style prompts to obtain the final result frames. Every generated frame will be stored in a KV cache for generating subsequent frames, which ensures the temporal consistency of the generated video. The detailed inference strategies of the interactive mechanics simulator and the visual renderer follow Yan-Sim and Yan-Gen , respectively. Through this frame-by-frame inference strategy, Yan-Edit enables infinite-length video generation conditioned on per-frame action signal of the user, structure prompt, and style prompt. More importantly, it allows users to input new structure prompts and style prompts at any moment during interaction to alter the structure and style of video content. 5.3.3 Evaluation In this subsection, we show qualitative results to verify the effectiveness of Yan-Edit for interactive video editing. Firstly, we demonstrate the structure editing abilities of Yan-Edit , which enables users to edit structures of the video content through structure prompts during interaction. Then, we present the style editing capabilities of Yan-Edit that can render the video content in diverse styles through style prompts. Structure Editing. Structure editing enables dynamic content creation and replacement within the scene environment. As shown in Fig. 15 , through a structure prompt that switches the "Rotate Plat" to "Wooden Door" , the target element undergoes immediate transformation within the scene. Furthermore, when encountering obstructive structures such as walls, the system can generate elements in structure prompts like "Cylinder Fan" or "Trampoline" to resolve these obstacles. Consequently, Yan-Edit demonstrates capabilities not only in content creation but also in real-time element replacement. Figure 15: The visualization results of structure editing using Yan-Edit . We edit the scene structures during the interaction by replacing the scene elements with others. The user’s per-frame interaction signal (i.e., keyboard control signal) is displayed in the lower right corner of each image. Figure 16: The visualization results of style editing using Yan-Edit . We edit the style during interaction by modifying the style prompt at frames 81 and 162. The user’s per-frame interaction signal (i.e., keyboard control signal) is displayed in the lower right corner of each image. Style Editing. Style editing specifically refers to changing the color and texture of objects in the video. As shown in Fig. 16 , we use "bamboo and watercolor" style to render the frame at the beginning of the video, and then switch the style to "purple glass and cyan light" and "snow and soft pastel shading" at frame 81 and frame 162, respectively. It can be observed that Yan-Edit is able to achieve versatile open-domain style editing with the visual renderer, while ensuring the accurate simulation of interactive mechanics through the interactive mechanics simulator. Besides, it allows users to seamlessly change the rendering style through style prompts at any moment during interaction. 6 Limitation and Conclusion Limitation We present Yan , a foundational interactive video generation framework achieving state-of-the-art capabilities in simulation, generation, and editing. Despite these advances, several limitations remain to be addressed to realize the full potential of interactive video generation. First, ensuring visual consistency across long video durations remains a challenge. Further improvements in spatial and temporal consistency, especially under complex and rapidly changing interactive scenarios, are warranted. Second, Yan ’s high-fidelity, real-time performance is currently enabled by inference on powerful GPUs, which may limit accessibility for users with limited hardware resources. More efficient architectures and optimization for low-resource and edge devices are promising directions. Third, while Yan demonstrates strong generalizability to both in-domain and out-of-domain scenes, the action space and interaction complexity are still bounded by the underlying game environment, potentially restricting extensibility to some real-world applications. Finally, Yan ’s editing module, though supporting both structure and style modifications in real time, currently relies on textual descriptions and may require further enhancement for intuitive and broader user control. Conclusion We introduced Yan , a foundational framework for interactive video generation that unifies (i) high-fidelity real-time simulation, (ii) prompt-controllable multi-modal generation, and (iii) multi-granularity, text-driven editing upon a large, precisely annotated dataset. Our modular yet coherent design bridges simulation, creation, and on-the-fly customization, demonstrating a practical path toward next-generation AI content engines. Future work will concentrate on (i) scaling both the dataset and model capacity while improving efficiency, (ii) extending prompt controllability to real-world domains, and (iii) developing richer evaluation protocols that account for human factors and safety. We hope Yan serves as a stepping-stone toward more versatile, inclusive, and creative interactive media applications. 7 Contributors We sincerely thank all contributors for their great efforts. The following contributors are listed in alphabetical order: Deheng Ye, Fangyun Zhou, Jiacheng Lv, Jianqi Ma, Jun Zhang, Junyan Lv, Junyou Li, Minwen Deng, Mingyu Yang, Qiang Fu, Wei Yang, Wenkai Lv, Yangbin Yu, Yewen Wang, Yonghang Guan, Zhihao Hu, Zhongbin Fang, Zhongqian Sun.