Skip to main content
QUICK REVIEW

[Paper Review] Learning to Prune: Speeding up Repeated Computations

Daniel Alabi, Adam Tauman Kalai|arXiv (Cornell University)|Apr 26, 2019
Advanced Bandit Algorithms ResearchDecision Sciences19 references8 citations
TL;DR

This paper proposes a learn-to-prune algorithm that accelerates repeated computations by dynamically pruning irrelevant parts of the search space based on past solutions. Using an explore-exploit strategy—occasional full computations to validate pruning—the method reduces runtime while ensuring correctness with high probability, achieving near-optimal pruning performance up to constant factors across shortest-path routing, string matching, and linear programming problems.

ABSTRACT

It is common to encounter situations where one must solve a sequence of similar computational problems. Running a standard algorithm with worst-case runtime guarantees on each instance will fail to take advantage of valuable structure shared across the problem instances. For example, when a commuter drives from work to home, there are typically only a handful of routes that will ever be the shortest path. A naive algorithm that does not exploit this common structure may spend most of its time checking roads that will never be in the shortest path. More generally, we can often ignore large swaths of the search space that will likely never contain an optimal solution. We present an algorithm that learns to maximally prune the search space on repeated computations, thereby reducing runtime while provably outputting the correct solution each period with high probability. Our algorithm employs a simple explore-exploit technique resembling those used in online algorithms, though our setting is quite different. We prove that, with respect to our model of pruning search spaces, our approach is optimal up to constant factors. Finally, we illustrate the applicability of our model and algorithm to three classic problems: shortest-path routing, string search, and linear programming. We present experiments confirming that our simple algorithm is effective at significantly reducing the runtime of solving repeated computations.

Motivation & Objective

  • To address the inefficiency of standard worst-case algorithms on repeated, structurally similar computational problems by exploiting shared solution structure across instances.
  • To design a learning-based pruning strategy that minimizes search space without sacrificing correctness, even under worst-case input sequences.
  • To achieve near-optimal pruning performance with provable correctness guarantees, without distributional assumptions on input changes.
  • To demonstrate applicability and effectiveness across diverse problems: shortest-path routing, string search, and linear programming.

Proposed method

  • The algorithm maintains a pruned search space S_i that includes all previously returned solutions, progressively narrowing the search to relevant regions.
  • It alternates between 'exploit' rounds—using the pruned set S_i to solve current instance quickly—and 'explore' rounds—running a full worst-case algorithm to validate and expand S_i.
  • The explore probability p_i = 1/√i ensures diminishing exploration while maintaining high-probability correctness over time.
  • The method is formally proven to be optimal up to constant factors in terms of cumulative runtime relative to the best possible hindsight pruning.
  • For problems with fast verification (e.g., linear programming), incorrect solutions can be detected and corrected post-hoc, enabling zero-error execution.
  • The algorithm is applied to three classic problems: shortest-path routing (Dijkstra’s), string matching, and linear programming (simplex method), with empirical validation.

Experimental results

Research questions

  • RQ1Can a learning-based pruning strategy significantly reduce runtime for repeated computations while maintaining correctness?
  • RQ2How can an algorithm balance exploration (full computation) and exploitation (pruning) to minimize cumulative runtime?
  • RQ3Is it possible to achieve near-optimal pruning performance without distributional assumptions on input changes?
  • RQ4To what extent can dynamic pruning reduce search space in real-world problems like shortest-path routing and linear programming?
  • RQ5How does the algorithm’s mistake rate and pruning efficiency evolve over time in practice?

Key findings

  • In shortest-path routing on Pittsburgh road networks, the algorithm reduced average node exploration by up to 70% compared to Dijkstra’s algorithm, with only 0.068% incorrect solutions over 150,000 rounds.
  • For linear programming instances from the CATS test suite, the algorithm reduced average simplex iterations by over 50%, with a 0.018% error rate across 150,000 rounds.
  • The average pruned set size grew slowly over time, indicating effective learning and progressive pruning of irrelevant regions.
  • The algorithm’s cumulative runtime was within a constant factor of the optimal hindsight pruning, proving near-optimality in theory.
  • Empirical results confirm that the method is effective across diverse problem domains, even when input changes are adversarial or worst-case.
  • The approach enables significant speedups in problems where solution verification is fast, allowing post-hoc correction to achieve zero errors.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.