Manuscript Offprint

arXiv:2610.27418

TokenFlow: Latent Token Rectified Flow Matching for 3D Point Cloud Generation

Linhao Wang, Dongjin Huang

Abstract

3D point clouds generation requires capturing both part-level layout and surface detail while preserving permutation equivariance. Existing latent generative models often encode an entire shape into a single vector, which limits their ability to retain part-level structure. We propose TokenFlow, a hierarchical flow matching framework that represents each shape as a set of latent tokens and couples a rectified flow over these tokens with a conditional flow over points. A bottleneck of M≪NM \ll N learnable tokens aggregates global context through cross-attention at O(NM)O(NM) cost. On ShapeNet, TokenFlow achieves the best MMD and coverage across airplane, car, and chair, while obtaining 1-NNA comparable to the strongest baselines. On ModelNet, its learned latent set reaches the best reported linear-evaluation accuracy on ModelNet10. These results show that representing a shape as a set of latent tokens, aggregated at O(NM)O(NM) cost, provides an effective representation for 3D point cloud generation.

1. Introduction

A 3D shape is more than a collection of points. Although a point cloud is represented as an unordered set of coordinates, its identity is largely determined by how parts are organized and how their surfaces are formed. A chair, for example, requires the seat, back, and legs to occupy a coherent spatial configuration, while each individual leg must still exhibit a well-defined local surface. These two requirements are fundamentally different: global structure determines where parts should be and how they relate to one another, whereas local geometry determines how those parts are realized at the point level. A useful generative model must capture both while remaining permutation-equivariant.

Point cloud generation has progressed substantially along several directions. Early GAN- and VAE-based approaches [1, 15, 27, 30, 51] directly generate point sets and optimize set distances such as Chamfer Distance (CD) and Earth Mover's Distance (EMD) [14]. Continuous normalizing flows (CNFs), including PointFlow [60], SoftFlow [26], and DPF-Net [28], instead model point clouds through continuous transformations of distributions. More recently, diffusion models [22, 35, 47, 67] have improved generation quality, while latent representations [29, 38, 47, 63] and flow matching [32, 33] have emerged as effective ways to improve the scalability and efficiency of generative modeling. Despite these advances, most existing models still treat the generation process as a single prediction problem: one representation and one generative field are responsible for both global organization and local surface formation.

This design creates a less obvious bottleneck. Consider a rectified transport path

Yt=(1−t)Y0+tX.Y_{t}=(1-t)Y_{0}+tX.

At an early time tt, the current state contains little information about the target shape; later in the trajectory, the target geometry becomes increasingly identifiable. Thus, the useful signal available for predicting the target is not uniform throughout the transport process. Global structure and local geometry are also not equally informative at the same time, and the two types of information cannot be expected to share a single representation.

The representation used by latent generative models makes this problem more pronounced. Recent approaches such as LION [47] and 3DShape2VecSet [63] avoid operating directly on all points by first mapping a shape into a latent representation. However, compressing an entire shape into a single global vector makes part-level structure difficult to preserve explicitly. A natural alternative is to retain a set of latent tokens, so that different tokens can encode different aspects of the shape while remaining permutation-invariant as a whole. The challenge is then to connect this latent representation back to N points without resorting to full point-to-point attention, whose O(N2)O(N^{2}) complexity becomes costly as the point resolution grows.

These observations suggest a simple question: where should the boundary between global organization and local geometry lie? We answer this question with TokenFlow, a hierarchical flow matching framework that places the two roles at different levels while allowing them to interact throughout the transport process. TokenFlow represents a shape as a set of M≪NM \ll N latent tokens rather than a single global code. These tokens provide a compact global state from which part-level organization can be modeled, while cross-attention connects the global representation back to individual points at O(NM)O(NM) cost.

Collectively, these components yield a generative model that disentangles shape semantics from surface geometry across different levels, while maintaining their coupling via the flow. We additionally conduct controlled experiments to isolate the effect of the representation.

Our contributions are summarized as follows:

• We introduce TokenFlow, a latent-set rectified flow framework for 3D point cloud generation that separates global shape organization from point-level detail in its representation.

• We propose context bottleneck aggregation. Placing it after point-wise feature extraction means cross-attention learns only a grouping rather than a metric, and using asymmetric query/key versus value widths keeps the O(NM)O(NM) attention map low-dimensional while the carried information stays high-dimensional.

• We evaluate TokenFlow on ShapeNet and ModelNet datasets, demonstrating superior performance compared with previous state-of-the-art methods.

References (66)