SPAC From Dense to Sparse: Morton-Ordered Sparse Mapping for Efficient 3D Mesh Generation

Junjie Yang1, Rui Qian2, Yijiang Li3, Jinyi Xu4, Yuhao Yan5, Xinjian Yi6, Yanfeng Li7, Mingxuan Li2, Xiang Wan8, Jicong Fan9, Siqi Liu10, Ahmed Elazab11, Changmiao Wang8
11 affiliations
1University of Maryland, College Park 2Fudan University 3University of California, San Diego 4Beihang University 5Zhejiang University 6Southeast University 7Macao Polytechnic University 8Shenzhen Research Institute of Big Data 9The Chinese University of Hong Kong Shenzhen 10National Health Institute of Big Data, Shenzhen 11Tsinghua University
University of Maryland, College Park The Chinese University of Hong Kong, Shenzhen Fudan University

Abstract

Generating a mesh and describing one both require a short token sequence that preserves the shape. Dense grids spend tokens on empty space, and serializing a grid can split neighboring features apart.

Sparse Proximity Aware Compression (SPAC) encodes the region near a surface, merges recurring three-dimensional patterns, and orders the resulting tokens along a Morton curve. A single autoregressive model can then read these tokens to caption an object or predict them to generate a mesh from text.

How SPAC represents a mesh

The sparse signed distance field (SDF) encoder quantizes features close to the surface. It keeps the spatial coordinate of each leaf token so the language model can connect words to geometry in both directions.

SPAC’s shared language model describes an input treasure-chest mesh and generates a treasure-chest mesh from a text prompt.
Geometry and language share a model. A shared geometry vocabulary connects 3D understanding and text-conditioned mesh generation in one autoregressive model.

Merge spatial neighbors before serialization

3D Byte-Pair Encoding (3D-BPE) learns recurring patterns of face-adjacent tokens. Each merge records the relative offset of its parts, so the shared merge table can recover the original leaf codes and coordinates exactly. The model reads the merged tokens in Morton order for captioning. For generation, it predicts the sequence, expands the tokens, and extracts a mesh with Marching Cubes.

Face-adjacent leaf patterns are merged with offsets, serialized as macros, and later expanded into the same leaf tokens and coordinates.
Spatial compression with 3D-BPE. The same merge table supports compression and exact expansion.

Compression and generation results

With 8,192 merge rules, SPAC reduces the length of the sequence processed by the language model. The comparison counts geometry, coordinates, text, and control tokens across 43,180 text-to-3D records.

Mean reference length
−45.4%
6,873.2 → 3,753.1 tokens
Objaverse captioning
21.50
METEOR, compared with 20.91 for LEO
Text-to-3D generation
23.7
Fréchet distance, compared with 25.9 for ShapeLLM-Omni
Text prompts for a barrel, butterfly, carton, milk can, and wooden chest compared across SPAC and five text-to-3D baselines.
Text-to-3D examples. SPAC generates untextured meshes. The paper uses TRELLIS to add surface appearance to the SPAC results displayed here.

Encoder cost across resolutions

Holding the surface area and voxel-band width fixed, the sparse encoder processes a narrow band around the surface. Its measured forward cost grows approximately quadratically with input resolution.

Four charts compare forward FLOPs, inference latency, prepared-input wall time, and peak VRAM as input resolution increases.
Forward FLOPs, latency, prepared-input time, and peak memory at increasing input resolutions.

BibTeX

@unpublished{yang2026spac,
  title  = {From Dense to Sparse: Morton-Ordered Sparse Mapping for Efficient 3D Mesh Generation},
  author = {Yang, Junjie and Qian, Rui and Li, Yijiang and Xu, Jinyi and Yan, Yuhao
            and Yi, Xinjian and Li, Yanfeng and Li, Mingxuan and Wan, Xiang and Fan, Jicong
            and Liu, Siqi and Elazab, Ahmed and Wang, Changmiao},
  year   = {2026},
  note   = {Manuscript}
}