Search

Search papers and lessons

Bird's-Eye View Representation

Level 3 · 14 min read

A bird's-eye view representation is a top-down grid around a vehicle or robot where each cell stores what the sensors see at that spot on the ground, so cameras from every side share one map.

On this page

  • Colour = topic mix
  • Calculus
  • Linear algebra
  • Discrete math
  • Neural network basics
  • Probability
  • Architectures
  • ReadReady to readNot yet

TL;DR

A bird's-eye view (BEV) representation is a flat, top-down grid centred on a vehicle or robot. Each cell holds features describing what the sensors see at that spot on the ground, so a detector, a map or a planner can read the whole scene from one picture-like array. Its main use is to merge several cameras, or a laser scanner, into a single layout that is easy to reason about.

Builds on: Pinhole Camera Model, Convolutional Neural Network, Softmax · Leads to: Planning-oriented Autonomous Driving

Where it's used

Self-driving perception. A car usually carries several cameras that face in different directions, and each one sees a different slice of the road. The driving model UniAD (2023) turns the images from these cameras into a BEV feature map and uses that one map as the shared base for detecting and tracking other vehicles, mapping lanes and planning the car's path. Working in a top-down frame means every object gets a position on the road, measured in metres from the car, rather than a position in one camera's pixels.

Laser scanners on the road. A lidar returns a cloud of 3D points. PointPillars (2019) groups these points into tall columns, called pillars, on a top-down grid and then runs an ordinary 2D convolutional network over the grid. The same Object Detection machinery that works on photographs now works on laser data, and it runs quickly because the 3D problem has been flattened into 2D. See Point Cloud for the raw data.

Lanes, curbs and drivable space. A planner needs to know where the road edges, lane lines and free space are, and those are naturally drawn from above. A BEV map can label each cell as road, lane marking, kerb or obstacle, so the planner reads a map instead of reconstructing one from several photos every frame.

How it works

Think of a car with a front camera looking at a flat road. A pixel near the bottom of the image sees ground that is close, and a pixel near the top sees ground that is far away. The BEV representation has to answer one question for each pixel: how far along the ground is the thing this pixel sees? The network does not know the distance, so it guesses a distribution over distances and spreads the pixel's information across them. The steps below trace one pixel through the process, with tiny round numbers.

  1. Input. A camera image, the camera's calibration (its focal length and where it sits on the car), and a pixel whose feature is the single number 2. The feature stands in for a whole vector of learned values, so the arithmetic stays small.
  2. Guess the depth. The network gives this pixel one score per depth bin, here two bins at 3 m and 8 m, with scores 1 and 0. A Softmax turns them into probabilities: e1/(e1+e0)≈0.731e^1 / (e^1 + e^0) \approx 0.731 for 3 m and 0.2690.269 for 8 m. Check: the two probabilities add to 1.
  3. Lift. Multiply the pixel's feature by each probability. The 3 m copy is 2×0.731=1.4622 \times 0.731 = 1.462 and the 8 m copy is 2×0.269=0.5382 \times 0.269 = 0.538. The pixel now has a feature at each candidate distance along its ray. Check: 1.462+0.538=21.462 + 0.538 = 2, so the feature was split between the depths and not copied.
  4. Place on the ground. Use the camera's calibration to find where each candidate point sits in the car's frame. Both points lie straight ahead, at 3 m and 8 m forward. Check: the pixel's ray is a straight line from the camera, so every candidate point lies on that ray.
  5. Splat into cells. Divide the ground ahead into cells, each 5 m long. The 3 m point falls in cell 0 (0 to 5 m) and the 8 m point falls in cell 1 (5 to 10 m). Add each lifted feature to the cell it lands in: cell 0 gets 1.462 and cell 1 gets 0.538. Check: nothing is lost, the cells together still hold 2.
  6. Shoot. The grid is now an ordinary array of numbers with height, width and channels, just like an image. A convolutional network runs over it to detect cars, mark lanes or label free space. Check: this step is the standard image machinery, and it does not need to know the camera at all.
flowchart LR
  A["Camera image"] --> B["Per-pixel features and depth probabilities"]
  B --> C["Lift: one weighted feature per candidate depth"]
  C --> D["Splat: sum features into top-down cells"]
  D --> E["BEV grid"]
  E --> F["CNN: detections, lanes, free space"]

The step that makes the representation work is step 5. Features from several cameras, and from several depths along each ray, all add into the same cells, so a car that is seen by two cameras is represented once, in one place. The grid has a fixed size whatever the number of cameras, which is why one network can serve a whole sensor rig.

The depth guess also has a geometric limit. For a camera mounted at height hh above flat ground, a ground point that appears vv pixels below the horizon is at depth fh/vf h / v, where ff is the focal length in pixels. The curve below shows how quickly depth grows as the ground point moves toward the horizon.

0.20.40.60.81051015rows below the horizon (in units of f)depth on the ground (m)
  • camera 1.5 m high, f = 1
Ground points near the bottom of the image are close and change depth slowly; points near the horizon are far away and their depth changes quickly for a small change in row.

The math

Definition: BEV representation

A BEV representation is a tensor B∈RHb×Wb×CB \in \mathbb{R}^{H_b \times W_b \times C}. The first two axes index a grid of cells on the ground plane, and the last axis holds CC feature channels for each cell. Its layout is that of an image, but each cell is a place on the road rather than a pixel of a photograph.

Step 2 in symbols: the depth distribution

For a pixel x=(u,v)\mathbf{x} = (u, v), the network outputs a feature vector fx∈RC\mathbf{f}_{\mathbf{x}} \in \mathbb{R}^{C} and one depth logit dx,kd_{\mathbf{x}, k} for each of DD depth bins at depths z1,…,zDz_1, \ldots, z_D. The depth probabilities are a Softmax over the bins:

px,k=exp⁡(dx,k)∑m=1Dexp⁡(dx,m),∑k=1Dpx,k=1.p_{\mathbf{x}, k} = \frac{\exp(d_{\mathbf{x}, k})}{\sum_{m=1}^{D} \exp(d_{\mathbf{x}, m})}, \qquad \sum_{k=1}^{D} p_{\mathbf{x}, k} = 1.

Each pixel therefore carries a Categorical Distribution over depth. The probabilities are positive and add to 1, which is what lets the next step split the feature without creating or destroying any of it.

Step 3 in symbols: lifting

The lifted feature for bin kk is the feature scaled by that bin's probability:

gx,k=px,k fx.\mathbf{g}_{\mathbf{x}, k} = p_{\mathbf{x}, k}\, \mathbf{f}_{\mathbf{x}}.

Summing over kk gives back fx\mathbf{f}_{\mathbf{x}}, because the probabilities add to 1. In the walkthrough, fx=2\mathbf{f}_{\mathbf{x}} = 2, p=0.731p = 0.731 and 0.2690.269, so g\mathbf{g} is 1.4621.462 and 0.5380.538.

Step 4 in symbols: from pixel and depth to the car's frame

Recall from Pinhole Camera Model that the camera maps a point Xc=(X,Y,Z)⊤\mathbf{X}_c = (X, Y, Z)^\top in camera coordinates to the homogeneous image point (u,v,1)⊤(u, v, 1)^\top up to scale, through the intrinsic matrix KK. Inverting that relation for a known depth zkz_k gives the camera point

Xc=zk K−1(uv1).\mathbf{X}_c = z_k\, K^{-1} \begin{pmatrix} u \\ v \\ 1 \end{pmatrix}.

The camera's pose on the car, a rotation matrix RR and a translation vector t\mathbf{t}, moves the point into the car's frame: Xe=RXc+t\mathbf{X}_e = R\mathbf{X}_c + \mathbf{t}. Only the ground coordinates (xe,ye)(x_e, y_e) of Xe\mathbf{X}_e are kept for the splat.

Step 5 in symbols: splatting by summation

With cells of size Δ\Delta and the grid starting at (xmin⁡,ymin⁡)(x_{\min}, y_{\min}), a point lands in cell

i=⌊xe−xmin⁡Δ⌋,j=⌊ye−ymin⁡Δ⌋.i = \left\lfloor \frac{x_e - x_{\min}}{\Delta} \right\rfloor, \qquad j = \left\lfloor \frac{y_e - y_{\min}}{\Delta} \right\rfloor.

Every lifted feature that lands in cell (i,j)(i, j) is added to it:

Bi,j=∑cameras c  ∑x∈c  ∑k:cell(Xe)=(i,j)gx,k.B_{i, j} = \sum_{\text{cameras } c} \; \sum_{\mathbf{x} \in c} \; \sum_{k : \text{cell}(\mathbf{X}_e) = (i, j)} \mathbf{g}_{\mathbf{x}, k}.

The floor operation is a fixed choice of cell, so it has zero gradient. The sums and products are differentiable, so training can still adjust the depth logits and the features that produced the sums.

Step 6 in symbols: the BEV network

The grid BB is an image-shaped tensor, so a convolutional network hh maps it to the outputs, y^=h(B)\hat{y} = h(B), for example boxes, lane labels or a free-space mask. Training minimises a loss on y^\hat{y}, and Backpropagation carries the gradient back through hh, through the splat sums, and into the depth and feature heads.

Worked examples

Example
Tiny: one pixel, two depths

A pixel has feature f=4\mathbf{f} = 4. The network gives it equal depth probabilities, 0.50.5 at 3 m and 0.50.5 at 8 m. The grid has 5 m cells, so 3 m falls in cell 0 and 8 m falls in cell 1.

  1. Lift at 3 m: 0.5×4=20.5 \times 4 = 2.
  2. Lift at 8 m: 0.5×4=20.5 \times 4 = 2.
  3. Splat: cell 0 gets 2, cell 1 gets 2. The BEV row is (2,2)(2, 2).
  4. Check: 2+2=42 + 2 = 4, the original feature.

Interpretation: the pixel's information is shared between the two cells on its ray, in proportion to how likely each depth is. Nothing is copied, so the total is preserved.

Example
Standard: two cameras sharing a cell

Pixel A from the front camera has feature 22 and logits (1,0)(1, 0) over the 3 m and 8 m bins. Pixel B from a side camera has feature 11 and equal probabilities 0.50.5 and 0.50.5. Both pixels' rays reach the same 3 m and 8 m points, so they land in the same cells.

  1. Probabilities for A: e1/(e1+e0)=2.718/3.718≈0.731e^1 / (e^1 + e^0) = 2.718 / 3.718 \approx 0.731 at 3 m, and 1/3.718≈0.2691 / 3.718 \approx 0.269 at 8 m.
  2. Lift A: 2×0.731=1.4622 \times 0.731 = 1.462 at 3 m, and 2×0.269=0.5382 \times 0.269 = 0.538 at 8 m.
  3. Lift B: 1×0.5=0.51 \times 0.5 = 0.5 at 3 m, and 1×0.5=0.51 \times 0.5 = 0.5 at 8 m.
  4. Splat cell 0 (3 m): 1.462+0.5=1.9621.462 + 0.5 = 1.962.
  5. Splat cell 1 (8 m): 0.538+0.5=1.0380.538 + 0.5 = 1.038.
  6. Check: 1.962+1.038=31.962 + 1.038 = 3, which equals 2+12 + 1.

Interpretation: cell 0 ends up with more evidence, because A is confident about 3 m while B has no preference, and the cells together still hold all of the input. The representation fuses the sensors without a separate matching step.

Example
Realistic: where a road pixel lands

A front camera has focal length f=1000f = 1000 pixels and sits h=1.5h = 1.5 m above a flat road. A road pixel lies 150 rows below the horizon row.

  1. Depth from the ground formula: Z=fh/v=1000×1.5/150=10Z = f h / v = 1000 \times 1.5 / 150 = 10 m.
  2. Position in cells: with 0.5 m cells, the point is at 10 m forward, which is index ⌊10/0.5⌋=20\lfloor 10 / 0.5 \rfloor = 20 along the forward axis.
  3. Repeat for a pixel 300 rows below the horizon: Z=1000×1.5/300=5Z = 1000 \times 1.5 / 300 = 5 m, so its index is 10.
  4. Compare with a pixel 75 rows below: Z=1000×1.5/75=20Z = 1000 \times 1.5 / 75 = 20 m, index 40.

Interpretation: the rows near the bottom of the image cover the road close to the car, and the rows near the horizon cover a long stretch in a few pixels. A lane marking seen at the horizon therefore gets smeared across many cells if the depth guess is off.

Try it: a pixel sits 60 rows below the horizon, with the same camera. How far ahead is that road point, and which cell index does it fall in with 0.5 m cells?

Answer: Z=1000×1.5/60=25Z = 1000 \times 1.5 / 60 = 25 m, so the cell index is ⌊25/0.5⌋=50\lfloor 25 / 0.5 \rfloor = 50.

Common mistakes and tradeoffs

It is tempting to think that a BEV map is a photograph taken from above. In fact it is built by guessing depth for every pixel and spreading each feature along its ray. The map is only as good as that depth guess, and a wrong guess puts an object in the wrong cells.

It is tempting to think that the cells are filled once, from one camera. In fact each cell collects contributions from every camera whose rays reach it, and at several depths. A cell that no camera sees, because it is behind a truck or outside the field of view, stays empty, so a BEV map has blank regions that a model must handle.

It is tempting to think that BEV requires a laser scanner. In fact camera-only BEV works, and it is the cheaper sensor rig. A lidar gives geometry directly, which makes it more accurate at close range but costs more and returns sparse points far away.

SituationProblemBetter choice
A laser scanner is availableImage depth is a guess, and it is weaker at rangeLidar-to-BEV, such as pillar or voxel grids
Far-range objects matterA one-row change moves depth a lot, so distance errors growFiner depth bins near the horizon, or a longer training range
Several frames over timeOne frame misses objects that are briefly occludedWarp the previous BEV map by the car's motion and fuse it
Depth is hard to estimateExplicit depth bins limit what the model can learnAttention from learned BEV queries into image features, as in BEVFormer

Attention-based BEV methods skip explicit depth. Each BEV cell has a learned query vector, and the query attends to image features near where its cell projects. This uses Transformer machinery such as Multi-Head Attention and the sampling idea of Deformable Attention. The cost is more compute and more training data than the lift-and-splat recipe needs.

History

Robots have used top-down grids for mapping since the late 1980s, when Alberto Elfes described occupancy grids for mobile-robot mapping in 1989. Each cell held the probability that the cell was occupied, and the grid was updated as the robot moved. On roads, inverse perspective mapping, which warps a camera image to a top-down view using the camera's height and tilt, was used for lane detection in the late 1990s and 2000s.

Deep networks changed the recipe. PointPillars (2019) showed that a lidar point cloud could be turned into a top-down pseudo-image and processed by a standard 2D detector. Philion and Fidler's Lift, Splat, Shoot (2020) learned the depth distribution for each camera pixel and then pooled the lifted features into one grid, which made camera-only BEV practical. BEVFormer (2022) replaced the explicit depth with attention from learned BEV queries. Planning-oriented models such as UniAD (2023) then used a BEV map as the common base for all their driving tasks.

Recap

  • A BEV representation is a top-down grid of features centred on the vehicle, so every sensor's information lands in one shared, metric map.
  • Lift-and-splat builds it in steps: a Softmax over depth bins for each pixel, a weighted copy of the feature at each depth, then a sum into the cell that each copy lands in.
  • The sum over cameras makes the representation fixed in size for any number of sensors, and the grid is an ordinary image for a Convolutional Neural Network.
  • Depth is the weak point: its error grows with distance, and lidar or attention-based methods are the usual alternatives.

What to read next: Planning-oriented Autonomous Driving, where a BEV map serves detection, tracking, mapping and planning at once, and Object Detection for the detector that often runs on top of the grid.

Check yourself

QuestionRecall: what does the splat step do with the lifted features?Show answer
It adds each lifted feature to the top-down cell that its 3D point lands in. Features from different cameras and different depths that fall in the same cell are summed, so the grid holds the combined evidence for each spot on the ground.
QuestionComputation: a pixel has feature 3. Its depth probabilities are 0.2 at 4 m and 0.8 at 6 m. Cells are 5 m long, so 4 m falls in cell 0 and 6 m in cell 1. What does each cell receive from this pixel?Show answer
The lifted features are 3×0.2=0.63 \times 0.2 = 0.6 at 4 m and 3×0.8=2.43 \times 0.8 = 2.4 at 6 m. Cell 0 receives 0.6 and cell 1 receives 2.4. Together they sum to 3, the original feature.
QuestionWhy: why does the lift step use probabilities that add to 1, rather than a hard choice of one depth per pixel?Show answer
Probabilities that add to 1 split the feature without creating or losing any of it. A hard choice would be a single guess that is wrong whenever the depth is ambiguous, and it would give no gradient to the other depth bins. Soft weights keep the whole step differentiable, so training can adjust the depth guess.
QuestionApplied: a car has only one forward camera, and it must map the lane 40 m ahead. Why is that harder than mapping the lane 5 m ahead, and what would you change?Show answer
At long range the ground is seen in a few rows near the horizon, and a one-row change in the image moves the depth a lot, so the depth guess is much less precise there. The fix is finer depth bins near the horizon, a longer training range, or a second sensor such as lidar. Also check that the lane estimate is not being averaged over many cells that the camera barely sees.

Sources