Abstract
3D dense captioning is an emerging task that requires detecting salient objects in a 3D point cloud and describing them with natural language, focusing heavily on spatial context. Traditional approaches using Recurrent Neural Networks (RNNs) suffer from slow training and a lack of explicit geometric reasoning. We introduce SpaCap3D, a Transformer-based architecture designed to enhance spatial awareness through an explicit "token-to-token" (T2T) spatial relation learning objective. By supervising the encoder to predict relative positions along the X, Y, and Z axes, SpaCap3D learns richer scene representations. Our experiments on the ScanRefer and ReferIt3D benchmarks demonstrate that SpaCap3D significantly outperforms previous state-of-the-art methods in both captioning accuracy and computational efficiency.
Introduction
While 2D image captioning has seen significant progress, 3D dense captioning presents unique challenges. In a 3D environment, descriptions are fundamentally tied to geometry; over 90% of captions in standard datasets involve spatial language (e.g., "the chair to the left of the round table"). Previous models like Scan2Cap relied on RNNs, which are difficult to parallelize and often fail to capture the complex long-range spatial dependencies inherent in 3D scenes. Furthermore, standard Transformer architectures do not inherently possess a mechanism to "understand" 3D spatial relationships without explicit guidance.
Methodology
SpaCap3D addresses these limitations through an encoder-decoder Transformer architecture featuring three primary innovations.
Spatiality-guided Encoder
The core of SpaCap3D is the Token-to-Token (T2T) spatial relation learning objective. Instead of relying solely on self-attention to infer relationships, we provide explicit supervision. For every pair of object tokens, the encoder is tasked with predicting their relative orientation along a local 3D coordinate system. Specifically, it predicts whether a neighboring object is in a positive, negative, or neutral direction along the X, Y, and Z axes. This auxiliary task forces the model to learn a geometrically grounded representation of the scene.
Object-centric Decoder
Unlike standard decoders that generate a single global description, dense captioning requires a unique sentence for every detected object. SpaCap3D employs a "target-aware mask" within the decoder. This allows the model to focus its attention on a specific "vision token" representing the target object while still incorporating necessary context from the surrounding environment to generate accurate relational descriptions.
Learnable Positional Encoding
To preserve global spatial context, the model utilizes learnable positional encodings. Rather than using fixed sinusoidal functions, SpaCap3D projects the "vote center" coordinates—provided by the VoteNet detection backbone—into the feature space. This ensures that the Transformer is aware of each object's absolute position within the 3D scan.
Experimental Results
The model was evaluated on the ScanRefer and ReferIt3D (Nr3D) datasets, both of which are based on the ScanNet collection of indoor 3D scans.
Performance Gains
SpaCap3D established a new state-of-the-art across both benchmarks:
- ScanRefer: Achieved a 4.94% improvement in CIDEr score over the Scan2Cap baseline.
- ReferIt3D: Demonstrated a more substantial 9.61% improvement in CIDEr score.
- Detection Accuracy: The model also showed improved [email protected] scores, suggesting that better spatial language modeling reciprocally benefits the underlying object detection task.
Efficiency and Quality
Beyond accuracy, SpaCap3D offers significant practical advantages. The parallel nature of the Transformer architecture allows for inference speeds approximately 5x faster than RNN-based models. Qualitative analysis shows that SpaCap3D generates more precise spatial descriptions, correctly identifying relative positions where previous models often defaulted to generic or incorrect spatial terms.
Conclusion
SpaCap3D demonstrates that explicit spatial supervision is key to mastering 3D dense captioning. By integrating a T2T learning objective into a Transformer framework, the model achieves a deeper understanding of 3D geometry. While currently focused on indoor environments with coarse directional modeling, future work may extend these principles to more complex outdoor scenes and finer-grained geometric relations.
Summary updated