Abstract
Semantic segmentation of 3D meshes remains a challenging task due to the irregular and non-sequential nature of mesh topology. While Transformers have revolutionized sequence and image processing, their application to 3D graphs is often hindered by inadequate positional encodings and the lack of local geometric context. This paper introduces MeT (Mesh Transformer), a novel architecture that utilizes Laplacian eigenvectors for positional encoding and a two-stream "triangle-cluster" attention mechanism. MeT achieves state-of-the-art performance across several benchmarks, including Shape COSEG, the Human Segmentation Dataset, and ShapeNet, demonstrating the efficacy of combining global topological awareness with localized geometric reasoning.
Introduction
Assigning semantic labels to individual faces of a 3D mesh—such as identifying the "arm" of a human model or the "seat" of a chair—is a fundamental problem in computer vision. Unlike 2D images, which are structured as regular grids of pixels, 3D meshes are irregular graphs composed of vertices, edges, and faces.
Traditional Convolutional Neural Networks (CNNs) often struggle with this irregularity. While Graph Transformers have been proposed as an alternative, they face three primary hurdles in the context of 3D meshes:
- Positional Encoding: Standard sinusoidal encodings are designed for linear sequences and do not capture the complex topology of a 3D shape.
- Locality vs. Globality: Transformers are inherently global, yet semantic segmentation requires a granular understanding of local surface geometry.
- Sparsity: Meshes are sparse structures; treating them as fully connected point sets is computationally prohibitive and ignores the inherent connectivity of the shape.
MeT addresses these challenges by treating the mesh as a dual graph and introducing a hierarchical attention mechanism that balances local and global features.
Methodology
MeT represents the mesh as a dual graph where triangles serve as nodes and shared edges define the connections. The architecture is built upon three core innovations:
Laplacian Positional Encoding
To provide the Transformer with a sense of "where" a triangle is located within the overall shape, MeT employs the eigenvectors of the mesh's Laplacian matrix. Unlike raw 3D coordinates, these eigenvectors serve as a topological coordinate system. They are invariant to rotation and scaling, providing a robust inductive bias that describes the global structure of the mesh regardless of its orientation in space.
Two-Stream Architecture
The model processes geometric information through two parallel streams:
- Triangle Stream: This stream focuses on high-resolution, local features such as face normals and coordinates.
- Cluster Stream: Using the Ward method, triangles are grouped into clusters representing larger structural or anatomical parts. This stream allows the model to reason about the object at a higher level of abstraction.
Masked and Cross-Attention
To maintain local context, the Triangle Self-Attention is constrained by an adjacency mask, ensuring that triangles only attend to their immediate neighbors. To integrate global context, Cross-Attention layers allow the triangle stream to interact with the cluster stream. This enables the network to determine how a specific local patch (e.g., a small group of triangles) fits into a larger functional component (e.g., a chair leg).
Experimental Results
MeT was evaluated on three major 3D segmentation benchmarks, consistently outperforming previous state-of-the-art (SOTA) methods like MeshCNN and MeshWalker.
Benchmark Performance
- Shape COSEG: The model achieved near-perfect results, with 99.8% accuracy on Chairs, 98.9% on Vases, and 99.3% on Tele-Aliens.
- Human Segmentation Dataset: MeT reached 93.6% accuracy, a significant improvement over the previous SOTA of 92.7%.
- ShapeNet: The model achieved an accuracy of 94.2% across diverse object categories.
Ablation Studies
The importance of the hierarchical approach was confirmed through ablation testing. Removing the cluster modules resulted in a 3.6 percentage point drop in performance. This suggests that the ability to reason about part-level structures is essential for accurate face-level labeling.
Discussion and Limitations
While MeT sets a new standard for mesh segmentation, it is not without limitations. The current implementation requires a preprocessing step to simplify meshes to approximately 1,200 vertices (2,400 triangles). While this is standard for research benchmarks, industrial applications involving high-fidelity meshes would require further optimization or the development of a multi-scale hierarchical framework.
Additionally, the calculation of Laplacian eigenvectors introduces a one-time preprocessing cost per mesh. However, the gains in accuracy and the robustness of the topological encoding justify this overhead for most segmentation tasks.
Conclusion
MeT demonstrates that the "graph-ness" of a 3D mesh is a critical feature that can be effectively harnessed by Transformer architectures. By combining Laplacian positional encodings with a dual-stream attention mechanism, MeT successfully bridges the gap between local geometric detail and global topological structure. Future work will explore the application of this architecture to broader 3D tasks, including shape generation and mesh reconstruction.
Summary updated