几何结构在 3D 紧凑注意力中至关重要:PACK3D 提出局部-全局注意力算子
Geometry Matters in Packed 3D Attention
AI 导读
论文提出 PACK3D,一种将内存布局与注意力几何分离的局部-全局注意力算子,用真实 token 网格坐标上的轴向 RoPE 索引交互,并只把远距离上下文压缩为 3D 块摘要。
正文 · 原文
Abstract:Packing a 3D volume into a token sequence is not merely long-sequence modeling. Once the volume is packed, sequence order no longer encodes the geometry of the sample---so a positional mechanism indexed by sequence position can learn the memory layout rather than the object. This is a general failure mode for attention over packed geometric data. We introduce PACK3D, a local-global attention operator that separates memory layout from attention geometry. PACK3D keeps local neighborhood attention exact, compresses only distant context into contiguous 3D block summaries, and indexes every query-key interaction with axial RoPE on true token-grid coordinates rather than packed positions. Because the rotation is applied before a block is summarized, the query-to-summary logit remains a weighted sum of query-relative 3D displacements; compressed global context therefore stays spatially interpretable after packing, instead of collapsing to anonymous pooled content. We measure the failure mode directly. On a controlled synthetic task---train on one packing, change only the memory order of the tokens, hold the physical labeling rule fixed---learned positional embeddings and packed-sequence RoPE solve the training layout perfectly yet collapse under Morton, block-contiguous, and random repacking, while axial grid-coordinate RoPE stays exact throughout. The same coordinate system carries to real data: on Allen WTC-11 hiPSC microscopy, PACK3D improves over a parameter-matched 3D U-Net on the 15-structure joint task and over a matched learned-position local-global baseline, with controls isolating the coordinate system, not encoder capacity, as the source of the gain. A fused Triton implementation matches windowed-attention latency at 65k tokens while supplying the long-range context windowing cannot---so the operator is not only correct but trainable at scale.
| Comments: | Accepted to NeurIPS 2026 (Poster) |
| Subjects: | Computer Vision and Pattern Recognition (cs.CV); Artificial Intelligence (cs.AI); Machine Learning (cs.LG) |
| Cite as: | arXiv:2610.38694 [cs.CV] |
| (or arXiv:2610.38694v1 [cs.CV] for this version) | |
| https://doi.org/10.48550/arXiv.2610.38694 arXiv-issued DOI via DataCite |
Submission history
From: Amil Khan [view email]
[v1]
Wed, 28 Oct 2026 18:58:50 UTC (50 KB)
来源:arXiv cs.AI · arxiv.org