Lecture 2 · slide 7 · the convolution inside xCPE

The 3×3×3 Kernel, Channel by Channel

The sparse convolution in xCPE looks at a voxel and its 26 neighbours. Here it runs on a toy corner of a room: first with one channel, then with three (the x, y and z of the surface normal), then counted for PTv3. Next or → to step; drag the picture to turn it; click a cube.

drag to turn · click a cube
What is real and what is toy Real, as in PTv3's xCPE: a 3 × 3 × 3 kernel with 27 offsets, one C × C weight matrix per offset, sums over the occupied neighbours only, an output only at occupied voxels (a submanifold sparse convolution), and the counts of step 5 (channels 32 to 512; 2, 2, 2, 6, 2 blocks in the encoder and 2 per decoder stage, as in the released code). After the convolution xCPE applies a linear layer and a LayerNorm and adds its input back: x + LN(Linear(Conv(x))). Toy: a 5 × 4 × 3 corner of a room instead of a whole scan; 1 or 3 input channels and 2 output channels instead of 32 to 512; weights −1, 0, +1 picked by hand so every sum can be done in your head. Real weights are learned, and each output channel also has a bias.