# DeepSDF: Learning Continuous Signed Distance Functions for Shape Representation

DeepSDF learns one continuous signed distance field for a whole class of shapes

Jeong Joon Park, Peter Florence, Julian Straub, Richard Newcombe, Steven Lovegrove · arXiv · 2019-1-16

- **Problem** Point clouds, meshes and voxel grids each fall short of a closed, detailed, memory-efficient surface description for a whole class of shapes. Voxel grids keep a distance field but cost too much memory.
- **Method** DeepSDF trains a fully connected network that maps a 3D point and a per-shape latent code to a signed distance. It fits the codes jointly with the weights, with no encoder.
- **Results** On known cars, DeepSDF reaches a mean Chamfer distance of 0.084, against 0.167 for OGN.

## Why explicit 3D shape representations struggle

Learned 3D models face a tension: deep convolutional approaches grow quickly in cost when extended to a third spatial dimension, and compact surface formats such as triangle meshes are awkward to learn because the number of vertices and the topology vary. Input and output of 3D learning are both affected, which limits the quality and fidelity of the results.

Point clouds match the raw output of depth sensors well, but they do not describe topology and cannot yield watertight surfaces. Template-based mesh models keep correspondences but only cover a fixed topology, and learned parameterizations either leave generated patches unstitched or, with sphere parameterization, stay within the topology of a sphere.

Voxel-based signed distance grids keep a distance field but pay the same memory cost, so learned discrete SDF approaches generally give low-resolution shapes.

The paper keeps the signed distance idea but learns a single continuous field that covers a whole class of shapes, instead of discretizing one shape at a time. The sign marks inside versus outside and the zero level set gives the surface, so the representation records both the boundary and the occupancy of space.

## Signed distance fields as network outputs

A signed distance function maps each spatial point to a real value whose magnitude is the distance to the nearest surface point and whose sign is negative inside and positive outside the watertight surface. The surface is the zero iso-surface of this function, and it can be rendered by raycasting or extracted as a mesh with Marching Cubes.

Instead of storing the field on a grid, a fully connected network f\_θ predicts the SDF value at any query location, so the field can be sampled at arbitrary points. In principle such networks can approximate the function to any precision, but in practice accuracy is limited by the number of training samples and by the network capacity available under finite compute.

Surface normals follow from the spatial derivative of the network output, computed by backpropagation through the network.

For a single shape, the training data is a set of 3D points paired with their SDF values, and the network is fit so that its output approximates the given SDF over the domain. To represent a class, a latent code z\_i is added as a second input, so that f\_θ(z\_i, x) approximates SDF\_i(x) for every shape index i, and one network covers many shapes.

## Auto-decoder instead of an encoder

Auto-encoders produce the latent code with an encoder, yet at test time many of these pipelines keep only the decoder, so the encoder's training cost does not feed the final use. The auto-decoder removes the encoder: every training shape receives its own randomly initialized latent vector, and these vectors are optimized together with the decoder weights by standard backpropagation.

Training maximizes the joint log posterior over shapes, which amounts to minimizing the following objective over the network weights θ and the codes z\_i.

The objective sums, over the N training shapes, the loss over K samples of each shape plus a penalty of the squared norm of its code, scaled by 1/σ^2. \\\[ \\arg\\min\_{\\theta,\\{z\_i\\}\_{i=1}^N}\\sum\_{i=1}^N\\Big(\\sum\_{j=1}^K L(f\_\\theta(z\_i,x\_j),s\_j)+\\frac{1}{\\sigma^2}\\lVert z\_i\\rVert\_2^2\\Big) \\\]

At inference the weights are fixed and the code of a new shape is found by MAP estimation, which is the same type of objective with the code as the only variable. The authors report that the stochastic optimization of a variational auto-encoder did not produce good training results in their experiments, which is why they share its Gaussian prior but not its training scheme.

## Clamped L1 loss and network layout

The loss is an L1 difference between clamped predicted and true SDF values, where the clamp limits a value to the interval from minus δ to δ. \\\[ L(f\_\\theta(x),s)=\\left\|\\mathrm{clamp}(f\_\\theta(x),\\delta)-\\mathrm{clamp}(s,\\delta)\\right\|, \\qquad \\mathrm{clamp}(x,\\delta)=\\min(\\delta,\\max(-\\delta,x)) \\\]

δ sets the distance from the surface over which the network keeps a metric SDF; a larger δ gives more safe step sizes for ray tracing, and a smaller δ concentrates capacity near the surface. The single-shape model in the main experiments uses δ = 0.1, eight fully connected layers with dropout, 512-dimensional internal layers with ReLU, and a tanh output for the SDF value.

Batch normalization was unstable in these experiments, so the authors used weight normalization, and training used the Adam optimizer. In the coded model, the latent vector is concatenated with the 3D query and fed to the first layer, and the same concatenated input is inserted again at the fourth layer. The latent vector has 256 dimensions for reconstruction experiments and 128 dimensions for shape completion.

Latent vectors are initialized with small values so that similar shapes do not drift apart in the latent space, and each batch balances positive and negative SDF samples. The training meshes are normalized to a unit sphere, with about 250,000 surface points each perturbed twice with Gaussian noise and about 25,000 uniform samples in the sphere.

## Latent optimization and completion from depth

At test time the decoder stays fixed and the latent code is estimated by minimizing the loss over the available SDF samples. \\\[ \\hat z=\\arg\\min\_z\\sum\_{(x\_j,s\_j)\\in X}L(f\_\\theta(z,x\_j),s\_j)+\\frac{1}{\\sigma^2}\\lVert z\\rVert\_2^2 \\\] Because the gradient with respect to z splits into one term per sample, the sample set can be of any size and distribution, which is why partial observations such as depth maps can be used directly.

For a depth image, two points are placed at distance η on either side of each measured surface point along its estimated normal, and they are assigned the approximate SDF values η and -η. Free-space observations, which are the empty points between the surface and the camera, add a penalty of \|f\_θ(z, x\_j)\| wherever f\_θ(z, x\_j) is negative, and 0 otherwise.

The completion experiments use single-view depth observations that are given in the canonical shape frame, which the authors describe as a current requirement. Completion is slower than a forward pass because each new shape needs an optimization over its latent vector, and the authors propose Gauss-Newton style methods that use analytic derivatives as a faster option.

## How shapes are scored

Chamfer distance adds, in both directions, the squared distance from each point to its nearest neighbour in the other set. \\\[ d\_{CD}(S\_1,S\_2)=\\sum\_{x\\in S\_1}\\min\_{y\\in S\_2}\\lVert x-y\\rVert\_2^2+\\sum\_{y\\in S\_2}\\min\_{x\\in S\_1}\\lVert x-y\\rVert\_2^2 \\\]

Earth Mover's distance requires a one-to-one correspondence between two equal-size point sets, and it is computed here with 500 points. Chamfer distance can be kept low by mapping many points of one set onto a single point of the other, whereas Earth Mover's distance needs clusters of comparable size.

Mesh accuracy is the smallest distance d such that 90% of 1,000 points sampled from the generated mesh lie within d of the ground-truth mesh. Mesh completion is the fraction of ground-truth points that lie within Δ = 0.01 of the generated mesh, and mesh cosine similarity compares normals of ground-truth points with normals of the nearest generated faces.

Because AtlasNet does not provide oriented normals, the cosine similarity takes the minimum over the normal and its flipped version.

## Representing known car shapes

On known cars, DeepSDF reached a mean Chamfer distance of 0.084 and a median of 0.058, against 0.167 and 0.127 for OGN, 0.210 and 0.185 for AtlasNet-Sph., and 0.157 and 0.140 for AtlasNet-25. Table 1 lists the DeepSDF model at 0.0074 GB, against 0.42 GB for 3D-EPN and 0.54 GB for OGN.

The mean Earth Mover's distance is 0.043 for DeepSDF and for OGN, and 0.046 for AtlasNet-Sph. and 0.060 for AtlasNet-25. The authors attribute the smaller Earth Mover's gap to 500 points not capturing the additional precision that the 30,000-point Chamfer measure reveals.

The OGN and AtlasNet models were trained on different ShapeNet versions, OGN on v1 and AtlasNet on v2, so the OGN point clouds were converted to the v2 scale before evaluation. The comparison therefore reads as a comparison of reconstructions of a restricted latent code on the same car shapes, under the conversion described for OGN.

## Representing held-out shapes

On held-out chairs, DeepSDF's mean Chamfer distance is 0.204, against 0.368 for AtlasNet-25 and 0.752 for AtlasNet-Sph., and its median is 0.072, against 0.276 and 0.511. The mean Chamfer distance of DeepSDF is lower than both AtlasNet variants for chairs, planes, lamps and sofas. For tables, the mean Chamfer distance is 0.553 for DeepSDF, which is lower than 0.725 for AtlasNet-Sph.

but higher than 0.328 for AtlasNet-25.

Mesh accuracy, where lower is better, is lower for DeepSDF than for both AtlasNet variants in all five classes, with chairs at 0.009 against 0.018 and 0.033. Earth Mover's distance is also lower for DeepSDF in every class listed in the table, for example 0.049 against 0.064 and 0.071 for chairs.

The authors note that AtlasNet does reasonably well on classes with consistent topology, such as planes, but struggles on chairs, which often have holes, and the back of a chair is one example where its fine detail is lost. In the supplementary mesh metrics, DeepSDF has a mean mesh completion of 0.947 for chairs, against 0.668 for AtlasNet-Sph.

and 0.723 for AtlasNet-25.

## Completing shapes from single depth views

On chairs, DeepSDF's median Chamfer distance is 1.28 against 2.25 for 3D-EPN, and its mean is 2.11 against 2.83. Mesh completion on chairs is 0.500 for DeepSDF against 0.209 for 3D-EPN, and cosine similarity is 0.766 against 0.752. The 3D-EPN numbers are the provided inference results of that method, converted from a voxelized distance function to a mesh.

On planes, the median Chamfer distance is 0.37 for DeepSDF against 1.63 for 3D-EPN, and mesh completion is 0.722 against 0.165. On sofas, the median Chamfer distance is 0.82 against 2.03, and mesh completion is 0.541 against 0.254. Mesh Earth Mover's distance and mesh accuracy are also lower for DeepSDF in these three classes, which is the favorable direction for those error metrics.

The completion comparison includes only 3D-EPN, because the authors could not run the code of two other recent completion methods. For noisy depth inputs on planes, with 85 plane completions and noise standard deviations of 0.01, 0.02, 0.03 and 0.05 on inverse depth, the authors report that the Chamfer distance of the completion grows roughly linearly with noise.

The Chamfer distance of the raw perturbed points, by contrast, grows super-linearly with the noise level.

## Depth and truncation design choices

In a study that memorizes the SDFs of 500 chairs, the training loss of a network without skip connections plateaus after 4 layers, while with latent skip connections it keeps falling with diminishing returns past 12 layers. The 8-layer model was kept because it gives a good trade-off between speed and accuracy in these experiments.

Test error falls from 9.7 at four layers to 5.7 at eight layers and then levels off, but the authors say this does not settle generalization, because the same small training set was used for every architecture.

Increasing the truncation distance δ moderately raises the Chamfer distance on a dataset of 100 cars, between δ = 0.05 and δ = 1.0. The main text gives δ = 0.1 for the single-shape model, whereas the supplement states that δ = 0.01 was chosen for all experiments in the manuscript, and the two statements do not agree for the same setting.

## Limitations

DeepSDF assumes that models are in a canonical pose, so completion of objects in the wild needs an optimization over an SE(3) transformation, which increases inference time. Completion takes considerably more time at inference because of the latent optimization.

Figure 7 shows two failure modes, which the authors attribute to a lack of training data and to failure of minimization convergence. Representing dynamics and textures in a single embedding is named as a remaining challenge.

Comparisons cover cars for known shapes, a set of five ShapeNet classes for held-out shapes, and 3D-EPN alone for completion, so the completion results are not compared with other methods. The noise study uses only plane models, and the training meshes were filtered by how many of their faces are double-sided.

## Paper info

- **Authors**: Jeong Joon Park, Peter Florence, Julian Straub, Richard Newcombe, Steven Lovegrove
- **Venue**: arXiv · Preprint
- **First published**: 2019-1-16
- **Added**: 2026-11-12
- **Updated**: 2019-1-16
- **Version**: v1
- **arXiv**: 1901.05103
- **Category**: cs.CV
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1901.05103v1) · [PDF ↗](https://arxiv.org/pdf/1901.05103v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Jeong Joon Park, Peter Florence, Julian Straub, Richard Newcombe, Steven Lovegrove (2019). DeepSDF: Learning Continuous Signed Distance Functions for Shape Representation. arXiv:1901.05103v1. https://arxiv.org/abs/1901.05103v1

**BibTeX**

```
@misc{park2019deepsdf,
  title = {{DeepSDF: Learning Continuous Signed Distance Functions for Shape Representation}},
  author = {Jeong Joon Park and Peter Florence and Julian Straub and Richard Newcombe and Steven Lovegrove},
  year = {2019},
  eprint = {1901.05103},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1901.05103v1}
}
```

## Other paper commentary

- [SimCSE: Simple Contrastive Learning of Sentence Embeddings](https://refivu.com/en/papers/be6ac7d7-6b80-4ef3-905e-9b7eecc4765c-simcse-simple-contrastive-learning-of-sentence-embeddings.md)
- [Supervised Contrastive Learning](https://refivu.com/en/papers/a5818cfe-00fa-4e85-a38e-cdce6aa6cad5-supervised-contrastive-learning.md)
- [iCaRL: Incremental Classifier and Representation Learning](https://refivu.com/en/papers/1de3af5b-26d7-4577-82d5-dabe37a7e63a-icarl-incremental-classifier-and-representation-learning.md)
- [Exploring Simple Siamese Representation Learning](https://refivu.com/en/papers/d32975a6-8149-4095-86b6-ad11d1642a75-exploring-simple-siamese-representation-learning.md)
- [Unsupervised Cross-lingual Representation Learning at Scale](https://refivu.com/en/papers/6b2842f9-6ee4-433e-84ed-ae8dc85bdb0a-unsupervised-cross-lingual-representation-learning-at-scale.md)
- [DeepWalk: Online Learning of Social Representations](https://refivu.com/en/papers/dd05ed66-43b8-4f25-93ca-264ea076a439-deepwalk-online-learning-of-social-representations.md)
- [A Closer Look at Spatiotemporal Convolutions for Action Recognition](https://refivu.com/en/papers/2986e935-85a4-4ed6-b429-74af2338096c-a-closer-look-at-spatiotemporal-convolutions-for-action.md)
- [Understanding deep learning requires rethinking generalization](https://refivu.com/en/papers/cb138997-32a3-4005-82f2-6597e2492ff8-understanding-deep-learning-requires-rethinking.md)
- [Random Erasing Data Augmentation](https://refivu.com/en/papers/4dd86d04-2086-4796-aa90-74b9d083d0ee-random-erasing-data-augmentation.md)
- [Measuring Mathematical Problem Solving With the MATH Dataset](https://refivu.com/en/papers/11c81528-fe00-480d-b385-0b65503db8a1-measuring-mathematical-problem-solving-with-the-math-dataset.md)
- [CornerNet: Detecting Objects as Paired Keypoints](https://refivu.com/en/papers/f70d57a2-b48d-4fc2-baa1-2e7e2057bad5-cornernet-detecting-objects-as-paired-keypoints.md)
- [An Overview of Multi-Task Learning in Deep Neural Networks](https://refivu.com/en/papers/ec3f88d3-e942-4848-9ca0-597d43563c84-an-overview-of-multi-task-learning-in-deep.md)

## Terms in this paper

- [Chamfer Distance](https://refivu.com/en/terms/f1d20f2d2c6b-chamfer-distance)
- [Earth Mover's distance](https://refivu.com/en/terms/aa5f80755a23-earth-mover-s-distance)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/b9c76a95-d60f-4b38-98c6-45cfaa2bcd30-deepsdf-learning-continuous-signed-distance-functions-for)
