Modular and Adaptive Conformal Prediction for Sequential Models via Residual Decomposition

William Zhang, Saurabh Amin, Georgia Perakis · DOI

Abstract

Modern machine learning systems are increasingly structured as multi-stage pipelines, yet standard Conformal Prediction (CP) frameworks treat these systems as monolithic black boxes. This lack of granularity makes it difficult to diagnose the source of prediction errors or maintain coverage during localized distribution shifts. We propose a modular CP framework based on residual decomposition, which splits end-to-end error into stage-specific components. This method enables uncertainty attribution and adaptive risk control. Our evaluation on synthetic, economic, and financial datasets shows that this approach maintains superior coverage under stress and provides vital diagnostic signals for pipeline maintenance.

1. Introduction

Standard Conformal Prediction provides rigorous error bars for model outputs, but its application to sequential pipelines is limited. In a typical two-stage pipeline—such as predicting raw material demand to forecast final product prices—an error in the first stage propagates to the second. Treating the entire pipeline as a single unit obscures whether a failure stems from upstream sensor drift or downstream logic changes. Furthermore, when a "shock" hits only one part of the pipeline, black-box methods often over-correct or fail to maintain promised coverage levels.

2. Methodology: Residual Decomposition

The core innovation of this work is the decomposition of the total end-to-end error ($R$) into two interpretable parts:

  1. Upstream Delta ($\Delta R_1$): The error added specifically because the first stage's prediction was imperfect.
  2. Downstream Residual ($R_2$): The inherent error of the second stage, assuming it had received perfect (true) input from the first stage.
Figure 1: The residual decomposition framework splits the total error $R$ into an upstream component $\Delta R_1$ and a downstream component $R_2$.

2.1 Stage-Aware Intervals and Calibration

Prediction intervals are constructed as a weighted sum of quantiles from these components: $\text{Interval} = \text{Prediction} \pm (a \cdot Q_{\Delta R_1} + b \cdot Q_{R_2})$. To determine optimal weights ($a, b$), we employ Family-Wise Error Rate (FWER) control, ensuring the chosen weights provide the requested coverage (e.g., 90%) with high statistical probability.

2.2 Adaptive Risk Control

For streaming data, we developed an online version using a sliding window to dynamically adjust weights. If upstream error begins to dominate, the algorithm automatically shifts its "uncertainty budget" to account for the drift, maintaining reliability in non-stationary environments.

3. Experimental Evaluation

We evaluated the framework across three domains:

  • Synthetic Shifts: Controlled environments with injected "shocks" to specific stages.
  • Automobile Indicators: Monthly economic data (FRED and Manheim) used to predict used vehicle prices, including the massive 2020 COVID-19 supply chain shock.
  • Stock Market Data: Daily closing prices for S&P 500 giants (AAPL, AMZN, MSFT) using an N-BEATS model for forecasting.

3.1 Key Results

  • Robustness to Shifts: In synthetic tests with rapid upstream shifts, our method maintained ~80% coverage, while standard Split Conformal methods plummeted to ~69%.
  • Handling Real-World Shocks: On the automobile dataset, the method successfully navigated 2020 pandemic disruptions, outperforming state-of-the-art adaptive baselines like ACI or PID which often struggled with feedback lags.
  • Efficiency: In stock market experiments, the adaptive version achieved a higher minimum coverage (0.89) than competitors (0.83–0.86) while maintaining comparable interval widths.

4. Discussion

4.1 Uncertainty Attribution

By decomposing error, the model provides a diagnostic signal: "80% of current uncertainty stems from the upstream forecaster." This allows practitioners to identify exactly which pipeline component requires retraining or intervention.

4.2 Abstention as Safety

Under severe shifts where no valid weights can be found, the FWER procedure may "abstain" from providing an interval. This acts as a vital safety feature, signaling that the model is currently unreliable and requires human oversight.

4.3 Limitations and Future Work

While effective for two-stage systems, the weight search space grows exponentially with more stages. Future work will explore heuristics for deeper pipelines and the use of "signed" residuals to create asymmetric intervals.

Summary updated

BibTeX
@inproceedings{zhang2026modular,
  author = {William Zhang and Saurabh Amin and Georgia Perakis},
  title = {{Modular and Adaptive Conformal Prediction for Sequential Models via Residual Decomposition}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=fhoIsmyGGi},
}
Figure