NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Sparsity Agnostic Depth Completion

Andrea Conti, Matteo Poggi, Stefano Mattoccia

TL;DR

Researchers from the University of Bologna have developed SpAgNet, a depth completion framework that remains accurate even when the number of input depth points drops drastically or follows an unusual pattern. Unlike current state-of-the-art models that "break" when moving from high-density training data to low-density real-world scenarios, SpAgNet uses a novel "Scale and Place" module to remain robust across varying sensor types and densities.

What Problem Does This Paper Address?

Depth completion is the task of taking a standard RGB image and a handful of sparse depth measurements (from a LiDAR or Time-of-Flight sensor) and producing a dense, high-resolution depth map.

The "gap" identified by the authors is fragility. Most existing deep learning models are trained on a specific density—for example, exactly 500 random points or a 64-line LiDAR scan. If you deploy these models in the real world where a sensor might only return 5 points due to low reflectivity, or if you switch to a cheaper sensor with a different scanning pattern, the models often fail catastrophically. They become over-reliant on the specific distribution of points they saw during training, failing to generalize the underlying geometry of the scene.

Methods

The authors propose SpAgNet (Sparsity Agnostic Network), which departs from standard architectures in two major ways:

  1. RGB-Only Encoding: Most models feed both the image and the sparse depth points into the initial "encoder" layers. SpAgNet feeds only the RGB image into the encoder. This forces the network to learn the scene's geometric structure from the visual context alone, rather than "lazily" relying on the depth points.
  2. The Scale and Place (S&P) Module: This is the core innovation. Instead of standard convolutions trying to process sparse data (which they are notoriously bad at), the S&P module works iteratively:
  3. Scale: It predicts a dense depth map and a confidence map. It then uses weighted linear regression to align the scale of the predicted depth map with the available sparse points.
  4. Place: It "plugs in" the actual sparse measurements into the predicted map at the correct coordinates and assigns them maximum confidence.
  5. Non-Local Spatial Propagation: Finally, the model uses a refined version of spatial propagation (NLSPN) to smooth out the results and ensure local consistency.

Datasets

The model was evaluated on two industry-standard benchmarks:

  • NYU Depth V2: An indoor dataset. The authors tested it using the standard 500 random points, but also pushed it to the limit with only 5 random points, a "shifted grid" pattern (simulating ToF sensors), and a "Livox" pattern (simulating specific LiDAR hardware).
  • KITTI Depth Completion (DC): An outdoor autonomous driving dataset. They trained on the standard 64-line LiDAR data but tested on 32, 16, 8, and even 4 lines to simulate cheaper sensors.

Key Insights and Ideas

  • Convolutions Hate Vacuums: Standard convolutional layers struggle with sparse inputs because the "zeros" (missing data) are processed the same way as actual measurements, leading to artifacts. By keeping sparse data out of the encoder, SpAgNet avoids this.
  • Global vs. Local: The "Scale" step handles global alignment (getting the overall distance right), while the "Place" step handles local accuracy. This separation of concerns is why the model doesn't fail when points are missing.
  • Confidence is Key: The network learns to predict its own uncertainty. In areas where no sparse points exist, it relies on its visual "hunch." Where points do exist, the high-confidence measurements pull the rest of the map into alignment via the regression step.

Key Results

The results highlight a massive leap in robustness:

  • Extreme Sparsity (NYU V2): When tested with only 5 input points, SpAgNet achieved an RMSE of 0.467m. The previous state-of-the-art (NLSPN) collapsed to an RMSE of 1.033m.
  • Pattern Robustness: On the "shifted grid" test (where points are clustered, leaving large empty gaps), SpAgNet outperformed competitors by a large margin (RMSE 0.422m vs NLSPN's 0.796m).
  • Outdoor Scaling (KITTI): When reducing LiDAR input from 64 lines to just 4 lines, SpAgNet's error increased gracefully (RMSE 3533mm), while other models like PENet saw their error explode (RMSE 9318mm).

Limitations and Future Work

While SpAgNet is incredibly robust, the authors note that when the input data is exactly what the model was trained on (e.g., the full 500 points), it performs comparably to—but not significantly better than—existing SOTA methods. Its superpower is generalization, not necessarily setting new records on static benchmarks.

Future work could involve exploring how this "sparsity agnostic" approach handles dynamic scenes or integrating it with self-supervised learning to reduce the need for ground-truth depth during training.

Summary updated

BibTeX
@inproceedings{conti2023sparsity,
  author = {Andrea Conti and Matteo Poggi and Stefano Mattoccia},
  title = {{Sparsity Agnostic Depth Completion}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2023},
  doi = {10.1109/wacv56688.2023.00582},
}
Figure