Exact Multi-objective Path Finding with Negative Weights and Negative Cycles

Saman Ahmadi, Daniel Harabor, Nathan R. Sturtevant, Mahdi JaliliICAPS 2024 · OpenReview

TL;DR

This paper introduces NWMOA*, a novel algorithm for finding all optimal paths in complex networks with multiple cost factors, even when those costs can be negative or form cycles. It significantly outperforms existing methods, achieving up to an order of magnitude speedup on challenging real-world scenarios.

What Problem Does This Paper Address?

The Multi-objective Shortest Path Problem (MOSP) is about finding paths in a network that are optimal across several criteria simultaneously (e.g., minimizing both distance and travel time). While algorithms like A have been successful for non-negative costs, real-world applications often involve negative costs (like energy generation) or even negative cycles (where traversing a loop can reduce cost indefinitely). Existing MOSP algorithms struggle with these complexities, often failing to find solutions or becoming computationally intractable. This paper tackles the challenge of finding exact* Pareto-optimal paths in graphs that can contain negative edge weights and negative cycles, a scenario that has been largely underexplored.

Methods

The core of the paper is the NWMOA (Negative Weights Multi-Objective A) algorithm. It's an A*-based search framework that extends previous work to handle negative weights and cycles. Key innovations include:

  • Handling Negative Cycles: NWMOA* first performs a preliminary reachability test to determine if negative cycles can affect the start-goal path. If a negative cycle exists but cannot be part of an optimal path, the problem is still considered bounded, and the search can proceed safely.
  • Novel Search Strategy: Unlike many MOSP algorithms that rely on lexicographical ordering of path costs, NWMOA prioritizes nodes based on the first* cost dimension (f1-value). This allows for simpler data structures and potentially faster queue operations.
  • Efficient Dominance Checks: The algorithm incorporates several speed-up techniques for dominance checks (determining if one path is strictly better than another across all objectives). This includes a "quick dominance check" against the most recent expansions and a "lexicographical ordering" of truncated cost vectors in internal data structures, significantly reducing the number of comparisons needed.
  • High-Level Boundedness Check: A preliminary step (Algorithm 1) uses Bellman-Ford or Dijkstra-like algorithms to establish initial heuristic values and detect if negative cycles make the problem unbounded.

Datasets

The authors used the New York map from the 9th DIMACS Implementation Challenge: Shortest Paths as their benchmark. They enriched this map with additional cost components:

  • Cost 1: Distance.
  • Cost 2: Positive height difference of link endpoints.
  • Cost 3: Average (out)degree of the link endpoints.
  • Cost 4: Set to 1 for each edge, making paths with fewer edges have lower cost.
  • Cost 5: Introduced to simulate realistic, potentially negative, energy estimates for electric vehicles, based on the energy model from Ahmadi et al. (2021b).

They generated 100 random (start, goal) pairs for instances with 3, 4, and 5 cost components.

Key Insights and Ideas

  • Negative Cycles Aren't Always a Dealbreaker: The paper demonstrates that negative cycles don't necessarily make a point-to-point MOSP problem unbounded. If the negative cycle cannot be part of any optimal path from start to goal, the problem remains solvable. This is a crucial insight that expands the applicability of MOSP algorithms.
  • Prioritizing the First Dimension is Efficient: Deviating from strict lexicographical ordering and focusing on the first cost dimension (f1-value) for priority queue ordering can lead to significant performance gains by enabling simpler data structures and faster operations.
  • Layered Dominance Checks are Key: Combining a quick check against recent expansions with a more rigorous, but optimized, lexicographical check significantly prunes the search space without sacrificing optimality.
  • Practical Implications for Real-World Problems: The ability to handle negative costs and cycles opens up MOSP to more realistic scenarios, such as energy-efficient routing in electric vehicles or complex logistical planning.

Key Results

  • Significant Speedup: NWMOA consistently outperformed state-of-the-art algorithms, achieving up to an order of magnitude speedup* on large, realistic test cases.
  • Logarithmic Dominance Check: For k=3 objectives, a specialized version (NWMOAlog) achieved a 20% faster average runtime than the standard NWMOA, and was 4.2 times faster than Lazy-LTMOA*, demonstrating the effectiveness of logarithmic dominance checks.
  • Reduced Dominance Checks: The use of binary search for dominance checks in NWMOA with k=3 reduced the number of dominance checks by an average of 71%*.
  • Efficiency with Negative Weights: The algorithm successfully handled instances with negative weights and negative cycles, a capability lacking in many previous MOSP solvers.
  • Ablation Study: The quick dominance check feature alone reduced the number of generated nodes by 20% on average. Removing lexicographical ordering of truncated vectors in internal data structures led to a dramatic increase in runtime (over 100%) due to a massive rise in dominance checks.

Limitations and Future Work

  • Boundedness Assumption: The algorithm relies on a preliminary test to determine if the MOSP instance is bounded. If the instance is unbounded due to negative cycles on all start-goal paths, NWMOA* will not find a solution.
  • Future Work: The paper suggests exploring further optimizations for priority queue implementations and investigating NWMOA's performance on even larger and more complex graph structures. The authors also mention the potential for NWMOA to be adapted for other graph-based optimization problems.

Summary updated

Abstract

The point-to-point Multi-objective Shortest Path (MOSP) problem is a classic yet challenging task that involves finding all Pareto-optimal paths between two points in a graph with multiple edge costs. Recent studies have shown that employing A* search can lead to state-of-the-art performance in solving point-to-point MOSP instances with non-negative costs. In this paper, we propose a novel A*-based multi-objective search framework that not only handles graphs with negative costs and even negative cycles but also incorporates multiple speed-up techniques to enhance the efficiency of exhaustive search with A*. Through extensive experiments on large realistic test cases, our algorithm demonstrates remarkable success in solving difficult MOSP instances, outperforming the state of the art by up to an order of magnitude.
BibTeX
@inproceedings{ahmadi2024exact,
  author = {Saman Ahmadi and Daniel Harabor and Nathan R. Sturtevant and Mahdi Jalili},
  title = {{Exact Multi-objective Path Finding with Negative Weights and Negative Cycles}},
  booktitle = {ICAPS},
  year = {2024},
  url = {https://openreview.net/forum?id=sBHklMlq0c},
}
Figure