跳到正文
arXiv (AI + Vision + Imaging)· Amil Khan, Anantajit Subrahmanya, B. S. Manjunath·· 12 天前AI 评分20

PACK3D:让注意力按几何坐标而非存储顺序索引3D场

Geometry Matters in Packed 3D Attention

AI 导读

PACK3D是一种局部-全局注意力算子,将内存布局与注意力几何分离,在坐标定义的邻域内精确注意并通过池化摘要获取全局信息,键在池化前用轴向RoPE按token网格坐标旋转。

正文 · 原文

arXiv:2610.38694v2 Announce Type: replace Abstract: Packing a 3D field into a token sequence gives every token two indices: a coordinate in the sample and a position in memory. Raster, Morton, and block-contiguous layouts change the position and leave the coordinate alone. A positional mechanism indexed by sequence position can therefore learn the memory layout rather than the object, and accuracy on the training layout cannot reveal that it has. We introduce PACK3D, a local-global attention operator that separates memory layout from attention geometry. It attends exactly within a coordinate-defined neighborhood, sees the whole field through pooled summaries, and rotates queries and keys with axial RoPE at token-grid coordinates. Because keys are rotated before pooling, each query-to-summary logit is a weighted sum of query-key terms evaluated at the summarized tokens' displacements from the query. The operator is equivariant to any repacking that carries coordinates, neighborhoods, summary memberships, and within-block slots along with the tokens. When evaluated on Allen WTC-11 microscopy at 262k tokens, PACK3D and a matched packed-sequence RoPE control reach comparable Dice on the training layout. Repacking the same validation volumes then costs the packed control 0.048 macro Dice on average, with a loss in all six seeds, while PACK3D changes by 0.0001. On MSD Heart and Spleen, sequence indexing again changes more predictions under repacking, at little cost in Dice. PACK3D also exceeds a parameter-matched 3D U-Net by 0.009 Dice over six seeds, and a full PACK3D layer runs within 7-31% of window-attention latency while adding a global pathway. Geometry, not storage order, should index attention over packed 3D fields. Code is available at https://github.com/amilworks/Pack3D.

来源:arXiv (AI + Vision + Imaging) · arxiv.org