Organizations: South China University of Technology · Fudan University · University of California, San Diego · Beihang University · Zhejiang University · Southeast University · Macao Polytechnic University · Shenzhen Research Institute of Big Data · The Chinese University of Hong Kong Shenzhen · National Health Institute of Big Data, Shenzhen · Tsinghua University
Unified 3D understanding and generation require compact sequences preserving spatial structure. Dense grids yield long sequences, while serialization can separate spatial neighbors. We propose Sparse Proximity Aware Compression (SPAC), a shared sparse SDF vocabulary combining sparse encoding with reversible spatial merging. A Sparse SDF VQ-VAE quantizes near-surface features while retaining explicit coordinates, using reconstruction supervision for surface fidelity and detail. 3D Byte-Pair Encoding (3D-BPE) merges recurring face-adjacent patterns using relative offsets before serialization. Macro tokens expand exactly into leaf tokens and coordinates. After Morton serialization, a shared LLM reads geometry for captioning and predicts tokens that decode into meshes for text-conditioned generation. With fixed geometry, architecture, and band width in voxels, sparse encoder cost grows approximately quadratically with resolution. 3D-BPE reduces mean complete LLM sequence length by 45.4 percent, including coordinates, text, and control tokens. SPAC achieves strong results in both 3D captioning and text-conditioned mesh generation. Ablations show gains over leaf tokens and Morton 1D-BPE in both tasks. The project page at https://yangjj007.github.io/spac/ .
Figures & tables
Figure 1: Overview of SPAC. (1) Sparse Encoding: A trained Sparse SDF VQ-VAE converts near-surface geometry into discrete leaf tokens with explicit coordinates. (2) 3D-BPE: Reversible, offset-conditioned merges combine recurring face-adjacent patterns into macro tokens. (3) Unified Modeling: The LLM tokenizer is extended with Morton, distance, and macro tokens. After Morton serialization, a shared autoregressive LLM reads geometry tokens for understanding and predicts them for generation. (4) Reconstruction: Predicted macro tokens expand into leaf tokens, which the VQ-VAE decodes into a sparse SDF for mesh extraction with Marching Cubes.
Figure 2: Spatial compression with 3D-BPE. Subscripts M denote lookup in the shared merge table, learned offline and then fixed. The local example illustrates face-adjacent merging and exact recovery of leaf codes and coordinates. Below, SPAC predicts coordinate–macro pairs, which are expanded using the same table and decoded into a mesh.
Figure 5: Encoder efficiency across input resolutions. The top-left and top-right panels report forward FLOPs and encoder inference latency; the bottom-left and bottom-right panels report prepared-input wall time and peak inference VRAM. Results use batch size 1 and logarithmic vertical axes. SPAC ’s sparse encoder exhibits near- O(R2) scaling with low memory growth. PointLLM’s fixed 512 -group budget yields nearly constant FLOPs, while EVA01 incurs a larger constant cost. Dense FLOPs beyond the executable range are analytically extrapolated.
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
Component
Setting
Geometry tokenizer
Training geometry
50 k ShapeNet+Objaverse meshes
SDF / latent resolution
2563 / 323
Downsampling / channels
8× / Cz=16
Band widths
ηw=4.0 , ηe=0.5
Reconstruction weights
λsurf=λfeat=λctx=1
Appendix
Table 6: Model, training, and sampling settings. LLM optimization settings apply to language-model training; the tokenizer stages are described in Sec. A.2 .
Figure A1: Synthetic validation of a reference 3D-BPE implementation. (a) The 42 leaves of a synthetic three-level stepped surface, colored by leaf ID. (b) Its nine blocks after applying 128 learned rules; colors and B1–B9 identify block instances. The matched orthographic views use equal coordinate scales. The layer maps below show every occupied cell and its leaf ID or block label, with coordinates translated to a common local origin. (c) Geometry-token retention ∑iKi/∑iNi for 60 mappings per support family; translated copies are excluded from these ratios. All 5,040 encode–decode checks, including translated copies and seven rule budgets, recover the exact sparse mappings.
Figure A2: Active SDF samples for a fixed sphere. Markers show grid counts for fixed voxel half-width τ=0.5/R and fixed physical half-width τ=0.5/128 ; solid segments connect successive resolutions. Log–log slopes fitted to all nine resolutions are 2.020 and 2.987 , respectively. The curves meet at R=128 , where the two bandwidths coincide.
Figure A4: Additional 3D understanding comparisons. These are training-seen Toys4K objects. Captions are saved outputs, and Reference denotes dataset descriptions. Green/red phrases highlight supported/mismatched visible attributes.