Give it one photo. For every pixel, World Tracing returns a stack of 3D points: the surface you see, then each hidden surface behind it, in order. Its visible surface beats the best depth estimator (error 0.0079 against 0.0138), and its complete shapes beat image-to-3D generators (F-score 0.898 against 0.675).
Pick a method, then turn the view to look behind the mug. Drag the pixel to trace one ray. Then we build, piece by piece, the layered points, the filled targets and the transformer that denoises every layer together.
You need what a depth map is and the idea of diffusion (turning noise into data step by step). We build the rest from zero.
The method
The mug is a toy, ray-cast exactly through a 56 × 42 pixel camera; each ray keeps its first 6 hits, as World Tracing does (L = 6). The image-to-3D pose error (a 35° turn, 15% smaller, shifted) is made up to show misalignment. Scores are Table 1: VGGT, the best depth baseline (AbsRel 0.0138); SAM 3D, the best generator without depth guidance (F@0.05 0.675); WT-O (0.0079 and 0.898).
Chapter 0
See what a depth map leaves out, then move the camera and count the holes
You have one photo of a mug on a desk. You want it in 3D: to fly a camera around it, to drop it into a game, or to show a robot where the handle is. Two kinds of tools exist, and each gives you half.
A depth estimator gives one distance for each pixel: how far away the surface in that pixel is. Its points sit exactly where the photo says. But it stops at the first surface. The back of the mug, and anything behind it, do not exist.
An image-to-3D generator gives a complete shape, back included. But it builds the shape in its own canonical frame, a standard pose of its choosing, not the camera of your photo. Put the shape back into the photo and it does not line up.
A top view. The first camera, at the bottom, took the photo. Pick what we lifted from it, then swing the new camera around. Green rays land on known surface; red rays find a hole.
Illustrative 2D scene, ray-cast exactly. Both lifts are perfect copies of what each ray crossed, so the only difference is the representation. The paper's point is Sec. 5.2: a single visible layer is incomplete by construction, so a moving camera exposes regions that must be invented.
The paper names the missing ability faithful generation: rebuild the visible surface exactly, invent the hidden surfaces plausibly, and do both in the camera's own frame.
World Tracing (WT), from World Labs and the University of Illinois, does both with one tensor. For each pixel it predicts an ordered stack of 3D points along that pixel's ray. Layer 0 is the visible surface. Layers 1 to 5 are the hidden surfaces behind it, front to back.
The failure
Chapter 1
Follow one pixel's ray and record every surface it crosses, in order
Take one pixel. In a pinhole camera, that pixel looks along one straight line, its ray. A depth estimator records where the ray first meets a surface. World Tracing keeps going.
Picture the ray as a needle pushed through the scene. It enters the mug's front wall, comes out into the hollow, enters the back wall and comes out behind it. Each crossing is a hit. The ordered hits are that pixel's stack.
Drag the pixel to sweep the ray across the scene. The stack keeps the first L hits. Lower L and watch which surfaces drop out.
Illustrative top view, 64 pixels, ray-cast exactly. The paper uses L = 6 on a 504 × 504 grid (Sec. 3.2, App. B).
The paper writes the whole output as one tensor. Call it X. It has one slot for each layer, each pixel and each coordinate.
X is in R to the L by H by W by 3. X at layer ell and pixel u equals x-ell of u.
For each pixel u, walk along its ray. Write the first hit's X, Y, Z into layer 0, the second hit's into layer 1, and so on up to layer L − 1.
At the paper's 504 × 504 resolution with L = 6, X holds 6 × 504 × 504 × 3 = 4,572,288 numbers. A depth map of the same image holds 254,016.
Two things follow from this shape. Every layer is an image on the input pixel grid, so each pixel and its points stay tied together; the paper calls this pixel-aligned. And the points are in camera space, measured from the camera, so the shape keeps the photo's pose.
Why X, Y, Z and not depth? Depth needs the camera's intrinsics, its focal length and image centre, to become points. The paper tried depth plus predicted intrinsics. A small focal-length error warps the whole shape at once, so direct XYZ gave more plausible shapes (App. F.2).
The failure
Chapter 2
Turn a sparse stack into a dense target by repeating the last real hit
Most rays hit fewer than six surfaces. A ray that grazes the mug's edge may cross two. A ray that misses hits nothing. So the deep layers are mostly empty.
Table 5 measures how empty. On object renderings, 8.14% of pixels hold a layer-0 hit. Layer 5 holds 0.60%, more than 13 times fewer.
The obvious design predicts two things per layer: the XYZ of the hit, and a validity mask, a yes or no for "this layer exists here". LaRI, the closest earlier method, does this. It breaks in two ways.
Each column is one ray across the scene; each row is one layer. Pick a target design, then drag the ray picker to read one column.
The grid is the toy scene of Chapter 1 on 24 rays. The bars are Table 5: mean valid share per layer over full object renderings, background included. "Always invalid" is right on 100% minus that share.
First, imbalance. If 99.4% of layer-5 pixels are empty, a mask head that always says "invalid" is 99.4% right, and deep surfaces vanish. Second, conflict. In early joint runs, the XYZ gradients and the mask gradients pointed in unrelated or opposite directions. Their cosine similarity was −0.19 at 500 iterations (Sec. 4.3).
WT removes the mask. If a ray has no ℓ-th hit, the target repeats its last real hit.
x-ell of u takes the value of x-ell-prime of u, where ell-prime is the largest k below ell for which x-k of u is valid.
Walk down the stack of pixel u. When layer ell is empty, copy the point from the nearest real layer above it, ell-prime. A ray that ends early ends in repeated points.
A ray with hits at depths 26.0, 26.6 and 33.4 cm, and nothing more, gets the target 26.0, 26.6, 33.4, 33.4, 33.4, 33.4. Three real hits and three copies: the point cloud is the same.
The copies add no new geometry, so the shape is unchanged. But every valid ray now supervises every layer. And "this ray has ended" is said with a position, not a class: the deep layers collapse onto the last surface.
Pixels outside the object get the opposite treatment. The alpha channel of the input marks them invalid. WT replaces their input geometry with fresh noise, and the loss ignores them.
x-t-net at ell, u equals A of u times x-t at ell, u, plus one minus A of u, times epsilon at ell, u.
Where A of u is 1, pass the noisy geometry through. Where it is 0, throw the geometry away and feed pure noise epsilon. The network learns that pure noise at a pixel means "ignore this pixel".
On the mug, A = 1: the input is 1 × xt + 0 × ε = xt. On the desk behind it, A = 0: the input is 0 × xt + 1 × ε = ε, pure noise, at all 6 layers.
The failure
Chapter 3
Normalize the coordinates so one network predicts both, and keep the layers in order
A mug spans 10 cm. A room spans 10 m, and a street far more. A network trained on raw metres sees tiny numbers for objects and huge ones for scenes. Diffusion also expects the clean signal and the noise to be of similar size.
So WT trains in a normalized frame and maps back at the end. Both maps can be undone exactly. Objects and moving objects use a z-score, with statistics of the whole training set.
x-tilde equals x minus mu, over sigma.
Subtract the corpus mean mu from each coordinate x, then divide by the spread sigma. X, Y and Z each have their own mu and sigma.
With made-up statistics: if Z has mu = 2.0 m and sigma = 0.5 m, a point at Z = 2.6 m becomes (2.6 − 2.0) / 0.5 = 1.2.
Scenes vary too much for one global mean: one photo shows a drawer, the next a street. So each scene sample gets its own scale m, the median valid depth over its whole stack, and then a logarithm.
z-tilde equals the natural log of z over m. x-tilde equals the sign of x times the natural log of one plus the absolute value of x over m.
Divide the depth z by the scene's median m, then take the log. For x and y, add 1 inside the log so the image centre stays at 0, and keep each sign.
In a room with m = 1.5 m, a chair at 1.2 m maps to ln(0.8) = −0.22 and the wall at 3 m to ln(2) = 0.69. In a street with m = 6 m, a car at 45 m maps to ln(7.5) = 2.01.
One ray's six layers, in raw metres (top) and normalized (bottom). Drag the scene size: the raw dots fly, the normalized ones stay. Then break the order.
Illustrative ray: scene layers sit at fixed ratios of m; the object's depths and its z-score statistics are made up. The penalty is Eq. 8 for this one pixel, weighted by the paper's λmono = 0.1 (App. A).
Both maps rise with depth: a farther point always gets a larger value. That matters for one extra loss term, which keeps the layers in front-to-back order.
L-mono equals one over L minus one, times the sum over ell from zero to L minus two, of the average over pixels u of relu of z-ell of u minus z-ell-plus-one of u, squared.
For each pair of neighbouring layers, check whether layer ell lies behind layer ell plus one. If it does, square the overshoot. Average over pixels and pairs. Correct order costs nothing.
With made-up values: layer 2 at 1.30 and layer 3 at 1.25 give relu(0.05)2 = 0.0025. Equal layers, as filling makes them, give relu(0)2 = 0.
The full loss is the flow loss of Chapter 4 plus 0.1 × Lmono. The paper found that it steadies early training without measurably changing the final quality (App. A).
The failure
Chapter 4
Train a flow on raw XYZ, and see why sampling beats regression for hidden surfaces
The back of the mug is not in the photo. It could be plain, or a handle could sit there. A model that gives one answer must pick. A model trained on squared error picks the average: a ghost surface halfway between.
Flow matching avoids that. It learns to turn noise into data in small steps. Each run starts from different noise and lands on one plausible answer, not on the average of all of them.
Training blends the clean target with noise. Call the normalized, filled stack x0, a noise sample x1, and a time t between 0 and 1.
x-t equals one minus t times x-zero, plus t times x-one.
Slide from the clean stack x-zero toward the noise x-one by the amount t. At t = 0.25 the stack is three quarters target and one quarter noise.
One coordinate, made up: x0 = 0.8, x1 = −1.0, t = 0.25. Then xt = 0.75 × 0.8 + 0.25 × (−1.0) = 0.35.
The network Fθ sees the noisy stack, the time and the image features. It predicts the clean stack directly, an x0-prediction. It works on the XYZ values themselves, not on a compressed latent learned by a separate autoencoder.
L-F-M equals the average, over x-zero, x-one and t, of the squared length of A times, element by element, F-theta of x-t-net, t and f-I, minus x-zero.
Show the network a noisy stack. Subtract the true x-zero from its guess. Zero the errors outside the object with A, square them, add them up and average.
With made-up values at one valid pixel: guess 0.70, target 0.80, so (0.70 − 0.80)2 = 0.01. The same error at an invalid pixel has A = 0 and costs 0.
At inference the guess sets a velocity. The sampler walks from pure noise at t = 1 to t = 0 in 20 steps.
v-theta equals x-t minus F-theta of x-t-net, t and f-I, all over t.
Take the gap from the clean guess to the current stack x-t, and divide by t. Step against it: the new x-t is the old one minus the step size times v-theta. Repeat 20 times.
With made-up values: xt = 0.6, guess 0.2, t = 0.5, so v = (0.6 − 0.2) / 0.5 = 0.8. A step of 0.05 moves xt to 0.6 − 0.05 × 0.8 = 0.56.
Time runs left to right, from noise to clean. The visible layer has one answer; the hidden layer has two. Press Sample, then change the number of steps, and try 1.
Illustrative. The two hidden depths are made up (a plain back or a handle, 50/50). The denoiser is the exact average-of-answers that the endpoint loss trains toward, integrated with the paper's velocity rule. The paper's default is 20 steps; benchmarks report the best of 8 seeds (Sec. 4.1).
Try one step. At t = 1 the input is pure noise, so the best guess is the average of all answers, and one step lands exactly there. More steps let each sample commit to one surface. This is the paper's case against regression: it "tends to average plausible completions" (App. E.1).
The failure
Chapter 5
Cut the token grid three ways so layers stay ordered and the cost stays sane
Follow the data first. A frozen MoGe ViT-L encoder, a vision transformer trained for geometry from one image and built on DINOv2, turns the 504 × 504 photo into features. Only a projection of its last four blocks trains.
The noisy stack is cut into 14 × 14 patches, one token per patch per layer. That gives 36 patches per side, P = 1,296 per layer, and 7,776 tokens in all. At each token, the noisy geometry joins the image feature of the same patch, and a linear layer projects the pair to width 1,536. Image and geometry stay in register through all 48 blocks.
Rows are layers, columns are patches. Pick a shape, then tap a token to see which tokens it reads. Switch the layer embedding off to see what attention cannot tell apart.
The grid is a toy row of patches. The pair counts are for the paper's sizes, P = 1,296 and L = 6, per head per block, for one image (Sec. 3.2, App. B).
Full attention over 7,776 tokens compares 60.5 million pairs. WT cycles through three shapes. Layer-wise attention treats each layer as an image: 6 × 1,2962 = 10.1 million pairs. Ray-wise attention lets the 6 tokens of one patch read each other: 1,296 × 36 = 46,656 pairs. Global attention pays the full 60.5 million for object- and scene-level context.
The ray axis is the new part. VGGT alternates frame and global attention across views; WT adds a direct path between the layers of one ray. The paper calls it "a key reason that deeper layers do not drift away from the visible surface" (Sec. 3.2).
A token must also know its layer. Without that, attention cannot tell layers 1 to 5 apart: a permutation symmetry. WT breaks it with FiLM, feature-wise linear modulation.
h becomes gamma-ell times h, element by element, plus beta-ell.
Look up layer ell's embedding. An MLP turns it into one scale and one shift per channel. Multiply each channel of h by its scale gamma-ell, then add its shift beta-ell.
One channel, made up: h = 0.5, γ2 = 1.2, β2 = −0.1 gives 1.2 × 0.5 − 0.1 = 0.5. In layer 4, with γ4 = 0.8 and β4 = 0.3, the same h becomes 0.7.
The diffusion time t enters through standard AdaLN modulation, shared by all tokens. The model has 1.7B parameters, 1.4B of them trained. The video model WT-D adds one temporal-attention block after each global block, over clips of 16 frames.
The failure
Chapter 6
Choose how often training sees each noise level, and watch visible and hidden layers pull apart
The photo pins layer 0, so it behaves like reconstruction. Layers 1 to 5 are only loosely constrained, so they behave like generation. The training-time distribution of t decides which noise levels the model practises most, and one distribution under-serves one of the two jobs.
The standard choice is the logit-normal schedule from the Stable Diffusion 3 paper.
t equals sigma of n, where n is drawn from a normal distribution with mean zero and variance one.
Draw n from a bell curve, then squash it with sigma. Most times t land near 0.5, and few land near 0 or 1.
n = 0 gives t = 0.5; n = 1 gives t = 0.73; n = −2 gives t = 0.12. The density peaks at t = 0.5 with height 1.60, as Fig. 6 shows.
The plateaued logit-normal broadens the top. In Fig. 6 it follows the logit-normal shape up to t = 0.5, then stays flat at 1.23 all the way to t = 1. WT mixes the two half and half.
p-mix of t equals one half of p-plat of t, plus one half of p-L-N of t.
To draw a training time, flip a coin. Heads, draw t from p-plat; tails, from p-L-N.
At t = 0.5: ½ × 1.23 + ½ × 1.60 = 1.41. Near t = 1: ½ × 1.23 + ½ × 0 = 0.61. Both match Fig. 6.
Pick a schedule to train with. The curve shows how often each noise level is drawn; the bars show what Table 4 measured. Drag t to read the three densities.
Curves rebuilt from Fig. 6: the logit-normal is exact; the plateau is the logit-normal up to 0.5, flat after, normalized (peak 1.60, plateau 1.23, mixture 1.41, as plotted). The text calls the plateau a shift toward small t, but Fig. 6 draws its extra mass at large t; we draw Fig. 6. Bars are Table 4, Chamfer L2.
Training runs in two phases. Early on, each layer draws its own time: layer 0 from the plateau, deeper layers from the logit-normal. Once all layers settle, the whole stack shares one time from the mixture, as at inference.
Table 4 gives Chamfer L2 error, lower is better. The plateau scores 0.021 on layer 0 but 0.033 on layers 1 to 5. The logit-normal scores 0.023 and 0.028. The mixture scores 0.020 and 0.025, best on both, and 0.024 overall against 0.027.
The failure
Chapter 7
Render layered targets by depth peeling, and learn from one-layer depth with a single mask gate
No dataset ships with six hits per pixel. WT makes them with depth peeling, an old graphics trick. Render the scene and keep the nearest surface. Render again, ignoring everything up to that depth, and keep the next one. Repeat L times.
Each press renders one more pass. The strips below stack up as the layered target. Then switch to a single-layer photo and see which layers its loss can grade.
Illustrative scene. Peeling follows App. C; the gate is Eq. 4. Real photos with depth (ScanNet v2, MegaDepth and others) have only layer 0.
WT unprojects each peeled depth with the render intrinsics into camera-space XYZ, then forward-fills the stack. The corpus holds about 300K objects in 17M rendered views, 3D-FRONT rooms plus an internal scene set, and about 16.8K animated assets. Lighting, viewpoint and intrinsics are randomized.
Renders are synthetic. Real photos with depth exist in great numbers, but each has one layer. A layered model with a mask head has no way to use them. WT can, with one gate on the loss mask.
A of ell becomes A of ell times one minus b-single times the indicator that ell is at least one.
For a render, b-single is 0 and nothing changes. For an RGBD photo, b-single is 1, so layers 1 and deeper are multiplied by zero, and only layer 0 is graded.
RGBD photo, layer 3: A = 1 × (1 − 1 × 1) = 0. Same photo, layer 0: 1 × (1 − 1 × 0) = 1. A render, layer 3: 1 × (1 − 0 × 1) = 1.
The mix-trained scene model draws 60% of its batches from renders and 40% from 12 RGBD datasets. After 50K extra iterations, its AbsRel on ETH3D indoor drops from 0.0398 to 0.0345, 13.3% lower, and beats MoGe-2 and Pi3X at 0.0378 (Table 6). Every other table uses the render-only checkpoints.
The failure
Chapter 8
Run World Tracing on the toy scene, from photo to layered points, and switch off one idea at a time
Here is Fig. 2 on the toy scene. The photo goes through the frozen encoder. A noisy six-layer stack starts on the same pixel grid. The decoder denoises it in 20 steps, and the points settle onto every surface the rays cross.
Then switch ideas off. Keep one layer. Drop ray-wise or global attention. Swap filling for a mask head. Change the schedule. Each switch shows the failure the paper names for it.
Press Run and watch the stages light in order while the points denoise. Then change one switch and run again. Dashed outlines are the true surfaces.
The ideas
The noise schedule
Stages follow Fig. 2. The toy model is perfect apart from the breaks, and each break shows the failure the paper names. One layer stays visible only (Sec. 2). Without the ray axis, deep layers drift; without global context, hidden objects lose their extent (Sec. 3.2). A mask head collapses deep layers (App. E.1). Noise scales with Table 4; break strengths are made up.
The last stage fits the camera. The model never sees a focal length. When a pipeline needs one, WT fits a pinhole camera to layer 0, following MoGe.
Minimise, over f-x, f-y, c-x and c-y, the sum over valid pixels of the squared distance between pixel u, v and the pair f-x X over Z plus c-x, f-y Y over Z plus c-y.
Project every predicted visible point back into the image with trial values of f-x, f-y, c-x and c-y. Measure how far each lands from its own pixel. Keep the values that make the total smallest.
With made-up values: X = 0.2, Y = 0.1, Z = 2.0 m, f = 500 and c = 252. The point projects to 500 × 0.2 / 2 + 252 = 302 and 500 × 0.1 / 2 + 252 = 277. At pixel (302, 277), it adds zero error.
The failure
Chapter 9
Compare depth estimators and 3D generators on objects, rooms, video and real photos, and see what pixel alignment buys
The paper scores faithfulness, not looks. Visible surfaces get depth errors after the same per-sample scale-and-shift alignment for every method. AbsRel is the mean of |predicted − true| / true depth: 0.01 means 1% off.
Complete shapes get Chamfer distance, the mean distance from each point to the nearest point of the other cloud, both ways. They also get the F-score at a distance threshold. It combines two shares: predicted points near the truth, and true points that were covered. Generative methods, WT included, report the best of 8 seeds.
Pick a board. World Tracing's rows are warm. Watch where the depth estimators have no score at all.
All numbers are the paper's. Table 1 covers 100 held-out objects, Table 2 held-out 3D-FRONT rooms, Table 3 dynamic clips (its mean column) and Table 6 ETH3D indoor (222 frames).
Objects (Table 1): WT-O's layer 0 has AbsRel 0.0079, against 0.0138 for VGGT and 0.0141 for MoGe-2. Predicting five hidden layers does not cost visible accuracy. On complete shape, F@0.05 is 0.898, against 0.675 for SAM 3D and 0.598 for TRELLIS.2.
Rooms (Table 2): AbsRel 0.0114 against 0.0260 for Pi3X. All-layer F@0.05 is 0.8951 against 0.6671 for LaRI-scene, the only other layered method. Video (Table 3): mean CD-L2 0.0105 against 0.0162 for ActionMesh.
Pixel alignment also buys uses with no extra 3D training (Sec. 5). Scene editing: a 2D editor adds an object, WT-O lifts it, WT-S lifts the room, and both join in closed form because they share the photo's frame. Video: the layered points render along a new camera path as depth guidance, so the back side already exists. Meshes: WT's stack, voxelized, replaces TRELLIS.2's first stage, and F@0.05 rises from 0.598 to 0.808.
The failure
Chapter 10
Keep the numbers, the core as code, the limits and where to go next
World Tracing turns one photo into six layers of camera-space points per pixel: the visible surface, then each hidden surface along the ray. Targets come from depth peeling, forward-filled so there is no mask head. A flow-matching transformer over a frozen MoGe encoder denoises normalized XYZ in 20 steps. Its attention runs within layers, along rays and globally, and its noise schedule mixes two distributions for two kinds of layer.
| Result | World Tracing | Against | Source |
|---|---|---|---|
| Visible AbsRel, objects | 0.0079 | 0.0138 VGGT, 0.0141 MoGe-2, 0.0198 LaRI | Table 1 |
| Complete F@0.05 / F@0.01, objects | 0.898 / 0.549 | 0.675 / 0.203 SAM 3D; 0.598 / 0.204 TRELLIS.2 | Table 1 |
| TRELLIS hybrid F@0.05 | 0.808 | 0.677 ReconViaGen and LaS-Comp | Table 1 |
| Visible AbsRel, 3D-FRONT rooms | 0.0114 | 0.0260 Pi3X, 0.0269 MoGe-2 | Table 2 |
| All-layer F@0.05, rooms | 0.8951 | 0.6671 LaRI-scene | Table 2 |
| Mean CD-L2, video | 0.0105 | 0.0162 ActionMesh, 0.0381 SS4D | Table 3 |
| Schedule, CD-L2 layer 0 / 1–5 | 0.020 / 0.025 | 0.021 / 0.033 plateau; 0.023 / 0.028 logit-normal | Table 4 |
| Valid share, layer 0 / layer 5 | 8.14% / 0.60% | why a mask head collapses | Table 5 |
| Model and training | 1.7B (1.4B trained) | 504 × 504, L = 6, 64 H100s, batch 512, 20 steps | Sec. 4.1, App. B |
python import torch, torch.nn.functional as F def forward_fill(X, valid): """Eq. 2. X: (L,H,W,3) peeled hits; valid: (L,H,W) bool. Empty slots copy the last real hit.""" X = X.clone() for l in range(1, X.shape[0]): X[l] = torch.where(valid[l, ..., None], X[l], X[l - 1]) # X[l-1] is already filled return X def log_median(X, alpha): """Eq. 6, scenes. X: (L,H,W,3) camera-space XYZ; alpha: (H,W) bool.""" m = X[..., 2][:, alpha].median() # median valid depth over the stack xy = torch.sign(X[..., :2]) * torch.log1p(X[..., :2].abs() / m) z = torch.log(X[..., 2:].clamp_min(1e-6) / m) return torch.cat([xy, z], -1), m def training_loss(net, x0, feats, alpha, b_single, lam_mono=0.1): """Eqs. 3, 4, 7, 8. x0: (B,L,H,W,3) normalized filled targets; alpha: (B,H,W).""" B, L = x0.shape[:2] t = sample_t_mixture(B).view(B, 1, 1, 1, 1) # 50/50 plateau + logit-normal x1 = torch.randn_like(x0) xt = (1 - t) * x0 + t * x1 A = alpha[:, None, :, :, None].float() # broadcast over layers and XYZ x_net = A * xt + (1 - A) * torch.randn_like(xt) # Eq. 7: noise at invalid pixels deep = (torch.arange(L) >= 1).view(1, L, 1, 1, 1).float() A = A * (1 - b_single.view(B, 1, 1, 1, 1) * deep) # Eq. 4: RGBD grades layer 0 only x0_hat = net(x_net, t.flatten(), feats) # x0-prediction l_fm = ((A * (x0_hat - x0)) ** 2).sum() / A.sum().clamp_min(1) z = x0_hat[..., 2] l_mono = F.relu(z[:, :-1] - z[:, 1:]).pow(2).mean() # Eq. 8: front-to-back order return l_fm + lam_mono * l_mono @torch.no_grad() def sample(net, feats, alpha, shape, steps=20): """Integrate v = (x_t - x0_hat) / t from t = 1 to t = 0.""" x = torch.randn(shape) A = alpha[:, None, :, :, None].float() ts = torch.linspace(1.0, 0.0, steps + 1) for t, t_next in zip(ts[:-1], ts[1:]): x_net = A * x + (1 - A) * torch.randn_like(x) x0_hat = net(x_net, t.expand(shape[0]), feats) v = (x - x0_hat) / t x = x - (t - t_next) * v # the last step lands on x0_hat return x def attention_views(h, L, P): """The three token shapes. h: (B, L*P, D).""" B, _, D = h.shape layer = h.view(B * L, P, D) # each layer is an image ray = h.view(B, L, P, D).transpose(1, 2).reshape(B * P, L, D) # the 6 tokens of one patch glob = h # every token return layer, ray, glob
sample_t_mixture and the network are left out: the paper does not publish the plateau's formula, and WT-DiT is a 48-block DiT.
Based on "World Tracing: Generative Pixel-Aligned Geometry Beyond the Visible" by Hao Zhang, Mohamed El Banani, Jen-Hao Cheng, Paul Zhang, Yi Hua, Ben Mildenhall, Christoph Lassner, Narendra Ahuja and Gengshan Yang (World Labs and the University of Illinois Urbana-Champaign, 2026), arXiv:2606.13652. Every number on this page is from the paper or recomputed from it; the toys and their limits are labelled where they appear.
Now press Present or Teach and explain it from memory. Cover layered hits, filling, normalization, the flow loss, the three attention shapes, the schedule and mix-training. Then go back to the mug, pick the depth estimator, turn the view to 180° and say what is missing, and why.