← 返回论文库
CVPR 2025   🏆 Best Paper

VGGT: Visual Geometry Grounded Transformer

Jianyuan Wang · Minghao Chen · Nikita Karaev · Andrea Vedaldi · Christian Rupprecht · David Novotny

摘要 Abstract

见上方 arXiv / CVF 链接。

📝 精读笔记

灵魂一句
一个标准大 Transformer(几乎不加 3D 归纳偏置)+ 海量 3D 标注数据,单次前馈(<1 秒)从 1 / 几 / 数百张图直接预测全部 3D 属性(相机参数、深度图、点图、3D 点跟踪),无需几何后处理就超过依赖 Bundle Adjustment 的方法。
问题 & 动机
传统 3D 重建靠 BA 等迭代优化(COLMAP / VGGSfM),复杂且慢;DUSt3R/MASt3R 前馈但只能处理两张图、靠 pairwise 融合 + test-time 优化拼多图。VGGT 追问:能否用纯网络直接解、几乎不要几何后处理?答案是能,且常常比带后优化的方法还好。
核心架构
①DINO 把每张图 patchify 成 tokens;②每帧追加 1 个 camera token + 4 个 register token,第一帧用一组不同的 learnable token(标记它为参考系);③Alternating-Attention(AA):24 层交替「帧内 frame-wise」与「跨帧 global」self-attention,全程无 cross-attention;④camera head(4 层 self-attn + linear 出内外参)+ DPT head(出 depth/point map + tracking 特征 + aleatoric 不确定度);⑤tracking 用 CoTracker2(相关图 + self-attn)。约 1.2B 参数。
关键设计
• 第一帧 = 世界参考系(相机置 identity),特殊 token 区分;除第一帧外对输入顺序 permutation-equivariant。
• Over-complete 预测:相机/深度/点图可互推(冗余),但显式同时预测全部反而提升精度;推理时用 depth+camera 反投影得到的点图,比直接用 point head 更准(把复杂任务分解成更简单子问题)。
• 坐标归一化:统一到第一相机系 + 按点图到原点平均距离归一化,并让网络去学这个归一化(不对网络输出再归一化)。
• 损失 = camera(Huber) + depth + pmap(都带 aleatoric 不确定度 + 梯度项)+ 0.05·track。1.2B 参数,64×A100 训 9 天。
关键结果
相机位姿 AUC@30:Re10K 85.3(前馈 0.2s)vs DUSt3R 67.7 / MASt3R 76.4(~7–9s),+BA 达 93.5;CO3D 88.2/91.8。MVS 深度(DTU Overall 0.382,逼近"已知 GT 相机"的方法)、点图(ETH3D 显著超 DUSt3R/MASt3R)、two-view matching(超 Roma)全 SOTA。VGGT 当 backbone 还能提升下游(动态点跟踪、前馈 NVS)。
★ VGGT → D4RT 演进主线(精读重点)
两者同根:大 Transformer + Alternating(帧内/跨帧) attention + 第一帧参考系 + 前馈;D4RT 的 encoder 本质就是 VGGT 式的。D4RT 正是补齐 VGGT 三处短板:
① VGGT 用多个专用 head(camera head + DPT head 各管一类 dense 输出)→ D4RT 单一 query 接口 q=(u,v,t_src,t_tgt,t_cam) 统一全部任务;
② VGGT 点图 viewpoint-invariant 但点跟踪是静态 track-any-point、无法建动态对应 → D4RT 原生动态 4D 对应(三时间索引解耦时空);
③ VGGT dense per-frame 解码 → D4RT on-demand 独立 query 解码,效率 18–300×。
一句话:VGGT 把"多任务 3D 重建"统一进一个前馈 backbone(但仍多 head + 静态 + dense);D4RT 把"输出接口"也统一成一个 query(动态 + 按需 + 可并行)。这就是 CVPR Best Paper 连续两年(2025 VGGT → 2026 D4RT)的几何重建演进线。
对感知 / BEV 的启发
「极少归纳偏置 + 大数据 + 统一 backbone 多任务(深度/位姿/跟踪同出)」的范式,与 onemodel 多任务头的取舍直接呼应;over-complete 监督(冗余量一起监督提升精度、推理时子问题组合更稳)是个可借鉴的工程技巧。
疑问 / 讨论
① 静态场景假设(点图 viewpoint-invariant)对动态场景的局限——正是 D4RT 要解的;② 数百张图做 global attention 的显存/算力扩展性;③ 1.2B + 64×A100×9 天的训练成本与复现门槛。

📖 逐段精读 · 笔记

据深度 QA 精读笔记 + 本地 PDF 逐段整理:Abstract 逐句 → Intro 闭环 → Method(Alternating Attention / DINOv2 / 多任务损失 / 预测头)→ 实验数值 + 消融 + 全文总结。原文英文引用 + 中文指路。最后更新 2026-06-21。
① Abstract(摘要)— 逐句精讲
原文(定位句):"We present VGGT, a feed-forward neural network that directly infers all key 3D attributes of a scene, including camera parameters, point maps, depth maps, and 3D point tracks, from one, a few, or hundreds of its views."
在说什么:VGGT 是一个前馈网络,从 1 张/几张/上百张视图,一次性直接推断一个场景的所有关键 3D 属性——相机参数、point map、depth map、3D 点轨迹。为什么这么做(点评):关键词是 "directly" 与 "all"——一改"每个 3D 任务各训一个专用模型"的传统,主张一个共享 backbone 同时出全部量。
原文(效率 + 反传统句):"It is also simple and efficient, reconstructing images in under one second, and still outperforming alternatives that require post-processing with visual geometry optimization techniques."
在说什么:简单高效——1 秒内重建,且无需任何几何后优化就能胜过那些要做后处理优化(如 Bundle Adjustment、Global Alignment)的方法。点评:这一句是全文的"爆点"——前馈直出居然打赢了"前馈 + 迭代优化",直接动摇了"3D 必须靠几何优化"的范式。
原文(能力 + 衍生句):"The network achieves state-of-the-art results in multiple 3D tasks, including camera parameter estimation, multi-view depth estimation, dense point cloud reconstruction, and 3D point tracking. We also show that using pretrained VGGT as a feature backbone significantly enhances downstream tasks."
一句话抓 Abstract:一个标准大 Transformer(几乎无 3D 归纳偏置)+ 海量 3D 标注数据 → 前馈直出全部 3D 量、秒级、免后优化、四项 SOTA,且可当通用 3D backbone 迁移到下游。
📚 背景知识(外部补充):SfM / MVS / BA / DUSt3R 谱系
SfM(Structure-from-Motion):从多视图估相机参数 + 重建稀疏点云,传统流程=图像匹配→三角化→Bundle Adjustment(BA,迭代联合优化相机与 3D 点),代表 COLMAP。MVS(Multi-View Stereo):已知相机参数下稠密重建几何。BA / Global Alignment:都是"迭代优化"——慢且复杂,正是 VGGT 想绕开的。
DUSt3R / MASt3R(直接前序):原文 "DUSt3R and MASt3R have shown promising results in this direction, but these networks can only process two images at once and rely on post-processing to reconstruct more images, fusing pairwise reconstructions." 即它们一次只能吃两张图、要靠后处理把成对结果融合。VGGT 的进步=一次吃上百张、且免后处理。point map(点图)概念:每个像素 \(y\) 对应一个 3D 点 \(P_i(y)\in\mathbb{R}^3\),且视角不变(统一表达在第一台相机坐标系),这套表示正是 DUSt3R 引入、VGGT 继承的。
② Introduction — problem → 现有不足 → solution → why neural-first works
problem:原文 "Traditionally, 3D reconstruction has been approached with visual-geometry methods, utilizing iterative optimization techniques like Bundle Adjustment (BA)." 即便 SOTA 的 VGGSfM 把 ML 和几何端到端结合(differentiable BA),"visual geometry still plays a major role in 3D reconstruction, which increases complexity and computational cost." 几何优化=复杂 + 慢。
提问(全文动机):原文 "we ask if, finally, 3D tasks can be solved directly by a neural network, eschewing geometry post-processing almost entirely." 现有不足:DUSt3R/MASt3R 只能两图 + 靠成对融合后处理。
solution + why:VGGT 一次处理上百视图、单前向出全部 3D 量。关键主张 "it is unnecessary to design a special network for 3D reconstruction"——只用标准大 Transformer,"with no particular 3D or other inductive biases (except for alternating between frame-wise and global attention), but trained on a large number of publicly available datasets with 3D annotations." why it works(机理):把 3D 重建当成"GPT/CLIP/DINO 式的大模型 + 大数据"问题——不靠手工几何先验,而靠海量 3D 标注让网络自己学会多视图几何;§4.2 把 DUSt3R Overall 从 1.741 砍到 0.382,作者归因 "our model's multi-image training scheme that teaches it to reason about multi-view triangulation natively instead of relying on ad hoc alignment procedures."
Q&A · 为什么"前馈直出"能打败"前馈 + 几何后优化"?
核心:传统 pipeline 把"成对/逐帧预测"再用 BA/Global Alignment 拼接,拼接是事后补救——只能在已割裂的成对结果上做平均/对齐,误差已注入。VGGT 让一个全局注意力 Transformer 一次看到所有帧,多视图三角化的推理是原生在网络内部完成(global self-attention 跨帧建立对应),不是事后凑。原文对 DUSt3R 的批评一针见血:它 "only averages multiple pairwise camera triangulations"。但诚实地说:VGGT 并非完全否定优化——Table 1 显示 "Ours (with BA)" 把 Re10K AUC 从 85.3 进一步推到 93.5,作者承认 "there is still room for improvement since post-optimization still brings benefits",且 VGGT 的准点预测可作 BA 的好初值、省掉三角化与迭代精修。
③ §3.1 Problem 形式化(映射 + 维度,LaTeX)
统一映射:输入 N 张 RGB 图 \(I_i\in\mathbb{R}^{3\times H\times W}\),网络 \[ f\big((I_i)_{i=1}^{N}\big)=(g_i,D_i,P_i,T_i)_{i=1}^{N} \] 逐帧输出四类量:相机参数 \(g_i\in\mathbb{R}^9\)、深度图 \(D_i\in\mathbb{R}^{H\times W}\)、点图 \(P_i\in\mathbb{R}^{3\times H\times W}\)、跟踪特征网格 \(T_i\in\mathbb{R}^{C\times H\times W}\)。
相机参数化:\(g=[q,t,f]\),旋转四元数 \(q\in\mathbb{R}^4\) + 平移 \(t\in\mathbb{R}^3\) + 视场角 \(f\in\mathbb{R}^2\),假设主点在图像中心。视角不变点图(关键):原文 "like in DUSt3R, the point maps are viewpoint invariant, meaning that the 3D points Pi(y) are defined in the coordinate system of the first camera g1, which we take as the world reference frame." 即所有 3D 点都表达在第一台相机坐标系=世界系。跟踪:Transformer 不直接出轨迹,而是出特征 \(T_i\),交给独立 tracking 模块 \(\mathcal{T}\);两者 "trained jointly end-to-end"。第一帧外参固定为单位:\(q_1=[0,0,0,1],\ t_1=[0,0,0]\)。
④ Over-complete Predictions(冗余预测反而更好——核心洞见)
现象:四类量并不独立——原文 "the camera parameters g can be inferred from the invariant point map P, for instance, by solving the Perspective-n-Point (PnP) problem",深度也能由点图+相机推出。反直觉结论:"tasking VGGT with explicitly predicting all aforementioned quantities during training brings substantial performance gains, even when these are related by closed-form relationships." 即明知冗余仍全部显式预测,训练收益反而大(§4.5 消融实证)。推理期的小技巧:反过来,推理时不要直接用 point map head——原文 "combining independently estimated depth maps and camera parameters produces more accurate 3D points compared to directly employing a specialized point map branch",即用 depth+camera 反投出点云更准(§4.3 Table 3 实证 0.709→0.677)。点评:训练时"多目标互为正则",推理时"拆成简单子问题"——这是 VGGT 很精的工程哲学。
⑤ §3.2 Feature Backbone(DINO 切块 + Alternating-Attention)
切块:每张图经 DINO patchify 成 K 个 token \(t^I\in\mathbb{R}^{K\times C}\),所有帧 token 合在一起送主干。Alternating-Attention(AA,唯一的"3D 偏置"):原文 "frame-wise self-attention attends to the tokens within each frame separately, and global self-attention attends to the tokens across all frames jointly." 交替帧内与全局自注意力——既跨图融合信息、又对每图内部 token 归一化。默认 "L = 24 layers of global and frame-wise attention",且 "our architecture does not employ any cross-attention layers." why:全局自注意力让网络一次性看到所有视图 → 原生多视图推理;帧内注意力保稳定。
⑥ §3.3 Prediction heads(camera/register token + DPT + uncertainty + 跟踪)
特殊 token:每帧图 token 外加 1 个 camera token \(t^g_i\in\mathbb{R}^{1\times C'}\) 和 4 个 register token \(t^R_i\in\mathbb{R}^{4\times C'}\);第一帧的 camera/register token 用一组不同的可学习 token,让模型 "distinguish the first frame from the rest, and to represent the 3D predictions in the coordinate frame of the first camera." register token 预测后丢弃。
三个 head:① Camera head=camera token 过 4 层 self-attention + 线性层,出内外参;② Dense head=图 token 过 DPT 转稠密特征 \(F_i\in\mathbb{R}^{C''\times H\times W}\),再 3×3 卷积出 depth \(D_i\) 与 point map \(P_i\),并输出跟踪特征 \(T_i\),还预测 aleatoric uncertainty \(\Sigma^D_i,\Sigma^P_i\)(进 loss、训练后正比于置信度);③ Tracking head=用 CoTracker2 架构:query 点双线性采样特征 → 与各帧特征图相关 → self-attention → 出各帧 2D 对应点,"does not assume any temporal ordering of the input frames"(可用于无序图集而非仅视频)。
⑦ §4.1 Camera Pose Estimation(Table 1,真实数值)
设置:Re10K(unseen,无方法在其上训练)/ CO3Dv2,每场景随机 10 帧,指标 AUC@30(综合相对旋转 RRA + 相对平移 RTA),H100 计时。
  方法      Re10K↑ | CO3Dv2↑ | 时间
  DUSt3R     67.7 | 76.7 | ~7s
  MASt3R     76.4 | 81.8 | ~9s
  VGGSfM v2   78.9 | 83.4 | ~10s
  Fast3R(并行工作) 72.7 | 82.5 | ~0.2s
  Ours (Feed-Forward) 85.3 | 88.2 | ~0.2s
  Ours (with BA)  93.5 | 91.8 | ~1.8s
读表:前馈版 0.2s 即全面超过要 >10s 后优化的 VGGSfM/MASt3R/DUSt3R;在没人训过的 Re10K 上优势更大,原文 "This validates the superior generalization of VGGT." 加 BA 再涨到 93.5(仍只 ~1.8s,因 VGGT 给了好初值,省掉三角化与迭代)。
⑧ §4.2 多视图深度(Table 2)+ §4.3 点图(Table 3)
Table 2(DTU MVS,Acc/Comp/Overall↓):Ours 0.389 / 0.374 / 0.382(不知道 GT 相机);DUSt3R(同样不知 GT 相机)2.677 / 0.805 / 1.741;而知 GT 相机的 GeoMVSNet Overall 0.295、MASt3R 0.374。原文 "Our method substantially outperforms DUSt3R, reducing the Overall score from 1.741 to 0.382",且逼近"知道 GT 相机"的方法。
Table 3(ETH3D 点图,10 帧,Umeyama 对齐):Ours (Point) 0.901 / 0.518 / 0.709 @~0.2s;Ours (Depth + Cam) 0.873 / 0.482 / 0.677(更优);DUSt3R 1.167/0.842/1.005 @~7s、MASt3R 0.968/0.684/0.826 @~9s。验证了 Over-complete 的推理技巧:depth+camera 反投 > 直接 point head,原文归因 "decomposing a complex task (point map estimation) into simpler subproblems (depth map and camera prediction)."
⑨ §4.4 双视图匹配(Table 4,跨任务泛化)
设置:ScanNet-1500,用 tracking 分支找对应 → 估 essential matrix → 分解出相对位姿,指标 AUC@5/10/20。结果:Ours 33.9 / 55.2 / 73.4,超过专门做双视图匹配的 SOTA Roma(31.8 / 53.4 / 70.9)。原文 "Despite not being explicitly trained for two-view matching, VGGT achieves the highest accuracy among all baselines." 点评:这是"通用 backbone"含金量的旁证——没专门为该任务训练却拿第一。
⑩ §4.5 消融(每个验证一个设计)
Table 5 · Backbone(ETH3D 点图 Overall↓,同参数量 2L 层):Cross-Attention 1.061 | Global Self-Attention Only 0.827 | Alternating-Attention 0.709(最佳)。结论:AA 明显优于纯全局或交叉注意力,且 "architectures using cross-attention generally underperform compared to those exclusively employing self-attention." 验证了 AA 这一唯一架构设计的必要性。
Table 6 · 多任务学习(ETH3D 点图 Overall↓):去掉 camera 监督 → 0.834(最伤);去 depth → 0.727;去 track → 0.790;全开 ✓✓✓ → 0.709(最佳)。原文 "incorporating camera parameter estimation clearly enhances point map accuracy, whereas depth estimation contributes only marginal improvements." 验证了 Over-complete:明知冗余仍联合监督,反而最准;相机监督贡献最大。
⑪ §4.6 下游迁移(Table 7 NVS + Table 8 动态跟踪)
Table 7 · 前馈新视角合成(GSO,PSNR/SSIM/LPIPS):Ours-NVS* 30.41 / 0.949 / 0.033,且不需要输入相机参数、只用 20% 训练数据,仍逼近需已知相机的 LVSM(31.71 / 0.957 / 0.027)。Table 8 · 动态点跟踪(TAP-Vid,AJ/δvis/OA):把 CoTracker2 的 backbone 换成 VGGT 预训练特征后,CoTracker+Ours 在 Kinetics 57.2 / RGB-S 72.1 / DAVIS 64.7 全面领先;原文 "VGGT's tracking features improve the δvis avg metric from 78.9 to 84.0 on the TAP-Vid RGB-S dataset." 证明 VGGT 是可迁移的通用 3D backbone。
⑫ §3.1 预测顺序 & 排列等变性(permutation equivariance)
原文:"The order of the images in the input sequence is arbitrary, except that the first image is chosen as the reference frame. The network architecture is designed to be permutation equivariant for all but the first frame." 在说什么:输入图的顺序无所谓(不像视频要时序),唯独"第一帧"被选作参考系;网络对"除第一帧外的所有帧"排列等变——打乱其余帧顺序,输出随之对应置换而结果不变。why:这正是 VGGT 能处理"无序图集"(而非仅视频)的根,也是它能当 SfM 用的前提(SfM 输入本就是无序照片集)。代价:必须用 camera/register 的"第一帧专属可学习 token"把第一帧从置换对称里"打破"出来,否则没有锚点定义世界系。
Q&A · 为什么第一帧特殊、坐标系如何锚定?
问题:point map 视角不变要求所有 3D 点在同一世界系,世界系怎么定?答:原文把第一台相机 \(g_1\) 直接当世界参考系——其外参固定为单位:\(q_1=[0,0,0,1],\ t_1=[0,0,0]\)。为让网络"认得"第一帧,第一帧的 camera token、register token 用另一组可学习 token(与其余帧不同),原文 "allow the transformer to identify the first camera." 机理点评:这是一个很轻的"对称性破缺"设计——不引入任何显式几何,仅靠一组特殊 token 就把"谁是原点"教给纯注意力网络,既保住了对其余帧的排列等变、又锚定了统一坐标系。
📚 相关工作定位:Tracking-Any-Point / CoTracker 谱系
谱系(来自 §2 Related Work):点跟踪任务最早由 Particle Video 提出、PIPs 在深度学习时代复兴;TAP-Vid 给出三个 benchmark,TAPIR 改进,CoTracker 利用点间相关性穿透遮挡,DOT 做稠密跟踪,TAPTR 用端到端 Transformer,LocoTrack 把逐点特征扩到邻域。VGGT 的定位:不重造跟踪器,而是把自己的 dense 特征 \(T_i\) 喂给现成 CoTracker2 头;原文 "we demonstrate that VGGT's features yield state-of-the-art tracking performance when coupled with existing point trackers." 这与 Table 8"换 backbone 即涨点"一致——卖点是特征质量而非跟踪算法本身。
Q&A · "最小 3D 归纳偏置 + 大数据"是什么路线、为何成立?
主张:原文 "VGGT is based on a fairly standard large transformer, with no particular 3D or other inductive biases (except for alternating between frame-wise and global attention), but trained on a large number of publicly available datasets with 3D annotations. VGGT is thus built in the same mould as large models for natural language processing and computer vision, such as GPTs, CLIP, DINO, and Stable Diffusion." 在说什么:不往网络里塞极线几何、代价体(cost volume)、可微 BA 这些手工 3D 先验,只留一个 Alternating-Attention,把"学几何"的活全交给数据 + 规模——和 GPT/CLIP/DINO 一个套路:通用大 backbone + 海量数据 → 涌现能力。why 成立(机理):多视图几何的约束(对应、三角化、刚体变换)本就蕴含在"同场景多视图的 3D 标注"里,足够大的注意力网络 + 足够多样的数据能把这些约束统计地学出来,无需人工编码;好处是同一 backbone 还能迁移到下游(Table 7/8)。边界(诚实):这条路线高度依赖大规模高质量 3D 标注数据与算力,数据覆盖不到的极端域仍可能失效,且训练细节(loss 权重/数据清单)论文放在 supplementary,正文未全列。
📌 全文一页总结(problem → method → experiment → takeaway)
problem:3D 重建长期依赖 BA/Global Alignment 这类迭代几何优化(慢、复杂),DUSt3R/MASt3R 虽神经化但只能两图 + 成对融合后处理。method:VGGT=标准大 Transformer(DINO 切块 + 唯一偏置 Alternating-Attention 交替帧内/全局自注意、L=24、无 cross-attention)+ camera/register token + camera head & DPT dense head(出 depth/point/track 特征 + uncertainty)+ CoTracker2 跟踪头;统一映射 \(f((I_i))=(g_i,D_i,P_i,T_i)\),点图视角不变(第一相机系);Over-complete:训练显式预测全部冗余量、推理用 depth+camera 反投更准。
experiment:相机位姿 Re10K 85.3 / CO3D 88.2(前馈 0.2s 即超 >10s 的后优化法,+BA 达 93.5);DTU 深度 Overall 0.382(DUSt3R 1.741);ETH3D 点图 0.677;ScanNet 双视图匹配超 Roma;消融证 AA > 全局/交叉、多任务联合监督最优;下游 NVS/动态跟踪迁移均涨点。
Takeaway(≥3 条):① 范式转变——证明 3D 重建可以"neural-first":标准大 Transformer + 大规模 3D 标注数据,几乎不用手工几何先验也能前馈直出全部 3D 量并 SOTA;② 冗余即正则——明知相机/深度/点图存在闭式关系,仍全部显式预测,训练收益显著(相机监督贡献最大),而推理时拆成 depth+camera 子问题更准;③ 通用 3D backbone——预训练特征可迁移到双视图匹配、NVS、动态点跟踪等下游并涨点;④ 承上启下——VGGT 是 CVPR 2025 Best Paper,其"多 task-specific head + 无动态对应"两短板,正是次年 D4RT(统一 query 接口 + 原生动态跟踪)要补齐的靶子,几何重建连续两年拿奖。

🖼 论文原图(本地 PDF 截图,原文 caption 未改写)

Figure 1. VGGT is a large feed-forward transformer with minimal 3D-inductive biases trained on a trove of 3D-annotated data. It accepts up to hundreds of images and predicts cameras, point maps, depth maps, and point tracks for all images at once in less than a second, which often outperforms optimization-based alternatives without further processing.
Figure 2. Architecture Overview. Our model first patchifies the input images into tokens by DINO, and appends camera tokens for camera prediction. It then alternates between frame-wise and global self attention layers. A camera head makes the final prediction for camera extrinsics and intrinsics, and a DPT [57] head for any dense output.
Figure 3. In-the-wild comparison of our predicted 3D points to DUSt3R. As shown in the top row, our method successfully predicts the geometric structure of an oil painting, while DUSt3R predicts a slightly distorted plane. In the second row, our method correctly recovers a 3D scene from two images with no overlap, while DUSt3R fails. The third row provides a challenging example with repeated textu
Figure 5. Visualization of Rigid and Dynamic Point Tracking. Top: VGGT’s tracking module T outputs keypoint tracks for an unordered set of input images depicting a static scene. Bottom: We finetune the backbone of VGGT to enhance a dynamic point tracker CoTracker [38], which processes sequential inputs.