Manuscript Offprint

arXiv:2610.09723

MeshCarve: Artisan Mesh Generation with Flow Matching in Compact Latent Spaces

Xiyu Wang, Ruocheng Wu, Yufei Wang, Zhihao Li, Lanqing Guo, Bihan Wen

Xiyu Wang 1∗^{1*}, Ruocheng Wu 2∗^{2*}, Yufei Wang 2†‡^{2\dagger\ddagger}, Zhihao Li 1,2^{1,2}, Lanqing Guo 3^{3}, Bihan Wen 1†^{1\dagger}

1^{1}Nanyang Technological University 2^{2}SparAI Inc. 3^{3}University of Texas at Austin

∗^{*}Equal contribution †^{\dagger}Corresponding authors ‡^{\ddagger}Project lead

Figure

Input point cloud

Latent Voxel Anchor

Compact Geometry Latent

Vertices

Compact Topology Latent

Artisan Mesh

MeshCarve Generation Pipeline

Figure

Figure 1: MeshCarve turns a dense point cloud into an artisan mesh with two flows on a generated anchor. The latent voxel anchor is generated with a variational autoencoder. The vertex flow then places the vertices, and the edge flow decides the connectivity between vertices. Both flows run in a spatially compressed 64364^{3} latent, drawn as the two compact cubes. Bottom: meshes generated by MeshCarve.

ABSTRACT

Prior artisan mesh generation works largely predict face tokens autoregressively, which makes inference slow. Recent methods instead flow match continuous latents built by Variational AutoEncoders (VAEs), but reconstruction quality drops significantly when geometry and topology are jointly encoded, and further when the latent space is compressed. We present MeshCarve, a flow matching method that generates entirely in compact latent spaces, generating vertex positions and edge connections separately and sidestepping the difficulty of a joint compact latent. To shorten the token sequence, we propose a hierarchical sparse transformer backbone, instantiated as VertexVAE and EdgeVAE. Instead of encoding fields over the surface voxels, both VAEs anchor on discrete vertices in their latent spaces, which drastically reduces the token sequence length, and our spatial-aware compression shortens it further without costing reconstruction. VertexVAE directly encodes vertex occupancy. For connectivity, we propose vertex-link encoding, which turns arbitrary connectivity between vertices into fixed-length continuous per-vertex embeddings and recovers complex artistic topology faithfully. MeshCarve combines these VAEs with an anchor generator and flow matches on the shortened token sequences. It shows advantages over state-of-the-art autoregressive and flow matching methods on Objaverse and generalizes to Toys4K. To the best of our knowledge, it is among the first artisan mesh generation methods whose every generative stage runs in a spatially compressed latent, with a token sequence only a fraction of the most compressed previous autoregressive and flow matching works.

1 INTRODUCTION

3D mesh models are widely used as digital representations of 3D shapes. They are used in applications such as video games, visual effects, animation, and virtual reality. In practice, artisan meshes handcrafted by human artists with well-structured topology are particularly valuable: their compact geometry supports efficient rendering, while their carefully designed topology facilitates downstream tasks such as editing, deformation, and texture mapping. Hence, generating meshes with artistic geometry and topology is a central problem for 3D content creation (Siddiqui et al., 2024; Chen et al., 2025b; Weng et al., 2025; Zhao et al., 2025; 2026; Li et al., 2026b).

Many works model mesh generation as autoregressive generation of face tokens with transformers. Faces are tokenized and predicted one by one, starting from vertex-coordinate tokens (Nash et al., 2020; Siddiqui et al., 2024) and progressing through increasingly compact tokenizations that share vertices across adjacent faces (Chen et al., 2025c), walk edges (Tang et al., 2025), or index blocks and patches (Weng et al., 2025; Zhao et al., 2025). These efforts have greatly reduced the token budget for a given mesh, and the most recent methods reach one token per face (Wang et al., 2026a). Diffusion and flow matching methods (Alliegro et al., 2023; He et al., 2025; Shen et al., 2024) show greater potential, as they sidestep serialized generation, which is slow by nature. Among them, two recent works anchor the latent to the sparse structure of the mesh, one token per surface voxel (Zhao et al., 2026) or per vertex (Li et al., 2026b), and reach quality competitive with autoregressive generation. Both carry geometry and topology in one latent, and neither compresses it spatially. The surface-anchored latent keeps every surface voxel, and the vertex-anchored one reports a large reconstruction loss when its tokens are spatially down-sampled. The flow transformer therefore attends over a sequence that grows with the mesh, and its cost grows quadratically with it. We ask whether flow matching can instead run entirely in a spatially compressed latent. The token budget would then grow only sublinearly as the meshes size up.

The surface-anchored and the vertex-anchored latent each have further limitations that motivate our design. First, both jointly encode geometry and topology in a shared latent representation. Echoing the known limitations of shared latent spaces in multimodal VAEs (Daunhawer et al., 2022; Javaloy et al., 2022), our preliminary experiments show that such joint encoding substantially degrades the reconstruction quality of prior work (Zhao et al., 2026). Second, neither representation in its existing form is well suited for further compression. A surface-anchored latent assigns tokens to every surface voxel, even though surface voxels are several times more numerous than vertex-containing voxels. In existing vertex-anchored designs, topology is represented using a fixed-length ordered list of neighbors for each vertex, making the representation sensitive to neighbor ordering and imposing an upper bound on vertex degree. Consequently, the former contains substantial spatial redundancy, whereas the latter cannot merge vertex tokens without risking the loss of essential connectivity information. Importantly, this limitation arises from how topology is represented at the vertices, rather than from vertex anchoring itself.

MeshCarve addresses each of these limitations. Given an input point cloud, it first generates the coarse vertex occupancy with a VAE in a single forward pass and then generates vertex positions and edge connections sequentially through flow matching, each in its own spatially compressed latent space. These latent spaces are learned by VertexVAE and EdgeVAE, respectively, which use the same hierarchical sparse transformer VAE architecture built around a redesigned vertex-anchored representation. The architecture compresses the latents by merging the eight children of each voxel through a learned projection, allowing the token count to adapt to the local vertex density. For connectivity, EdgeVAE uses vertex-link encoding to embed the links from each vertex to its neighbors into a fixed-width, order-invariant representation, from which its decoder recovers edges through classification. Recent and concurrent works (Wang et al., 2026b; Long et al., 2026) also separate geometry from topology. MeshCarve further compresses both latents, preserving the reconstruction benefit of separation while shortening both generative sequences. Evaluated against

Table 1: Tokens per triangle face, lower is a shorter sequence for the generative transformer. Target: G = geometry, T = topology, joint = one latent for both. Two-stage methods list both stages, and the two stages of MeshCarve share the same anchor and hence one value.

AutoregressiveDiffusion / Flow Matching
MethodTokens / faceMethodTokenTargetTokens / face
MeshAnything (Chen et al., 2025b)9LATO (Zhao et al., 2026)coarse surface voxeljoint6.5
MeshGPT (Siddiqui et al., 2024)6LATO.2 (Long et al., 2026)coarse surface voxel / vertexG+T0.88 / 0.32
EdgeRunner (Tang et al., 2025)4.2MeshFlow (Li et al., 2026b)vertexjoint0.52
MeshAnything V2 (Chen et al., 2025c)4.1Nexus (Wang et al., 2026b)vertexG+T0.79 / 0.52
DeepMesh (Zhao et al., 2025)2.5MeshCraft (He et al., 2025)facejoint1.0
BPT (Weng et al., 2025)2.3MeshCarve (Ours)coarse vertex voxelG+T0.13
TreeMeshGPT (Lionar et al., 2025)2.0
FACE (Wang et al., 2026a)1.0

artist references, MeshCarve shows advantages over prior state-of-the-art methods on Objaverse and generalizes to Toys4K.

In sum, our contributions are threefold:

  • We propose MeshCarve, which samples the coarse vertex occupancy with a VAE in one forward pass and then flow matches vertex positioning and edge connection in turn, each in its own spatially compressed latent.

  • We propose a hierarchical sparse transformer VAE backbone with spatial-aware compression, instantiated as the VertexVAE and the EdgeVAE, and the vertex-link encoding, which turns arbitrary connectivity into a fixed-length, order-free per-vertex embedding.

  • The latent holds 0.13 tokens per face on average, the shortest among the compared methods. That budget affords a larger flow transformer, and MeshCarve shows advantages over previous state-of-the-art methods on Objaverse and generalizes to Toys4K.

References (48)