Non-local Spatial Propagation Network for Depth Completion

Jinsun Park, Kyungdon Joo, Zhe Hu, Chi-Kuei Liu, In So Kweon

TL;DR

This paper introduces a Non-Local Spatial Propagation Network (NLSPN) for depth completion that dynamically selects relevant, non-local neighbors for spatial propagation rather than relying on a fixed local grid. By combining this flexible neighborhood search with a learnable affinity normalization and a confidence mask to suppress noisy pixels, the method effectively solves the "mixed-depth" bleeding problem at object boundaries, achieving state-of-the-art results on both indoor and outdoor datasets.

What Problem Does This Paper Address?

Depth sensors like LiDAR provide highly accurate but very sparse depth measurements. To be useful for downstream tasks like autonomous driving or augmented reality, this sparse data must be converted into a dense depth map, usually with the help of a high-resolution RGB image. This is known as depth completion.

Recent state-of-the-art methods tackle this using Spatial Propagation Networks (SPNs). SPNs predict an initial dense depth map and then iteratively refine it by having pixels share information with their neighbors based on "affinities" (how similar they are in color/texture).

However, existing SPNs rely on fixed-local neighborhoods (e.g., a rigid 3x3 grid). At object boundaries, this rigid grid inevitably includes both foreground and background pixels. When the network propagates information across this grid, the depths mix together, resulting in blurry edges and artifacts—a phenomenon known as the "mixed-depth problem." Furthermore, noisy or unreliable input pixels are often treated equally, propagating their errors across the image.

Methods

To solve the mixed-depth problem, the authors propose three major innovations:

  1. Non-Local Spatial Propagation: Instead of using a fixed 3x3 grid, the network predicts where each pixel should look for its neighbors. Using an encoder-decoder architecture, it outputs fractional coordinates for $K$ neighbors per pixel. This allows the network to reach beyond the immediate local area to find geometrically and chromatically relevant pixels (e.g., staying on the same object) while ignoring irrelevant ones. This is implemented efficiently using deformable convolutions.
  2. Learnable Affinity Normalization: In SPNs, affinity weights must be normalized to ensure mathematical stability during iterative propagation. The authors analyzed standard normalization techniques (like absolute-sum) and found they severely restrict the mathematical space of possible affinity combinations. They introduce a learnable parameter ($\gamma$) combined with a hyperbolic tangent function. This allows the network to learn the optimal balance between propagation stability and representational flexibility.
  3. Confidence-Incorporated Propagation: The network simultaneously predicts a confidence map for its initial depth prediction. Instead of just using this confidence at the very end, it is baked directly into the affinity normalization step. If a pixel has low confidence (e.g., it is a noisy LiDAR point), its affinity to neighbors is zeroed out, preventing the bad data from spreading.

Datasets

The authors evaluated their method on two standard depth completion benchmarks:

  • NYU Depth V2 (NYUv2): An indoor dataset captured using a Kinect sensor. The authors simulated sparse inputs by randomly sampling 500 depth pixels per image.
  • KITTI Depth Completion (KITTI DC): A large-scale outdoor autonomous driving dataset featuring real, sparse LiDAR measurements paired with RGB camera images.

Key Insights and Ideas

  • Dynamic neighborhoods respect boundaries: Forcing a network to use a fixed grid limits its ability to respect object boundaries. Allowing it to dynamically search for neighbors (non-local propagation) naturally prevents foreground and background depths from bleeding into one another.
  • Normalization is more than a math trick: The way affinities are normalized drastically changes the "space" of possible weights the network can use. By making the normalization bounds learnable, the network can discover a richer set of relationships between pixels.
  • Stop errors at the source: Embedding confidence into the propagation step itself acts as a gatekeeper. It is much more effective to stop an unreliable pixel from sharing its data in the first place than trying to filter it out after the fact.

Key Results

The proposed NLSPN achieved state-of-the-art performance at the time of publication (ECCV 2020):

  • NYUv2: Achieved an RMSE of 0.092m, outperforming the previous best spatial propagation method (CSPN at 0.117m) by a significant margin.
  • KITTI DC: Achieved an RMSE of 741.68mm, taking the top spot on the official KITTI leaderboard among peer-reviewed methods.
  • Qualitative Improvements: Visual results show that NLSPN preserves tiny, thin structures (like poles or chair legs) and sharp depth boundaries much better than direct regression or fixed-local SPNs.
  • Efficiency: The model achieves these results with 25.84M parameters, making it leaner than several competing geometry-aware models (e.g., DeepLiDAR at 53.44M).

Limitations and Future Work

While the paper does not feature a dedicated limitations section, a few constraints are apparent from the text:

  • Dataset-Dependent Hyperparameters: The optimal value for the learnable normalization parameter ($\gamma$) varies based on the training environment (converging to 5.2 on NYUv2 and 6.3 on KITTI). This implies the normalization behavior is highly dataset-dependent and requires retraining for new domains.
  • Indirect Confidence Learning: There is no "ground truth" for the confidence map. The network learns to predict confidence indirectly via the depth reconstruction loss. While effective, this lack of direct supervision means the confidence scores are relative and might be difficult to interpret in a strict probabilistic sense outside the training distribution.

Summary updated

BibTeX
@inproceedings{park2020non,
  author = {Jinsun Park and Kyungdon Joo and Zhe Hu and Chi-Kuei Liu and In So Kweon},
  title = {{Non-local Spatial Propagation Network for Depth Completion}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  url = {https://openreview.net/forum?id=NLO_f9KHLXJ},
}
Figure