Technology & Research · · Team LATENT
MaLiang, a video model that paints game frames from an integer map: what makes up 21.8 fps, how it compares with colour-coded video, and 0.28 seconds from map edit to screen
On November 26, researchers from Tencent, NUS and NTU released MaLiang, which has a video model paint game frames from integer class ids that the game writes for each pixel. A 9.4-million-parameter encoder feeds the ids to the Wan2.2-TI2V-5B backbone, and one GPU produces 832×480 video at 21.8 fps, about 1.36 times real time. With the same backbone, integers matched colour-coded video on quality and layout and were more precise on characters and effects. The speed gain holds only against a video VAE. We work out where the time goes and how long a map edit takes to reach the screen.
In a browser game built by the paper's authors, the game state is written every 0.25 seconds into an 832×480 integer map. Each pixel holds one id that stands for a class such as terrain, rock, the player's right arm, the boss's weapon or the boss's heavy-attack effect. When a game rule writes a boss clone, a falling rock or a rising tower into the map, the video generation model paints it in the next step. None of these rules appear in training. The map decides layout and timing, and a single first image decides the look.
On November 26, Zhiyang Deng, Shushan Xu and Yeying Jin of Tencent, the National University of Singapore and Nanyang Technological University posted this system to arXiv under the name MaLiang. The work was done during internships at Tencent, supervised by Jin, who is also the corresponding author. The name comes from Ma Liang, the boy in a Chinese folk tale whose magic brush brings his drawings to life. The code, five checkpoints and the game recordings used for training are public on GitHub and Hugging Face. The paper is a preprint and has not been peer reviewed.
On December 1, Japan time, LATENT read the body and appendices of version 1 of the paper, the GitHub README and commit history, and the Hugging Face listings, and combined numbers from the tables and appendices. LATENT did not run the model and did not re-measure speed or image quality. Where a number is LATENT's own calculation, the text says so.
arXiv: MaLiang: Painting Playable Game Worlds from Numbers / GitHub: YeyingLab/MaLiang / Project page
Key takeaways
- MaLiang does not replace the game's rules. The game program computes movement, hit detection and attacks, and hands the result to Wan2.2-TI2V-5B as one of 24 class ids per pixel. A 9.4-million-parameter encoder turns the ids into the share of each class in every 4×4 pixel block and adds them in, skipping both the pass that draws a colour-coded video and the video VAE. One step (four frames, 0.25 s of video) takes about 184 ms, about 1.36 times real time.
- In a comparison that changes only the input format, with the same backbone and training, integer maps matched colour-coded video on image quality and layout and were more precise on character positions and attack effects. The speed advantage is only over feeding colours through a video VAE (an estimated 17.2 fps); against an equally light colour encoder it is 21.8 versus 21.7 fps. The 29-fold speed gap to the strongest existing method, SolarRenderer, shrinks to about 11-fold when counted in pixels.
- A map edit reaches the screen in a median 0.28 s, not counting network time. By LATENT's calculation that is about 1.5 times the compute time of one step. Adding a rock got about half to two thirds of the pixels drawn as rock, but a building only 9.4%. Shifting the map by four pixels lowers position IoU by 0.017, and a map one step late drops mIoU from 62.2% to 43.0%.
Who keeps the game state and who draws it
Research on running games with video generation models falls into two lines. One predicts the next frame from the player's input; Google DeepMind's Genie, Oasis and Matrix-Game 2.0 belong here. The paper says this line keeps the state implicitly in the generated pixels, which makes long-term consistency and exact game logic hard. In the other line, a conventional engine or a coding agent keeps the game state and the video model only draws it. MaLiang belongs to the second line, and the paper describes its contribution as the interface between the two halves.
Most systems in the second line first draw the game state into a video and then hand that to the video model: untextured white-box footage, a low-poly scene, a video painted in one colour per class, or depth plus semantics. The paper calls this a visual proxy. The proxy is encoded by a video VAE or by a reference-video pathway. MaLiang makes no proxy video and passes the per-pixel integer ids directly. From the table in the paper's Appendix B, here is what each method hands to the video model.
| Method | What the video model receives | Render pass | Attack effects | Speed |
|---|---|---|---|---|
| Magpie | White-box engine frames | Yes | Not addressed | 32 fps (H100, 1280×768) |
| Matrix-Game 4.0 | Low-poly proxy, caption, reference frames | Yes | As caption text | 60 fps (RTX 5090); 45–54 fps on the authors' GPU |
| StreamRender-H3 | Colour-coded video, 13 classes | Yes | Not addressed | 218 ms per step (8 GB200s) |
| PWM | Box identity, semantic and direction maps (ControlNet) | Partial | Not addressed | Not reported |
| SolarRenderer | Colour-coded semantic video | Yes | Generic colour | 0.75 fps (authors' GPU, whole clip at once) |
| AnyGameRenderer | Grey geometry, colour-coded characters, text | Yes | Colour plus text | 0.11 fps (authors' GPU) |
| CWM | First frame, depth, semantic video | Yes | Dropped | 0.07 fps (authors' GPU) |
| MaLiang | Integer class map | No | Native classes | 22 fps (one GPU, 832×480) |
The speeds mix figures reported by each paper with figures the authors measured, on different GPUs.
The "render pass" column is what MaLiang removes. Geometry work on the game side remains. The integer map is projected to the screen with the game camera, and characters are rendered from articulated capsules by ray casting to decide which body part each pixel belongs to. The same capsule code labels the training data, so training and play produce the same kind of map. What is removed is drawing a textured, lit colour video and encoding it with a video VAE.
arXiv: the MaLiang paper (Sections 1 and 2, Appendix B)
A 24-class integer map and a 9.4-million-parameter encoder
For every output frame the game produces one 832×480 map and writes an 8-bit engine id into each pixel. A fixed lookup table maps the ids to 24 classes. Engine ids 22–25 are the four effect classes, and 255 is unknown.
| Group | Classes | Count |
|---|---|---|
| Scene | Sky, terrain, paving, architecture, rock, vegetation, prop | 7 |
| Player | Core, left and right arms, left and right legs, weapon | 6 |
| Boss | Core, left and right arms, left and right legs, weapon | 6 |
| Attack effects | Light and heavy attacks of two boss families | 4 |
| Unknown | Regions that cannot be classified | 1 |
An id is not a brightness or a distance; it only says which class the pixel belongs to. The ids are read by a 9.4-million-parameter encoder, 0.19% of the Wan2.2-TI2V-5B backbone. It works in three stages. First it splits the ids into one 0-or-1 channel per class and averages over each 4×4 pixel block, giving the share of each class in the block. Next it groups frames in time the same way as the video VAE: the first frame alone, then four at a time. Finally three convolutions bring it to the model width of 3,072, and the result is added to the patch embedding of the noisy video latent: x = PatchEmbed(z_t) + E(s). The last convolution is initialised to zero, so at the start of training the model behaves exactly like the original.

If a block holds 14 terrain pixels and 2 boss-arm pixels, the arm survives as a share of 2/16. Downscaling a colour-coded video instead averages the arm's colour with the terrain's into an in-between colour. The paper says a thin weapon or a short-lived effect gets lost in its surroundings through this averaging.
All temporal kernels have size one, so the condition for a latent step depends only on that step's four frames of map. This is what lets the causal student described below read a new map at every step.
The map handles layout and effects. The look comes from the first frame. The player's movement is supplemented by a short caption every four frames (one of 18 templates). So that the model can still draw when parts of the map are missing, training drops the caption with probability 0.1, sets the whole map to unknown with probability 0.05, and masks random regions to unknown with probability 0.5.
The condition data is small. According to Table S7, the integer map is handled as a 2.4 KB compressed array per frame, or 4.9 KB as a PNG. A colour-coded frame as a PNG is 10.5 KB. By LATENT's calculation, streaming at 16 fps takes about 38 KB per second (about 0.31 Mbit/s) for the integer map and about 168 KB per second (about 1.3 Mbit/s) for colour-coded PNGs. An uncompressed map is 832×480 = 399,360 bytes, so 2.4 KB is about 1/166 of that. If the game and the renderer run on different machines, this is what the game would send to the renderer. The paper did not measure network volume or time.
arXiv: the MaLiang paper (Sections 3.1 and 3.2, Appendices A and H)
What makes up 21.8 frames per second
The teacher model looks at both past and future frames and makes a five-second clip at once with 50 denoising steps. That cannot follow a player's input. The paper distils the teacher into a student that looks only at the past, in three stages. Stage one trains for 8,000 steps with teacher forcing, attending only to correct earlier steps. Stage two runs 8,000 steps of consistency distillation onto four denoising steps (t = 1000, 750, 500, 250). Stage three runs 500 steps of self-forcing distribution matching (DMD), in which the student feeds its own output back as input. Earlier steps are kept in a key-value cache that holds the first three steps and the 17 most recent. Decoding uses TAEHV, a tiny autoencoder. Below, we call this student, used in the demo and in the paper's Table 1, the final student.
At run time the final student produces one latent step at a time: four frames, or 0.25 s of video. In Table S7 the median step is 180 ms for the transformer, including 0.91 ms of condition encoding, plus 3.5 ms of decoding. Four frames in 0.1836 s gives 21.8 fps.

By LATENT's calculation, producing 0.25 s of video in about 184 ms is about 1.36 times real time, leaving about 66 ms of slack per step. The paper says 1.4 times.
The same table also estimates what happens when only the condition path is swapped. Encoding a colour-coded video with the video VAE takes 49.4 ms, bringing the transformer step to 228 ms and the rate to 17.2 fps. That is about 1.08 times real time, with the slack down to about 19 ms. The video VAE has 150 million parameters, about 16 times the integer encoder. Encoding the colour-coded video with a tiny autoencoder instead is estimated at 1.9 ms and 21.7 fps, almost the same as the integer map. The paper also says the gain of integers is control precision, not speed. Neither estimate includes the time to draw the colour-coded video.
On speed alone, faster systems exist. Matrix-Game 4.0's released real-time preset ran at 45–54 fps on the authors' GPU. It uses the same 5B Wan2.2 transformer as MaLiang but denoises in a single step. The paper says the gap comes mainly from the number of denoising steps (one versus four), which is a separate matter from the input format. Matrix-Game 4.0 does, however, render a low-poly proxy in the engine every frame. Magpie spends 0.83 s of its 1.55 s first-feedback latency on engine preparation.
The paper does not name the GPU it used to measure MaLiang. The text and tables say only "one GPU" and "the same GPU type"; the only GPU models named are the H100, RTX 5090 and GB200 used by other methods.
arXiv: the MaLiang paper (Sections 3.3 and 4.5, Appendices A and H)
Comparison with three existing 33-billion-parameter methods
The paper's Table 1 compares MaLiang with three existing methods on 100 clips (50 photoreal, 50 stylised) taken from ten recordings not used in training. The ten scenes themselves appear in training through other recordings. The three methods were run off the shelf with their public code and weights, without fine-tuning on this game, each given the input format it was trained on. All three use the 33-billion-parameter MiniMax-H3 backbone and were measured in their whole-clip configuration.
| Method | Backbone | PSNR↑ | SSIM↑ | LPIPS↓ | FVD↓ | mIoU↑ | Time match↑ | fps |
|---|---|---|---|---|---|---|---|---|
| AnyGameRenderer | H3 33B | 10.43 | 0.319 | 0.796 | 879 | 19.8 | 0.571 | 0.11 |
| CWM | H3 33B | 12.69 | 0.378 | 0.705 | 708 | 28.3 | 0.665 | 0.07 |
| SolarRenderer | H3 33B | 18.41 | 0.533 | 0.407 | 391 | 62.7 | 0.836 | 0.75 |
| MaLiang (final student) | Wan2.2 5B | 20.63 | 0.508 | 0.327 | 154 | 62.3 | 0.893 | 21.8 |
| Ground-truth recording | – | – | – | – | – | 77.4 | – | – |
PSNR and SSIM measure closeness in pixels and structure, LPIPS perceptual difference, and FVD the distance between feature distributions of whole videos. mIoU measures whether the layout matches the map, and time match whether a character is drawn exactly when the map contains it.
MaLiang is best on FVD, LPIPS and PSNR, with FVD falling from 391 to 154. SolarRenderer's SSIM of 0.533 is higher than MaLiang's 0.508. mIoU is 62.3 versus 62.7, with no difference under the paper's test (p = 0.88). Time match is 0.893 versus 0.836, significantly higher for MaLiang.
mIoU has a ceiling. It is measured by a segmenter (SegFormer-B2, nine classes) fine-tuned on recorded frames and their maps: the labels it assigns to the output are compared with the input map. Even on the ground-truth recordings it reaches only 77.4%. MaLiang's 62.3% is about 80% of that (LATENT's calculation).
The 29-fold speed gap (21.8 versus 0.75 fps) is not a like-for-like comparison. The three methods generate at 1344×768 and show a clip only once it is complete; SolarRenderer took a median 211 s per 158-frame clip. Counting pixels per second, LATENT gets about 8.71 million for MaLiang (21.8×832×480) and about 0.77 million for SolarRenderer (0.75×1344×768), a gap of about 11 times. The gap is about 77 times against AnyGameRenderer and about 120 times against CWM. The paper also gives 11–120 times in pixels. SolarRenderer also has a block-causal real-time configuration, which the paper did not run.
Table 1 compares systems that differ in backbone, training data and resolution. The paper itself says the effect of the input format is isolated in the next comparison.
arXiv: the MaLiang paper (Sections 4.1 and 4.2, Table 1, Appendix A)
Same backbone, different input format
Table 2 compares teacher models trained from the same Wan2.2-TI2V-5B weights on the same data with the same recipe for 5,000 steps, sampled with 50 denoising steps. Only the way the map is fed in differs, in four variants. (1) encodes a colour-coded video with the frozen video VAE. (2) reads the same colour video with a light encoder built like MaLiang's, using each block's colour mean and standard deviation in place of class shares. (3) is the integer map, and (4) has no map. Effects are measured on 94 clips with boss attacks, by comparing runs with and without the effect classes.
| Input | Condition encoding (ms) | SSIM↑ | FVD↓ | mIoU↑ | Position IoU↑ | Effect-region response↑ | Correctly timed frames↑ |
|---|---|---|---|---|---|---|---|
| (1) Colour, video VAE | 49.4 | 0.502 | 110 | 65.4 | 0.559 | 51.5% | 87.1% |
| (2) Colour, light encoder | About the same as (3) | 0.518 | 114 | 66.7 | 0.563 | 57.5% | 90.8% |
| (3) Integer map | 0.9 | 0.509 | 119 | 65.8 | 0.579 | 61.0% | 93.7% |
| (4) No map | – | 0.399 | 634 | 29.0 | 0.376 | – | – |
| (2) distilled into a student | About the same as (3) | 0.463 | 290 | 51.4 | 0.523 | 49.3% | 83.7% |
| (3) distilled into a student | 0.9 | 0.455 | 298 | 53.4 | 0.541 | 58.1% | 87.5% |
Without a map, every metric falls (mIoU 29.0, FVD 634). On image quality and layout, integers matched colour coding. PSNR, FVD, mIoU and the rate of drawing things that are not there show no significant difference, and (2) is slightly better on SSIM and LPIPS (by less than 0.01). The differences are in character position and effects. Position IoU is 0.020 higher than (1) and 0.016 higher than (2). The effect-region response is 61.0%, above (1)'s 51.5% and (2)'s 57.5%. The effect-region response is the share of effect pixels whose difference from the run without effects exceeds 25 grey levels; it is a control metric, not a quality score.
Appendix I repeats the comparison with three random seeds. The position IoU advantage holds in every seed. The effect advantage over (2) is significant in two of the three seeds (+1.8 to +3.5 points). Against an equally light colour encoder, then, the integer advantage is stable for position, but for effects it does not always pass the significance test.
The advantage grows as characters get smaller. In Appendix J, for characters covering 500–1,500 pixels of the map, position IoU is 0.040 higher than (1) and 0.041 higher than (2). That is 0.13–0.38% of the 832×480 frame (LATENT's calculation). In this size range, though, the difference is significant only against (1); against (2) it becomes significant from 1,500 pixels up.
When (2) and (3) are distilled into four-step students with the same budget (2,000 steps of teacher forcing and 2,000 of consistency distillation, no DMD), the gap widens. The integer student beats the colour student by 2.0 points of mIoU, 0.018 of position IoU and 8.8 points of effect-region response. These two students are separate models, trained for less time than the final student.
A ControlNet-like design was tested too. A branch of about 2.4 billion parameters, copied from the 15 even-numbered blocks of the backbone (Wan2.2's VACE), reads the colour-coded video encoded by the video VAE. By LATENT's calculation it is about 255 times the size of the integer encoder. The branch had the lowest FVD of all variants (105 versus 116, significant in two of three seeds), so image quality improved. On position IoU, effect response and timing, integers were ahead in all three seeds. The paper explains that the branch sees the map only after the video VAE has shrunk it 16 times in each spatial dimension, so a thin limb or a short-lived effect is still averaged away.
arXiv: the MaLiang paper (Section 4.3, Table 2, Appendices C, I and J)
How long a map edit takes to reach the screen
The paper keeps two kinds of delay apart. One is the delay inside the generated video: a change becomes visible on average 1.3 frames after the frame where the map is edited. The other is wall-clock time. The paper estimates that a change written into the map reaches the screen within two steps, at a median of 0.28 s and a 95th percentile of 0.37 s. The estimate assumes the change arrives at a uniformly random time within a step and excludes network transport.
The 0.28 s can be explained by the compute time of one step. If a change arrives while a step is being computed, that step is already running on the old map, so the change enters with the next step. The wait is the remainder of the current step (half a step on average) plus one full step. By LATENT's calculation, 1.5 times 183.6 ms is about 275 ms, which matches 0.28 s. For the 95th percentile, using the step's own 95th percentile of 192 ms gives 192×1.95, about 374 ms, which matches 0.37 s. The worst case is two full steps, consistent with the paper's "within two steps". The paper does not give its formula, so this is one calculation consistent with its numbers. Under this calculation, the delay is about 1.5 times the compute time of one step.
The 0.28 s is counted from the moment the change is written into the map. In the paper's browser demo, the game writes its state into the map every 0.25 s. The time from a button press to a changed screen can be longer by that write interval and by network time. The paper did not run any evaluation in which people played and judged whether this delay is acceptable.
If the map arrives late, the picture is late too. In Appendix K, a map four frames (one step, 0.25 s) behind the game drops the final student's mIoU from 62.2% to 43.0% and its position IoU from 0.586 to 0.418. The output matches the clean-map output of four frames earlier at 24.6 dB, but the same frame at only 19.9 dB. The video follows the map, lag included, and the paper says a game should send the map of the current step.
arXiv: the MaLiang paper (Sections 4.4 and 4.5, Appendices F, H and K)
Rock, vegetation and building edits, and attack effects
The paper ran two tests that rewrite the map during generation. The first is a set of 33 edits. Each edit is defined in world coordinates and re-projected every frame with the recorded camera. Added objects are upright cylinders of rock, vegetation or architecture placed on visible ground away from the characters; removals fill the largest static category in view with the surrounding ground. The final student is run on the original and the edited map with the same seed, first frame and captions, and the outputs are classified by the segmenter. Edited pixels were drawn as the new class 69.1% of the time, against 13.6% for the same pixels in the unedited run. The gain is 56.4 points for additions and 54.2 points for removals. Outside the edit, the video stays close to the unedited run at 31.5 dB.
Table S6 in the appendix extends the test to all 100 test clips and splits it by class and size.

Rock is drawn in about half to two thirds of its pixels at every size, and at radii of 0.8 m and 1.2 m it is more than 62 points above the unedited run. Vegetation reached 31.0% (a gain of 25.6 points). Building reached 9.4%, only 4.2 points above the unedited 5.2%. The paper explains the low vegetation score by noting that a solid upright cylinder looks much more like the compact rocks in the recordings than like their fragmented vegetation. Removal uncovering terrain reached 91.9%, but the unedited run already had 38.7%, so the gain is 53.2 points. The number of frames until half the final value is reached was 0.3–3.9 for rock, 5.8 for vegetation and 12.4 for buildings. These are frames inside the generated video, a different quantity from the 0.28 s in the previous section. What this table shows is that the ids carry the class, while the shape it is drawn in depends on how that class looked in the training recordings.
The second test covers boss attack effects. On 94 clips with boss attacks, the effect classes were included in or left out of the map, with everything else the same. Inside the effect region 63.3% of pixels changed; outside it, beyond a 49-pixel margin, only 1.3% did. In 93.8% of frames the effect was drawn exactly when the map contained it. The test effects came from a second sprite library not used in training, so the map controlled effect shapes and motion the model had not seen. None of the three compared methods has effect classes. SolarRenderer and AnyGameRenderer receive effects as colour-coded regions, and CWM drops them.
Both tests measure whether pixels changed as the map said. Neither is a human judgment of whether an attack is easy to see or whether the game feels fair.
arXiv: the MaLiang paper (Section 4.4, Appendix G)
Maps not seen in training and one-minute rollouts
Layouts not seen in training were tested with ten procedural maps in each of four themes (canyon, forest, plaza, village) and 20 programmatic freehand-style sketches. Cameras and characters came from the test clips, and the first frames were drawn from the map by the image model FLUX.2. Values are mIoU (%).
| Method | Training scenes | Canyon | Forest | Plaza | Village | Sketch |
|---|---|---|---|---|---|---|
| SolarRenderer | 62.7 | 44.1 | 50.6 | 32.5 | 49.1 | 37.2 |
| (1) Colour, video VAE (teacher) | 65.4 | 54.7 | 60.3 | 39.8 | 48.9 | 37.9 |
| (2) Colour, light encoder (teacher) | 66.7 | 55.7 | 63.5 | 39.4 | 50.7 | 38.7 |
| (3) Integer map (teacher) | 65.8 | 55.5 | 63.0 | 39.7 | 45.1 | 33.5 |
| MaLiang (final student) | 62.3 | 56.1 | 64.9 | 39.1 | 49.5 | 38.7 |
The final student beat SolarRenderer on all four themes, but on the village maps it was 49.5% against 49.1%, a gap of 0.4 points. The plaza score of 39.1% is 23.2 points below the 62.3% on the training scenes. Among the teachers on the same backbone, the integer variant (3) scored lower than the colour variants (1) and (2) on the village and sketch maps. The table carries no significance tests, and it does not show integers beating colour coding on unseen layouts.
Because the map sets layout and the first frame sets the look, one map can yield worlds that look different. In Appendix D one unseen map is generated from nine first frames drawn by FLUX.2.
One-minute rollouts were tested on ten chains of consecutive held-out clips (961 frames, 241 steps). On photoreal recordings, mIoU was 57.8% in the first ten seconds and 62.3% in the last ten, with no decline. On stylised recordings the model still followed the map at 39.9% after one minute. Whether characters keep the same appearance beyond one minute was not tested.
arXiv: the MaLiang paper (Section 4.6, Appendices D, E and N)
What it takes to connect a game engine
The paper lists four limitations. The study covers a single top-down action game. The 24-class vocabulary is fixed, so new kinds of objects need new classes and retraining. Appearance comes entirely from the first frame, so materials and character identity change only by redrawing it. The 2D map carries no depth, leaving height and occlusion to the model. As next steps, the paper names material, identity and depth classes, and other engines including first-person games.
Results also change with the accuracy of the map the game sends. Appendix K feeds the final student imperfect maps. Replacing up to 5% of pixels with random classes, or rasterising the map at a quarter of the resolution (208×120) and upsampling it, stayed within the spread seen when the seed is changed. Shifting the whole map by four pixels (0.5% of the frame width) lowered position IoU from 0.586 to 0.569, a drop of 0.017; eight pixels lowered it to 0.528, a drop of 0.058. Setting 10% of the frame to unknown gave an mIoU of 56.2%, and 30% gave 50.9%.
The 0.017 lost to a four-pixel shift is about the same as the 0.016 position IoU advantage integers had over the light colour encoder in Table 2. One figure comes from the final student and the other from a 5,000-step teacher, so they are not on the same scale. Even so, in LATENT's view, getting the benefit of integer maps requires building the map from the game camera and character shapes to within a few pixels.
As of December 1, 2026, no plugin for connecting Unreal Engine, Unity or Godot has been released. What is public is code that builds training data from recordings, and a script that generates video from your own first frame, integer map (a uint8 array of 81×480×832) and 21 captions. The training data was made in ten Unreal Engine scenes. Connecting an existing game would need a per-frame pass that maps engine object ids to the 24 classes and writes them per pixel from the camera. The paper's implementation approximates characters with articulated capsules, and it does not cover how to assign ids to arbitrary meshes, translucent objects or overlapping effects.
arXiv: the MaLiang paper (Sections 3.1 and 5, Appendix K) / GitHub: README
Terms for the released code, weights and data
The GitHub repository was created on November 23 (UTC), and the first commit, "MaLiang: code and checkpoints", went in the same day. The arXiv submission is dated the 26th, and the Hugging Face model and dataset were also created on the 26th. On the 30th, Jin listed the paper on Hugging Face Papers. A commit at 02:42 UTC on December 1 switched the README's model and data links to repositories under the YeyingLab name. The paper's text says the code, the final student and the test set "will be released", but the README's November news item says the training, distillation, inference and evaluation code, the paper's five checkpoints and the raw training recordings are already out.
The code is under Apache-2.0. The checkpoints and training data are released for research use only, and the Hugging Face listings also give the licence as research-only. Third-party components such as Wan2.2, DiffSynth-Studio, LPIPS, SegFormer and I3D keep their own licences. Whether MaLiang can go into a commercial game has to be checked separately for the code, for the weights and data, and for the third-party components.
According to the README, real-time generation runs on one GPU, using about 17 GB of GPU memory as measured in the demo. The five checkpoints take about 50 GB, and the raw recordings 482 GB. Teacher training and distillation default to eight GPUs in the launch scripts. The environment is Python 3.12, PyTorch 2.11, CUDA 12.8 and DiffSynth-Studio v2.1.6, and the README asks users not to install flash-attn or sageattention so that the reference path stays bit-exact. Because the GPU model is not given, the public materials do not tell whether a consumer GPU with room for 17 GB reaches 21.8 fps.
The README says the experiment scripts are reference implementations of the paper's runs, not a one-command reproduction. The raw recordings, the three compared methods and the FLUX first-frame generator have to be obtained separately.
GitHub: README / Hugging Face: YeyingLab/MaLiang / Hugging Face: YeyingLab/MaLiang-Data / Hugging Face Papers
What LATENT is watching
First, independent reproduction. We will check which GPUs other researchers use to reproduce 21.8 fps and 0.28 s with the released checkpoints.
Second, other kinds of games. We will follow whether the precision gains in position and effects hold up with the depth, material and identity classes and the first-person games the paper names as next steps.
Third, the number of denoising steps. We will look at whether integer maps keep their precision on position and effects when denoising is cut to a single step, as in Matrix-Game 4.0. Under LATENT's calculation, a shorter step would also shorten the 0.28 s delay.
Sources and scope
On December 1, Japan time, we read the body and Appendices A through N of the arXiv paper (v1, November 26, 2026), the GitHub README and commit history, the Hugging Face API listings for the model and dataset, the project page, and the Hugging Face Papers entry. Table values come from the paper's Tables 1, 2, S2, S4, S6, S7 and S10. The real-time factors, the pixel-rate speed ratios, the data volumes, the calculation putting the delay at about 1.5 steps, the share of the mIoU ceiling and the size ratios to the encoder are LATENT's calculations. LATENT did not run the model and did not re-measure speed or image quality. We did not read the papers for the three compared methods, Matrix-Game 4.0 or Magpie; their figures come from the MaLiang paper's tables and text. The teacher's training batch size is given as 12 in the paper's Table S1 and as 16 in the README.
- Zhiyang Deng, Shushan Xu, Yeying Jin, "MaLiang: Painting Playable Game Worlds from Numbers," arXiv:2611.35782
- The same paper, HTML version (v1)
- YeyingLab/MaLiang (GitHub)
- YeyingLab/MaLiang (Hugging Face, checkpoints)
- YeyingLab/MaLiang-Data (Hugging Face, training recordings)
- MaLiang project page
- Hugging Face Papers: MaLiang