Geometry Matters in Packed 3D Attention
Amil Khan, Anantajit Subrahmanya, B.S. Manjunath
NeurIPS page · OpenReview · Open on the map
Category: 3D Vision & Image Restoration › Visual Geometry Transformers · Type: new method · Keywords: packed 3D attention, geometry-aware attention, axial RoPE, 3D block summaries, medical image segmentation
Areas: Model Architectures & Sequence Modeling › World Modeling Architectures › Visual Geometry Transformers; Computer Vision & 3D › Geometric Vision › Visual Geometry Transformers
Summary
Pack3D introduces a geometry-aware local-global attention operator that separates memory layout from attention geometry for packed 3D tokens, improving segmentation performance on microscopy data.
Explained to a 5-year-old
When we pack 3D pictures into a list, the order of the list can trick the computer into paying attention to the list order instead of the shape of the objects. We create a new way to let the computer look at nearby parts exactly and far parts in groups, using the real 3D positions. This helps the computer understand the shapes better. It works especially well for looking at tiny cells in medical images. The new method also makes the computer run faster.
Explained to a 5-year-old, longer
Scientists turn 3D images of cells into a long list of pieces so a computer can read them. The computer might start looking at the order of the list instead of the actual shape of the cells. This can make the computer understand the wrong things. To fix this, we give the computer a special way to look at nearby pieces exactly as they are. For pieces that are far away, we group them into blocks that keep the 3D positions. The computer uses the real 3D coordinates to decide which blocks to pay attention to, not just the list order. This helps the computer see the shapes correctly. It works especially well for tiny cells in medical images. The new method also makes the computer faster because it uses less memory and runs both forward and backward passes together. It also includes a test that shows the problem clearly when the list order changes. All of these improvements make the computer more reliable for studying cells.
For a technical reader
The paper addresses a known issue where attention over packed 3D tokens can mistakenly learn the packing order instead of geometry. It proposes a local-global attention operator that preserves exact local neighborhoods, compresses distant context into 3D block summaries, and indexes attention using axial RoPE on true 3D grid coordinates. This design keeps spatial interpretability after packing and improves segmentation performance on microscopy datasets. The fused forward/backward implementation also reduces inference latency compared to dense SDPA.
Problem
When 3D volumes are packed into tokens for attention, sequence-index positional encodings can cause attention to learn the memory layout rather than the underlying geometry, leading to degraded performance.
Method
The approach uses a geometry-aware local-global attention operator that keeps local neighborhood attention exact, compresses distant context into contiguous 3D block summaries, and indexes attention with axial RoPE on true 3D token-grid coordinates rather than packed sequence positions. By applying RoPE before block compression, each query interacts with a geometry-aware mixture of block tokens, preserving spatial interpretability after packing. The implementation fuses forward and backward passes for efficiency.
Results
The approach improves matched learned-position local-global attention by 0.0978 best macro Dice and 0.1248 final macro Dice at 262k tokens and depth 8 on the hiPSC microscopy domain, and also outperforms a parameter-matched TokenGrid 3D U-Net on both best and final macro Dice in the Allen-15 joint comparison. Inference-time ablations show the model uses its compressed summaries and the fused implementation achieves 6.49× lower latency than dense SDPA at 65k tokens.
Contributions
The paper identifies a failure mode where sequence-index positional mechanisms learn memory layout instead of geometry for packed 3D data, and proposes a geometry-aware attention operator that separates layout from geometry, using axial RoPE on true 3D coordinates and block summaries. It also provides a synthetic repacking benchmark to expose the failure mode and demonstrates consistent improvements on microscopy segmentation tasks.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction