Distance-Matched Trust for Learning-Augmented Decisions in Space

Algorithms that make irrevocable choices one at a time, such as deciding when to stop renting equipment and buy it, can now take a machine-learning prediction as "advice." Used this way, the prediction lets the algorithm do nearly as well as a clairvoyant when the advice is good, while a built-in fallback keeps losses bounded when it is bad. How much to trust the advice is set by a single knob, and that knob is chosen from the prediction's validation error. In geographic applications this error is often badly wrong. When validation data sit next to training data, a model looks far more accurate than it will be in a new place. Localization is All You Evaluate shows a map-estimation model falling from 72.7 to 26.2 mean average precision once validation locations are pushed 60 meters away from training locations. A trust knob tuned on such leaked validation will over-trust the model exactly where it is least reliable.

We propose to set the trust at each location from an uncertainty interval for the prediction. The interval is calibrated on held-out data that are as far from the training set as the deployment location is. Concretely, we build calibration errors from spatial cross-validation folds at several buffer distances, tag each error with its distance to the nearest training point, and, for a new site, form a conformal interval using errors from the matching distance band. That interval feeds a distributional ski-rental policy whose worst-case guarantee holds regardless of interval quality. The intended result is an online decision rule whose guaranteed worst case never gets worse than a known bound, and whose typical cost stays close to optimal both in well-sampled areas and at the frontier of the training data.

Core Claim

Prediction error in spatial systems grows with distance from the training data. The literature on learning-augmented algorithms controls trust with a global statistic. The spatial conformal literature calibrates intervals on randomly drawn calibration points, which themselves sit close to training data. Our claim is that the missing ingredient is distance-matched calibration: making the calibration residuals face the same amount of geographic extrapolation that deployment will. We argue this ingredient matters more for decision quality than the sophistication of the interval method or of the online policy.

The prior work plays three roles here. Robust and Consistent Ski Rental with Distributional Advice supplies the decision method. It takes a full predicted distribution rather than a point, computes the best buy day under that distribution, and clamps it to a window $[\lceil \lambda b \rceil, \lfloor b/\lambda \rfloor]$, where $b$ is the buy cost and $\lambda \in (0,1]$ is a confidence parameter. This guarantees a competitive ratio (cost relative to the clairvoyant optimum) of at most $1 + 1/\lambda - 1/b$ under any advice. Its analysis is aspatial: it has one $\lambda$ and an oracle distribution.

Two spatial conformal methods supply the interval machinery and motivate the gap. GeoConformal Prediction weights calibration residuals by a Gaussian kernel in distance to the query. Spatial Conformal Inference through Localized Quantile Regression learns those weights with a quantile random forest over nearby residuals. Both are static, and both draw calibration points from a split of the same spatial pool as training. In clustered data, those calibration residuals mostly reflect interpolation error, not extrapolation error.

Localization is All You Evaluate and the K-means spatial splits in the Alberta Wells Dataset motivate the problem by documenting how large the leakage effect is. Neither builds anything that acts on it.

Research Program

The first component is the calibration procedure. We partition the region into blocks using K-means clusters of coordinates, as in the Alberta Wells and lead-pipe studies (A Machine Learning Approach to Identify Houses with High Lead Tap Water Concentrations), or using adjacency-graph breadth-first partitioning as in SpaCE. For each held-out block and each buffer radius $r$ on a grid, we retrain the base model with training points within $r$ of the block removed. We then record, for each held-out point $i$, a conformalized-quantile-regression score $E_i$ as in Conformalized Quantile Regression, together with $d_i$, the point's distance to the nearest point the model was actually trained on.

At deployment, a query at site $s$ with training distance $d(s)$ receives the interval $$\big[\hat q_{\alpha/2}(s) - Q_s,\ \hat q_{1-\alpha/2}(s) + Q_s\big],$$ where $\hat q$ are the fitted quantile predictions and $Q_s$ is the weighted $(1-\alpha)$ quantile of the scores $E_i$. Each score's weight is a kernel in $|d_i - d(s)|$, optionally multiplied by a geographic-proximity kernel as in GeoCP.

The coverage we aim to prove is conditional on the distance band. It rests on an assumption about the residual process: residual behavior depends on location mainly through the extrapolation distance, plus spatial mixing. This is weaker than exchangeability but stronger than nothing, and the experiments test it directly.

The second component translates the interval into decisions. The interval, or a distribution truncated to it, becomes the advice for the distributional clamp policy. The local confidence $\lambda(s)$ is set by interval width relative to $b$: narrow intervals allow $\lambda(s)$ near 1, wide intervals push it toward a floor $\lambda_{\min}$. Because every site obeys the clamp bound with $\lambda(s) \ge \lambda_{\min}$, the worst-case ratio $1 + 1/\lambda_{\min} - 1/b$ holds unconditionally.

The theoretical target is an expected-ratio bound that decomposes into two terms. The first is a consistency term that grows with interval width. The second is a miscoverage term weighted by $\alpha$. We expect this decomposition to follow from the Wasserstein-stability argument of Kim and Fan, since a covering interval bounds the transport distance between advice and truth.

The third component is the benchmark. The file contains no spatial online-decision benchmark, so we build semi-synthetic spatial rent-or-buy tasks from real spatial regression targets. At each site, the unknown "number of days" is a monotone transform of a real target into $[1, D]$, with $D$ as the known horizon Kim and Fan require. The targets are King County house prices, California Housing, Ookla signal strength in Georgia and New Mexico, and multi-country crop yield, all used by LSCP. We add the GeoCP-style $100 \times 100$ synthetic grid with controlled autocorrelation, and SpaCE semi-synthetic fields for large graphs. The transform is arbitrary, and we report results under several transforms so the conclusions do not hinge on one choice.

Baselines

The naive reference points are two policies that ignore advice. One is the classical break-even policy, which buys on day $b$ and is 2-competitive in the worst case. The other is full trust in the point prediction, which buys immediately if the prediction exceeds $b$. These bracket the problem. Break-even shows what pessimism costs on typical inputs. Full trust shows what leakage costs when nothing catches it.

The strongest existing method is the Kim and Fan clamp and water-filling policies with a single global $\lambda$. For fairness, we give them distributional advice from the same quantile regressor and choose $\lambda$ by grid search. Their reported result is a 5–20% consistency gain over point-prediction baselines on synthetic Uniform, Discretized Gaussian, Truncated Geometric and Bi-modal distributions (Robust and Consistent Ski Rental with Distributional Advice). There is no reported result on Lacuna for any learning-augmented rent-or-buy policy on spatially split data, so we establish the baseline numbers ourselves.

We run two versions of this baseline, one with $\lambda$ tuned on random cross-validation and one with $\lambda$ tuned on spatial block cross-validation. The second isolates how much the fix gains from honest validation alone.

A second strong competitor feeds GeoCP intervals and LSCP intervals, each calibrated on a random split exactly as in their papers, into our local-$\lambda$ rule. GeoCP's reported coverage on Seattle housing at a 90% target is 93.67%, versus 81.00% for 2,000-resample bootstrapping (GeoConformal Prediction). LSCP reports intervals about 30% narrower than the next competitor in its first simulation and near-nominal coverage on sparse New Mexico data (Spatial Conformal Inference through Localized Quantile Regression). This pair is the ablation for our key ingredient: same decision rule, same base model, different calibration pool.

Every method shares the base learner (gradient-boosted quantile regression), the training data, and the same number of model fits. Our calibration needs extra refits, so each baseline receives a matching budget of tuning refits.

Beating the baselines means two things at a pre-registered $\lambda_{\min}$. First, a lower mean realized competitive ratio on spatially held-out blocks. Second, and more important, a lower ratio averaged over the worst 10% of blocks, without exceeding the unconditional bound anywhere.

Why not just…?

Why not just tune one trust parameter per region using spatial cross-validation? This is the real threat. It may capture most of the gain with no conformal machinery at all. It fails when deployment sites vary in how far they sit from training data within a region, because a single per-region knob averages frontier and interior sites. It also has no answer for a genuinely new region. Our experiments include per-block and per-distance-band $\lambda$ tuned by spatial cross-validation as explicit baselines. If distance-banded $\lambda$ alone matches our method, we will report that the interval is unnecessary and that the contribution reduces to distance-matched trust tuning. That would still be useful, but it is a simpler claim.

Why not just use GeoCP or LSCP intervals as published? Their calibration points are drawn from the same neighborhoods as training. At a 60-meter or cross-city distance, those points underrepresent extrapolation error, the same mechanism behind the MapTRv2 collapse in Localization is All You Evaluate. The calibration ablation above measures this directly. We predict the gap is near zero for interior sites and grows with $d(s)$. If it does not grow, our premise is wrong.

Why not just be pessimistic everywhere and use break-even? Its worst-case ratio of 2 is also its typical cost on many inputs, and Kim and Fan show distributional advice recovers 5–20% of that. Break-even is included as the floor that every method must beat on average.

Why not just retrain a better model with spatial cross-validation and keep point advice? A better model shrinks errors but still gives the decision rule no signal of where it is extrapolating. Kim and Fan show point advice forces all-or-nothing thresholds under bimodal uncertainty. The full-trust-in-point-prediction baseline, run with the spatially validated model, tests whether this alternative is enough.

Proposed Experiments

For each dataset we evaluate four split regimes: random, K-means-block, breadth-first-block, and buffered blocks at increasing radii. The largest radius mirrors the Near and Far Extrapolation protocol of Lilja et al. On the synthetic grid we vary autocorrelation strength.

The metrics fall into three groups. Coverage is reported per distance band and per block. Realized competitive ratio is reported as a mean, as a worst-decile-block average, and as a maximum. We also measure the ratio under adversarially corrupted advice inside chosen blocks, to verify that the $1 + 1/\lambda_{\min} - 1/b$ bound holds empirically.

Four checks will decide the outcome. The first is whether coverage of random-split-calibrated intervals decays with training distance while distance-matched coverage stays near nominal. The second is whether that coverage gap translates into a lower worst-decile competitive ratio, rather than merely better-looking intervals. The third is whether distance-banded $\lambda$ tuning without intervals closes the gap. The fourth is whether gains vanish under random splits. Vanishing gains there are expected and would confirm that the benefit comes from leakage correction rather than from extra tuning.

A negative result on the second check would mean better spatial calibration does not matter for this decision class, and we would report it as such. As a follow-on, and only if the ski-rental results are positive, we would replace the point-valued dual price vector of A Learning-Augmented Approach to Online Allocation Problems with distance-matched price intervals for spatial dispatch.