Query-based 4D reconstruction models such as D4RT encode a video once into a global scene representation and obtain outputs by decoding independent point queries. However, inference is often influenced by dense outputs and long videos. Although D4RT separates encoding from decoding, a dense output still requires one decoder query for every pixel of every frame, and a long video is still encoded as many overlapping segments. In this work, we analyze the inference cost of D4RT and show that a large part of it is redundant. In particular, we find that the later decoder blocks attend to a small set of tokens shared by all queries. Based on these findings, we propose FastD4RT, a training-free framework that accelerates D4RT. By exploiting the smoothness of the outputs over time and across pixels, FastD4RT encodes and decodes only at sparse anchors and recovers the remaining outputs via interpolation. It decodes the remaining queries against a shared token set selected once per segment. We further characterize the errors introduced by both components. Experimental results show that FastD4RT accelerates D4RT by about 5 times on average across all its tasks with competitive accuracy, and further improves accuracy on long videos. Our code is available at https://github.com/Lycheemeng/fastd4rt.
Figures & tables
Figure 2: Component-wise analysis of D4RT inference time. Numbers above the bars give the total runtime per video. (a) In 3D point tracking, the encoder dominates on short videos, while the decoder takes a growing share as video gets longer. (b) In video depth estimation, the decoder accounts for almost all the runtime, suggesting that dense decoding is highly inefficient.
Figure 3: Fraction of the attention captured by a shared token set in each decoder block.
Figure 4: Overview of FastD4RT. Given a video, FastD4RT encodes only sparse anchor frames, so that a long video is split into fewer segments. For each segment, a small set of calibration queries selects a shared token set once. Each task then issues queries only at sparse anchors, which attend to all tokens in the early decoder blocks and only to the shared tokens in the later blocks. Finally, the remaining outputs are recovered by interpolation, and adjacent segments are aligned.
w/ GT intrin.
Method
Camera frame
World frame
DriveTrack
ADT
PStudio
DriveTrack
ADT
AJ ↑
APD ↑
OA ↑
AJ ↑
APD ↑
OA ↑
AJ ↑
APD ↑
OA ↑
APD ↑
L1 ↓
APD ↑
L1 ↓
✗
D4RT
1.24
2.07
82.85
2.26
4.65
77.30
6.47
10.99
82.63
3.10
8.34
34.79
1.78
OpenD4RT
1.23
2.04
82.88
2.27
4.67
77.31
6.48
10.99
82.70
3.07
8.34
34.89
1.78
FastD4RT (Ours)
1.25
2.15
81.71
3.01
5.46
78.03
6.61
11.06
83.60
3.16
8.48
39.30
1.56
✓
D4RT
6.04
10.14
82.85
4.15
8.21
77.30
11.29
18.87
82.63
6.81
6.38
31.67
1.96
Table 1: 4D reconstruction and tracking – 3D tracking on TAPVid-3D with tracks predicted in local camera coordinates (left) and world coordinates (right), without (top) and with (bottom) ground-truth intrinsics. AJ, APD (= APD 3D ) and OA are in %. Speed-up is relative to D4RT. FastD4RT achieves accuracy comparable to or better than D4RT while being substantially faster.
Max. track count @ target FPS
Method
60 FPS
24 FPS
10 FPS
1 FPS
D4RT
1,342
4,173
10,360
107,761
OpenD4RT
0
475
1,719
20,926
FastD4RT (Ours)
6,653
19,109
48,641
519,872
Speed-up
5.0 ×
4.6 ×
4.7 ×
4.8 ×
Table 2: 3D tracking throughput – We measure the maximum number of full-video 3D point tracks that different methods can produce while maintaining a given FPS target on a single H20 GPU. Speed-up is relative to D4RT.
Method
Point Cloud
Video Depth
Sintel
ScanNet
Sintel
ScanNet
KITTI
Bonn
L1 ↓
L1 ↓
AbsRel (S) ↓
AbsRel (SS) ↓
AbsRel (S) ↓
AbsRel (SS) ↓
AbsRel (S) ↓
AbsRel (SS) ↓
AbsRel (S) ↓
AbsRel (SS) ↓
D4RT
0.997
0.250
0.392
0.307
0.069
0.065
0.097
0.091
0.071
0.059
OpenD4RT
0.996
0.250
0.393
0.307
0.070
0.066
0.099
0.092
0.071
0.059
FastD4RT (Ours)
0.995
0.249
0.394
0.307
0.070
0.065
0.098
0.093
0.071
0.059
Speed-up
6.1 ×
6.2 ×
6.1 ×
6.2 ×
6.3 ×
6.2 ×
Table 3: Video depth and point cloud estimation. FastD4RT achieves accuracy comparable to D4RT under both scale-only (S) and scale-and-shift (SS) alignments while being substantially faster. Speed-up is relative to D4RT.
Method
Sintel
ScanNet
Re10K
ATE ↓
RPE-T ↓
RPE-R ↓
ATE ↓
RPE-T ↓
RPE-R ↓
AUC@30 ↑
D4RT
0.145
0.053
0.724
0.149
0.056
2.159
67.9
OpenD4RT
0.145
0.053
0.720
0.149
0.056
2.157
68.0
FastD4RT (Ours)
0.141
0.039
0.604
0.152
0.068
3.503
68.6
Speed-up
6.0 ×
3.1 ×
2.1 ×
Table 4: Camera pose estimation. FastD4RT accelerates D4RT on all datasets and improves its accuracy on Sintel. RPE-R is in degrees, and speed-up is relative to D4RT.
Figure 5: Qualitative comparison of dense 3D reconstruction on a static scene from ScanNet (top) and a dynamic scene from Bonn (bottom). For Bonn, we show the point map of a single frame to avoid ghosting from moving objects. The runtime is measured respectively on the whole sequence of 90 and 110 frames.
Frames
Method
Camera frame
World frame
AJ ↑
APD 3D↑
OA ↑
Speed-up
APD 3D↑
L1 ↓
Speed-up
64
D4RT
10.9
15.3
92.4
1.0 ×
68.7
0.516
1.0 ×
OpenD4RT
10.8
15.2
92.4
0.2 ×
68.6
0.515
0.2 ×
FastD4RT (Ours)
15.6
21.0
90.9
2.7 ×
70.7
0.543
3.4 ×
128
D4RT
5.8
9.6
85.5
1.0 ×
57.3
0.794
1.0 ×
OpenD4RT
5.9
9.6
85.6
0.3 ×
57.2
0.796
0.2 ×
Table 5: Long-Video Tracking on ADT. The 39 ADT videos are truncated to their first 64, 128, 192 and 300 frames. AJ, APD 3D and OA are in %. Speed-up is relative to D4RT at the same length.
Method
3D track (camera)
3D track (world)
Point cloud
Video depth
Camera pose
DriveTrack
ADT
PStudio
DriveTrack
ADT
Sintel
ScanNet
Sintel
ScanNet
Bonn
Sintel
ScanNet
Re10K
AJ ↑
AJ ↑
AJ ↑
APD ↑
APD ↑
L1 ↓
L1 ↓
AbsRel ↓
AbsRel ↓
AbsRel ↓
ATE ↓
ATE ↓
RPE-R ↓
AUC@30 ↑
Accuracy
D4RT
1.24
2.26
6.47
3.10
34.79
0.997
0.250
0.392
0.070
0.071
0.145
0.149
2.159
67.9
w/o ASI
1.21
2.25
5.41
3.07
34.74
0.994
0.249
0.392
0.070
0.071
0.144
0.149
2.148
68.4
w/o STD
1.30
3.03
7.47
3.18
39.47
0.997
0.250
0.393
0.070
0.071
0.142
0.153
3.503
68.5
Table 6: Ablation of components on all benchmarks. ASI: anchor-based sparse inference. STD: shared-token decoding. Each variant removes one component of FastD4RT.
Figure 6: Qualitative comparison of dense 3D reconstruction on long videos. Each column shows a different ADT sequence truncated to 64, 128 192 and 300 frames. The runtime of each method is shown at the bottom right. FastD4RT produces point clouds nearly identical to those of D4RT at about 6 × lower runtime.
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
Method
3D track (camera)
3D track (world)
Point cloud
Video depth
Camera pose
DriveTrack
ADT
PStudio
DriveTrack
ADT
Sintel
ScanNet
Sintel
ScanNet
Bonn
Sintel
ScanNet
Re10K
AJ ↑
AJ ↑
AJ ↑
APD ↑
APD ↑
L1 ↓
L1 ↓
AbsRel ↓
AbsRel ↓
AbsRel ↓
ATE ↓
ATE ↓
RPE-R ↓
AUC@30 ↑
Accuracy
D4RT
1.24
2.26
6.47
3.10
34.79
0.997
0.250
0.392
0.070
0.071
0.145
0.149
2.159
67.9
Per-query top- m
1.30
3.05
7.48
3.18
39.41
0.996
0.250
0.393
0.070
0.071
0.142
0.152
3.503
68.5
FastD4RT
1.25
3.01
6.61
3.16
39.30
0.995
0.249
0.394
0.070
0.071
0.141
0.152
3.503
68.6
Appendix
Table 7: Shared vs. per-query token selection. Per-query top- m selects the tokens for each query separately from its own attention, instead of sharing one set per segment.
Figure 7: Sensitivity to hyperparameters. Each panel varies one hyperparameter with the others fixed at their defaults (shaded). (a) 3D tracking on ADT. (b, c) Video depth on Sintel. The last point in (b) decodes every pixel, and the last point in (c) disables shared-token decoding. Time is the decoder time per video.