DetAny4D: Detect Anything 4D Temporally in a Streaming RGB Video

Jiawei Hou, Shenghao Zhang, Can Wang, Zheng Gu, Yonggen Ling, Taiping Zeng, Xiangyang Xue, Jingbo Zhang · DOI

Abstract

DetAny4D is an end-to-end transformer-based framework designed for 4D object detection in streaming RGB video. Traditional 3D detection methods often suffer from temporal instability ("jitter") or rely on complex, error-prone multi-stage pipelines. DetAny4D addresses these challenges by utilizing causal attention for real-time streaming and a massive new dataset, DA4D, for open-set training. The model achieves a 10-30% reduction in cross-frame variance and superior accuracy (27.48 AP3D) compared to existing state-of-the-art methods.

Introduction

While monocular 3D object detection has advanced significantly, its application to video remains problematic. Most current approaches either treat frames in isolation, leading to flickering bounding boxes, or use multi-stage pipelines (2D detection -> 3D lifting -> tracking) that are susceptible to error propagation. Furthermore, there is a lack of large-scale datasets for open-set 4D detection—detecting arbitrary objects in 3D over time.

Comparison of 3D detection paradigms: Monocular, Multi-stage 4D, and the proposed End-to-End 4D approach.

DetAny4D proposes a shift toward globally consistent, end-to-end 4D detection. By transforming predictions into a global coordinate system and utilizing temporal memory, the model learns to maintain stable object dimensions and positions even as camera perspectives change.

Methods

The DetAny4D framework is built on several key architectural innovations:

  • Foundation Model Integration: The system leverages pre-trained models like SAM and DINOv2 for semantic and geometric feature extraction, supplemented by UniDepth-V2 for metric depth priors.
  • Causal Spatiotemporal Decoder: At the heart of the model are Causal Attention Blocks (CAB). Unlike standard transformers, these blocks only attend to current and past frames, making the model suitable for real-time streaming where future data is unavailable.
  • Multi-Task Learning: The model simultaneously predicts 3D boxes, camera intrinsics, relative camera pose, and depth. This joint optimization forces the network to develop a robust internal representation of the 3D scene.
  • Geometry-Aware Embeddings: 3D space embeddings are injected into the transformer to help the model understand object motion and appearance changes relative to camera shifts.

The DA4D Dataset

To support open-set 4D detection, the authors introduced DA4D, a gargantuan dataset comprising over 280,000 sequences. It unifies 12 existing datasets (e.g., Omni3D, nuScenes) with new sequential data from the Habitat simulator (Replica, MP3D, HM3D).

The DA4D data pipeline, featuring sequence recording, global filtering, and 3D bounding box adaptation.

A critical innovation in DA4D is the GT b-box adaptation strategy. This method dynamically adjusts ground-truth boxes based on visibility. For partially observed objects, the model is trained on "tight" boxes that reflect the visible portion, preventing unfair penalties for not predicting hidden parts of an object.

Key Results

DetAny4D demonstrates significant improvements over both single-frame and multi-stage baselines:

  • Temporal Stability: The model reduces cross-frame jitter by 10% to 30% compared to state-of-the-art single-frame detectors.
  • Detection Accuracy: On the DA4D benchmark, it achieved an AP3D of 27.48, outperforming previous video-based methods like Kinematic3D.
  • Open-Set Generalization: The framework maintains high performance on unseen object categories, validating its "detect anything" capability.

Conclusion and Future Work

DetAny4D represents a significant step toward stable, real-time 4D perception. While the model is computationally intensive due to its heavy vision transformer backbones, it proves that end-to-end temporal modeling is superior to disjointed pipelines. Future research will focus on optimizing backbones for edge deployment and bridging the "sim-to-real" gap inherent in large-scale simulated training data.

Summary updated

BibTeX
@inproceedings{hou2026detany,
  author = {Jiawei Hou and Shenghao Zhang and Can Wang and Zheng Gu and Yonggen Ling and Taiping Zeng and Xiangyang Xue and Jingbo Zhang},
  title = {{DetAny4D: Detect Anything 4D Temporally in a Streaming RGB Video}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=YSw3Jv22mD},
}
Figure