BEVFormer: Learning Bird's-Eye-View Representation from Multi-Camera Images via Spatiotemporal Transformers
BEVFormer: Learning Bird’s-Eye-View Representation from Multi-Camera Images via Spatiotemporal Transformers
Section titled “BEVFormer: Learning Bird’s-Eye-View Representation from Multi-Camera Images via Spatiotemporal Transformers”学习档位 精读
类型 文献 · 更新 2026-07-20
标签 autonomous-driving · 3d-detection · nuscenes
所属 自动驾驶 3D 感知、时序融合与跟踪 · 场景表示与长期记忆 · 3D 与空间感知 · 时序感知、跟踪与记忆 · 表征学习与生成建模
Migration status: imported from
ad_projs@a823662; source anchors and claims remainneeds-source-verification.
- Paper: https://arxiv.org/abs/2203.17270
- Code: https://github.com/fundamentalvision/BEVFormer at
66b65f3a1f58caf0507cb2a971b9c0e7f842376c
中文学习笔记(自动生成,需核验)
Section titled “中文学习笔记(自动生成,需核验)”Topic: ad-perception-tracking · Tier: foundational · Year: 2022 · Venue: —
Evidence level: partial · 本地全文: 是 · 建议阅读: ~50 分钟
Paper: https://arxiv.org/abs/2203.17270
Code: —
Generator: grok
为什么值得读
Section titled “为什么值得读”提出基于时空Transformer的BEV生成范式,无需深度估计即可从多相机图像学习统一BEV表征,同时支持3D检测与地图分割等多任务,并在nuScenes上显著超越先前相机方法且接近LiDAR基线,尤其改善速度估计与低可见度召回。
BEVFormer通过预定义网格BEV查询与时空注意力,从多相机图像与历史BEV中自适应聚合信息,生成支持多感知任务的统一BEV特征。
多相机图像下的3D视觉感知(3D检测与地图分割)需从2D线索预测3D框或语义地图;现有单目或基于深度的BEV方法存在跨相机信息缺失、深度误差累积、时序利用不足等问题,且BEV生成对深度敏感,难以获得强表征。
Transformer与注意力机制(尤其Deformable Attention)、BEV表征、多相机3D感知、DETR系列检测头、RNN式时序建模、相机投影矩阵与ego-motion对齐。
- 提出BEVFormer时空Transformer编码器,将多相机及/或时序输入投影为BEV表征,支持3D检测与地图分割等多任务。
- 设计可学习网格BEV查询,配合空间交叉注意力(从跨相机ROI提取)与时序自注意力(从历史BEV循环融合)。
- 在nuScenes与Waymo上取得一致提升;nuScenes测试集NDS达56.9%(较DETR3D高9.0点),车道分割较Lift-Splat高超5.0点。
多相机图像经backbone得特征Ft;保留历史BEV Bt-1。每层:BEV查询Q经时序自注意力融合对齐后的历史BEV,再经空间交叉注意力从多视图ROI聚合;经FFN输出精炼BEV。堆叠6层后得当前Bt,送入检测头(类Deformable DETR)与分割头(类Panoptic SegFormer mask decoder)预测3D框/速度与语义地图。训练时对过去2秒随机采样序列循环生成历史BEV(无梯度),当前帧算损失;推理按时间顺序在线复用历史BEV。
关键模块和设计取舍
Section titled “关键模块和设计取舍”- 网格BEV查询Q∈RH×W×C,每格对应实世界s米区域,中心为自车,加位置编码。2) 空间交叉注意力:基于可变形注意力,将查询抬升为pillar、采样Nref个3D参考点并投影到命中视图Vhit,仅与ROI交互加权聚合(公式2)。3) 时序自注意力:ego-motion对齐历史BEV后,查询与当前Q及历史BEV交互(偏移由拼接预测),首帧退化为自注意力;循环建模长时依赖且开销小。设计取舍:用可变形注意力降多视图计算;RNN式历史BEV而非堆叠多帧,减干扰与成本;不依赖深度先验,自适应聚合。
数据集、实验设置与指标
Section titled “数据集、实验设置与指标”nuScenes(1000场景约20s,关键帧2Hz,6相机360°FOV,1.4M 3D框10类;官方mAP基于地面中心距离,TP指标ATE/ASE/AOE/AVE/AAE,NDS综合mAP与mTP);Waymo Open(798训练/202验证序列,约252°FOV,采样每5帧,仅车辆,3D IoU 0.5/0.7的mAP)。BEV分割遵循Lift-Splat设置。
主要结果(需原文证据)
Section titled “主要结果(需原文证据)”nuScenes测试集NDS 56.9%,较先前最佳(DETR3D 47.9%)高9.0点,与LiDAR基线相当;显著改善速度估计与低可见度目标召回;地图分割车道任务较Lift-Splat高超5.0点,达SOTA。参数与计算开销可比。
局限、失败场景与适用边界
Section titled “局限、失败场景与适用边界”文中未详述具体失败场景或边界;从方法看依赖相机标定与ego-motion对齐,时序依赖历史BEV(首帧无时序),推理需在线保存历史特征;多任务头设计基于2D方法小改,具体泛化边界待来源核验。
与前序 / 同期 / 后续方法的关系
Section titled “与前序 / 同期 / 后续方法的关系”对比Transformer 2D感知(DETR/Deformable DETR可变形注意力);相机3D感知(FCOS3D类单目、DETR3D查询投影、深度/IPM/Lift-Splat/OFT/ImVoxelNet/M2BEV等BEV生成、PYVA交叉视图、时序堆叠BEV);强调BEVFormer用可变形注意力高效聚合时空,循环历史BEV而非固定堆叠,支持统一多任务。
官方代码与复现建议
Section titled “官方代码与复现建议”推荐阅读顺序
Section titled “推荐阅读顺序”先读摘要与图1理解范式;再读引言动机与贡献;然后第3节方法(整体架构→BEV查询→空间交叉→时序自注意→应用与实现细节);接着相关工作定位;最后实验部分(数据集与设置)。
- Q: BEVFormer如何从多相机图像聚合空间信息而不依赖深度? A: 使用网格BEV查询,经空间交叉注意力:将查询抬升为pillar、采样多高度3D参考点并投影到命中相机视图,仅与ROI上可变形采样特征加权聚合。
- Q: 时序信息如何引入且计算开销小? A: 时序自注意力循环融合ego-motion对齐后的历史BEV特征;偏移由当前查询与历史拼接预测;首帧退化为自注意力;避免多帧堆叠。
- Q: BEV查询的定义与作用是什么? A: 预定义网格可学习参数Q∈RH×W×C,每位置对应BEV平面一格(实世界s米),中心为自车,通过注意力从空间/时序空间lookup并聚合信息。
- Q: 支持哪些任务头?如何适配? A: 3D检测基于Deformable DETR(单尺度BEV输入、预测3D框+速度、仅L1损失、无NMS);地图分割基于Panoptic SegFormer mask decoder与固定类查询。
- Q: nuScenes上报告的主要检测指标结果是什么? A: 测试集NDS 56.9%,较DETR3D(47.9%)高9.0点。
- Abstract (page 1): Our approach achieves the new state-of-the-art 56.9% in terms of NDS metric on the nuScenes test set, which is 9.0 points higher than previous best arts and on par with the performance of LiDAR-based baselines.
- Abstract (page 1): The code is available at https://github.com/zhiqi-li/BEVFormer.
- Section 1 Introduction (page 3): BEVFormer achieves 56.9% NDS on nuScenes test set, outperforming previous best detection method DETR3D [47] by 9.0 points (56.9% vs. 47.9%). For the map segmentation task, we also achieve the state-of-the-art performance, more than 5.0 points higher than Lift-Splat [32] on the most challenging lane segmentation.
- Section 3.1 Overall Architecture (page 4): BEVFormer has 6 encoder layers, each of which follows the conventional structure of transformers [42], except for three tailored designs, namely BEV queries, spatial cross-attention, and temporal self-attention.
- Section 3.3 Spatial Cross-Attention (page 5): SCA(Qp , Ft ) = 1/|Vhit| ∑i∈Vhit ∑j=1^Nref DeformAttn(Qp , P(p, i, j), Fti )
- Section 3.4 Temporal Self-Attention (page 5-6): TSA(Qp , {Q, Bt−1’}) = ∑V∈{Q,Bt−1’} DeformAttn(Qp , p, V )
- Section 3.6 Implementation Details (page 6): For each sample at timestamp t, we randomly sample another 3 samples from the consecutive sequence of the past 2 seconds… During the inference phase, we evaluate each frame of the video sequence in chronological order. The BEV features of the previous timestamp are saved and used for the next
- Section 4.1 Datasets (page 7): The nuScenes dataset [4] contains 1000 scenes… The mean average precision (mAP) of nuScenes is computed using the center distance on the ground plane… NDS = 1/10 [5mAP + ∑mTP∈TP (1−min(1, mTP))]
Evidence-backed Reading Notes
Section titled “Evidence-backed Reading Notes”| Topic | Evidence-backed note | Source | Short original cue |
|---|---|---|---|
| Problem | Camera-only autonomous driving needs a unified 3D scene representation that can carry temporal context and support downstream perception. | [PDF p.2, Introduction] | Introduction |
| Representation | The note treats the method as dense BEV grid because the paper’s method pages introduce the relevant representation/module vocabulary. |
[PDF p.3, Related Work] | Method |
| Core mechanism | BEV queries aggregate image features through projected reference points, then fuse history BEV after ego-motion alignment. | [PDF p.3, Related Work] | BEV queries |
| Input / Output | Input: multi-camera images, calibration, and ego-motion/CAN bus. Output: BEV features and 3D boxes. | [PDF p.3, Related Work] | nuScenes |
| Training / Evaluation | The paper reports nuScenes detection metrics; temporal evaluation depends on valid sequential metadata. | [PDF p.3, Related Work] | NDS |
| Relationship | DETR3D samples object queries directly from image features; UniAD/VAD reuse BEV-style temporal infrastructure for planning. | [PDF p.3, Related Work] | Related Work |
| Failure/Risk | CAN bus alignment, scene reset, queue length, prev_bev handling, and deformable attention compatibility are high-risk points. | [PDF p.3, Related Work] | BEV queries |
| Reproduction boundary | Needs temporal infos and CAN bus before meaningful temporal smoke tests. | [PDF p.3, Related Work] | nuScenes |
Code Cross-References
Section titled “Code Cross-References”| Local path | Why it matters |
|---|---|
66b65f3a1f58caf0507cb2a971b9c0e7f842376c:README.md |
Code/repo anchor for implementation cross-check. |
66b65f3a1f58caf0507cb2a971b9c0e7f842376c:projects/configs/bevformer/bevformer_base.py |
Code/repo anchor for implementation cross-check. |
66b65f3a1f58caf0507cb2a971b9c0e7f842376c:projects/configs/bevformer/bevformer_small.py |
Code/repo anchor for implementation cross-check. |
66b65f3a1f58caf0507cb2a971b9c0e7f842376c:projects/configs/bevformer/bevformer_tiny.py |
Code/repo anchor for implementation cross-check. |
66b65f3a1f58caf0507cb2a971b9c0e7f842376c:projects/configs/bevformer_fp16/bevformer_tiny_fp16.py |
Code/repo anchor for implementation cross-check. |
66b65f3a1f58caf0507cb2a971b9c0e7f842376c:projects/configs/bevformerv2/bevformerv2-r50-t1-24ep.py |
Code/repo anchor for implementation cross-check. |
Reproduction Notes
Section titled “Reproduction Notes”- Treat this note as paper/code reading material first; do not interpret mini-data smoke tests as paper reproduction. [PDF p.3, Related Work]
- Before running experiments, verify the local code entry points above against the paper method terminology and dataset protocol. [PDF p.3, Related Work]
- If a claim is not linked to a PDF page or code path in this note, treat it as an implementation hypothesis rather than established paper fact.
Local Asset Identity
Section titled “Local Asset Identity”Discovery evidence
Section titled “Discovery evidence”- topic:
ad-end-to-end-driving - sources:
asta - retrieved_at: 2026-07-20
- query: Find foundational and recent research papers for the topic «端到端驾驶» (ad-end-to-end-driving). Prefer peer-reviewed or widely cited work with clear method contributions. Include open-source code when available. Exclude pure survey spam unless highly cited. Core concepts: end-to-end autonomous driving, planning-oriented, trajectory scoring, diffusion planning, vectorized scene. Search facets: end-to-end autonomous driving planning perception; trajectory vocabulary scoring NAVSIM; diffusion model end
- corpus_id:
247839336 - arxiv:
2203.17270 - relevance_score:
0.48745312922422407 - score_total: 20
- suggested_tier:
watch
Relevance
Section titled “Relevance”(no prose relevance explanation — numeric score only or HTTP source)
Snippets
Section titled “Snippets”(no snippet evidence in candidate pool)
方法结构(重绘)
Section titled “方法结构(重绘)”flowchart LR A["输入 / 观测"] --> B["表示 / 编码"] B --> C["推理 / 解码"] C --> D["输出 / 动作或检测"] %% method sketch for: BEVFormer: Learning Bird's-Eye-View Representation from Multi-Camera Images via方法结构示意(重绘;细节以原论文为准,待 PDF 核验)。
论文摘录图/表
Section titled “论文摘录图/表”
来源:原论文约 p.1(arch);学习用途摘录。

来源:原论文约 p.8(table);学习用途摘录。
精读判断(人工)
Section titled “精读判断(人工)”这篇文献回答什么问题
Section titled “这篇文献回答什么问题”如何用 BEV queries + 时空 attention 从多相机构建统一鸟瞰表征,服务检测并成为下游规划的基础设施。
- BEV 网格是多任务友好的中间表征;
- temporal self-attention 能对齐历史 BEV。
BEVFormer 是 UniAD/VAD/SSR 等 E2E 栈的「感知底座」。主路径感知分轨必读:先理解 BEV query,再对比 Sparse4D 的 instance-sparse 路线。
- BEV 分辨率、queue length、CAN bus 与 deformable op 共同决定显存与稳定性;
- 标定/时间戳错误会表现为「能训但不能泛化」。
读完应能回答
Section titled “读完应能回答”- spatial cross-attention 如何把图像抬到 BEV?
- 与 DETR3D 直接 3D query 投影的差异?
- 为何下游规划喜欢 BEV/向量化而非纯图像?
英文自动分析(可折叠)
Section titled “英文自动分析(可折叠)”展开英文 Paper Card / AI deep analysis
Paper Card
Section titled “Paper Card”| Field | Content |
|---|---|
| One-line takeaway | BEVFormer uses BEV queries, spatial cross-attention, and temporal self-attention to build a shared BEV representation from multi-camera video. |
| Problem | Camera-only autonomous driving needs a unified 3D scene representation that can carry temporal context and support downstream perception. |
| Representation | dense BEV grid |
| Input / Output | Input: multi-camera images, calibration, and ego-motion/CAN bus. Output: BEV features and 3D boxes. |
| Core Mechanism | BEV queries aggregate image features through projected reference points, then fuse history BEV after ego-motion alignment. |
| Training / Evaluation | The paper reports nuScenes detection metrics; temporal evaluation depends on valid sequential metadata. |
| Reproduction Status | Needs temporal infos and CAN bus before meaningful temporal smoke tests. |
| Compare With | DETR3D samples object queries directly from image features; UniAD/VAD reuse BEV-style temporal infrastructure for planning. |
| Failure/Risk | CAN bus alignment, scene reset, queue length, prev_bev handling, and deformable attention compatibility are high-risk points. |
原文摘录与素材(可折叠)
Section titled “原文摘录与素材(可折叠)”展开 Extract / Selections / Local assets
Source Anchors
Section titled “Source Anchors”| Anchor | What to verify | Source | Short original cue |
|---|---|---|---|
| Title and abstract | Use to verify paper identity and top-level contribution. | [PDF p.1, Abstract] | BEVFormer: Learning Bird's-Eye-View Representation from Multi-Camera Images via Spatiotemporal Transformers |
| Motivation | Use to verify the problem statement and why the work is needed. | [PDF p.2, Introduction] | Introduction |
| Core method | Use to verify the main modeling mechanism and module names. | [PDF p.3, Related Work] | Method |
| Key module terms | Use to verify exact component names before editing the note. | [PDF p.3, Related Work] | BEV queries |
| Dataset and protocol | Use to verify data dependencies: nuScenes + CAN bus. | [PDF p.3, Related Work] | nuScenes |
| Metrics and results | Use to verify metric names and reported benchmark context. | [PDF p.3, Related Work] | NDS |
| Experiments or ablation | Use to verify which claims are experimentally supported. | [PDF p.7, Method] | Experiments |
| Position in related work | Use to verify the claimed relationship to neighboring methods. | [PDF p.3, Related Work] | Related Work |
| Conclusion or limits | Use to verify final claims and remaining constraints. | [PDF p.11, Method] | Conclusion |