Abstract
Conformal prediction provides rigorous, distribution-free uncertainty guarantees, but often yields prohibitively large prediction sets in structured domains such as routing, planning, or sequential recommendation. We introduce "graph-based conformal compression", a framework for constructing compact subgraphs that preserve statistical validity while reducing structural complexity. We formulate compression as selecting a smallest subgraph capturing a prescribed fraction of the probability mass, and reduce to a weighted version of densest $k$-subgraphs in hypergraphs, in the regime where the subgraph has a large fraction of edges. We design efficient approximation algorithms that achieve constant factor coverage and size trade-offs. Crucially, we prove that our relaxation satisfies a monotonicity property, derived from a connection to parametric minimum cuts, which guarantees the nestedness required for valid conformal guarantees. Our results bridge efficient conformal prediction with combinatorial graph compression via monotonicity, providing rigorous guarantees on both statistical validity and compression size. We validate our approach via simulations for trip planning and navigation, comparing it to natural baselines.
Introduction
Conformal prediction (CP) has emerged as a premier framework for providing uncertainty guarantees for "black-box" machine learning models. In a typical setting, CP generates a prediction set that is guaranteed to contain the true outcome with a user-defined probability (e.g., 95%). However, in structured domains like navigation, itinerary planning, or robotics, these prediction sets often become astronomically large.
For instance, if a model predicts a route through a city, a 95% confidence set might include thousands of possible paths. While statistically valid, such a "bag of paths" is practically unusable for a human user or a downstream decision-making system. This paper addresses the challenge of conformal compression: how to summarize a massive set of predicted structures into a compact, readable subgraph that maintains the original statistical safety guarantees.
Methodology: Graph-Based Conformal Compression
The authors frame the compression problem as a combinatorial optimization task on a weighted hypergraph. In this setup:
- Vertices represent discrete components (e.g., road segments or specific activities).
- Hyperedges represent full sequences or paths, each assigned a weight based on its probability or nonconformity score.
- The Objective is to find the smallest set of vertices that "covers" a specific fraction ($\tau$) of the total path weight.
LP Rounding in the High-Coverage Regime
Finding the smallest set of vertices to cover a set of hyperedges is generally NP-hard, related to the "densest $k$-subgraph" problem. However, the authors identify a critical insight: conformal prediction typically operates in a "high-coverage" regime (e.g., covering 90% or 95% of the mass). In this specific regime, the problem becomes more tractable. The authors utilize a Linear Programming (LP) relaxation followed by a rounding scheme to achieve efficient, constant-factor approximations of the optimal subgraph size.
The Monotonicity Bridge
A fundamental requirement for conformal prediction is monotonicity. For the statistical guarantees to hold, prediction sets must be "nested": a set providing 95% coverage must contain the set providing 90% coverage. Most standard optimization algorithms do not naturally produce nested outputs; a small change in the coverage requirement could result in a completely different optimal subgraph.
To solve this, the authors prove that their LP rounding scheme satisfies monotonicity by establishing a connection to the theory of parametric minimum cuts. This mathematical bridge ensures that as the required coverage increases, the algorithm simply adds vertices to the existing subgraph, maintaining the nested structure necessary for valid calibration.
Experimental Evaluation
The framework was evaluated across three distinct environments to test its robustness and compression efficiency:
- Synthetic Navigation: A $6 \times 6$ grid simulation designed to test the algorithm's ability to handle branching paths, such as choosing between a direct city-center route and a longer bypass.
- Trip Planning Simulation: A "planted core" model where itineraries are constructed from various activity types (e.g., dining, museums). This tested whether the algorithm could recover a hidden, high-probability structure within a noisy set of sequences.
- Porto Taxi Trajectory Dataset: A real-world application using 1.7 million taxi trips in Porto, Portugal. The authors focused on complex trajectories from the airport to the city center to evaluate performance on real urban geometry.
Key Results
- Superior Compression: In the Porto taxi experiments, the LP-based method significantly outperformed "Forward Greedy" baselines. To achieve the same level of statistical coverage, the LP method consistently required hundreds fewer edges, providing a much cleaner summary of the uncertainty.
- Structure Recovery: In trip planning simulations, the algorithm achieved a perfect recovery ratio (1.0) of the ground-truth "core" activities, provided the target coverage was within the core's total probability mass.
- Algorithmic Efficiency: The connection to parametric min-cuts allowed the algorithm to remain robust even in sparse data regimes where simple frequency-based heuristics failed to provide stable subgraphs.
Discussion and Future Work
This work demonstrates that combinatorial optimization can be rigorously integrated with statistical calibration. By identifying the "high-coverage" regime and utilizing parametric min-cuts, the authors provide a path toward making uncertainty estimates useful in complex, structured environments.
Future research directions include:
- Exploiting Geometry: Incorporating the specific properties of road networks (e.g., near-planarity) to develop even tighter approximation algorithms.
- Compression-Aware Training: Moving beyond post-hoc compression by training the underlying predictive models with a differentiable penalty for subgraph complexity.
- Scaling: Further optimizing the LP solvers to handle massive hypergraphs with millions of vertices and edges in real-time applications.
Summary updated