Abstract
Recent advancements in 3D mesh generation have increasingly adopted the "next-coordinate prediction" paradigm, treating geometric data as sequences similar to natural language. However, this approach faces significant challenges regarding sequence redundancy and the lack of efficient evaluation metrics for tokenization strategies. This paper introduces FreeMesh, a framework featuring Per-Token-Mesh-Entropy (PTME) and Rearrange & Merge Coordinates (RMC). PTME provides a training-free metric to evaluate tokenizer performance, while RMC offers a plug-and-play compression technique. Our method achieves a state-of-the-art compression ratio of 21.2% and improves geometric accuracy by nearly 38%, enabling the generation of high-complexity 3D models with superior topological integrity.
1. Introduction
State-of-the-art 3D mesh generation currently relies on flattening complex geometric structures into 1D sequences of numbers, which are then processed by Transformer-based models. While effective, this "tokenization" process suffers from two primary hurdles. First, there is an "Evaluation Blindness"; researchers lack a theoretical method to measure tokenizer quality without the prohibitive cost of training large-scale models. Second, standard tokenizers produce highly redundant, long sequences that limit the complexity of meshes—specifically the face count—that a model can generate within fixed memory constraints.
2. Methodology
FreeMesh addresses these limitations through two core innovations designed to make mesh sequences leaner and more informative.
2.1 Per-Token-Mesh-Entropy (PTME)
PTME is a novel mathematical metric based on Shannon entropy designed to measure the "information density" of a mesh sequence. By calculating the product of average information entropy and the compression rate, PTME identifies sequences that are both compact and geometrically coherent. Unlike traditional evaluation methods, PTME can be calculated prior to training, serving as an efficient "litmus test" for new tokenization strategies and reducing the computational overhead of model development.
2.2 Rearrange & Merge Coordinates (RMC)
While sub-word tokenization methods like Byte-Pair Encoding (BPE) are standard in NLP, they often fail in 3D contexts due to a lack of "cross-axis perception." Naive merging of adjacent numbers can disrupt the spatial relationships between X, Y, and Z coordinates. RMC solves this through a two-step process:
- Rearrange (RAC): Coordinates are grouped into 9-character units representing the three vertices of a face. This grouping ensures that spatial patterns are preserved before any merging occurs.
- Merge: Utilizing the
SentencePiecealgorithm, RMC identifies and merges frequent geometric patterns into single tokens. This transforms common geometric "phrases" into individual "words," significantly shortening the sequence length without losing spatial context.
3. Experimental Setup
The researchers utilized a comprehensive dataset of approximately 1 million 3D meshes for training and evaluation. This corpus includes data from ShapeNetV2, 3D-FUTURE, Objaverse, and Objaverse-XL. To test the model's scalability, meshes were sampled across various complexity levels, ranging from 500 to 4,000 faces.
4. Key Results and Insights
FreeMesh was benchmarked against leading baselines, including MeshXL, MeshAnything V2, and Edgerunner. The findings highlight several critical advantages:
- State-of-the-Art Compression: The RMC method, when integrated with the Edgerunner tokenizer, achieved a 21.2% compression ratio, the highest reported in the field.
- Enhanced Geometric Accuracy: Quantitatively, the method improved the Chamfer Distance—a key metric for geometric fidelity—by approximately 38% compared to the baseline Edgerunner model.
- Support for High Complexity: Shorter sequences allow the Transformer to generate meshes with over 4,000 faces within standard memory limits. This results in models with fewer topological defects (such as "holes") and better overall flow.
- The Importance of Rearrangement: A key insight from the study is that Transformers are robust to local coordinate rearrangement. Shuffling coordinates within a face does not impede learning but significantly enhances the efficiency of token merging.
5. Conclusion and Future Work
FreeMesh demonstrates that optimizing the way coordinates are ordered and merged can lead to substantial gains in both efficiency and quality for 3D generation. While the current study shows remarkable results at 7-bit quantization, future work will address "quantization sensitivity." As precision increases to 10-bit or higher, the frequency of identical patterns may decrease, necessitating more adaptive merging strategies. Additionally, the authors aim to extend the PTME metric to a broader range of 3D representations beyond coordinate sequences.
Summary updated