Generative models for 3D point clouds spend much of their compute on two jobs that have nothing to do with learning. The first is deciding which noise point should travel to which data point during training. The second is finding each point's spatial neighbors inside the network at every denoising step. Current fast generators move the first job into a separate offline stage: an expensive matching computation runs once and its result is stored. They keep paying for the second job with nearest-neighbor searches, which run poorly on GPUs. Both costs grow when generated shapes are meant as cheap synthetic training data for another model. In that setting the data change on the fly, point counts vary, and generation has to run thousands of times.
This note proposes that a single operation can do both jobs. The operation sorts points along a Hilbert curve, a space-filling curve that visits every cell of a 3D grid while keeping cells that are close in space mostly close in visiting order. Sorting noise and data along the same curve and pairing them by rank gives an approximate optimal-transport pairing in $O(N \log N)$ time, with no offline stage. The same sorted order then serves as the network's notion of "neighborhood": each point looks at a fixed window of points before and after it in the sorted sequence, with no k-nearest-neighbor search and no farthest point sampling. If the resulting generator matches offline-matched flow models in sample quality, generation becomes cheap enough to run inside a downstream training loop. That would replace the generate-offline, store, and paste pipeline used for synthetic 3D pre-training data.
Core Claim
Flow matching trains a network to predict a velocity field that carries noise samples $x_0$ to data samples $x_1$ along the straight path $x_t = (1-t)x_0 + t x_1$. The training loss is $$ \mathcal{L}(\theta) = \mathbb{E}_{t,\,(x_0,x_1)\sim\pi}\,\big\| v_\theta(x_t,t) - (x_1 - x_0)\big\|^2 , $$ where $v_\theta$ is the velocity network and $\pi$ is the pairing between noise and data. For unordered point sets, $\pi$ is a permutation between two clouds of $N$ points. A good permutation produces straight, non-crossing paths that can be integrated in few steps. Computing the best permutation exactly is the bottleneck.
We propose the Hilbert pairing. Map the noise cloud into the unit cube through the per-coordinate Gaussian cumulative distribution, and map the data cloud into the unit cube through its bounding box. Then compute each point's Hilbert index $h(\cdot)$ and pair the $i$-th ranked noise point with the $i$-th ranked data point: $$ \pi_H = \operatorname{argsort}\, h(x_1) \circ \big(\operatorname{argsort}\, h(x_0)\big)^{-1}. $$ In one dimension, rank matching is the exact optimal transport map. The Hilbert curve's known locality property (spatial distance grows at most like the cube root of curve distance) makes rank matching along it a local, monotone approximation in 3D.
The second half of the claim concerns the network's input order. Paired points share a rank, so a point's position in the Hilbert order should change slowly along its trajectory. One serialization per sample, refreshed rarely or cheaply by a GPU radix sort, can then define attention windows for every step.
Two parts of this are new relative to the file. The pairing is computed per batch in $O(N\log N)$ rather than offline. The ordering used for pairing is also the ordering the network uses for context.
Relation to Prior Work
Three papers supply the motivation and set the baselines.
Not-So-Optimal Transport Flows shows that pairing quality matters for point cloud flow matching. It pre-computes an optimal-transport assignment between 100,000-point noise and data "supersets" offline, then blends it with random pairing to soften a sharp change in the velocity field at $t=0$. It reports a 40x training speedup over equivariant optimal-transport methods and 5-step generation. Its pairing is static and its point counts are fixed by the precomputed superset. We replace its offline stage with an online sort and reuse its blending idea as an ablation.
PUFM does the same for upsampling, the task of densifying sparse clouds. It solves an Earth Mover's Distance assignment offline for every training patch. Its velocity network is a PointNet++ UNet with vector self-attention, which needs neighbor search at each layer. PUFM is the direct target of our cost argument.
MFM-point shows that coarse-to-fine flow generation can avoid voxels. It does so by training separate models per scale with equal-size K-means downsampling. We note it as related but do not adopt its multi-model design.
The method for neighborhood-free context comes from NoKSR, which serializes points along Hilbert curves at several scales for surface reconstruction. On ScanNet it cuts peak training memory from 41.3 GB to 4.6 GB and latency from 1.54 s to 0.49 s relative to the kernel-based NKSR. NoKSR is purely a reconstructor and never uses the curve to pair distributions. NoKSR also constrains our design: it acknowledges that points close in 3D can land far apart at curve partition boundaries. We inherit its multi-scale fix of using shifted or multiple curves, and we expect the same weakness to appear in the pairing.
The network-side bottleneck is documented by Valsesia et al., who discuss the quadratic cost of pairwise distances in point generation. It is also documented by Gao, who reports the memory footprint of point transformers built on repeated k-nearest-neighbor queries.
The downstream application follows Pre-training with 3D Synthetic Data. That work generates about 2,400 Point-E objects offline, pastes them into ScanNetV2 rooms, pre-trains Mask3D, and fine-tunes on S3DIS Area 5. It raises AP from 48.4 to 51.3 and Beam AP from 4.3 to 25.9. Its pipeline is static: objects are generated once, and the generator never learns what the segmenter is failing on.
The multi-stage literature motivates removing stages. Kang et al. document the operational overhead of decoupled schedules, and Chen et al. document the instability of joint fine-tuning after separate pre-training.
The adversarial instability of Learnable Chamfer Distance constrains how far we push the feedback loop. We do not backpropagate segmentation loss into the generator. Instead we use segmentation errors only to decide what to generate.
Research Program
The program has three parts.
Part 1: build the coupling and measure its geometry. We implement Hilbert pairing with optional multi-curve voting: pair under several randomly shifted or rotated curves and keep the pairing with the lowest transport cost. The batch cost remains a few sorts. On ShapeNet Airplanes, Chairs and Cars at 2,048 points, we compare four pairings:
- Hilbert pairing;
- exact assignment, which is affordable here for analysis only;
- the superset pairing of Not-So-Optimal;
- random pairing.
We compare them on three properties: transport cost, how often paths cross, and the size of the velocity field's Jacobian near $t=0$, the quantity Not-So-Optimal uses to diagnose the complexity spike. This tells us where curve boundaries hurt before any generator is trained.
Part 2: build a serialization-native velocity network. We train a velocity network whose only spatial operation is windowed attention over the Hilbert order, at two or three curve resolutions as in NoKSR. It contains no k-nearest-neighbor search, farthest point sampling or set-abstraction layers. We test the rank-stability hypothesis by measuring how much each point's rank changes along trajectories. We also compare re-sorting every step with sorting once per sample. If ranks drift substantially, we re-sort per step and report the cost. The model trains in a single stage, with no offline matching. Point count is a free parameter, since sorting works for any $N$.
Part 3: use the generator as an online augmentation operator. We condition the generator on object category and train it on ShapeNet. We then call it inside Mask3D pre-training on ScanNetV2. Each iteration inserts freshly generated objects, using the placement heuristic of Otsuka et al. so that placement is not a confound. The categories to generate are chosen in proportion to the segmenter's running per-class loss. This loop has no gradients through the generator and no adversarial game. It removes the generate-store-paste stage and lets the synthetic distribution track the segmenter's weaknesses.
Baselines
The naive reference points are standard flow matching with random independent pairing, and a PointNet++-style velocity network with k-nearest-neighbor layers. These show whether pairing and serialization matter at all.
Strongest generator baseline: Not-So-Optimal Transport. This is the Not-So-Optimal Transport Flows method itself: offline superset pairing with blending coefficient $\beta$. It is the strongest competitor because it already achieves fast, few-step generation by solving exactly the pairing problem we target. We will run it on the same ShapeNet categories at the same point count with the same velocity network. This isolates pairing from architecture. We count its offline matching time in total wall-clock cost and give both methods the same tuning budget over $\beta$ and step counts. The file has no reported 1-NNA value for it ("no reported result found on Lacuna for Not-So-Optimal 1-NNA on ShapeNet"), so we reproduce it. Beating it means equal or better 1-NNA (where 50% is ideal) at 5 steps with lower total compute including preprocessing. Equal quality alone would be a modest result. The decisive win is in variable-cardinality and augmented-data training, where its superset cannot be precomputed.
Upsampling baseline: PUFM. On PUGAN and PU1K at 4x and 16x upsampling, the baseline is PUFM, which uses per-patch offline Earth Mover's assignment and a PointNet++ backbone. It reports 5 sampling steps in 0.71 s, against 1.83 s for PUDM and 7.83 s for DDPM. No Chamfer, Hausdorff or point-to-surface values are reported in the file, so we reproduce them. Beating it means matching its Chamfer and Hausdorff distances while reducing both per-step latency and the offline preprocessing cost to zero. We also run it with its EMD swapped for Hilbert pairing, to separate the two contributions.
Downstream baselines. On S3DIS Area 5 with Mask3D, the references are ScanNetV2 pre-training without synthetic data at 48.4 AP, and the offline Point-E pipeline of Pre-training with 3D Synthetic Data at 51.3 AP overall and 25.9 AP on Beam. We match the total number of inserted objects, pre-training epochs and fine-tuning schedule. We also report generator compute for each pipeline. Beating it means overall AP above 51.3 at equal or lower total compute. A copy-paste baseline (below) runs under the same insertion budget.
Ablations. These isolate the key ingredients:
- Hilbert pairing with a k-nearest-neighbor network, and random pairing with a serialized network, to separate the two halves of the claim;
- single-curve versus multi-curve pairing, to measure boundary damage;
- loss-driven versus uniform category selection;
- online versus offline generation with identical generator samples.
Why not just…?
Why not just keep the offline optimal-transport stage, since it is paid once? For unconditional ShapeNet generation at fixed size, this is a real threat. The one-time cost may be negligible, and Not-So-Optimal's matching may be higher quality than any curve approximation. We take this seriously. The ShapeNet comparison reports quality with and without preprocessing time, and we will say so plainly if Hilbert pairing loses there. The argument for sorting rests on settings where offline matching cannot exist: per-patch upsampling targets that PUFM must match one by one, variable point counts, and objects that are rotated, cropped or conditioned at training time. The PU1K and variable-cardinality experiments settle whether that flexibility is worth anything.
Why not just use random pairing and more sampling steps? Random pairing removes all matching cost. Not-So-Optimal's diagnosis of the $t=0$ complexity spike and its blending result show that pairing affects path straightness. We measure 1-NNA as a function of step count for random, Hilbert and offline pairing. If random pairing at 10 steps matches Hilbert at 5 for less total compute, the coupling half of the claim fails.
Why not just voxelize, or project to range images, and use grid convolutions? Grids remove neighbor search entirely but quantize fine structure. On CARLA, NoKSR's serialized model reaches F-score 97.4 against 93.9 for a voxel baseline (NoKSR). Range images, as used by ePointDA, only apply to single-origin LiDAR, not to ScanNet or S3DIS rooms.
Why not just copy-paste real rare-class instances, or generate offline once with class-targeted prompts? This is the most serious threat to the downstream half. Otsuka et al.'s Beam gain may come mostly from extra rare-class instances, whatever their source. The file contains no comparison against real-instance copy-paste. We therefore run two controls under identical insertion counts: copy-paste of real ScanNetV2 instances, and offline generation with the same loss-driven category schedule. If either matches online generation, the honest conclusion is that cheap generation is a cost saving, not an accuracy gain. We would then report the work as such.
Decisive Checks
The project lives or dies on four checks.
- In Part 1, Hilbert pairing must reach transport cost and $t=0$ Jacobian size close to offline pairing on ShapeNet. If boundary errors make it no better than random, the coupling idea fails early and cheaply.
- The serialized velocity network must match the k-nearest-neighbor network's 1-NNA at 5 steps while reducing per-step latency and memory. Its advantage should grow from 2,048 toward 15,000 points, the scale MFM-point reaches.
- On PU1K, Hilbert pairing must remove PUFM's offline assignment stage without raising Chamfer or Hausdorff distance.
- On S3DIS Area 5, online loss-driven generation must exceed both the 51.3 AP offline Point-E pipeline and real-instance copy-paste at equal insertion budget and reported total compute.
Passing the first three establishes a cheaper generator. Passing the fourth establishes that cheapness changes what synthetic 3D data can do.
References
- Not-So-Optimal Transport Flows for 3D Point Cloud Generation
- PUFM: Efficient Point Cloud Upsampling via Flow Matching
- MFM-point: Multi-scale Flow Matching for Point Cloud Generation
- NoKSR: Kernel-Free Neural Surface Reconstruction via Point Cloud Serialization
- Learning Localized Generative Models for 3D Point Clouds via Graph Convolution
- GridFormer: Point-Grid Transformer for Surface Reconstruction
- Pre-training with 3D Synthetic Data: Learning 3D Point Cloud Instance Segmentation from 3D Synthetic Scenes
- Decoupling Representation and Classifier for Long-Tailed Recognition
- D3Net: A Unified Speaker-Listener Architecture for 3D Dense Captioning and Visual Grounding
- Learnable Chamfer Distance for point cloud reconstruction
- ePointDA: An End-to-End Simulation-to-Real Domain Adaptation Framework for LiDAR Point Cloud Segmentation