OREN

OREN keeps a coarse distance map in an octree and lets a tiny network fix the details, so a robot gets a smooth, whole-space distance field at 14 frames per second.

Picture a small drone flying along a line between two shelves, asking its map “how far to the nearest shelf?” at every spot. Slide the probe along that line, and switch between three models of the distance to the nearest obstacle. Then we build, piece by piece, how an octree and a small network share the work.

You need what a robot map is and a feel for a neural network as a function. We build the rest from zero.

Paper: Zhirui Dai, Qihao Qian, Tianxing Fan and Nikolay Atanasov, UC San Diego. arXiv 2510.18999.

Fix the distance map

Ready
0.95 m

The dashed line is the true distance to the nearest obstacle. The coloured line is a model of it. Start at 0.95 m, inside the first obstacle, then try 1.7 m in the gap.

A toy scene, not the paper's data: two obstacles on a 4 m line, an octree that splits down to 12.5 cm around the surfaces, and a residual modelled as a smoothed copy of 90% of the prior's error. Near a kink (1.7 m) the better prior can overshoot: that is the residual's job. The paper's real numbers for this idea are in Chapter 10: on Replica room 1 the residual cuts the SDF error from 2.185 cm to 1.862 cm (Table IV).

Chapter 0

A Map That Answers “How Far?”

See why a robot wants a number for every point in space, not a yes or no, and meet the signed distance field

A small drone flies down a warehouse aisle. A shelf stands on its left. A pillar stands ahead. The drone’s planner must pick the next move, and it asks the map two questions. How far am I from the nearest thing I could hit? And which way is away from it?

The most common robot map cannot answer. An occupancy grid cuts space into small cells and marks each one as full, empty or unknown. Our occupancy mapping lesson builds one. A grid says “this cell is empty”. It does not say whether the nearest wall is one finger away or ten meters away.

A planner that must stay safe wants that number. It also wants a smooth number, so that it can slide along the slope of the map instead of hopping from cell to cell. This paper builds exactly that kind of map. The rest of this chapter defines it, one idea at a time.

Distance to the nearest surface

Pick any point in the room. Look for the closest obstacle surface. Measure the straight line to it. That length is the distance field at your point. Do this for every point in space and you have a map where every location carries one number.

Now add a sign. Points in free space get a positive number. Points inside an obstacle get a negative number. The result is a signed distance function, or SDF. The surface itself sits exactly where the SDF crosses zero. Mathematicians call that the zero level set.

The paper writes it in one line. Let O be the set of obstacles, and let ∂O be their surface.

d(x)
The signed distance at the point x. It is one number for each point. In a 3D world, x holds three coordinates.
±
The sign. Positive means free space, where the robot may be. Negative means inside an obstacle.
miny∈∂O
Try every point y on the obstacle surface and keep the smallest result. This picks the nearest surface point.
‖x − y‖2
The straight-line (Euclidean) length between x and y. This is ordinary ruler distance.

Because the length is the straight-line one, this is a Euclidean signed distance field, or ESDF. The word matters. Many fast mappers store a truncated SDF, or TSDF. A TSDF clips the number to a thin band around the surface, say 20 cm. Beyond the band it says only “far”. That is enough to draw a surface, but a planner that cruises in open space needs the true distance there too.

Ask the map how far

A top view of a room with a block, a pillar and a shelf. Colour shows the distance to the nearest surface: darker is farther. Drag the robot with the sliders or by touching the room. Then change the robot radius.

2.60 m
2.00 m
0.30 m

A made-up 5 m by 4 m room. The distance is computed exactly from the shapes (rectangles, a disc and the four walls). The arrow is the numerical gradient of that distance.

Look at the arrow. It points straight away from the nearest surface. It always has the same length, whatever the distance. That is not an accident, and it is the second property the paper uses.

The slope is always one

Walk away from a wall at a steady pace. After one meter, you are one meter farther. After two meters, two. The distance grows by one meter for every meter you walk. In math words, the gradient of the SDF (its slope in every direction, written ∇d) has length exactly one, and it points away from the nearest surface point. This is the Eikonal equation.

∇d(x)
The gradient: the direction in which the distance grows fastest. It is a vector with one entry per axis.
(x − x*) / d(x)
Here x* is the nearest surface point. The vector from x* to x, divided by its own length d(x), is a unit vector that points away from the surface.
‖∇d(x)‖2 = 1
Its length is one. “Almost everywhere” means at all points except a few creases, such as the line halfway between two walls, where the nearest surface point is not unique.

Chapter 4 uses the unit slope to prove a bound on interpolation error. Chapter 7 turns it into a loss that trains the network. Keep it in mind. A map can store “distance” and still break this rule, and then its slope lies to the planner.

Why robots plan on it

The paper gives three reasons. First, an SDF answers a distance or collision query in constant time: look up one point, read one number. The cost does not grow with the number of obstacles. Second, the obstacle surface hides inside the map as the zero crossing, so no separate surface list is needed. Third, the gradient gives a push direction for free, which helps localization, motion planning and control.

A worked example shows the use. A robot of radius 0.30 m is at a point where d = 0.52 m. It clears the nearest surface by 0.52 − 0.30 = 0.22 m. It is safe. If d were 0.25 m, the robot body would reach 5 cm into the obstacle. The planner would add a step along ∇d to push the robot out. One lookup gave both facts.

What the paper builds

The robot carries a range sensor, such as a LiDAR or a depth camera. At each time t it sends a position ot and a set Pt of surface points it just saw, in world coordinates. The goal is a function d̂(x) that approximates the true SDF everywhere, learned online while the stream arrives. It must also have an accurate gradient. The next chapter shows why that is hard to get with the old tools.

The paper’s answer is named OREN, the Octree Residual Network. An octree stores a coarse, explicit estimate. A small network learns the correction. The hero at the top of this page is a toy of that split.

The road

  1. Three old ways to store a distance field: grids, Gaussian processes and networks, and what each costs.
  2. The semi-sparse octree: a tree that stores values where the surface is, and also next to it.
  3. Gradient-augmented interpolation: using the slope at each corner to guess the middle.
  4. Why the prior is better: a short proof of an error bound.
  5. The neural residual: features at corners, a small decoder, and the shapes of the tensors.
  6. Rays and three kinds of points: what the model trains on.
  7. Three losses: reconstruction, Eikonal and projection.
  8. The online loop: key frames, updates and queries, and what they cost.
  9. The experiments: speed, memory and accuracy against four baselines.
  10. Ablations and limits: which part earns its keep, and where OREN stops.
  11. Field Guide: numbers, code and where to go next.
A robot with radius 0.30 m reads d = 0.25 m at its center from an ESDF. What does the map tell the planner?

Chapter 1

Three Old Ways to Store a Distance Field

Compare grids, Gaussian processes and networks, and find the one thing each of them gives up

You are the engineer. Your robot has a LiDAR that streams points at several frames per second. The planner needs a distance map that updates as the robot moves. You list what you want. The map must be differentiable, so the planner can follow its slope. It must give the true distance far from walls, not a clipped one. It must run online, fast enough to keep up. And it must scale to a large building without eating all the memory.

The paper sorts earlier work into three families. Each one gets some of the list and loses the rest. We take them in turn.

Family one: volumetric grids

A volumetric method stores numbers in small boxes called voxels. A voxel is a 3D pixel. To save memory, systems use a hash table (a lookup keyed by position) or an octree (Chapter 2) so that empty space costs nothing.

The classic example is Voxblox. It builds a TSDF by measuring, for each voxel, the distance to the observed surface point along the sensor ray. That is a projective distance. Then it spreads values outward with a breadth-first search (BFS), which counts steps from voxel to voxel. Both the projective distance and the BFS step count are only approximations of the true straight-line distance. Later systems fix this with a non-projective distance and with the distance to the nearest oriented surface point, instead of the step count.

Grids are fast and scale to large scenes. The paper names two costs. Their estimates are non-differentiable, because a grid stores one value per box and jumps at box edges. And accuracy is limited by the grid resolution: to get finer detail you must store more boxes. Voxblox also pays for the full Euclidean field. Its ESDF is much slower than its TSDF; Chapter 9 shows 0.87 frames per second on one test scene.

Family two: Gaussian processes

A Gaussian process (GP) is a way to fit a smooth curve through data and also say how unsure it is. Think of drawing a smooth line through a few dots and shading a band around it. The band is wide where dots are few. GPIS and its relatives do this for the SDF. They give a continuous field, a gradient and an uncertainty.

The price is time. Training a GP means inverting a matrix that has one row for every data point. The cost of that inverse grows with the cube of the number of points n. A short worked example shows what that means. Take n = 1,000 points: about 1,0003 = 109 operations. Take n = 10,000: 1012. Ten times the data costs a thousand times the work.

There is a second problem. GPIS cannot extrapolate far from the surface. Log-GPIS and VDB-GPDF reach farther, but they learn an unsigned distance in log space, so they lose the sign. The paper says GP methods scale poorly to large environments for these reasons.

Family three: neural networks

A neural network can store a whole SDF in its weights. You give it a point x and it returns d(x). DeepSDF showed this for single shapes. iSDF updates a small network online from key frames and adds an Eikonal term (Chapter 7) to keep the slope at one. NeuS learns the SDF together with a radiance field, which is a network that predicts how a scene looks. Our NeRF and 3D Gaussian Splatting lesson covers that side.

Networks are compact and differentiable. They can capture fine surface detail. The paper lists their trouble spots. They tend to be less efficient than grids. In large scenes or online use they hit memory limits and catastrophic forgetting: the network learns the new room and overwrites what it knew about the old one. Many are restricted to truncated SDF. The ones that learn a Euclidean SDF are often object level and need a lot of training data and time. And the paper observes that accuracy far from the surface is rarely even evaluated.

Hybrids, and the two closest relatives

A hybrid method combines a stored structure with a network. PIN-SLAM keeps neural features in voxels near the surface and mixes the k nearest features through one shared decoder. H2-Mapping keeps an octree SDF prior and learns a neural residual on top of it. LCP-Fusion extends that to SLAM. All three still learn only the truncated SDF. HIO-SDF removes the truncation by running Voxfield first to make a global prior. But its speed and accuracy are then limited by that grid, and its fixed-size network over-smooths as the observed area grows.

Two works sit closest to OREN. H2-Mapping also interpolates a prior in an octree and trains a network residual, but only for truncated SDF. Gradient-SDF is voxel based and also stores gradients, but uses them to sharpen the surface and for camera tracking, and it ignores free-space distance. OREN keeps the octree and the residual, stores gradients to improve the prior everywhere, including far from the surface, and trains for the whole space.

Set your requirements

Switch on the properties your robot needs. Rows that fail any switched-on property fade out. See what is left.

A summary of the paper’s Related Work (Section II) and Table III, not a benchmark. “yes” means the paper credits the family with it, “no” means the paper names it as a weakness, “part” means true only for some members or with a caveat the paper states. Only a row that says “yes” to every switched-on property passes.

No row except the last has four “yes” marks. That is the gap OREN claims to fill. The paper states two contributions. One is a new gradient-augmented interpolation in a semi-sparse octree, which gives a better prior (Chapters 2 to 4). The other is a hybrid model with loss functions designed for accurate learning near and far from the surface, fast enough to run in real time (Chapters 5 to 8).

HIO-SDF predicts SDF over the whole space. According to the paper, why does it still fall short?

Chapter 2

The Semi-Sparse Octree

Build a tree that spends its memory near the surface, and see why it also keeps the empty cells next door

Suppose you must label every spot on a city map with its distance to the nearest road. You would not give a downtown block and an empty desert the same detail. You would zoom in where roads are dense, and use one big tile where nothing happens.

An octree does exactly this in 3D. Start with one big cube. If the cube holds part of the surface, cut it into 8 equal smaller cubes (two halves along each of the three axes). Check each small cube the same way. Stop at a smallest size. Each cube in the tree is an octant. The tree has layers: layer 1 is the big cube, and each next layer halves the cube side.

In 2D the same idea cuts a square into 4, and it is called a quadtree. The device below uses 2D so that you can see all of it at once. Everything it shows holds in 3D with 8 children in place of 4.

What the tree stores

Each octant has 8 corners. The paper calls each corner a vertex. At every vertex xk the tree stores two learnable things: an estimate dk of the SDF there (one number), and an estimate gk of its gradient there (three numbers). Neighbouring octants, even at different depths, share a vertex. An octant’s eight corners are also corners of its eight children, so a parent and its children use the same stored numbers where they touch.

“Learnable” matters. These numbers are not measured and frozen. They start at some value and the training loss (Chapter 7) nudges them until the interpolated SDF fits the data. The octree is the first half of a model that is trained, not only a lookup table.

python# one vertex of the octree, as the paper describes it (a sketch, not the authors' code)
class Vertex:
    d: float            # d_k, estimate of the SDF at this corner (learnable)
    g: float[3]         # g_k, estimate of the SDF gradient at this corner (learnable)
    f: float[3]         # f_k, an implicit feature, F = 3 in the paper (Chapter 5)

class Octant:
    corners: Vertex[8]  # shared with neighbours, even across depths
    children: Octant[8] | None

Three kinds of layer

The paper defines three layer types. A layer is dense when all octants form a regular grid, with no gaps. A layer is sparse when only the child octants that contain surface points are created. A layer is semi-sparse when the child octants that contain surface points are created and all their siblings too. Siblings are the other children of the same parent.

Why does the difference matter? Think of a query point in free space, just beside the surface. In a sparse layer, its octant may simply not exist, because nothing in that cube touched the surface. Then the lookup falls back to the parent, a bigger cube whose corners are farther away. Far corners mean a coarse guess. In a semi-sparse layer the empty sibling exists, so the lookup lands in a smaller cube with closer corners.

The paper makes a precise claim. Given a query x, the semi-sparse octree returns the smallest octant that contains x, and that octant is never larger than the one a sparse octree finds. Fig. 3 of the paper shows the visible effect: a sparse octree gives an interpolated SDF with jumps at the octant borders, and a semi-sparse one is much smoother.

Grow the tree

The yellow dots are surface points. Blue cells exist only because of the semi-sparse rule. Drag the teal probe, then change how many layers are semi-sparse.

6
3
0.62
0.66

A 2D toy: a circle and a short wall of surface points in a unit square. Layer 1 is the whole square; layer l has cells of side 1/2l−1. Cell counts are computed live. The paper’s real counts are in the text: on Replica room 0, making every layer semi-sparse raises the octants from 21,418 to 41,073.

How many layers, and how many semi-sparse

The paper uses N = 8 layers, of which the first M = 5 are semi-sparse, and a finest resolution r = 10 cm. Read the layer sizes from the finest up. Layer 8 has cubes of side 10 cm. Each layer above doubles the side. Layer 5, the last semi-sparse one, has cubes of 10 cm × 23 = 80 cm. That is the paper’s bound: for a query near the surface, the octant that holds it is no larger than r × 2N−M, here 80 cm. (This is our reading of the paper’s formula.)

Why not make every layer semi-sparse? Count the cubes. Each layer has about eight times as many octants as the one above it, so the finest layers hold most of them. Making those fine layers keep all their empty siblings is expensive. The prior is already accurate near the surface, so the extra siblings buy little.

The paper tests it on Replica room 0. With the first five layers semi-sparse, the tree allocates 21,418 octants and 37,130 vertices. With all layers semi-sparse, it allocates 41,073 octants (+92%) and 51,174 vertices (+38%), without a significant gain in accuracy. The lesson: only the coarse layers need the siblings. The knob M trades memory for accuracy.

The tree also grows on demand. When the robot sees a new part of the room, new octants appear around the new surface points, and new vertices come with them. Nothing needs to be allocated for a room the robot has not seen.

A query point lies in free space right beside a wall, in a sibling cube that holds no surface point. What does a semi-sparse layer give you that a sparse layer does not?

Chapter 3

Gradient-Augmented Interpolation

Use the slope stored at each corner to guess the distance in the middle of a cube

Two hikers stand on a hillside, 100 m apart. Each knows her height above the valley floor. You stand between them and want your own height. With only the two heights, you would draw a straight line between them and read off the middle. That is a fair guess on a smooth slope. It is a poor one if there is a ridge between the hikers.

Now suppose each hiker also tells you the slope under her feet. From each end you can walk toward your spot along her slope and get her own prediction. Two predictions from two sides are better than one straight line. This is the idea of this chapter. The octree gives us eight hikers, the cube corners. Each one reports a distance and a gradient.

Plain interpolation, the baseline

Take a query point x inside the smallest octant that holds it. The standard way to guess d(x) from the eight corner values is a weighted average. Corners near x get a large weight. Corners far from x get a small one. This is trilinear interpolation: blend along one axis, then the next, then the third.

dtl(x)
The plain (tl, for trilinear) estimate of the SDF at x.
1/γ
A normalizer. γ is the sum of the eight weights, so dividing by it makes the weights add up to one. The result is a true average.
∑k=18
Add up the terms for the eight corners of the octant.
wk
The weight of corner k. It is larger when x is closer to that corner. The paper writes it as the inverse of a distance product, in vector form.
dk
The SDF value stored at corner k.

This formula has a hidden flaw. It can never return a value larger than the biggest corner value, or smaller than the smallest. It only blends numbers it already has. Now picture a cube whose corners sit right on two opposite walls. Every corner stores a distance near zero. The blend of eight near-zero numbers is near zero. But the point in the middle of the gap is far from both walls. The paper states this directly: when an octant is surrounded by several obstacles, the plain interpolation is no larger than the vertex values, and it is much too small.

The fix: extrapolate along the slope first

Each corner already stores a gradient gk. It tells us which way the distance grows and how fast. Use it before you blend. From corner k, walk to x along the slope. The distance changes by gk dotted with the step. That gives corner k’s own prediction of d(x).

dk(x)
Corner k’s prediction of the SDF at x. It is a plain number.
dk
The SDF stored at the corner: where the walk starts.
gk⊤
The stored gradient, written as a row so that it can take a dot product. Its direction says where the distance grows; for a true SDF its length is one.
(x − xk)
The step from the corner to the query point, a vector with one entry per axis.

Then blend the eight predictions with the same weights as before.

dga(x)
The gradient-augmented (ga) prior. It is the explicit half of OREN’s answer.
wk
The same weights as in the plain formula. Nothing else changes.
dk(x)
The slope-based prediction from corner k, from the previous equation. This replaces the bare corner value dk.

The only change is the term inside the sum. Plain interpolation blends the corner values. The new method blends what each corner predicts at x.

A worked example you can check by hand

Take one dimension to keep it small. Two walls stand at 0 m and 1 m. The octant is the segment between them. The corners are the walls, so d0 = d1 = 0. The gradient points away from the nearest wall. At corner 0 it points right: g0 = +1. At corner 1 it points left: g1 = −1. The true distance is a tent: d(x) = min(x, 1 − x). In 1D the weights are 1 − t and t, where t is the position in the segment.

Plain interpolation gives (1 − t) · 0 + t · 0 = 0 at every t. At the middle the truth is 0.5, so the error is 0.5 m. Now take t = 0.25. Corner 0 predicts 0 + (+1)(0.25) = 0.25. Corner 1 predicts 0 + (−1)(0.25 − 1) = 0.75. The blend is 0.75 × 0.25 + 0.25 × 0.75 = 0.375. The truth is 0.25. The error is 0.125 m, half of the plain error of 0.25 m. At t = 0.5 both corners predict 0.5, so the answer is exact.

In general the prior here is dga(t) = 2t(1 − t), a smooth arch. It meets the tent exactly at the middle and at the corners and is a bit too high in between. Keep that overshoot in mind. A tent has a sharp crease, and no smooth formula matches a crease. The network of Chapter 5 is there to fix what is left.

Interpolate between the corners

One cell of side 1 m, seen from the side. Choose one wall or two walls, then drag the query across the cell. Compare the two blends with the truth.

0.25 m

The worked 1D toy from the text, with linear weights 1−t and t. The corner values and gradients are the exact ones. The paper’s real octants are 3D with eight corners, and the paper’s own Fig. 4 shows the same effect in 2D.

What it costs, and what it buys

Gradient-augmented interpolation needs more memory, because each vertex now stores three extra numbers. It needs more compute, because each corner does a dot product. In exchange it has a smaller error bound, which Chapter 4 proves. The lookup cost does not depend on the size of the scene: find the octant that holds x, read eight corners, do eight dot products. The paper calls this O(1).

pythonimport numpy as np

def sdf_prior(x, corners, d, g, w):
    """Gradient-augmented prior at one query point (a sketch of Eq. 3 and 4).
    x: (3,) query.  corners: (8, 3) corner positions.
    d: (8,) stored SDF values.  g: (8, 3) stored gradients.  w: (8,) interpolation weights."""
    pred = d + np.einsum('kj,kj->k', g, x - corners)   # each corner's own guess at x, shape (8,)
    return (w * pred).sum() / w.sum()                 # blend with weights that sum to 1

The vertex values dk and gk are the parameters of this half of the model. The paper writes the set of them as θ = {dk, gk}, and calls the whole octree interpolation the prior network T(x; θ). They are trained together with the residual network, not measured once and fixed.

Two walls are 1 m apart. A cell has both corners on the walls (d = 0 at each). What does plain interpolation give at the middle, and what does the gradient-augmented prior give?

Chapter 4

Why the Prior Has a Smaller Error

Prove, step by step, that using the slope shrinks the worst-case error, and learn when the proof can be trusted

A weather service says tomorrow will be 20 degrees, give or take 2. That “give or take” is a guarantee. It is more useful than the forecast alone. We want the same for our SDF prior: a number E such that the guess is never off by more than E.

The paper proves such a number for both interpolation methods and compares them. The proof is short. It uses one idea from calculus, Taylor’s theorem (a smooth curve near a point looks like its value plus its slope times the step, plus a small leftover that grows with the square of the step), and one new quantity: how sharply the SDF bends.

How sharply the field bends

The gradient is the slope. The Hessian ∇²d is the slope of the slope: a small matrix that tells how fast the gradient changes as you move. If the field is a flat ramp, the gradient never changes, and the Hessian is zero. If the field turns a sharp corner, the gradient swings fast, and the Hessian is large. The spectral norm ‖∇²d‖2 is a single number for it: the largest amount the matrix can stretch a unit vector. The paper assumes d is twice differentiable and bounds this number over the octant.

M
The bending bound. A flat field has M = 0. Its unit is 1 per meter.
supx∈V
The largest value over every point x in the octant V.
‖∇²d(x)‖2
The spectral norm of the Hessian at x. It measures how fast the gradient turns there.

A feel for M helps. Take a single point obstacle and a query at distance r from it. Then d(x) = r, the gradient is the unit vector away from the point, and a short calculation (ours, not the paper’s) gives a Hessian norm of exactly 1/r. Far from the point, the field is nearly a straight cone and M is small. Close to the point, the gradient swings fast and M is large. So M is big near small things and small in open space.

The statement

Let the octant have side L. Suppose the corners hold the exact SDF value and the exact gradient. Then for any x in the octant, the paper proves:

ega(x)
The error |dga(x) − d(x)| of the gradient-augmented prior at x.
3ML²/8
The paper’s upper bound on it. It grows with the square of the side L and with the bending M.
etl(x)
The same error for plain trilinear interpolation.
√3 L/2
Its upper bound. It grows with L only, and does not depend on M.

The proof, line by line

Step 1: Taylor. Around corner k, the true field is d(x) = dk + gk⊤(x − xk) + ½(x − xk)⊤ ∇²d(ξk) (x − xk) for some point ξk on the segment from xk to x. The first two terms are exactly corner k’s prediction dk(x). So the truth minus that prediction is the last term only.

Step 2: bound that term. For any vector v, v⊤Hv ≤ ‖H‖2‖v‖2. With ‖H‖2 ≤ M this gives a corner error of at most (M/2)‖x − xk‖2. The error is quadratic in the distance to the corner.

Step 3: average the corners. The prior is a weighted average, so its error is the same average of the corner errors: ega(x) ≤ (M/2γ) Σ wk‖x − xk‖2. The paper shows this weighted average of squared distances is at most 3L²/4, with equality at the center of the octant. At the center, each corner is half a diagonal away, and the half diagonal is √3 L/2. Squared, that is 3L²/4. So ega ≤ (M/2)(3L²/4) = 3ML²/8.

Step 4: the plain case. Plain interpolation only has corner values. By the mean value theorem (walking from one point to another changes a smooth function by the slope at some point on the path, times the step), d(x) − dk = ∇d(ζk)⊤(x − xk) for some ζk on the segment. The Eikonal property says ‖∇d‖ = 1, so the error is at most ‖x − xk‖. At the center that is √3 L/2. The error is linear in the distance to the corner.

That is the whole proof. Using the slope changes the error from linear to quadratic in the distance to the corner.

The ratio, and a worked example

Divide the two bounds: (3ML²/8) / (√3 L/2) = √3 ML/4. The gradient-augmented bound is tighter whenever ML < 4/√3, about 2.31. Try numbers. Let L = 10 cm = 0.1 m and M = 2 per meter. Then ega ≤ 3 × 2 × 0.01 / 8 = 0.0075 m, which is 0.75 cm. And etl ≤ 1.732 × 0.1 / 2 = 0.0866 m, which is 8.66 cm. The ratio is 0.087, so the prior bound is about 11 times tighter.

Halve the cell to L = 5 cm. The new bound is 0.1875 cm for the prior (four times smaller, since it goes with L²) and 4.33 cm for plain (two times smaller). The paper observes that M is small in practice (its Fig. 4f), so the ratio stays below one.

Use the point-obstacle rule M ≈ 1/r. The condition ML < 2.31 reads L < 2.31 r. A 10 cm cell is fine for anything farther than about 4.3 cm from a thin obstacle. An 80 cm cell is fine farther than about 35 cm. This explains the octree’s shape: small octants right at the surface, where M is large, and big octants in open space, where M is small. The paper makes the same point: far from the surface, an empty large octant is enough for an accurate prior.

Compare the two bounds

Bars show the worst-case error on a log scale. Move the octant side L and the bending M. Or press a preset. Watch where the gradient-augmented bar stays below the plain bar.

10 cm
2.0 per m

The bounds are the paper’s Eq. 7: 3ML²/8 and √3L/2, evaluated at the center of the octant, where they are largest. The values of L and M here are illustrative; the paper does not tabulate M. Real errors are usually well below the bounds.

Where the proof stops

The proof needs a twice differentiable field with a bounded Hessian. A true SDF is not that smooth everywhere. On the medial axis, the set of points with two or more equally near surface points (the crease halfway between two walls), the Hessian blows up. The paper says it ignores those points when it bounds the error. It adds an empirical note: in its 2D examples (Fig. 4), the gradient-augmented prior still has lower error on the medial axis. Chapter 3’s toy showed the other side: a smooth formula cannot copy a crease, and it overshoots a little near it. The bound is a guide to the smooth parts. The neural residual cleans up the rest.

pythonimport math

def bounds(L, M):
    """Worst-case errors of the two priors in an octant of side L (Eq. 7 of the paper)."""
    e_ga = 3 * M * L ** 2 / 8      # gradient-augmented: grows with L squared
    e_tl = math.sqrt(3) * L / 2     # plain trilinear: grows with L
    return e_ga, e_tl, e_ga / e_tl      # the ratio is sqrt(3) * M * L / 4

print(bounds(0.1, 2.0))              # (0.0075, 0.0866, 0.0866): 0.75 cm against 8.66 cm
You halve the octant side L, keeping M fixed. How do the two worst-case bounds change?

Chapter 5

The Neural Residual

Add a small network that learns only what the octree prior gets wrong, and follow the tensors through it

A tailor cuts a suit from a standard pattern. The pattern gets the shape about right. Then the tailor makes small fixes at the shoulder and the sleeve. Nobody redraws the whole suit. The fixes are small because the pattern did most of the work.

OREN follows the same plan. The octree gives a prior dga(x) that is already roughly right (Chapters 3 and 4). A small neural network learns the residual: the difference between the truth and the prior. The final answer is the sum.

d̂(x)
OREN’s final SDF prediction at the query point x. This is Eq. 11 of the paper.
dga(x)
The explicit prior from the octree, one number per query.
δd(x)
The implicit residual from the network, one number per query. It can be positive or negative.

Why learn a residual and not the whole SDF? The prior carries the big picture: how far the walls are, roughly. If the network had to learn that too, it would need to be large, and large networks are slow to train and prone to forget. With a good prior, the network is free to spend its few weights on fine detail. The paper puts it this way: a better prior leaves more capacity for the network to recover the fine geometry.

Features live at the corners

The network needs to know where in the scene it is looking. A raw coordinate (x, y, z) is not enough, because one small network cannot memorize a whole building. So each octree vertex also stores a short learned vector, an implicit feature fk with F numbers. The paper uses F = 3. Features start at zero and are trained together with the network weights.

For a query, the model finds the same smallest octant as before and blends the eight corner features with the same weights wk as the prior. This gives one feature vector f(x) = Σ wk fk that describes the local neighbourhood. A feature is a tiny summary of “what the surface looks like around this corner”, learned from the data.

The paper says features are assigned per vertex to enable continual learning as the sensor moves. When the octree grows into new space, it adds new vertices, and so new features appear exactly where they are needed. Our reading is that this keeps updates local: new places get their own parameters, and the shared decoder stays small. The paper does not run a forgetting test, so we state this as design intent, not a measured result.

The decoder

A decoder turns the feature into a number. It is a small multilayer perceptron (MLP): stacked layers, each a matrix multiply followed by a simple nonlinear function. The paper’s MLP has two hidden layers of 32 units and uses LeakyReLU. LeakyReLU passes positive numbers unchanged and shrinks negative ones to a small fraction, so no unit goes fully dead.

The decoder D takes two inputs: the prior dga(x) and the blended feature f(x). It outputs the residual δd(x). Feeding the prior in lets the network scale its correction to the current estimate, for example by being more careful near zero than far away (our reading; the paper does not say why).

Follow one batch

Count the tensors. Suppose B query points arrive together. We write each shape as [rows, columns]. Stage by stage:

  1. Query points [B, 3]. Each row is x, y, z.
  2. Octant lookup gives the eight corner positions [B, 8, 3], and eight weights per query [B, 8].
  3. Prior [B, 1] from the corner values dk and gradients gk (Chapter 3). Feature [B, 3] from the eight corner features [B, 8, 3].
  4. Concatenate the prior and the feature: [B, 4].
  5. Hidden layers: [B, 32], then [B, 32].
  6. Output δd [B, 1]. Add the prior: d̂ [B, 1].

Here is one query with made-up numbers, to see the arithmetic. The octree prior says dga = 0.42 m. The blended feature is f = (0.10, −0.20, 0.05). The decoder reads the four numbers (0.42, 0.10, −0.20, 0.05) and returns δd = −0.03 m. The final prediction is 0.42 + (−0.03) = 0.39 m. The network moved the answer by 3 cm, a small step. That is the intended job: it never has to produce the 0.42 itself.

Why concatenate and not add the feature to the prior? The two kinds of number mean different things. The prior is a distance in meters. The feature is a learned code with no unit. Putting both in one row lets the first layer learn how to weigh them. Notice also that every row of the batch is independent. The same decoder weights serve all B queries, which is why a batch of 81,920 points costs one matrix multiply per layer on a GPU.

Send a batch through

A dot walks the path of a batch from query points to the final SDF, and every box shows the shape it holds. Choose a batch size.

Sizes F = 3 and two 32-unit hidden layers are the paper’s. We assume a scalar output and a bias on every layer to count weights. 9,100 is the points from one frame (2,275 rays times 4 points per ray, Chapter 6); 81,920 is 20,480 rays times 4 points per ray. The vertex count 37,130 is the paper’s figure for Replica room 0.

Now count the parameters. The decoder has (4 × 32 + 32) + (32 × 32 + 32) + (32 × 1 + 1) = 160 + 1,056 + 33 = 1,249 weights. The octree on Replica room 0 has 37,130 vertices, and each stores 1 value, 3 gradient numbers and 3 feature numbers: 7 numbers. That is 37,130 × 7 = 259,910 numbers. The map lives mostly in the vertices. The network is tiny. (This is our arithmetic from the paper’s sizes.)

pythonimport numpy as np

def oren_forward(x, tree, mlp):
    """One batch. x: (B, 3). Returns d_hat: (B,), the prior d_ga: (B,), the residual: (B,)."""
    corners, w, idx = tree.locate(x)                    # (B,8,3), (B,8), (B,8) vertex ids
    d_ga = sdf_prior(x, corners, tree.d[idx], tree.g[idx], w)   # (B,), Chapter 3 (batched)
    f = (w[..., None] * tree.f[idx]).sum(1) / w.sum(1, keepdims=True)  # (B,3) blended feature
    h = np.concatenate([d_ga[:, None], f], axis=1)   # (B,4): prior + feature
    h = leaky(h @ mlp.W1 + mlp.b1)                  # (B,32)
    h = leaky(h @ mlp.W2 + mlp.b2)                  # (B,32)
    resid = (h @ mlp.W3 + mlp.b3)[:, 0]              # (B,)  delta_d
    return d_ga + resid, d_ga, resid                   # Eq. 11
Why does OREN’s network learn a residual added to the octree prior, instead of the whole SDF?

Chapter 6

Rays and Three Kinds of Points

Turn each laser beam into training examples for free space, the surface and the zone around it

A LiDAR fires a beam from the sensor. The beam travels through empty air and stops where it hits something. The sensor reports the hit point q. It also knows its own position o. That one beam tells you two facts. Every point on the segment from o to q was empty, or the beam would have stopped sooner. And the point q lies on a surface.

That is real supervision, and it is free. This chapter shows how OREN turns each beam into a few training points, each with a target distance. The model needs those targets to learn.

The stream and the training set

At time t the robot has a sensor position ot and a set Pt of observed surface points, in world coordinates. The model does not train on all of the data. It trains on a small, fresh dataset that it builds at each step, from the newest frame and a few selected earlier key frames (Chapter 8 shows how they are chosen). Suppose the selected set T holds W key frames. For each frame in T together with the current one, the paper picks ⌊N/|T ∪ {t}|⌋ rays at random. A ray j has origin oj = oi and endpoint qj taken from that frame’s points.

The paper sets W = 8 and N = 20,480. With 8 key frames and the current frame, |T ∪ {t}| = 9, and each frame supplies ⌊20,480 / 9⌋ = 2,275 rays. (We assume the current frame counts as the ninth.) A sketch of the loop over one frame is below.

Three kinds of point

Each ray yields points of three types. Their settings in the paper are nF = 1 free point, one surface point, and nP = 2 perturbed points per ray.

Surface points PS are the hit points qj themselves. Their true SDF is exactly 0, by definition of the surface. They pin the zero level set.

Free-space points PF sit on the beam, between the sensor and the hit. A point is x = oj + λ(qj − oj), where λ is drawn uniformly between δ and 1 − δ. Here λ is the fraction of the way along the beam, and the margin is δ = 0.05. The margin keeps points off both ends: off the sensor end and off the surface end. For a 4 m beam, free points fall between 0.2 m and 3.8 m. These points teach the model the SDF far from walls, which the old truncated methods never see.

Perturbed points PP sit on the same beam, close to the surface, on either side of it: x = qj + α(qj − oj)/‖qj − oj‖. The offset α is drawn uniformly at a distance between σ and 3σ from the surface, before it or behind it, with σ = 0.06 m. So a perturbed point is between 6 cm and 18 cm from the hit. Points in front are in free space. Points behind are inside the obstacle, so they teach the sign. (The paper prints the range as (−3σ, σ) ∪ (σ, 3σ); we read it as σ to 3σ on each side.)

The count per update is simple. Each ray gives 1 surface point, 1 free point and 2 perturbed points: 4 points. With N = 20,480 rays, that is 81,920 training points.

What target does each point get?

We have no true SDF to copy. So the paper builds a target. For surface points the target is 0. For the others it uses the distance to the nearest observed surface point, with the sign set by which side of the surface the point is on.

d̃(x)
The training target for point x. It is an approximation of the true SDF, not the truth.
sign(x)
Plus one if the point is in front of the surface along its beam, minus one if behind.
miny∈PS
Search over the surface points collected for this update and keep the closest.
‖x − y‖2
Straight-line distance to a surface point y.

This target is only a loose upper bound of the truth. The nearest sampled surface point is never closer than the nearest point on the real surface. The truth might be smaller because the real wall also lies between two samples, or because the wall is tilted. A short worked case: a wall tilted by θ to the beam. A point that lies α along the beam from the hit is really α cos θ from the wall. At α = 6 cm and θ = 50 degrees, that is 6 × 0.643 = 3.86 cm. The target is between 3.86 cm and 6 cm. Chapter 7 shows how the losses are built to tolerate this: one of them uses it only as a ceiling.

Sample one beam

The sensor (left) fires one beam at a wall (right). Yellow is the surface point, green the free-space point, pink the perturbed points. Tilt the wall, change σ, then press Resample.

6 cm
50°

The paper’s settings are δ = 0.05, σ = 0.06 m, nF = 1, nP = 2. The 3 m beam and the wall tilt are illustrative. The true distance to the wall is computed exactly; the label bounds are the two limits in the text.

pythonimport numpy as np

def sample_points(origin, hits, delta=0.05, sigma=0.06, n_free=1, n_pert=2, rng=np.random):
    """Turn rays (origin -> hit) into points. origin: (3,), hits: (R, 3). A sketch of Section IV-D."""
    ray = hits - origin                                   # (R,3)
    u = ray / np.linalg.norm(ray, axis=1, keepdims=True)  # unit direction
    lam = rng.uniform(delta, 1 - delta, (len(hits), n_free, 1))
    free = origin + lam * ray[:, None]                    # (R, n_free, 3) on the beam
    a = rng.uniform(sigma, 3 * sigma, (len(hits), n_pert, 1))
    a *= rng.choice([-1, 1], (len(hits), n_pert, 1))  # in front of the hit or behind it
    pert = hits[:, None] + a * u[:, None]               # (R, n_pert, 3)
    return hits, pert, free                            # targets: 0, then +/- nearest-surface distance
The paper uses N = 20,480 rays and per ray: one surface point, one free-space point, two perturbed points. How many training points is that per update, and why does a free-space point help?

Chapter 7

Three Losses

See how reconstruction, Eikonal and projection terms each teach a different rule about the distance field

Picture a coach with three rules for a player. Stand on the line when the whistle blows. Stay in your lane while you run. And keep a steady pace, never faster, never slower. No single rule is enough. Together they shape the player.

A loss is a number that says how wrong the model is. Training moves the model’s parameters to make it small. OREN has three losses. Each one acts on the 81,920 points of Chapter 6 in a different way. The parameters that move are all of the octree’s vertex values dk, gk, fk and the decoder’s weights β.

Loss 1: reconstruction

The first loss says: get the surface right. It uses an L1 loss, which is the absolute value of an error. A big error counts in proportion to its size, so one bad label does not dominate the sum. It has two parts.

Lrecon
The reconstruction loss. Eq. 12 of the paper.
(wS/|PS|) ∑ |d̂(x)|
On surface points the true SDF is 0, so the loss is just the size of the prediction. wS = 1000 is the weight and |PS| is the number of surface points, so this is a weighted mean.
(wP/|PP|) ∑ (clo + cup)
On perturbed points the loss keeps the size |d̂| inside a range. wP = 200. The two penalties clo and cup are defined next.

The penalties are clo = max(eη(blo − |d̂|) − 1, 0) and cup = max(|d̂| − bup, 0), with η = 10. For perturbed points the bounds are blo = σ and bup = |d̃|, the label of Chapter 6. In words: the prediction’s size should be at least σ (the point is at least that far along the beam) and at most the label (the label is an upper bound). Outside that band the loss rises. Below the band it rises steeply, as an exponential. Above it, it rises as a straight line.

A worked case: σ = 0.06 m and label |d̃| = 0.12 m. If the model predicts |d̂| = 0.03, then clo = e10 × (0.06 − 0.03) − 1 = e0.3 − 1 = 0.350 and cup = 0, so the weighted term is 200 × 0.350 = 70.0. If it predicts 0.15, then clo = 0 and cup = 0.03, giving 200 × 0.03 = 6.0. If it predicts 0.09, inside the band, both are zero and the point costs nothing. A band is kinder than a point target because the label is itself only an estimate.

The reconstruction loss uses |d̂|, so it constrains the size and not the sign. Our reading is that the sign comes from the smoothness of the field and from the signed projection target below.

Loss 2: Eikonal

The second loss says: keep a steady pace. A true SDF has a gradient of length one (Chapter 0). The Eikonal loss punishes any point where the model’s gradient is longer or shorter than one.

Leik
The Eikonal loss. Eq. 13 of the paper.
∑k∈{S,P,F}
Apply it to all three kinds of point: surface, perturbed and free.
wkeik/|Pk|
A weight per kind, divided by the number of points of that kind: 10 for surface, 3 for perturbed, 10 for free.
‖ĝ(x)‖2
The length of the model’s gradient at x. The loss is zero when it equals one.

How does the model get its gradient ĝ? The paper does not use the automatic gradient of the network. It uses numerical differentiation: evaluate d̂ at x plus and minus a tiny step ε along each axis i, and take the difference. We read this as a central difference, ĝi = (d̂(x + εei) − d̂(x − εei)) / 2ε. That costs six extra evaluations per point, 7 in all. The paper says the extra positions help the network converge and give better stability where the gradient is not well defined. The paper also reports that applying the loss to this ĝ, which depends on the stored gk, works better than forcing each gk to unit length directly.

A worked case with made-up numbers: ĝ = (0.48, 0.64, 0.80). Its length is √(0.2304 + 0.4096 + 0.64) = √1.28 = 1.131. For a surface point the Eikonal cost is 10 × |1.131 − 1| = 1.31.

Loss 3: projection

Eikonal fixes the length of the gradient, but not its direction. And nothing so far tells the model what the distance should be far out in free space. The third loss fills the gap using the free-space points.

Lproj
The projection loss. Eq. 14 of the paper.
wproj/|PF|
The weight, wproj = 100, over the number of free points.
d̂(x)
The model’s signed prediction at a free-space point.
d̃(x)
The loose upper-bound label from Chapter 6.

It looks like the band loss, but its job differs. The label is only a loose bound, so the loss is not meant to make the model hit it exactly. The paper says it gives implicit supervision of the gradient direction and the distance scale far from the surface, and it speeds up convergence of the other losses. Picture a free point on a beam: its label shrinks as the point nears the hit, so the loss pulls the prediction in the right direction along the beam. The ablation in Chapter 10 shows how much this matters: without it the SDF error is about ten times larger.

Pay for a prediction

Choose a kind of point. Drag the predicted distance and the predicted gradient length. The curves show what each choice costs. The teal marker is you.

0.030 m
0.120 m
1.13

Per-point terms before dividing by the number of points, with the paper’s weights: wS = 1000, wP = 200, σ = 0.06, η = 10, Eikonal weights 10, 3 and 10, wproj = 100. The predicted values are yours; the paper does not give a loss curve.

The paper does not write the sum, but it says the model trains with these three losses. The weights sit inside each term, so the total is L = Lrecon + Leik + Lproj.

pythonimport numpy as np

def oren_loss(d_S, d_P, lab_P, d_F, lab_F, gnorm_S, gnorm_P, gnorm_F, sigma=0.06, eta=10):
    """d_*: predictions at surface/perturbed/free points; lab_*: the d-tilde labels; gnorm_*: ||g_hat||."""
    L_surf = 1000 * np.abs(d_S).mean()
    c_lo = np.maximum(np.exp(eta * (sigma - np.abs(d_P))) - 1, 0)   # steep below sigma
    c_up = np.maximum(np.abs(d_P) - np.abs(lab_P), 0)               # linear above the label
    L_recon = L_surf + 200 * (c_lo + c_up).mean()
    L_eik = 10 * np.abs(gnorm_S - 1).mean() + 3 * np.abs(gnorm_P - 1).mean() + 10 * np.abs(gnorm_F - 1).mean()
    L_proj = 100 * np.abs(d_F - lab_F).mean()
    return L_recon + L_eik + L_proj
The Eikonal loss alone would be happy with a field that is wrong by a constant shift or points the wrong way. Which loss gives the model direction and scale in free space?

Chapter 8

The Online Loop

Follow one update from sensor frame to improved map, and see why asking the map a question costs almost nothing

A student takes notes in a lecture, but her notebook has only eight pages. She cannot copy everything. She keeps the pages that cover the most new ground and skips the pages that repeat one another. When she studies, she studies those eight pages, plus the latest one. That is OREN’s training memory.

This chapter puts the earlier parts into one loop that runs while the robot moves. It also gives the speed and memory numbers that make the loop online.

Why not train on every frame?

A robot may stream thousands of frames. Training on all of them at each step would be far too slow. Training only on the newest frame has the opposite problem: the model drifts toward what it just saw and loses the rest. This is the forgetting problem again. So OREN keeps a small set of key frames, past frames chosen because they cover the observed surface well.

The paper takes its key frame rule from H2-Mapping. Compare the set of surface octants the current frame sees, Vc, with the set the last key frame saw, Vl. An intersection-over-union ratio of the two sets (how many octants both frames see, divided by how many either frame sees, so 1 means the same view and 0 means no shared view), set against a threshold cmin between 0 and 1, decides when a new key frame is inserted. The aim, in the paper’s words, is to cover the observed surface with little overlap between neighbouring key frames. (The paper prints one inequality; the sense of it follows from that aim.)

Choosing W frames by greedy coverage

Key frames pile up as the robot moves. To stay real time, OREN trains on only W = 8 of them at any step. It picks them greedily, one at a time:

  1. Pick the key frame that observes the most octants. Mask out (hide) those octants.
  2. Pick the frame that observes the most octants that are not yet masked. Mask those too.
  3. Repeat until W frames are chosen.
  4. If every octant is masked before W is reached, clear the mask except for the last chosen frame’s octants, and continue.

A tiny example. Four frames see these octants: A = {1, 2, 3, 4, 5}, B = {4, 5, 6, 7}, C = {1, 2, 8}, D = {9}. Take W = 3. Pick A first (5 octants). Mask 1 to 5. Now B adds {6, 7} = 2, C adds {8} = 1, D adds {9} = 1. Pick B. Mask 6 and 7. Now C adds 1 and D adds 1: a tie, so pick C. The three frames cover 8 of the 9 octants. The two frames with the most overlap, A and B, were both still useful, because the greedy rule counts only what is new.

Pick the key frames

A robot drove a loop through a room of 48 octants and took 12 frames. Choose how many frames to train on, and how to choose them. Colours show which pick first covered each octant.

4

A toy: 12 frames on a looping path, each seeing a block of up to 4 by 4 octants. The greedy rule is the paper’s (Section IV-C). “Newest frames” is a naive baseline we added for contrast; the paper does not test it. The paper uses W = 8.

One update, start to end

  1. Receive the frame: sensor position ot and points Pt. The paper assumes known sensor poses; its experiments use ground-truth poses.
  2. Grow the tree: add octants around the new surface points, and with them new vertices and new features (features start at zero).
  3. Maybe add a key frame with the overlap test, then select W frames greedily.
  4. Build the dataset: sample rays from the W key frames and the current frame, and make the surface, free and perturbed points with their labels (Chapter 6).
  5. Train: run the model, compute the three losses (Chapter 7), and update the vertex values and the decoder weights. The paper’s text does not give the number of optimizer steps per frame.
  6. Serve: the planner can query the current model at any time.
pythondef greedy_select(frames, W):
    """frames: list of sets of octant ids. Returns the indices of W frames (Section IV-C)."""
    chosen, masked = [], set()
    all_octants = set().union(*frames)
    while len(chosen) < min(W, len(frames)):
        if masked >= all_octants:                          # everything covered: reset the mask,
            masked = set(frames[chosen[-1]])                # keeping only the last pick's octants
        best = max((i for i in range(len(frames)) if i not in chosen),
                   key=lambda i: len(frames[i] - masked))      # frame with the most unmasked octants
        chosen.append(best); masked |= frames[best]
    return chosen

def update(model, frame, key_frames, rng):
    model.tree.grow(frame.points)                              # new octants, vertices, zero features
    key_frames.maybe_insert(frame)                            # overlap test with c_min
    picked = greedy_select([k.octants for k in key_frames], W=8)
    pts, labels = sample_all(frame, [key_frames[i] for i in picked], N=20480)
    loss = oren_loss(model, pts, labels)                      # Chapter 7
    model.step(loss)                                          # updates d_k, g_k, f_k and the decoder

Asking the map a question

Queries are cheap, and the cost does not grow with the map. The paper explains it in its related-work section: octree interpolation costs O(1), and the decoder is a matrix multiplication of roughly O(n2) for hidden width n. Count it for n = 32 (our arithmetic): the decoder needs 4 × 32 + 32 × 32 + 32 × 1 = 1,184 multiply-adds, plus a few dozen for the eight corner extrapolations. About 1,200 multiply-adds per query. A batch of 81,920 points is then roughly 97 million, which a GPU does in a blink. A larger map adds vertices, not work per query.

The measured cost

The authors time everything on an Intel 14900K CPU and an NVIDIA RTX 3090 GPU. OREN runs at 13.96 frames per second on Replica room 0 and 14.28 on the large Newer College sequence, the fastest of the five methods in both. It uses 1.33 GB and 1.59 GB of GPU memory, the least of the methods that use a GPU. Its CPU memory is higher than the lightest baselines (3.81 GB and 3.10 GB), because the semi-sparse tree allocates extra vertices. On an NVIDIA Jetson Orin with 16 GB of memory, it runs at 7 frames per second. Chapter 9 sets these beside the baselines.

Why does the cost of one SDF query not grow as the robot maps a bigger building?

Chapter 9

The Experiments, Table by Table

Read what each table of results shows, where OREN leads, and where it does not

A fair test needs an answer key, a fair field and clear scoring. Before we read the numbers, we check all three.

The setup

Data. The Replica dataset has eight synthetic indoor scenes (room 0 to 2 and office 0 to 4), one camera trajectory per scene, with exact ground-truth meshes. Newer College is a real LiDAR sequence of a large scene. For every method and dataset, the authors use ground-truth sensor poses. For PIN-SLAM they switch off its localization module. So these tests measure mapping, not localization.

Rivals. Four baselines: Voxblox (a volumetric TSDF and ESDF mapper), H2-Mapping (octree prior plus network, truncated), PIN-SLAM (voxel features, truncated) and HIO-SDF (volumetric prior plus network, whole space).

Answer key. For SDF scoring, the authors build a regular grid of test points (1.25 cm apart on Replica, 20 cm on Newer College). They compute the true SDF at each grid center from the ground-truth mesh (a point cloud for Newer College). Grid points with −0.1 ≤ d ≤ 0.2 m count as near the surface. The rest are far.

Scores. Three SDF scores. SDF MAE is the mean absolute error of the predicted distance, in cm. Gradient MAE is the mean angle between the predicted and true gradient, in radians. Valid ratio is the share of test points where a method gives any prediction. A truncated method gives none far from the surface. Mesh scores compare 200,000 points sampled on the reconstructed mesh with 200,000 on the true mesh: Chamfer-L1 distance, F1, precision, recall, accuracy, completion and completion ratio. In plain words: accuracy is how far reconstructed points lie from the true surface. Completion is how far true points lie from the reconstruction, so holes raise it. Precision is the share of reconstructed points close to the truth. Recall is the share of true points close to the reconstruction. F1 blends precision and recall. Chamfer averages accuracy and completion.

Table I: the mesh

The surface is not OREN’s main goal, but a good SDF must still get it right. OREN wins on recall, completion and completion ratio. On Replica room 0, its completion ratio is 93.32% against 90.79% for H2-Mapping and 88.84% for PIN-SLAM. On Newer College, it is 94.20% against 72.83% for PIN-SLAM. OREN’s completion distance there is 10.66 cm against 16.71 cm for PIN-SLAM and 72.86 cm for HIO-SDF.

It does not win on precision and F1 on Replica. On room 0 its precision is 87.04% against 99.57% for H2-Mapping, and its F1 is 89.86 against 95.38. The authors explain that H2-Mapping and PIN-SLAM are tuned for surface reconstruction, and that their meshes have more holes, which can raise precision. On Newer College the picture flips: OREN’s F1 is 92.31 against 67.39 for PIN-SLAM.

Table II: the whole distance field

This table is the one that matters for planning. Look at three things. First, coverage. H2-Mapping predicts SDF at only 16.05% of the test points on room 0, and PIN-SLAM at 25.01%. They know nothing beyond a thin band. Only OREN and HIO-SDF cover the whole scene. Second, distance accuracy. On room 0, OREN’s error over all points is 2.15 cm, against 3.27 cm for HIO-SDF and 3.13 cm for Voxblox. Third, gradient accuracy. OREN’s error is 0.153 rad (about 8.8 degrees), against 0.924 for HIO-SDF and 0.230 for Voxblox. A planner that follows the slope gets a reliable arrow from OREN and a nearly random one from HIO-SDF.

The authors say OREN is marginally better than the baselines on every SDF metric. Check the cells and one exception appears: on Newer College, near the surface, H2-Mapping has a lower SDF error (9.60 cm) than OREN (16.96 cm). H2-Mapping predicts only that band. All errors on Newer College are large in absolute terms (OREN’s error over all points is 56.00 cm). The test grid there is 20 cm wide and the scene is large; the paper does not say more about why the errors grow.

Table III: time and memory

OREN is the fastest and uses the least GPU memory. Chapter 8 listed the numbers. Two cells deserve a note. Voxblox runs at 0.87 and 0.20 frames per second, because its Euclidean field is slow to integrate. HIO-SDF takes the most CPU memory on Replica: 10.33 GB against 3.81 GB for OREN. H2-Mapping was tested on LiDAR by converting each scan into four depth images, because its code does not support LiDAR directly.

Read the tables as bars

Pick a scene and a measure. Bars are the paper’s numbers. A method with no bar has no value for that measure, because it predicts only near the surface.

All values are from the paper’s Table II (SDF and gradient errors; gradient error is over all test points) and Table III (speed and memory). The asterisk in the paper marks H2-Mapping on Newer College, run on LiDAR scans converted to four depth images each.

One more fact comes from outside the tables. The authors also ran OREN on four large outdoor scenes (a forest, a garage, an industrial site and a warehouse) and report that it runs in real time on them. They show these only as pictures (their Fig. 7), with no numbers.

H2-Mapping and PIN-SLAM have good near-surface scores. Why does the paper stress the SDF valid ratio when it compares them with OREN?

Chapter 10

Ablations and Limits

Remove one part at a time to see which ones earn their place, then list what the paper does not show

A chef claims four ingredients make a dish. A fair test removes one ingredient at a time and tastes. If the dish barely changes, that ingredient was not doing much. An ablation study does this to a model.

The authors train four crippled versions of OREN and score them against the full model on Replica room 1. One lacks the neural residual, so it is the octree prior alone. One uses a regular sparse octree instead of the semi-sparse one. One drops the gradient augmentation, so it uses plain interpolation. One drops the projection loss.

What each removal costs

The headline metric is the SDF error over all test points (Table IV). The full model scores 1.862 cm.

The ordering is plain. The projection loss is the most important part of the recipe by far. Without it, the model has the right structure but no signal for direction and scale far out in free space. The other three parts each give a steady gain of about 10% to 16% on the overall SDF error.

Details that do not fit the story

Read the whole table before you tell the story. Two cells push back. The prior-only model has a slightly lower near-surface gradient error (0.1107 rad) than the full model (0.1166 rad). And the no-gradient-augmentation model has a lower far-field SDF error (2.757 cm) than the sparse-octree and prior-only variants (2.837 and 2.981 cm), though still worse than the full model (2.468 cm). Also, recall barely moves across all five models (95.07% to 95.86%): the ablations change how accurate the surface and the field are, not how much of the scene is found.

The paper also reports a memory ablation on Replica room 0. Making all layers semi-sparse raises the octants from 21,418 to 41,073 and the vertices from 37,130 to 51,174 (Chapter 2), with no significant accuracy gain. That supports using the siblings only in the first five layers.

How much should we trust small gaps? The table comes from one scene and one trajectory, with no repeated runs. A gap like 0.1527 against 0.1529 rad in gradient error is two parts in a thousand. We cannot tell it from noise, and the paper does not claim otherwise. The big gaps are another matter. A tenfold change is not noise. Use the bars below with that rule: believe the large differences, hold the small ones loosely.

Remove a part

Each bar is one version of the model on Replica room 1. Choose a measure. See how much worse each removal makes it.

Values are the paper’s Table IV, on Replica room 1, a single scene with a single trajectory. The paper reports no repeated runs or error bars.

What the paper does not show

Good reading includes the gaps. Some are stated by the authors. Some are our observations.

These are not flaws that hide the result. They mark the edge of what was measured. The contributions that were measured are real: a better octree prior, a residual that adds detail, and a recipe of three losses that makes the whole-space field trainable in real time.

Which removal hurts the overall SDF error the most, and by how much?

Chapter 11

Field Guide

Keep the numbers, the terms and the core code on one page, and find where to read next

In one paragraph. A robot needs the distance to the nearest obstacle at every point, with a slope that can be trusted. Grids are fast but not smooth. Gaussian processes are smooth but slow. Networks are compact but forget and often cover only a thin band. OREN stores a coarse prior in a semi-sparse octree whose vertices keep a distance and a gradient, and it blends the corners with a gradient-augmented rule that has a tighter error bound. A small decoder adds a residual from learned vertex features. Three losses train it on rays from the newest frame and eight key frames: reconstruction, Eikonal and projection. The result runs at about 14 frames per second, uses the least GPU memory in the comparison, and gives accurate distances and gradients far from the surface.

The numbers

WhatValueWhere
Octree layers N, semi-sparse layers M, finest size r8, 5, 10 cmSec. IV-A
Stored per vertexdk (1), gk (3), fk (F = 3)Sec. IV-A, IV-B
Decoder2 hidden layers of 32, LeakyReLUSec. IV-B
Rays per update N, key frames W20,480 and 8Sec. IV-C, IV-D
Margin δ, band σ, points per ray nF and nP0.05, 0.06 m, 1 and 2Sec. IV-D
Loss weightswSrecon 1000, wPrecon 200, Eikonal 10, 3, 10, wproj 100, η = 10Sec. IV-E
Error bounds in one octant of side L3ML²/8 against √3 L/2Prop. 1
Octants and vertices, Replica room 021,418 and 37,130 (all-semi-sparse: 41,073 and 51,174)Sec. V-C
Speed, OREN13.96 fps (Replica room 0), 14.28 (Newer College), 7 (Jetson Orin)Table III
GPU memory, OREN1.33 GB and 1.59 GBTable III
SDF error, all points, room 0: OREN, HIO-SDF, Voxblox2.15, 3.27, 3.13 cmTable II
SDF error, full model against no projection loss1.862 and 18.688 cmTable IV

The terms

TermPlain meaning
SDFSigned distance to the nearest surface: positive in free space, negative inside, zero on the surface.
ESDF and TSDFEuclidean SDF is exact everywhere. Truncated SDF is clipped to a band near the surface.
Eikonal propertyThe gradient of a true SDF has length one.
Octant, vertexOne cube of the octree, and one of its eight corners. Vertices store the learnable numbers.
Semi-sparse layerA layer that keeps the empty siblings of surface octants, so queries land in smaller cubes.
Gradient-augmented interpolationEach corner walks to the query along its stored slope, then the eight predictions are blended.
ResidualThe correction a small network adds to the prior.
Key frameA past sensor frame kept because it covers surface that other frames miss.
Projection lossAn L1 pull of free-space predictions toward a loose upper-bound label, which carries direction and scale.
AblationA test that removes one part of a model to measure what it contributes.

The core as code

python# OREN in one screen (a sketch that follows the paper's equations; not the authors' implementation)
import numpy as np

def predict(x, tree, mlp):                          # x: (B, 3)  ->  d_hat: (B,)
    corners, w, idx = tree.locate(x)                 # smallest octant for each x; (B,8,3), (B,8), (B,8)
    pred = tree.d[idx] + np.einsum('bkj,bkj->bk', tree.g[idx], x[:, None] - corners)
    d_ga = (w * pred).sum(1) / w.sum(1)             # Eq. 4: gradient-augmented prior
    f = (w[..., None] * tree.f[idx]).sum(1) / w.sum(1, keepdims=True)
    resid = mlp(np.concatenate([d_ga[:, None], f], 1))[:, 0]   # 4 -> 32 -> 32 -> 1
    return d_ga + resid                             # Eq. 11

def num_grad(x, tree, mlp, eps=1e-2):                  # central differences, 6 extra queries per point
    e = np.eye(3) * eps
    return np.stack([(predict(x + e[i], tree, mlp) - predict(x - e[i], tree, mlp)) / (2 * eps) for i in range(3)], -1)

def step(frame, tree, mlp, keyframes, opt):         # one online update
    tree.grow(frame.points)                          # new octants, vertices, zero features
    keyframes.maybe_insert(frame)
    use = greedy_select(keyframes.octants(), W=8) + [frame]
    S, Pp, F, labels = make_dataset(use, N=20480)    # Chapter 6: surface, perturbed, free points
    loss = oren_loss(predict(S, tree, mlp), predict(Pp, tree, mlp), labels.P,
                     predict(F, tree, mlp), labels.F,
                     np.linalg.norm(num_grad(S, tree, mlp), axis=-1),
                     np.linalg.norm(num_grad(Pp, tree, mlp), axis=-1),
                     np.linalg.norm(num_grad(F, tree, mlp), axis=-1))
    opt.minimize(loss, params=[tree.d, tree.g, tree.f, mlp.weights])

Where it sits in the field

OREN joins a line of hybrids. H2-Mapping paired an octree prior with a neural residual for the truncated SDF. PIN-SLAM and LCP-Fusion put learned features in voxels for SLAM. HIO-SDF removed the truncation but borrowed its prior from a voxel grid. OREN keeps the octree and the residual, removes the truncation, and improves the prior itself with gradients and semi-sparse layers. The robotics reader should keep one question in mind. The map is now accurate and cheap to query. The next step is to use it inside a planner or a localizer, and the authors name that as future work.

Keep going

Source and credit

OREN is the work of Zhirui Dai, Qihao Qian, Tianxing Fan and Nikolay Atanasov, Department of Electrical and Computer Engineering, University of California San Diego. Z. Dai, Q. Qian, T. Fan and N. Atanasov. “OREN: Octree Residual Network for Real-Time Euclidean Signed Distance Mapping.” arXiv:2510.18999. Read the paper. The authors’ code is at github.com/ExistentialRobotics/oren. This lesson is our own explanation; all measured numbers come from the paper, and numbers labelled illustrative are ours.

The takeaway. Split the job. Let a cheap, structured, explicit prior carry the big picture, and make that prior as good as it can be with slopes and sibling cells. Then let a small network learn only the leftover. Teach the hybrid with losses that supply direction and scale where the data is thin.

Now press Present or Teach and explain, from memory, how one query goes from a point in space to a distance: the octant, the eight corners, the slope step, the feature, the decoder and the sum. Then go back to the probe at the top, switch between the three models, and say why the middle one overshoots near a crease and what fixes it.

OREN, Octree Residual Network for Real-Time Euclidean Signed Distance Mapping. Zhirui Dai, Qihao Qian, Tianxing Fan and Nikolay Atanasov, UC San Diego.
Read the paper · Authors' code · Back to Veanors