Abstract
A major bottleneck to scaling-up training of self-driving perception systems are the human annotations required for supervision. A promising alternative is to leverage “auto-labelling" offboard perception models that are trained to automatically generate annotations from raw LiDAR point clouds at a fraction of the cost. Auto-labels are most commonly generated via a two-stage approach – first objects are detected and tracked over time, and then each object trajectory is passed to a learned refinement model to improve accuracy. Since existing refinement models are overly complex and lack advanced temporal reasoning capabilities, in this work we propose LabelFormer, a simple, efficient, and effective trajectory-level refinement approach. Our approach first encodes each frame’s observations separately, then exploits self-attention to reason about the trajectory with full temporal context, and finally decodes the refined object size and per-frame poses. Evaluation on both urban and highway datasets demonstrates that LabelFormer outperforms existing works by a large margin. Finally, we show that training on a dataset augmented with auto-labels generated by our method leads to improved downstream detection performance compared to existing methods.
Introduction
Training self-driving cars requires massive amounts of labeled data—specifically, 3D bounding boxes around every car, pedestrian, and cyclist. Human annotation is the gold standard but is prohibitively expensive and slow. To scale, researchers use "offboard perception" or "auto-labeling."
The standard auto-labeling workflow has two stages: first, a Detect-then-Track phase where a model finds objects and links them across frames to create a "coarse" trajectory; and second, a Refinement phase where a model cleans up these noisy trajectories to produce high-quality labels. Current refinement models are often "window-based," looking only at small snippets of time (e.g., 10 frames). This is computationally redundant and prevents the model from understanding the full context of an object’s motion, especially during occlusions.
The LabelFormer Architecture
LabelFormer is a transformer-based model designed to automatically refine trajectories by processing the entire object history in a single shot. This architecture avoids the complexity of sliding windows in favor of global temporal reasoning.
Per-Frame Encoder
For every frame in a trajectory, the model takes the initial noisy bounding box parameters and the LiDAR points inside that box. It uses a Multi-Layer Perceptron (MLP) for the box and a PointPillars-style CNN for the points, fusing them into a single feature vector per frame.
Cross-Frame Attention
These per-frame features are fed into a stack of Transformer self-attention blocks. This allows every frame to "talk" to every other frame, regardless of temporal distance. To handle varying trajectory lengths, the model utilizes AliBi (Attention with Linear Biases), a relative positional encoding that helps the model generalize to very long sequences.
Joint Decoding
The model decodes two primary outputs: a single, consistent object size (length and width) for the entire track, and a "pose residual" (change in x, y, and heading) for every individual frame.
Experimental Results
LabelFormer was evaluated on two distinct environments: Argoverse 2 (AV2), featuring sparse urban LiDAR data, and a Highway Dataset featuring dense LiDAR data from high-speed scenarios.
Accuracy and Efficiency
LabelFormer outperformed existing methods like Auto4D and 3DAL across the board. On the AV2 dataset, it achieved a Mean IoU of 70.18%, compared to 67.92% for the best baseline. The gains were even more pronounced at strict thresholds; at a 0.8 IoU threshold, LabelFormer improved recall by nearly 7-8% over previous methods. Furthermore, by avoiding redundant feature extraction, LabelFormer was 2.7x faster than its closest competitor on the Highway dataset.
Downstream Impact
The authors demonstrated a "virtuous cycle" of auto-labeling: by using LabelFormer to generate labels for a new, unlabeled dataset and then training a standard detector on those labels, the resulting detector performed better than one trained on human labels alone, showing a 3% gain in Average Precision (AP) at high overlap thresholds.
Conclusion
LabelFormer provides a simple and efficient end-to-end trainable network that handles trajectory refinement naturally by leveraging full temporal context. While it significantly improves localization, it currently cannot correct discrete tracking errors, such as missed objects or ID swaps from the first stage. Future work may explore uncertainty estimation or paradigms capable of recovering from these discrete errors.
Summary updated