Anyview: Generalizable Indoor 3D Object Detection with Variable Frames

Zhenyu Wu, Xiuwei Xu, Ziwei Wang, Chong Xia, Linqing Zhao, Jiwen Lu, Haibin Yan

TL;DR

Anyview is a novel 3D object detection framework designed to handle a variable number of input RGB-D frames using a single model. By decoupling local geometric feature extraction from global scene reasoning and employing a dynamic token strategy, it achieves superior generalizability and accuracy across scales—from single-view snapshots to full-scene scans—without needing task-specific fine-tuning.

What Problem Does This Paper Address?

In practical robotics, such as navigation or object manipulation, an agent rarely has access to a perfectly reconstructed 3D mesh of its environment. Instead, it receives a stream of RGB-D images. Depending on the time budget or the robot's path, the number of available views varies significantly.

Existing 3D detectors typically fall into two rigid camps:

  1. Monocular detectors: Optimized for a single RGB-D frame but fail to aggregate information from multiple views.
  2. Reconstruction-based detectors: Require a dense, pre-processed point cloud from many views, which is computationally expensive and generalizes poorly if the input scale changes (e.g., trying to use a "full-scene" model on just 5 views).

The authors identify a "generalization gap": models trained on fixed-scale inputs perform poorly when deployed in dynamic, real-world scenarios where the number of input frames is unpredictable.

Comparison between previous reconstruction-based methods and the proposed Anyview approach.

Methods

Anyview introduces a transformer-based architecture designed for scale-independence. The pipeline consists of three main stages:

  1. Geometric Learner: Instead of fusing all points into one massive cloud immediately, Anyview processes each RGB-D frame independently using a shared "Geometric Learner" (based on Set Abstraction layers). This extracts scene proxies—local feature descriptors that capture geometry without being influenced by the global scene scale.
  2. Spatial Mixture & Transformer Encoder: These proxies are projected into a unified world coordinate system. A transformer encoder then facilitates interactions between these proxies. Because self-attention is naturally permutation-invariant and handles variable-length sequences, it is the perfect tool for merging an arbitrary number of views.
  3. Dynamic Token Strategy: This is a key innovation. To prevent computational explosion when many views are present, or feature "starvation" when only one view is available, Anyview adaptively adjusts the number of features ($T$) extracted per frame. It ensures the total number of tokens remains manageable while maintaining sufficient detail for sparse inputs.
The Anyview framework architecture, highlighting the per-view geometric learner and the global transformer-based detection.

To further boost robustness, the authors use Scale-independent Training techniques, including "Random View Dropping" (simulating missing data) and "Global Random Cuboid" cropping (simulating different camera distances).

Datasets

The researchers evaluated their method on the ScanNet dataset, a standard for indoor 3D scenes. To test their "variable frame" hypothesis, they derived three specific benchmarks from the raw data:

  • ScanNet-SV (Single View): A monocular benchmark similar to SUN-RGBD.
  • ScanNet-MV (Multi-View): Uses 50 sparse RGB-D frames as input, sharing ground truth with the reconstruction benchmark.
  • ScanNet-Online: A sequential input format designed to simulate real-time robot perception.

Key Insights and Ideas

  • Decoupling is Key: By extracting local geometric features before global fusion, the model learns features that are "scale-agnostic." A chair looks like a chair whether it's the only thing in the frame or one of fifty objects in a room.
  • The "Sweet Spot" for Tokens: The authors found that performance doesn't just scale linearly with the number of features. As shown in Figure 6, setting a target of roughly 2,000 total scene proxies ($N_T$) provides the best trade-off between accuracy and computational cost.
  • Reconstruction is an Idealization: The paper argues that training on perfectly reconstructed meshes (ScanNet-Rec) is too "clean." Training directly on sparse, noisy multi-view images (ScanNet-MV) actually produces more robust detectors for real-world use.
The effect of varying the total number of tokens (NT) during inference across different view counts.

Key Results

Anyview demonstrates impressive flexibility and state-of-the-art performance:

  • Superior Accuracy: On the ScanNet-MV benchmark, Anyview achieved 60.7 [email protected], significantly outperforming the transformer-based baseline 3DETR-m (54.7 mAP).
  • Cross-Scale Generalization: A single Anyview model trained on multi-view data outperformed specialized monocular models (like ImVoteNet) when tested on single-view inputs (32.7 vs 31.6 mAP).
  • Efficiency: Despite its flexibility, Anyview maintains a compact parameter count (~7.6M), comparable to standard baselines like 3DETR-m (~7.4M).

Limitations and Future Work

While Anyview handles variable frames gracefully, the paper notes that if the number of scene proxies is too small (e.g., $N_T \leq 1000$), performance can actually degrade as more views are added, likely due to excessive information loss per frame.

Future work could explore extending this framework to even larger-scale outdoor environments or integrating it with temporal modeling for smoother online detection in rapidly moving robotic systems. The current implementation relies on 50 frames as a practical upper limit; scaling beyond this might require further optimizations in the transformer's attention mechanism.

Summary updated

BibTeX
@misc{wu2023anyview,
  author = {Zhenyu Wu and Xiuwei Xu and Ziwei Wang and Chong Xia and Linqing Zhao and Jiwen Lu and Haibin Yan},
  title = {{Anyview: Generalizable Indoor 3D Object Detection with Variable Frames}},
  year = {2023},
  eprint = {2310.05346},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.05346},
}
Figure