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

Deep Distance Sensitivity Oracles

Davin Jeong, Chau Pham, Arnav Bhakta, Sarel Cohen, Maximilian Katzmann, Tobias Friedrich, Sang Peter Chin

Abstract

Shortest path algorithms are critical for modern infrastructure, yet they remain fragile in the face of network failures. This paper introduces the first deep-learning-based Distance Sensitivity Oracle (DSO), a system designed to efficiently find replacement shortest paths when a node fails. By framing the problem as a pivot node classification task rather than a distance regression task, the authors achieve near-optimal accuracy—with a median error of just 0.32%—across a wide variety of real-world networks. This approach significantly outperforms traditional distance-prediction models in both accuracy and structural integrity.

Introduction

From GPS routing to packet switching in data centers, shortest path algorithms underpin the backbone of modern technology. However, real-world networks are rarely static; roads close, and servers experience outages. Standard Distance Oracles (DOs) are efficient data structures for precomputing and storing distances, but they typically assume a fixed graph topology. When a component fails, systems must either recompute paths from scratch—a computationally expensive process—or rely on a Distance Sensitivity Oracle (DSO).

While theoretical DSOs exist, they often force researchers to choose between storage efficiency, query speed, and path quality. This paper addresses these trade-offs by proposing a "learned" DSO that leverages graph neural networks to predict optimal bypasses with high precision.

Methodology: The Pivot Node Framework

The core innovation of this work is the conceptual shift from predicting path lengths to predicting path structure. The authors leverage a graph theory lemma stating that in unweighted, undirected graphs, a replacement path (the shortest path from $s$ to $t$ avoiding a failed node $f$) can almost always be approximated by concatenating two existing shortest paths through an intermediate "pivot" node $v$.

The three-stage pipeline for Deep Distance Sensitivity Oracles: Representation Learning, Input Triplet Processing, and Pivot Selection.

As shown in the architecture above, the system operates in three distinct phases:

  1. Representation Learning: Initial node embeddings are generated via node2vec and then refined through Graph Attention Networks (GAT). This allows the model to capture the structural importance of nodes within their specific local and global neighborhoods.
  2. Input Processing: The model receives a triplet consisting of the start node ($s$), the target node ($t$), and the failed node ($f$). Their respective GAT embeddings are concatenated into a single representation.
  3. Pivot Selection: A Multi-Layer Perceptron (MLP) processes the triplet embedding to output a probability distribution over all nodes in the graph. The node with the highest probability is selected as the pivot to stitch the replacement path together.

Experimental Setup and Datasets

The authors evaluated their model on 18 diverse real-world networks sourced from the Network Repository. These datasets represent various domains, including biological systems, social networks, and technical infrastructure, with sizes ranging from under 100 nodes to nearly 200,000 nodes.

Summary of the 18 real-world networks used for evaluation, ranging from biological to large-scale technical infrastructures.

Notably, the training process proved to be highly sample-efficient. Regardless of the graph size, the model achieved state-of-the-art results using a constant cap of 100,000 training triplets, demonstrating its ability to generalize from a fraction of the total possible node combinations.

Key Results and Insights

The "learned" DSO demonstrated remarkable performance across several metrics:

  • Near-Optimal Accuracy: The median Mean Relative Error (MRE) across all tested networks was 0.32%. In practical terms, the replacement paths suggested by the AI were nearly identical in length to the true mathematical optimum.
  • Structural Integrity: By predicting a pivot node (classification) rather than a distance value (regression), the model ensures that the resulting path is grounded in the actual topology of the graph. This allowed it to outperform existing baselines like ndist2vec and Rizi, which often failed to converge on larger, sparser networks.
  • Combinatorial Intelligence: To ensure the model wasn't simply benefiting from graph density, the authors compared it against random pivot selection. The neural network was 200 to 5,000 times more accurate than random guessing, proving it successfully captured the underlying combinatorial logic of network routing.

Limitations and Future Directions

While the results are promising, the authors identify two primary areas for future improvement. First, generating the "ground truth" training data via All-Pairs Shortest Paths remains a computational bottleneck for massive graphs with millions of vertices. Second, the current model is optimized for single-node failures. Real-world scenarios, such as regional power outages or large-scale cyberattacks, often involve multiple simultaneous failures.

Future work will focus on extending the model to handle these multi-failure scenarios and exploring local routing applications, where nodes can navigate traffic greedily based on local embeddings without requiring a centralized oracle.

Summary updated

BibTeX
@inproceedings{jeong2022deep,
  author = {Davin Jeong and Chau Pham and Arnav Bhakta and Sarel Cohen and Maximilian Katzmann and Tobias Friedrich and Sang Peter Chin},
  title = {{Deep Distance Sensitivity Oracles}},
  booktitle = {COMPLEX NETWORKS},
  year = {2022},
  url = {https://openreview.net/forum?id=tk-x0cLCVnA},
}
Figure