Sparse-Memory Graph Search

Rong Zhou, Eric A. HansenIJCAI 2003

Introduction

Graph search algorithms like A are fundamental to solving complex problems ranging from robotic path planning to biological sequence alignment. However, these algorithms face a significant bottleneck: memory consumption. Standard A maintains an Open list of nodes to be visited and a Closed list of nodes already visited. While the Closed list is essential for preventing redundant work (duplicate detection) and reconstructing the final path, it often grows large enough to exhaust available RAM in high-dimensional search spaces.

The Sparse-Memory Framework

This paper introduces Sparse-Memory Graph Search (SMGS), a framework designed to drastically reduce the memory footprint of the Closed list without sacrificing search efficiency. The core innovation lies in the strategic partitioning of the search space.

Kernel vs. Boundary Partitioning

The authors propose dividing the explored search interior into two distinct regions: the kernel and the boundary. The kernel consists of nodes completely surrounded by other explored nodes, while the boundary contains nodes adjacent to the unsearched frontier.

Conceptual partitioning of the search state space into kernel, boundary, and frontier regions.

The key insight is that only the boundary nodes are necessary to prevent the search from "leaking" back into explored territory. Once a node is identified as part of the kernel, it can be safely pruned from memory.

Identifying Prunable Nodes via $p$-values

To automate this pruning, SMGS assigns each node a $p$-value based on its in-degree (the number of edges pointing to it). As the search progresses and neighbors are processed, the $p$-value is decremented. When it reaches zero, the node is fully "surrounded" and enters the kernel, making it eligible for deletion.

Path Reconstruction and Relay Nodes

Since pruning the kernel removes the back-pointers needed for path reconstruction, SMGS employs relay nodes. These are intermediate milestones stored during the search. If a path needs to be reconstructed between two distant relay nodes, the algorithm performs a localized, small-scale search. This divide-and-conquer approach ensures that the full path can be recovered even with a sparse Closed list.

Progression of a sparse-memory search on a sequence alignment grid, showing the evolution of stored nodes and final path reconstruction.

Experimental Evaluation

The researchers benchmarked SMGS against standard A and previous memory-saving techniques like DCFA (Divide-and-Conquer Frontier Search) across several domains:

  • Sequence Alignment: Aligning both random and real protein sequences (e.g., PAM250 matrix).
  • 15-Puzzle: A classic combinatorial search problem.

Key Results

  • Efficiency: SMGS proved significantly faster than DCFA. In 3-sequence alignment tasks, it achieved a 36% speedup* due to more efficient path reconstruction via relay nodes.
  • Memory Savings: In the 15-puzzle, SMGS used only 79% of the memory required by standard A. When combined with Enhanced A (which prunes the Open list), memory usage dropped to just 32%**.
  • Scalability: Unlike some previous methods that introduced significant per-node overhead, SMGS maintains a low memory footprint, allowing it to scale to 7-sequence protein alignments where other methods failed.

Conclusion and Future Work

Sparse-Memory Graph Search offers a "well-behaved" middle ground for memory-constrained search. Its compatibility with other pruning techniques and its "graceful degradation"—acting like standard A* until memory limits are reached—makes it a robust choice for practical applications. Future work may explore dynamic relay node placement to further optimize the trade-off between search speed and memory conservation.

Summary updated

BibTeX
@inproceedings{zhou2003sparse,
  author = {Rong Zhou and Eric A. Hansen},
  title = {{Sparse-Memory Graph Search}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2003},
}
Figure