Abstract
We revisit the problem of finding the shortest path between two selected vertices of a graph and formulate this as an $\ell_1$-regularized regression—Least Absolute Shrinkage and Selection Operator (lasso). We draw connections between a numerical implementation of this lasso-formulation, using the so-called LARS algorithm, and a more established algorithm known as the bi-directional Dijkstra. Appealing features of our formulation include the applicability of the Alternating Direction of Multiplier Method (ADMM) to the problem to identify short paths, and a relatively efficient update to topological changes.
Introduction
Finding the shortest path between two nodes is a foundational problem in computer science, most famously addressed by Dijkstra’s algorithm. While Dijkstra’s approach is highly efficient for static, single-pair searches, modern network applications—ranging from global navigation systems to massive social networks—present new challenges. These include the need for massive parallelization, the ability to handle dynamic topological changes without re-calculating from scratch, and the flexibility to operate in distributed computing environments.
This paper proposes a shift in perspective: treating the discrete shortest path problem as a continuous convex optimization problem. By reformulating pathfinding as an $\ell_1$-regularized regression (Lasso), we bridge the gap between discrete graph theory and high-dimensional numerical optimization. This framework allows us to leverage modern solvers like the Alternating Direction Method of Multipliers (ADMM) to find "good enough" paths in massive, dynamic networks where traditional greedy algorithms may struggle.
Methods
The Lasso Formulation
The core innovation lies in representing the graph through an incidence matrix $D$ and a weight matrix $W$. The search for a path is transformed into a minimization of the $\ell_1$ norm of the edge weights, subject to flow constraints that ensure a continuous path exists from the source to the target. This relaxation converts a combinatorial search into a continuous optimization task.
LARS and Bi-directional Dijkstra
A significant theoretical contribution of this work is the analysis of the Least Angle Regression (LARS) algorithm within this context. The authors provide a formal proof (Theorem 8) demonstrating that LARS is mathematically equivalent to the bi-directional Dijkstra algorithm. Specifically, LARS iteratively constructs two shortest-path trees—one from the source and one from the target—until they meet. This equivalence suggests that many efficient discrete graph algorithms may have hidden continuous counterparts.
Scalability via ADMM and InADMM
To address large-scale networks, the paper moves beyond LARS to the Alternating Direction Method of Multipliers (ADMM). ADMM is particularly well-suited for distributed systems. The authors further introduce an "Inexact" variant (InADMM) that utilizes conjugate gradients to bypass expensive matrix inversions. This optimization reduces per-iteration complexity, making the approach viable for graphs with thousands or millions of nodes.
Experimental Evaluation
The proposed methods were evaluated across diverse network types to test robustness and speed:
- Synthetic and Image Graphs: Nicholson’s graph served as a proof-of-concept. The method was also applied to "intelligent scissors" image segmentation, where pixels represent nodes and edges represent color gradients (4,422 nodes; 17,291 edges).
- Road Networks: Real-world data from OpenStreetMap for Athens and Amsterdam (up to 9,379 nodes) were used to test navigation routing.
- Random Geometric Graphs: Large-scale tests were conducted using node data from the CiteSeerX network, resulting in graphs with approximately 9,000 nodes and 48,000 edges.
Key Results
- Convergence: In image segmentation tasks, ADMM and InADMM converged within 30–50 iterations. On a graph with 17,000 edges, InADMM identified the path in approximately 1.7 seconds in a MATLAB environment.
- Complexity Gains: By utilizing matrix identity tricks, the authors reduced ADMM's per-iteration complexity from $O(m^3)$ to $O(n^3)$, where $m$ is edges and $n$ is nodes. InADMM further improved this to $O(m \cdot T_{CG})$.
- Robustness: The InADMM approach remained efficient as the resolution of road maps increased, consistently recovering the minimum-time corridor.
Discussion and Insights
Warm Starts and Dynamic Networks
One of the primary advantages of the Lasso formulation is the ability to perform "warm starts." Unlike Dijkstra, which typically requires a full re-run if an edge weight changes, ADMM can be initialized with the solution from a previous state. This makes it significantly faster for tracking paths in networks with frequent topological updates.
Path Corridors and Load Balancing
By adjusting the regularization parameter $\lambda$, the algorithm can identify a "corridor" of nearly equivalent short paths rather than a single discrete line. This is particularly useful in traffic engineering and routing, where distributing load across several high-quality options is preferable to congesting a single optimal path.
Limitations
Despite its flexibility, the Lasso formulation currently cannot handle negative edge weights, leaving a niche for algorithms like Bellman-Ford. Additionally, because the solver operates in continuous space, a minor post-processing step (such as a connectivity check) is occasionally required to extract a clean discrete path from the continuous support.
Conclusion
By reframing the shortest path problem as a sparse regression task, this work opens new avenues for applying high-dimensional optimization techniques to graph theory. The equivalence between LARS and bi-directional Dijkstra provides a rigorous theoretical foundation, while the ADMM implementation offers a scalable, parallelizable alternative for the complex, dynamic networks of the modern era.
Summary updated