Parsimonious Learning-Augmented Approximations for Dense Instances of $\mathcal{NP}$-hard Problems

Evripidis Bampis, Bruno Escoffier, Michalis Xefteris

Abstract

Traditional Polynomial Time Approximation Schemes (PTAS) for dense NP-hard problems often suffer from an exponential dependence on the error parameter $\epsilon$ in their running time, typically expressed as $n^{O(1/\epsilon^2)}$. This paper introduces a Learning-Augmented Approximation (LAA) framework that utilizes a "parsimonious" amount of advice—specifically $O(\log n)$ bits—from a machine learning model to bypass this computational wall. By leveraging these predictions, the authors demonstrate that the running time for problems like Max-CUT and Max-k-SAT can be reduced to a fixed-degree polynomial, achieving high consistency and robustness while maintaining a graceful degradation of performance relative to prediction error.

Introduction

In the realm of theoretical computer science, a significant gap exists between worst-case analysis and the practical performance of algorithms. While many optimization problems are NP-hard, "dense" instances—where the number of constraints or edges is a constant fraction of the maximum possible—often admit Polynomial Time Approximation Schemes (PTAS). However, these schemes are frequently impractical because the desired accuracy $\epsilon$ resides in the exponent of the input size $n$.

This research explores a middle ground: using a tiny amount of external advice, potentially from a pre-trained machine learning model, to accelerate these algorithms. The authors propose a framework where only a logarithmic number of prediction bits are required to significantly improve the efficiency of approximations for a broad class of dense optimization problems.

The Computational Wall in Dense Instances

For problems such as Max-CUT (partitioning graph vertices to maximize edges between sets) and Max-k-SAT, dense instances are theoretically easier than sparse ones, yet the existing PTAS are still computationally expensive. The running time $n^{O(1/\epsilon^2)}$ implies that as one seeks a more precise solution (smaller $\epsilon$), the exponent grows rapidly, making the algorithm unusable for large datasets.

The core question addressed here is whether a small, potentially noisy "hint" about the optimal solution can decouple the accuracy parameter $\epsilon$ from the exponent of $n$, effectively moving the computational burden from the algorithm's structure to the quality of the advice.

The Parsimonious Prediction Framework

The paper introduces the concept of parsimonious predictions. Unlike standard learning-augmented settings that might require a prediction for every variable ($O(n)$ bits), this framework only requests advice for a small random sample of $O(\log n)$ variables.

The Algorithmic Pipeline

The proposed method follows a multi-stage process to transform the optimization problem:

  1. Sampling and Prediction: The algorithm selects a logarithmic number of variables and queries an ML oracle for their values in an optimal solution.
  2. Coefficient Estimation: These few bits of advice are used to estimate the coefficients of a high-degree polynomial that characterizes the specific problem instance.
  3. Linearization: The complex, high-degree integer program is converted into a Linear Program (LP). This is the pivotal step that reduces the complexity, as LPs are solvable in much faster time than high-degree optimization problems.
  4. Randomized Rounding: The fractional solution produced by the LP is rounded back to integers to provide a feasible solution for the original problem.
  5. Robustification: To protect against poor ML advice, the algorithm runs a standard constant-factor approximation (e.g., the Goemans-Williamson algorithm for Max-CUT) in parallel, selecting the better of the two results.

Theoretical Guarantees: Consistency, Smoothness, and Robustness

The framework is evaluated based on three critical properties:

  • Consistency: If the ML advice is perfect, the algorithm achieves a $(1-\epsilon)$-approximation. Crucially, the running time becomes $O(n \cdot T_{LP})$, where $T_{LP}$ is the time to solve a linear program, effectively removing $\epsilon$ from the exponent.
  • Smoothness: The authors prove that the solution quality degrades linearly with the number of incorrect prediction bits. This ensures that the algorithm is resilient to moderate levels of noise in the ML model.
  • Robustness: By incorporating a safety-net algorithm, the framework ensures that even if the advice is entirely incorrect (pure noise), the performance never falls below the best-known worst-case approximation ratio (e.g., 0.878 for Max-CUT).

Generalization to Smooth PIPs

A major contribution of this work is its generalizability. The authors show that their LAA framework applies to any problem that can be formulated as a Smooth Polynomial Integer Program (PIP). This includes a wide array of problems such as Max-DICUT, Max-Hypercut, and the k-Densest Subgraph problem, providing a unified approach to accelerating approximations across different domains.

Conclusion and Future Directions

This research demonstrates that a very small amount of information—logarithmic in the size of the input—is sufficient to "anchor" a solution and bypass traditional complexity barriers in dense NP-hard problems. By decoupling accuracy from the exponent of the running time, the authors provide a path toward more practical approximation schemes.

While the current results are limited to dense instances, they lay the groundwork for future exploration into "almost-sparse" instances and settings with multiple, conflicting predictors. The shift from requiring $O(n)$ advice to $O(\log n)$ advice represents a significant step toward making learning-augmented algorithms more resource-efficient and theoretically sound.

Summary updated

BibTeX
@inproceedings{bampis2024parsimonious,
  author = {Evripidis Bampis and Bruno Escoffier and Michalis Xefteris},
  title = {{Parsimonious Learning-Augmented Approximations for Dense Instances of $\textbackslash\{\}mathcal\{NP\}$-hard Problems}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=AD5QC1BTJL},
}
Figure