Modular and Adaptive Conformal Prediction for Sequential Models via Residual Decomposition
Abstract
Conformal prediction offers finite-sample coverage guarantees under minimal assumptions. However, existing methods treat the entire modeling process as a black box, overlooking opportunities to exploit modular structure. We introduce a conformal prediction framework for two-stage sequential models, where an upstream predictor generates intermediate representations for a downstream model. By decomposing the overall prediction residual into stage-specific components, our method enables practitioners to attribute uncertainty to specific pipeline stages. We develop a risk-controlled parameter selection procedure using family-wise error rate (FWER) control to calibrate stage-wise scaling parameters, and propose an adaptive extension for non-stationary settings that preserves long-run coverage guarantees. Experiments on synthetic distribution shifts, as well as real-world supply chain and stock market data, demonstrate that our approach maintains coverage under conditions that degrade standard conformal methods, while providing interpretable stage-wise uncertainty attribution. This framework offers diagnostic advantages and robust coverage that standard conformal methods lack.
1 Introduction
Modern machine learning systems increasingly rely on modular pipelines, where upstream predictors generate intermediate representations for downstream models. Such pipelines appear across diverse applications: macroeconomic forecasting, where supply chain indicators inform market predictions, and medical diagnosis, where imaging features guide treatment decisions [11, 25]. In these settings, uncertainty quantification is essential and should reflect how error propagates across stages. Conformal prediction [28] provides principled prediction intervals with finite-sample coverage guarantees under exchangeability. However, existing conformal prediction methods treat these multi-stage systems as monolithic black boxes, overlooking their modular structure and missing opportunities for targeted error attribution.
Recent work expands the flexibility of conformal prediction through reweighting and adaptive calibration [7, 1, 20, 12, 4, 14, 15], structured model-aware adaptations [31, 32, 29], and risk-control [8, 2], but largely focuses on single-stage or black-box models, rather than taking a modular perspective.
This perspective is especially pertinent under distribution shift, which often affects stages asymmetrically—e.g., upstream sensors may drift while downstream mappings remain stable. Standard conformal methods cannot disentangle such effects, which may force practitioners to retrain the entire pipeline when targeted interventions would suffice. To address this gap, we propose a stage-wise abstraction that isolates these effects, embedding stage-wise uncertainty into conformal prediction, yielding robust, interpretable intervals under distribution shift.
By decomposing residuals into stage-wise components, our method constructs prediction intervals through a linear combination of stage-specific quantiles, weighted by scaling parameters selected via family-wise error rate (FWER) control over a calibration set. This yields valid, interpretable intervals without requiring internal model access—only structural knowledge of the pipeline. Our approach offers two key advantages over existing conformal methods: (i) it provides diagnostic transparency, identifying which stages contribute most to uncertainty, and (ii) it maintains coverage under distribution shifts affecting individual components where standard approaches degrade.
For intuition, we briefly introduce the two-stage setting with triplets and latent structure , , where denote additive noise, and the model learns estimators , . For example, in automobile supply chains, could denote semiconductor prices, with estimating new vehicle demand (), and predicting used vehicle prices (). Our method decomposes the residual into upstream () error component and downstream () residual , capturing the uncertainty of each stage.
We also extend our framework to adaptive settings for which we update scaling parameters based on component-wise empirical coverage, improving responsiveness to (i) upstream, (ii) downstream, and (iii) end-to-end distribution shifts. We illustrate our method on synthetic shifts and real-world supply chain and financial data, showing improved robustness and interpretability over adaptive conformal baselines [14, 15, 1, 4]. For simplicity, we focus on two-stage models, but our methodology can be extended to multi-stage models (Appendix C).
Contributions:
-
•
We propose a residual decomposition framework for sequential multi-stage models, that partitions prediction error into interpretable upstream and downstream components, enabling stage-wise uncertainty attribution (Section˜3).
-
•
We develop a risk-controlled parameter selection procedure using FWER-based hypothesis testing to construct valid prediction intervals from decomposed residuals, with formal coverage guarantees (Section˜5).
-
•
We introduce an adaptive algorithm that dynamically adjusts scaling parameters based on component-wise coverage feedback, preserving long-run coverage guarantees while providing interpretable diagnostics for distribution shifts (Section˜6).
-
•
We demonstrate the framework’s effectiveness on synthetic shifts and real-world economic forecasting, showing maintained coverage under conditions that degrade existing conformal methods, with diagnostic capabilities that enable targeted model interventions (Section˜7).
Paper Outline. In Sections 2 and 3, we formalize the two-stage prediction setting and introduce our residual decomposition. Section˜4 describes our method for constructing stage-aware prediction intervals, followed by the FWER calibration procedure in Section˜5. We extend our method to an adaptive version Section˜6, and evaluate performance under distribution shift in Section˜7.
2 Problem setting and assumptions
We consider a sequential two-stage prediction problem. Each data point is characterized by a triplet where is the input to the first-stage model (upstream features), is an intermediate representation, and is the final prediction target. We learn predictors and which are composed to form end-to-end predictor , where .
To learn these models and perform conformal prediction, we assume access to three disjoint subsets: (i) a training set used to fit both stages of the model via and pairs for each stage respectively; (ii) a conformal set for computing nonconformity scores; and (iii) a calibration set for parameter selection. At prediction time, only the upstream input is observed, while the intermediate value and target are unobserved and must be predicted.
We list some assumptions. Exchangeability. Unless stated otherwise, we assume the data in to be exchangeable, as well as the test point . Learning algorithms. We assume that the algorithms that learn are deterministic, i.e. given the same training data, they produce identical predictors; and we also assume they are symmetric, i.e. invariant to permutations of the data. We also assume that the intermediate variable is observable for the given datasets, enabling residual decomposition. Distribution shifts. Distribution shifts violate exchangeability and can impact each prediction stage differently. Let denote the distribution of a data point in the training set and denote the distribution of the test point. We consider three types of shift: Upstream covariate shift: ; Upstream concept shift: ; and Downstream concept shift: .
Objective.
Given test upstream input , the goal is to construct prediction interval such that , where is the target miscoverage level. Under exchangeability, this is the standard conformal prediction objective. However, under distribution shifts, we seek to maintain robust coverage while providing interpretable attribution of uncertainty to specific pipeline stages.
The key challenges in this setting are: (i) Attribution: Understanding which stage contributes more to prediction uncertainty; (ii) Adaptivity: Maintaining coverage under shifts affecting different stages; (iii) Transparency: Providing actionable insights for model improvement or retraining decisions. Our approach addresses these challenges by decomposing the end-to-end prediction error into stage-specific components for targeted uncertainty quantification and robust interval construction. While we define these concepts for two-stage models, we discuss auxiliary inputs, multiple upstream models, and deeper sequential pipelines in Appendix C. We also provide a notation table in Appendix B.2.
3 Two-stage residual decomposition for conformal prediction
To address the aforementioned challenge of attribution, we partition the total prediction residual into upstream and downstream components. This decomposition enables stage-wise attribution of error, in contrast to standard black-box conformal methods. We provide a visualization in Figure˜1.
Definition 1 (Second-stage residual).
Given a point and downstream predictor , the second-stage residual is
This captures downstream prediction error when given the true intermediate input .
Definition 2 (First-stage delta).
Let be the output of the first-stage predictor. The first-stage delta is defined as
This quantifies the change in downstream prediction error induced by replacing the true intermediate with its prediction .
For notational purposes, we drop the dependence on , and refer to these terms as , and . Intuitively, reflects the error of the upstream predictor, while isolates downstream error without upstream influence. This decomposition satisfies a fundamental upper-bound property.
Proposition 1.
For any point , the total residual satisfies:
By definition, . Let and . By the reverse triangle inequality, . This upper bound property ensures that the sum of components provides a conservative estimate of the total error, which is crucial for the coverage guarantees developed subsequently.
This decomposition provides a clean interpretation: measures the inherent uncertainty of the downstream model, while measures how upstream prediction errors affect the final prediction error magnitude. When is small relative to , the upstream predictor performs well and downstream uncertainty dominates. Conversely, when is large relative to , upstream errors drive prediction uncertainty. This attribution enables practitioners to identify which stage requires improvement and guide retraining decisions. Furthermore, these components provide insights for handling distribution shifts: under upstream shifts, typically increases as the first-stage predictor encounters out-of-distribution inputs, while under downstream shifts, increases. These changes can be experimentally visualized in Appendix Figure˜12(b). Thus, the varied responses enable targeted adaptive strategies for different distribution shifts.
These components exhibit intuitive relationships with the total residual: when is small, closely approximates , while when the upstream model is accurate and is smooth, closely approximates (see Appendix A.2). Importantly, at least one component must represent a majority of the error, ensuring meaningful stage-wise attribution. Next, we describe two complementary approaches to combining these residual components into prediction intervals.
4 Constructing prediction intervals
We describe two approaches that incorporate , utilizing the conformal set , to compute component-wise quantiles, with data-driven parameter selection using addressed in Section˜5. Note that there exists a rich space of heuristics for combining these residual components beyond those listed below—see Appendix C.1. For proofs of the following results, see Appendix A.1.
4.1 Separate component quantiles
We compute sets of residual components on : and , which we abbreviate as and . Prediction intervals are constructed by summing quantiles computed separately from each set, with the quantile levels controlled by and for the respective stages.
Definition 3 (Separate component quantiles).
Let be quantile levels. For test input , the prediction interval is
This construction inherits coverage guarantees from standard conformal prediction:
Theorem 1 (Coverage of separate component quantiles).
Under the assumption of exchangeability, for , the prediction interval satisfies
4.2 Scaled component quantiles
Our second approach fixes a quantile level for both components and selects scaling parameters to weight their respective contributions. This provides interpretable control over stage-wise uncertainty attribution.
Definition 4 (Scaled component quantiles).
For a fixed quantile and scaling coefficients , the prediction interval is
where the quantiles are computed over .
The choice of scaling parameters and provides interpretable control: setting ignores upstream uncertainty while focuses only on upstream effects. However, coverage guarantees for arbitrary choices of require careful analysis. For fixed weights, we have the following:
Corollary 1 (Coverage with ).
Under exchangeability, for and , the interval satisfies
Proof.
This follows directly from Theorem˜1 with . ∎
For appropriately chosen quantiles and scaling weights, we observe that both can methods yield similar intervals. To provide maximum flexibility for both theoretical analysis and implementation, we can combine both approaches into a general framework:
This unified form allows independent control of both quantile levels and scaling parameters, enabling fine-tuned balance between coverage guarantees and stage-wise identifiability.
4.3 Coverage for scaled parameters
While coverage for intervals of the form (Definition 3) follows from standard conformal analysis, establishing similar guarantees for intervals with scaled residuals (Definition 4) presents significant challenges. The scaling parameters have no direct mapping to quantile levels, making it difficult to derive explicit guarantees. Despite this, we can establish that valid scaling parameters exist in principle. Under mild regularity conditions, there always exist optimal scaling parameters that yield exact marginal coverage:
Proposition 2 (Existence of ideal scaling parameters).
For desired coverage level , such that the interval with those scaling parameters satisfies the marginal coverage guarantee
provided the distribution of the residual has no point masses.
However, finding optimal scaling parameters requires knowledge of the residual distribution, which is unavailable in practice. This creates a fundamental trade-off: scaled intervals offer interpretable stage-wise control but lack accessible guarantees, while separate quantile intervals provide coverage under minimal assumptions but offer less direct interpretability. To resolve this trade-off, we adopt a data-driven approach [8, 3, 2] to selecting scaling parameters from a candidate set using the calibration set for the unified interval.
5 Risk-controlling approach with residual components
Since finding is impossible in practice, we reframe the problem as selecting coefficient pairs that satisfy the nominal coverage level . We approach this from the perspective of multiple hypothesis testing; for each we test the null hypothesis that the miscoverage rate exceeds .
5.1 Testing miscoverage via empirical risk
We aim to identify scaling parameters for which the resulting prediction interval achieves coverage at least . Since theoretical guarantees for arbitrary are unavailable, we perform a hypothesis test for whether its miscoverage rate exceeds . We fix a finite candidate set of scaling pairs and define the corresponding prediction interval for each :
using the general framework introduced earlier that combines Definition˜4 and Definition˜3. Here, the quantile parameters and are fixed in advance with quantiles taken over , while the miscoverage testing is performed using to identify suitable .
5.2 Computing -values from calibration data
Let denote the size of the calibration set. For each choice of scaling parameters , we define the empirical miscoverage rate . Under the stronger assumption that the calibration points are IID, and that the true miscoverage rate for a given is constant, the number of missed points follows a Binomial distribution with parameters and the underlying miscoverage probability. For each , define the null hypothesis
Thus, for each we define a -value . The -values are super-uniform under (Appendix A.2); that is, for any , we have , which is crucial for FWER-controlling guarantees [8]. Thus, we apply FWER-controlling multiple testing algorithms (Appendix B.4) to the collection of to obtain the set of valid scaling parameters . This ensures that, with probability at least for some , no with a miscoverage rate exceeding is accepted. Note that the are more conservative as they require evidence of coverage of at least . In contrast, other prediction interval methods yield coverage that is merely close to . This conservatism may result in unnecessarily wide intervals, particularly when coverage is less critical than efficiency, such as in IID settings. To remedy this, we can include tolerance parameter and calculate with , trading some guarantees for practical performance. As demonstrated in our experiments (Appendix D.2.2), even small values of significantly improve efficiency while maintaining empirical coverage under IID settings.
5.3 Coverage guarantees via risk-controlled scaling
Thus, given the -values and a FWER-controlling multiple testing algorithm (Appendix B.4), we identify the set of validated scaling parameters . The following result states any intervals associated with achieve coverage with high probability:
Theorem 2 (Risk control via FWER calibration).
Let be the set selected by a FWER-controlling algorithm at level , based on -values computed over the calibration set with tolerance . Then, for any , we have
where the outer probability is over the randomness of , and the inner probability is over the test point .
This guarantee follows from the FWER-controlling property: by reducing the probability of false positives, i.e. selecting scaling parameters with poor coverage, we ensure that all selected parameters satisfy the coverage requirement with high probability. Thus, with probability at least over , any selected interval has coverage rate at least . Note that while does not explicitly appear in the guarantee, larger calibration sets lead to more precise -value estimates, typically resulting in a larger and less conservative interval selection. In practice, any pair can be used to construct prediction intervals. Although the quantile levels from Definition˜3 could also be tuned jointly with , we fix for simplicity, which is typically sufficient in our experiments.
We note that can be empty, producing no interval. This is intentional, as it can indicate that the shift is too large and retraining is needed, rather than producing an unreliable interval. In this setting, offer a clear interpretation as stage-wise sensitivity to shifts (Section˜7.1). Appendix C.2 also shows how the IID assumption on can be relaxed to allow stationary -mixing sequences.
6 Adaptive risk control with residual decomposition
We consider an adaptive variant of our method for nonstationary data by updating the prediction intervals over time. The sets and are defined using a sliding window over the most recent observations, with a user-specified window-length . We construct intervals combining Definition˜4 and Definition˜3: parameterized by scaling coefficients , quantile levels , and target coverage level , where quantiles are taken over , and is recalculated at each time step. With each new point, we dynamically update the using adaptive rules based on recent performance: when coverage drops below target, we decrease and vice versa; when specific components show persistent errors we adjust their corresponding scaling parameters; and when is too restrictive we adjust the quantile levels to expand future options. The algorithmic details are provided in Appendix Section˜B.5.
Crucially, the SelectLambda algorithm implements the adaptive adjustments to : it first identifies which component constitutes more of the error by comparing recent averages and over the sliding window. If coverage fails and upstream errors dominate (), it seeks to increase within the validated set . Conversely, when downstream errors dominate (), it prioritizes . If the desired scaling adjustment is unavailable in , the algorithm returns signals to adjust , effectively “adjusting" the constraints to allow more suitable scaling options.
Even with additional parameters, this approach preserves the long-run coverage guarantee from prior work: , where denotes coverage at time . This is because the core update rule remains identical to the adaptive conformal method of Gibbs and Candes [14], resulting in the convergence guarantee formally stated in Appendix A.1.1.
7 Experiments
We evaluate our method on synthetic and real-world forecasting tasks to assess its ability to (i) maintain coverage, (ii) attribute predictive error to specific model stages, and (iii) adapt to distribution shifts in modular pipelines. Our experiments are designed to isolate upstream, downstream, and full-pipeline shifts, highlighting how stage-aware intervals improve transparency and robustness over existing conformal baselines. Additional experiments and details are in Appendix D.
7.1 Non-adaptive methods
We evaluate our non-adaptive method (Section˜4), using the FWER-based procedure for our unified interval which we denote as to generate a validated set of , using fixed quantile levels . We then select from this set the pair that yields coverage closest to the nominal level on . We compare against two nonadaptive baselines: standard split conformal prediction (SC, Vovk et al. [28]) and weighted split conformal prediction (WSC, Barber et al. [7]), which accounts for non-exchangeability.
We begin with a synthetic dataset generated by the structural equations , , where . After an initial stationary period, the data undergoes a concept shift in either the upstream or downstream with increasing noise. We vary the rate of these shifts to include both gradual and rapid changes. Results for both upstream and downstream shifts are shown in Table˜1.
| Shift | Metric | SRa,b (c=d=0.01) | SRa,b (c=0.05,d=0.01) | SC | WSC |
|---|---|---|---|---|---|
| Gradual | Coverage | 0.8233 | 0.7280 | 0.7488 | |
| Width | 2.9884 | 2.4272 | 2.3726 | 2.4849 | |
| Rapid | Coverage | 0.8041 | NA | 0.6910 | 0.7218 |
| Width | 3.9703 | NA | 2.9544 | 3.1969 |
| Shift | Metric | SRa,b (c=d=0.01) | SRa,b (c=0.01,d=0.05) | SC | WSC |
|---|---|---|---|---|---|
| Gradual | Coverage | 0.9309 | 0.9133 | 0.8695 | 0.8748 |
| Width | 2.4274 | 2.3738 | 2.0143 | 2.0472 | |
| Rapid | Coverage | 0.8981 | NA | 0.8419 | 0.8506 |
| Width | 2.4878 | NA | 2.1035 | 2.1498 |
Our method achieves higher coverage than the other methods, which suffer degradation under distributional shifts, particularly under upstream. For example, our method drops from 0.84 to 0.80 coverage vs. SC dropping from 0.73 to 0.69 for gradual vs. rapid upstream shifts. These coverage improvements are at the cost of wider intervals and occasional abstention; this trade-off is worthwhile when attribution and robustness are prioritized. We note that selecting larger (resp. ) increases the sensitivity of the method to upstream (resp. downstream shift), resulting in abstention under rapid shifts. This is intentional, with abstention signaling that retraining may be necessary for the given stage; black-box methods lack this ability, as they cannot isolate which part of the model fails, resulting in unnecessary retraining.
Thus, and control sensitivity: by selecting larger or smaller and , practitioners can balance robustness and abstention at each stage, offering flexibility beyond traditional conformal approaches. Next, we evaluate the adaptive version of our method under more extreme distributional shifts.
7.2 Adaptive methods under structured distribution shifts
We evaluate our adaptive method (Section˜6) in settings with distributional shocks, comparing against recent adaptive baselines: Adaptive Conformal Inference (ACI, Gibbs and Candes [14]), Proportional-Integral-Derivative control (PID, Angelopoulos et al. [1]), and Online Conformal Inference with Decaying step sizes (OCID, Angelopoulos et al. [4]). We also consider DtACI (Gibbs and Candès [15]), an extension of ACI, and report its results in Appendix D.3.2 due to weaker performance. While DtACI is designed for online adaptation, it may be less effective in fixed-horizon forecasting tasks where the lag between prediction and feedback complicates adaptation. We also consider covariate shifts, hyperparameter sweeps, and a real-world stock price dataset, with full experimental details in Appendix D.
Controlled two-stage regression with targeted shifts.
We simulate a two-stage regression pipeline, with controlled stochastic relationships between upstream input , intermediate representation , and downstream output . The initial data follows an i.i.d. structure with where . Both stages are modeled using ordinary least squares. At test time, we simulate a temporal sequence of three phases: (i) Upstream concept shift: becomes ; (ii) Reversion: The upstream returns to ; (iii) Downstream concept shift: becomes . We report coverage and widths in Figure˜2, capturing the robustness of our methods to stage-specific shocks without overcompensating on width, particularly for upstream shocks.
Automobile indicators dataset.
We evaluate our method on a real-world dataset consisting of monthly economic indicators for the U.S. automobile supply chain and used vehicle valuations. Upstream features are sourced from FRED [13], including metrics such as price indices, inventory levels, and manufacturing prices, which are then forecasted at a 6-month horizon. Downstream outputs , aggregated used car prices, are obtained from Manheim [17]. This setting fits the two-stage modeling framework: upstream economic conditions influence downstream pricing, and training a separate upstream predictor leverages more widely available historical supply chain data.
A notable feature of this dataset is the sharp shock in 2020 due to the COVID-19 pandemic, which disrupted global supply chains, leading to prolonged production halts, resulting in a steep and persistent rise in used vehicle prices [19]. The nature of the shock may also affect the model asymmetrically, leading to exacerbated upstream inaccuracy, which we observe via the scaling parameter changes in Appendix D.3.5. For the upstream forecasting task, we use an ensemble of VAR and ARIMA models to predict supply-chain indicators. The model is trained on a rolling-window basis, with residual scores computed at each time step. A 40-month sliding window forms the held-out set from which we derive and .
We present the resulting prediction intervals for our method, ACI, PID, and OCID in Figure˜3. Our method effectively responds to the shock in 2020, maintaining coverage relative to other methods. OCID is also able to capture the shock, but shows inefficiency during 2014-2019. Notably, our approach maintains a comparable average width (21.085 vs 15.696 (ACI), 18.469 (PID), and 31.058 (OCID)) and can quickly adjust to shocks by consistently considering conservative values of in . This suggests that our method is well-suited for real-world forecasting and shines under asymmetric structural shocks. In contrast, for covariate shifts (Appendix D) that affect the entire pipeline, the benefits are less significant.
8 Conclusion
We proposed a conformal prediction framework for sequential models that decomposes prediction residuals into interpretable stage-specific components. Our method combines this decomposition with risk-controlled parameter selection to construct prediction intervals that provide both coverage guarantees and uncertainty attribution. The approach allows practitioners to identify which pipeline stage contributes to prediction uncertainty and provides diagnostic tools for targeted model improvement. Empirical evaluation on synthetic distribution shifts and real-world economic forecasting shows that our method maintains coverage under shifts that degrade standard conformal approaches. While this robustness comes at the cost of wider intervals and occasional abstention when shifts are severe, these trade-offs reflect the method’s conservative design that prioritizes reliable coverage over optimistic predictions. The stage-wise decomposition proves particularly valuable for asymmetric shifts affecting different pipeline components, enabling targeted adaptive responses that standard methods cannot provide.
References
- Angelopoulos et al. [2023] Anastasios Angelopoulos, Emmanuel Candes, and Ryan J Tibshirani. Conformal pid control for time series prediction. Advances in neural information processing systems, 36:23047–23074, 2023.
- Angelopoulos et al. [2021] Anastasios N Angelopoulos, Stephen Bates, Emmanuel J Candès, Michael I Jordan, and Lihua Lei. Learn then test: Calibrating predictive algorithms to achieve risk control. arXiv preprint arXiv:2110.01052, 2021.
- Angelopoulos et al. [2022] Anastasios N Angelopoulos, Stephen Bates, Adam Fisch, Lihua Lei, and Tal Schuster. Conformal risk control. arXiv preprint arXiv:2208.02814, 2022.
- Angelopoulos et al. [2024] Anastasios N Angelopoulos, Rina Foygel Barber, and Stephen Bates. Online conformal prediction with decaying step sizes. arXiv preprint arXiv:2402.01139, 2024.
- Athreya and Pantula [1986] Krishna B Athreya and Sastry G Pantula. A note on strong mixing of arma processes. Statistics & probability letters, 4(4):187–190, 1986.
- Barber [2024] Rina Foygel Barber. Hoeffding and bernstein inequalities for weighted sums of exchangeable random variables. arXiv preprint arXiv:2404.06457, 2024.
- Barber et al. [2023] Rina Foygel Barber, Emmanuel J Candes, Aaditya Ramdas, and Ryan J Tibshirani. Conformal prediction beyond exchangeability. The Annals of Statistics, 51(2):816–845, 2023.
- Bates et al. [2021] Stephen Bates, Anastasios Angelopoulos, Lihua Lei, Jitendra Malik, and Michael Jordan. Distribution-free, risk-controlling prediction sets. Journal of the ACM (JACM), 68(6):1–34, 2021.
- Bauer [1991] Peter Bauer. Multiple testing in clinical trials. Statistics in medicine, 10(6):871–890, 1991.
- Bonferroni [1937] Carlo Emilio Bonferroni. On the multiple hypotheses test, 1937. origin of the Bonferroni correction.
- Crane and Crotty [1967] Dwight B Crane and James R Crotty. A two-stage forecasting model: Exponential smoothing and multiple regression. Management Science, 13(8):B–501, 1967.
- Farinhas et al. [2023] António Farinhas, Chrysoula Zerva, Dennis Ulmer, and André FT Martins. Non-exchangeable conformal risk control. arXiv preprint arXiv:2310.01262, 2023.
- FRED [2025] FRED. automobile indicators, 2025. data retrieved from FRED, https://fred.stlouisfed.org/series/CUSR0000SETA02.
- Gibbs and Candes [2021] Isaac Gibbs and Emmanuel Candes. Adaptive conformal inference under distribution shift. Advances in Neural Information Processing Systems, 34:1660–1672, 2021.
- Gibbs and Candès [2024] Isaac Gibbs and Emmanuel J Candès. Conformal inference for online prediction with arbitrary distribution shifts. Journal of Machine Learning Research, 25(162):1–36, 2024.
- Kontorovich and Ramanan [2008] Leonid Kontorovich and Kavita Ramanan. Concentration inequalities for dependent random variables via the martingale method. Annals of Probability, 2008.
- Manheim [2025] Manheim. Used vehicle value index, 2025. data retrieved from Cox Automative, https://site.manheim.com/en/services/consulting/used-vehicle-value-index.html.
- Mohri and Rostamizadeh [2010] Mehryar Mohri and Afshin Rostamizadeh. Stability bounds for stationary -mixing and -mixing processes. Journal of Machine Learning Research, 11(2), 2010.
- Mullin [2022] John Mullin. Supply chain disruptions, inflation, and the fed. Econ Focus, 22(3Q):14–17, 2022.
- Oliveira et al. [2024] Roberto I Oliveira, Paulo Orenstein, Thiago Ramos, and João Vitor Romano. Split conformal prediction and non-exchangeable data. Journal of Machine Learning Research, 25(225):1–38, 2024.
- Quach et al. [2023] Victor Quach, Adam Fisch, Tal Schuster, Adam Yala, Jae Ho Sohn, Tommi S Jaakkola, and Regina Barzilay. Conformal language modeling. arXiv preprint arXiv:2306.10193, 2023.
- Romano et al. [2019] Yaniv Romano, Evan Patterson, and Emmanuel Candes. Conformalized quantile regression. Advances in neural information processing systems, 32, 2019.
- Serfling [1974] Robert J Serfling. Probability inequalities for the sum in sampling without replacement. The Annals of Statistics, pages 39–48, 1974.
- Shafer and Vovk [2008] Glenn Shafer and Vladimir Vovk. A tutorial on conformal prediction. Journal of Machine Learning Research, 9(3), 2008.
- Soybilgen and Yazgan [2021] Barış Soybilgen and Ege Yazgan. Nowcasting us gdp using tree-based ensemble models and dynamic factors. Computational Economics, 57(1):387–417, 2021.
- Tibshirani [2023] Ryan J. Tibshirani. Conformal prediction, 2023. URL https://www.stat.berkeley.edu/˜ryantibs/statlearn-s23/lectures/conformal.pdf. Lecture notes for Advanced Topics in Statistical Learning, Spring 2023, University of California, Berkeley.
- Vovk [2012] Vladimir Vovk. Conditional validity of inductive conformal predictors. In Asian conference on machine learning, pages 475–490. PMLR, 2012.
- Vovk et al. [2005] Vladimir Vovk, Alexander Gammerman, and Glenn Shafer. Algorithmic learning in a random world, volume 29. Springer, 2005.
- Wu et al. [2025] Junxi Wu, Dongjian Hu, Yajie Bao, Shu-Tao Xia, and Changliang Zou. Error-quantified conformal inference for time series. arXiv preprint arXiv:2502.00818, 2025.
- Zaffran et al. [2022] Margaux Zaffran, Olivier Féron, Yannig Goude, Julie Josse, and Aymeric Dieuleveut. Adaptive conformal predictions for time series. In International Conference on Machine Learning, pages 25834–25866. PMLR, 2022.
- Zargarbashi et al. [2023] Soroush H Zargarbashi, Simone Antonelli, and Aleksandar Bojchevski. Conformal prediction sets for graph neural networks. In International Conference on Machine Learning, pages 12292–12318. PMLR, 2023.
- Zhang et al. [2025] Botong Zhang, Shuo Li, and Osbert Bastani. Conformal structured prediction. In ICLR 2025 Workshop on Building Trust in Language Models and Applications, 2025. URL https://openreview.net/forum?id=mKfmLQXP6J.
Appendix A Appendix
A.1 Main Results/Proofs
Proof of Theorem 1
Proof.
We consider the event
where is the prediction interval defined by with the quantiles being taken over the residual components calculated on held-out conformal set . This event is when the coverage of the interval fails. See that
But then by definition
Thus, the split residual on the point also falls outside the region. However, this implies that at least one of the following events occur:
or
Then each of these pieces hold due to exchangeable properties as the probability of the new residual piece being higher in rank than the quantile (resp. ) is (resp. ). For , the exchangeability is clear as it is directly the prediction interval for on data . For the latter, it is still clearly exchangeable as well: the functions are symmetric and deterministic and are pretrained, thus being fixed on the held-out set. Thus can be interpreted as the result of some deterministic function on each point , which implies that
where denotes the first residual component of the -th point of . Then we have exchangeability of , thus the probability of each of the noncontainment events for each residual component are bounded by and respectively.
Therefore
In fact, as can be seen in the above equation, the stated result is looser than necessary. ∎
Proof of Proposition 1
Proof.
Since the traditional residual is assumed to be continuous, the function that maps the scaling parameters to the marginal coverage probability of the interval is itself continuous. When , the interval degenerates to a single point and thus has zero coverage (assuming the problem is nontrivial). When , the interval is wide enough to ensure coverage of at least by Corollary 1. By the intermediate value theorem, there must exist a pair such that the interval achieves exactly coverage. As an aside, one can further view the problem as an optimization problem
which by KKT conditions implies that any must satisfy
which provides that at any optimal solution there must be the same balance between the magnitude of components and the impact (derivative) of the scaling parameter on true coverage probability for each parameter. Thus large magnitude implies large impact, confirming intuitive understanding. ∎
Proof of Theorem 2
Proof.
By Lemma˜A.2, the -values are super-uniform under the null hypothesis. Then we may apply Theorem 1 of [2] (Theorem˜3), given a FWER algorithm with parameter to obtain the result. We note that the size of does not explicitly appear in the bound, however, it directly affects the -values which can be seen via Hoeffding’s inequality:
where is the empirical error rate on ∎
A.1.1 Long-Run Coverage
Proposition 3 (Long-Run Coverage of Adaptive Method).
Let be the step size, the nominal coverage level, and let denote the coverage indicator at time . Then the adaptive algorithm satisfies:
This result ensures that in the long run, the algorithm achieves the desired coverage level , without requiring distributional assumptions on the data.
The additional parameters are updated as deterministic functions of the algorithm’s history, ensuring they do not interfere with the update steps that underlie the coverage guarantee.
A finite-sample convergence bound (Appendix Proposition˜6) extends existing Markov chain analysis to include our additional parameters, with the key insight that the monotonicity properties required still hold under our parameter update rules.
Proof of Proposition 3
Please refer to Algorithm˜1 for notation. We first show a preliminary lemma.
Lemma A.1 (Boundedness of and ).
Let be a constant. Then, for all , the sequences and are bounded within the interval . That is,
Proof.
To establish the lower bound for , observe that the argument for follows similarly, and the upper-bound can be treated identically.
Suppose that for some time step . In this case, by the definition of the residual component , we have:
where denotes the coverage of the model at time . Additionally, since by the construction of the residual, this implies that in the output of the algorithm SelectLambda, the update step , meaning that:
Thus, if were negative at some time step, the next value is non-decreasing. Consequently, the sequence cannot decrease below by . Therefore, the minimum value attainable by is .
A similar argument holds for the upper-bound.
Hence, we conclude that:
This holds similarly for . ∎
Next, we show the asymptotic result, Section˜A.1.1 via the same arguments as Proposition 4.1 of [14].
Proof.
Although our algorithm includes additional parameters , the update rule for remains unchanged from [14]:
where is the coverage indicator at time and is the target coverage level.
As in [14], we show that with probability 1. For the lower bound (the upper-bound follows symmetrically), suppose at some time . Then the candidate set , so , and the update becomes:
Hence, is pushed upward, preventing it from decreasing without bound. Therefore, for all .
Next, unfolding the recursion gives:
Rearranging terms and using the bound, we obtain:
Equivalently:
which converges to zero as , yielding the desired result. ∎
A.2 Auxiliary Results
Proposition 4.
For a given point , if for some small i.e. is close to the true value , then
Proof.
This follows immediately by definition of .
∎
Next, we show the equivalent for under additional assumptions
Proposition 5.
For a given point , for small under certain assumptions, such as if is a Lipschitz continuous function for some parameter , and the first stage has small prediction error, . Then
Proof.
∎
The main takeaway of these two results is that they confirm the intuition for when and are roughly similar to , particularly when one model is accurate (and in the case of when the learned function is smooth). This also implies that both being small is impossible, thus one must represent a majority of the error. Note that and can also serve as rough lower bounds on , though each can individually exceed under adversarial noise or model miscalibration.
Theorem 3 (Theorem 1 of [2]).
Suppose has a distribution stochastically dominating the uniform distribution. Let be a FWER controlling algorithm at level . Let be the expected risk for the choice of and be the maximal error rate. Then satisfies the following
A.3 Extensions of Theorem 1
We can also state Theorem˜1 for the setting with auxiliary data (Section˜C.3).
Corollary 2.
For and new point , and interval defined as in Section˜C.3 to include auxiliary data, we have
which follows by the same proof as above; auxiliary data does not change the proof (assuming that with auxiliary features, the data is still exchangeable). Lastly, we note that the prior results can easily be adapted to nonexchangable data settings using weighted quantiles and a weighting scheme as mentioned in [7]. Thus we have
Corollary 3.
Let and be weights for each point. For and new point , and interval defined as in Definition˜3, we have
where and are coverage penalties from nonexchangability.
Proof.
The result follows analogously to the proof of Section˜A.1, with modifications to account for the use of weighted quantiles and associated penalty terms. Specifically, we let and denote penalties applied to the empirical weighted quantiles, as introduced in Theorem 2 of [7]. These penalties are of the form where , represents the vector of full residuals and is the same vector with the -th point swapped with .
When applying weighted conformal prediction, the standard quantile threshold used in the unweighted case is replaced with a weighted quantile. By Theorem 2 of [7], these ensure that the resulting prediction set retains valid marginal coverage.
Therefore, by adapting the same steps as in Section˜A.1—but replacing the empirical quantiles with weighted quantiles and applying Theorem 2 of [7], we obtain the stated result. ∎
We also introduce a result for coverage for fixed scaling values of under some assumptions.
Corollary 4.
Assume that the CDF of the residual for an out-of-sample point is Lipschitz continuous with constant . Furthermore, if the maximal value of (resp. ) is bounded by , then if we set (resp. ) with , we have coverage with
Proof.
Consider , which has coverage guarantee
By assumption, , and thus instead using results in a change of at most , which by Lipschitz continuity of the CDF produces a resultant change of in the probability guarantee. ∎
The existence of the Lipschitz condition is quite reasonable, for example, we consider is a linear function and the noise term is normally distributed, the residuals themselves are half-normally distributed and thus satisfy the above requirement. We pay a small theoretical guarantee when shrinking the interval, under the assumption is small, which is not necessarily true (and is generally unknown). However, this result gives the intuition that if one of the residual pieces contributes little to the overall error, we can remove it for little coverage cost and serves as part of the motivation for the adaptive algorithm. We find that for certain settings with unbalanced residual components, even simple heuristics such as where achieves similar coverage to the full residuals.
We can obtain non-asymptotic bounds for the specific setting of a hidden Markov Model, as in Theorem 4.1 of [14] once again, with little changes due to the shared update step.
Proposition 6.
Suppose that the data is coming from a hidden Markov model, with underlying states such that the data . Observe that form a Markov chain on with stationary distribution . Assume that the algorithm has passed its burn-in period and is now in a stationary setting. Suppose that the spectral gap of . Let . Then let and . Then
showing a finite-sample bound deviation bound for the empirical coverage.
Proof.
The structure of this proof follows that of Theorem 4.1 in [14], which depends on their Lemma A.2 and Theorem A.1. We outline the necessary modifications to their lemma (written below) to hold in our setting.
Lemma A.3.
For any and
To show this, we condition on alongside . As in [14], we require that
is non-decreasing and
is non-increasing in for . This still holds because:
-
•
remains a non-increasing function of under the same update rule.
-
•
are deterministic functions of the conditioning variables (including ), as the candidate set selection and parameter updates are fixed given the history.
-
•
As decreases, the validation set shrinks (selecting only higher-width pairs), so the interval width is non-decreasing, thus is non-decreasing, meaning that is overall non-increasing.
These observations ensure that the monotonicity conditions in Lemma A.2 still hold under our conditioning. The remainder of the proof, including the application of the Markov chain concentration inequality (Theorem A.1 of [14]), proceeds unchanged. ∎
Appendix B Conceptual information
B.1 Discussion on quantiles of residual components.
We observe that when quantiles of the residual components are taken then summed, they do not necessarily serve as upper-bounds on the corresponding quantiles of the full residuals, which we use in our implementation. Specifically, the inequality
may not hold. This observation is significant because while the triangle inequality holds for each individual point, i.e., , such a relationship does not extend to the quantiles. This discrepancy is intentional, as it allows for a tighter combination of residuals compared to the traditional residual. Moreover, in practice, this situation occurs rarely.
B.2 Notation Table
We provide a table of notation in Table˜2.
| Symbol | Meaning |
|---|---|
| First stage hypothesis | |
| Second stage hypothesis | |
| Residual for two-stage model | |
| First stage residual component | |
| Second stage residual component | |
| Desired Miscoverage Rate | |
| Scaled weight for | |
| Scaled weight for | |
| Quantile level to take of | |
| Quantile level to take of | |
| Rejection stringency to control FWER | |
| Step-size for updating with empirically performing well | |
| Step-size for updating with performing well | |
| Tolerance for calculating -values for hypothesis testing | |
| Window length for adaptive method, with stabilized performance above 100 points |
B.3 Choice of Components
Certainly, one could instead take quantiles or rescalings of the total sum instead of separating it into components, however we choose to separate it multiple reasons. First, we note that by splitting the quantiles/weights, it becomes clear in the decomposition which stage contributes more to the error. Second under co-monotonicity of , the quantiles of match and thus both approaches result in the same interval which satisfies coverage guarantees as it is an upper-bound on the black box width. Furthermore, for smaller miscoverage levels then is an upperbound on , so our use of can be an upper-bound. Lastly, we also desire the ability to be tighter than at times, unlike , to be able to quickly adapt to easy settings.
B.4 FWER-controlling algorithms for Scaling Selection
To construct the set of valid scaling parameter pairs , we apply multiple hypothesis testing procedures that control the family-wise error rate (FWER). This ensures that, with high probability, none of the accepted scaling pairs exhibit a true miscoverage rate above the nominal level .
Definition 5 (FWER-Controlling Algorithm).
Let be a candidate set of scaling pairs, and let denote the associated -values testing the null hypothesis that the miscoverage of each exceeds . A selection procedure is said to control the family-wise error rate (FWER) at level if:
where is the set of true null hypotheses.
Bonferroni Correction.
A classical method for controlling FWER is the Bonferroni correction [10]. It accepts any for which , where . By the union bound, this ensures that the probability of falsely including any with miscoverage above is at most . However, Bonferroni can be overly conservative when the number of tests is large.
Fixed Sequence Testing.
To improve power in large-scale settings, we adopt fixed sequence testing [9]. This procedure assumes a pre-specified ordering of hypotheses , based on prior knowledge or heuristics (e.g., larger values of are expected to have lower risk). Hypotheses are tested sequentially: each is compared to , and the first failure (i.e., ) terminates the process. All previous hypotheses are accepted, and the rest are rejected. This method is more powerful than Bonferroni in the presence of a meaningful ordering.
Practical Note.
In our algorithm, we use fixed sequence testing to select valid scaling parameters. If no candidate passes the test, i.e., , we abstain from prediction. This outcome indicates a lack of statistical evidence and may signal that additional calibration data or model refinement is necessary.
B.5 Adaptive method pseudocode
We define the coverage indicator at time as To capture deviations in the score components, we define to be 0 if the true value lies within the estimated quantile interval for , and equal to the excess otherwise. This can be succinctly written as and similarly for .
Appendix C Extensions
C.1 Additional Heuristic
One could alternatively define the residual components and combination as signed residual components to obtain tighter, asymmetric intervals, at the cost of coverage. We define new residual components
such that the sum of the components is exactly the full error rather than an absolute value upper-bound. Because the components are now signed, one should construct intervals differently, which also results in asymmetric intervals. Similarly to before, we can scale each component to produce intervals of the form
Experimentally in IID settings, it produces slightly tighter intervals without additional tolerance, however this heuristic is more prone to producing empty sets. For example, we report the performance of the method under IID settings with varying levels of nominal error rate in Table˜3 exemplifying this behaviour.
| Metric | ||||
|---|---|---|---|---|
| Coverage | 0.90130.02 | 0.91960.01 | NA | NA |
| Width | 2.02650.13 | 2.15230.12 | NA | NA |
Thus we have chosen to use the heuristic given in the main body of the text, but we provide this as an option for many possible ways of constructing intervals using the residual decomposition we introduce. Furthermore, because the decomposition itself is flexible, one could incorporate any recent conformal prediction advancements into the ways quantiles are taken, such as weighted data, or in the adaptive case how the step-size and etc. change.
C.2 Stationary -mixing
We describe how the FWER control method outlined in Section˜5 can be extended beyond the IID setting to accommodate stationary -mixing processes. Note that for dependent data, the concentration properties of empirical quantities degrade, resulting in looser tail bounds. This, in turn, inflates the values of the empirical error estimates , thereby requiring larger thresholds to ensure that the selected set remains nonempty.
Our goal is to identify values of for which the expected coverage error is below a target level . For each , we consider the null hypothesis
and compute an empirical estimate of the coverage error using a held-out calibration dataset. To test this hypothesis, we apply a concentration inequality that bounds the deviation of the empirical error from its expectation under dependence. Specifically, we employ a result for bounded functions of -mixing sequences from [16], with refinements from [18], which provides suitable control over the error rates in the non-IID case.
Theorem 4 (Mixing Concentration Inequality).
Let be random variables distributed according to a -mixing distribution. Let be a measurable function that is -Lipschitz with respect to the Hamming metric for some . Then, for any , the following inequality holds:
where
We apply this theorem with . Clearly this is -Lipschitz with respect to Hamming metric. Furthermore,
due to stationarity and the null hypothesis. Then
where we substitute our realized for and plug it into the RHS to obtain a -value for .
Then we have the following:
Corollary 5.
Let be the set selected by a FWER-controlling algorithm at level , based on -values computed over using the above method, which is assumed to be stationary -mixing. Then, for any , we have
where the outer probability is over the randomness of , and the inner probability is over the test point which is assumed to be drawn from the same stationary distribution.
While the statement of the result is similar to before, note that is an conservative upper-bound on the true -value, thus the threshold to accept a is more stringent. We show that the are still super-uniform. Let be the random variable representing empirical risk when the error rate is and by the empirical risk when the error rate is . Under the null hypothesis, , which implies that stochastically dominates (). Let and and represent CDFs of and respectively. Then
Furthermore, letting , by the stochastic dominance assumption,
Then we apply a FWER-controlling algorithm such as one from Section˜B.4 to set the acceptance threshold to reject the null hypothesis such that the total type-1 error rate is less than , then use Theorem 1 of [2] (Theorem˜3).
C.3 Decomposition for auxiliary data
We can also define and when considering auxiliary data.
Definition 6.
If we have sample where data is of the form where represents auxiliary data for the second stage such that we have learned upstream and downstream models , . Then we can decompose the residual into components as the following for some new point
We can use these residual components to create prediction intervals analogously to the original setting without auxiliary data.
C.4 Decomposition for multi-stage model
Now we consider extending the definition of to more than two stages. We provide a straightforward extension, but a cleverer one may exist.
Definition 7.
Suppose we have sample where data is of the form with stages and corresponding learned hypotheses . Then for a point , define
Observe that the sum of these terms is still an upperbound on the "full" residual by the triangle inequality and thus we have a residual decomposition.
An issue with this definition is that if we try a hypothesis testing method and FWER algorithm to weight each of these components, the set becomes prohibitively large as it grows exponentially with each stage. A FWER algorithm that is able to intelligently search the possibilities will become necessary, whereas for two-stages, it was feasible to search across the entire grid. One way to mitigate this is to restrict the proposed set at each step by focusing only on the most important residual components, fixing the weight of the remaining ones to remain; i.e. select the top residual components with the highest average width in the window of recent observations and define only for those components, freezing the other component weights. In fact, one can sort the residual components by magnitude then sequentially search through , freezing the others outside of the top , resulting in only tests, if is the number of sub-divisions for each component.
C.5 Decomposition for multiple upstream models
We consider an augmented two-stage model, with multiple upstream models each producing a component of , the intermediate value, which is now vector valued. Suppose there are upstream models, that each map upstream features to their corresponding intermediate feature in . Denote the output of the -th upstream model to be . Then we can define components for each downstream feature and take a weighted sum. Thus, for the -th downstream feature, we have
Then see that a convex combination forms an upperbound on . This approach has a similar issue as the multi-stage model, as the search-space scales with the number of upstream models.
Appendix D Additional experiments
We provide additional experiments on the non-adaptive methods and adaptive methods, providing further insight into the interpretability of the split residual method and the coverage guarantees. We include hyperparameter ablation studies as well as an additional real-world dataset. We include experiments on covariate shift to demonstrate that the split residual method is robust multiple types of shift and is not limited to concept shift, which was extensively explored in the main text. All experiments were conducted on a laptop with an Intel i7 processor and 8GB of RAM. No specialized hardware (e.g., GPUs or TPUs) was used for training or evaluation.
D.1 Experimental hyperparameter details
We describe the hyperparameters we use for the other methods in our experimens: SC, WSC, ACI, DtACI, PID, OCID.
-
•
SC: There is no other parameter used for split conformal prediction intervals other than the nominal desired miscoverage level which we keep the same across all methods
-
•
WSC uses the same and also includes a weighting parameter 0.99 which exponentially weights points as they go further back in time, resulting in recent points having more weight.
-
•
ACI uses the same initial and updates using the same step size as well as the same window size as our method.
-
•
DtACI uses the same and also uses default multiple candidate values for step-size .
-
•
PID uses the same initial , step size , and window size . Two additional parameters KI and are estimated with appropriate hypothesized bound depending on the data, using the default heuristic given in Appendix B of [1].
-
•
OCID uses the same and decay parameter with the decay weight function given by [4]
Furthermore, note that for our method is a subset of the held-out data which the other methods have full access to, so we do not use additional data relative to the other methods but simply partition it into smaller sets.
D.2 Non-adaptive experiments
We discuss results for the non-adaptive intervals using our residual decomposition as well as hyperparameter ablation studies.
D.2.1 Coverage under easy settings
We implement both Definition˜4 and Definition˜3 separately and test them on simple IID data with linear relationships between . We also include a results for an IID synthetic data featuring a nonlinear relationship in which the upstream task is a binary classification task of diagnosing a patient for a disease given their health (using logistic regression), and the downstream model predicts the cost of treatment given the upstream probabilistic prediction (using XGBoost). Additionally, we implement these prediction interval methods in a -mixing setting which we provide guarantees for in Section˜C.2 where the data is generated by a stationary AR(1) process with bounded uniform noise (known to be a -mixing process [5]) and linear relationships between . We report the width and coverage of the methods in Table˜4.
| Shift | Metric | SC | WSC | ||
|---|---|---|---|---|---|
| Linear | Coverage | 0.9439 | 0.9492 | 0.8971 | 0.9062 |
| Width | 2.3555 | 2.3930 | 1.9924 | 2.0584 | |
| Non-linear | Coverage | 0.9416 | 0.9794 | 0.8969 | 0.9300 |
| Width | 4.6343 | 5.2007 | 4.2179 | 4.5089 | |
| Non-IID (linear) | Coverage | 0.9561 | 0.9886 | 0.8997 | 0.9067 |
| Width | 3.1299 | 3.6106 | 2.6749 | 2.7304 |
We observe that both are conservative for these settings, producing wider intervals but attaining the desired coverage guarantee. Thus, our methods tend to over-cover in easier settings such as IID data and stationary -mixing conditions because FWER hypothesis testing requires an error rate below whereas for other methods simply being close is sufficient. However, as we see in the ablation studies below, this can be easily remedied if desired by including a tolerance for the hypothesis test itself.
D.2.2 Hyperparameter Study
We vary the tolerance parameter which alters the hypothesis test, obtaining to demonstrate that when comparing our method with some tolerance, the width and coverage even under the IID settings are comparable and do not over-cover.
| Method | Metric | |||
|---|---|---|---|---|
| Coverage | 0.92400.01 | 0.91500.02 | 0.90190.02 | |
| Width | 2.17500.09 | 2.09220.08 | 2.01920.11 | |
| Coverage | 0.95160.01 | – | – | |
| Width | 2.40320.05 | – | – | |
| SC | Coverage | 0.89810.01 | – | – |
| Width | 2.00510.04 | – | – | |
| WSC | Coverage | 0.90150.02 | – | – |
| Width | 2.03200.13 | – | – |
We observe that even low values of the tolerance parameter, such as , are sufficient to make competitive with the black-box methods in the IID setting. This suggests that is not simply over-covering, but rather enforcing stricter criteria for valid prediction intervals than the black-box approaches. These stricter requirements likely contribute to its improved performance under distributional shifts. Therefore, if one seeks tighter but potentially less robust intervals, adjusting the tolerance parameter provides a principled way to trade-off between coverage robustness and interval sharpness, however experimentally, unless stated otherwise, we use .
We also vary the parameter, which controls the FWER rejection threshold, which for smaller values encourages more sensitivity of the method overall to abstain from producing an interval; in a sense it has a similar effect to parameters but collectively for both stages at once rather than a stage-wise sensitivity.
| Method | Metric | |||||
|---|---|---|---|---|---|---|
| Coverage | NA | NA | 0.89690.08 | 0.92940.02 | 0.92680.02 | |
| Width | NA | NA | 2.22310.09 | 2.21950.10 | 2.18670.11 | |
| Coverage | 0.95040.01 | – | – | – | – | |
| Width | 2.39190.05 | – | – | – | – | |
| SC | Coverage | 0.89920.01 | – | – | – | – |
| Width | 1.99870.04 | – | – | – | – | |
| WSC | Coverage | 0.90820.02 | – | – | – | – |
| Width | 2.06030.14 | – | – | – | – |
D.3 Adaptive
We include additional experiments using additional synthetic experiments with covariate shift and real-world stock data to demonstrate the flexibility of our method. Furthermore, we provide visualizations of the scaling parameters to demonstrate the interpretability of the decomposition. In addition, we perform hyperparameter sweeps over the synthetic dataset described in Section˜7. We also include comparisons to DtACI, although DtACI performs poorly due to being designed for one step ahead updates, rather than with a forecasting horizon.
D.3.1 Stocks Dataset
We consider a dataset consisting of daily closing values of three SP 500 stocks, AAPL, AMZN, MSFT with the goal of forecasting the AAPL closing value. We do so via a two-stage approach in which the first-stage is an N-BEATS forecasting model that forecasts the three stocks at a 6-day horizon, then the second-stage is ridge regression that predicts AAPL given the forecasted values to correct for error from the first stage. We rescale the data and compare against ACI, Conformal PID, and OCID methods to showcase the robustness of our method. The coverage of these methods is presented in Figure˜4.
We observe that our adaptive method provides better coverage than the other three methods, particularly when the forecasts perform worse in July and October, seeing a much less dramatic drop in performance while not being overly tight. Our method uses almost the same average width (0.1347) as ACI (0.1344), while the other two methods have tighter intervals but significantly worse coverage. We list these results in the table below Table˜7 and also the sliding window coverage plots Figure˜5(b). We see that there are two main shocks, and that in comparison to ACI, our method is able to capture the second shock, while OCID is also able to but has volatile intervals during the stable period prior to the shocks.
| Method | Avg. Width | Std. Width | Min Coverage |
|---|---|---|---|
| SR(adaptive) | 0.1348 | 0.0216 | 0.89 |
| ACI | 0.1345 | 0.0193 | 0.86 |
| PID | 0.1183 | 0.0226 | 0.85 |
| OCID | 0.1240 | 0.0348 | 0.83 |
D.3.2 DtACI
We also include results on the DtACI method in comparison to the others for the same synthetic dataset with two shocks used in Section˜7.2, with the plots shown in Figure˜6(a).
We observe that DtACI outputs values of which we clip to 1, resulting in very conservative intervals. This is most likely due to the fact that it is not designed for forecasting with a horizon and suffers in performance because of that. We see similar behavior for the automobile indicators dataset (Figure˜7), in which DtACI achieves good coverage but is wider ( compared to our method, ) because it often outputs . Interestingly, this does not hold for the stocks dataset, where DtACI is produces the tightest intervals but has the worst coverage.
D.3.3 Automobile Visualizations
We also include additional visualizations of width and coverage for the automobile dataset Figure˜8. We note that our average width is strong in efficiency (21.085), only behind PID (18.469) and ACI (15.696) which have poor coverage, whereas OCID and DtACI are all wider (31.058, 31.356), respectively.
D.3.4 Hyperparameter Study
First, we visualize the effect of various values, which affects the rate at which changes. We find that our method excels at lower values of and performance decays at higher values such as , particularly because this causes to drop to extremely low values, making the algorithm abstain from producing intervals under large shifts. We display the coverage effects for synthetic data in Figure˜9 and for Manheim data in Figure˜10, where we see a similar decay as increases.
ACI and PID improve slightly at higher on the synthetic dataset. While one might argue that this implies that one can just use higher values of without the need for the split residuals method, using a lower is “safer" as it does not adjust to noisy signals as significantly. Accordingly, the widths of the other methods become extremely volatile with increased . Thus, our method is able to still catch significant jumps while remaining at a safer, consistent step-size due to always considering conservative scaling parameters in . Furthermore, even when considering multiple values of , on the Manheim dataset, our method with still outperforms the other methods in coverage at all values of , and the performance of the other methods actually decay in coverage as increases. OCID does not use same step-size parameter so it remains unaffected.
| Metric | ||||
|---|---|---|---|---|
| Width | 22.920.13 | 24.750.10 | 21.260.12 | 21.930.12 |
| Coverage | 0.8350.02 | 0.8150.02 | 0.5950.02 | 0.7150.01 |
| Max Coverage vs ACI | 0.0750.02 | 0.0300.01 | 0.0250.01 | 0.0200.01 |
| Max Coverage vs PID | 0.0750.02 | 0.0450.01 | 0.0450.01 | 0.0250.01 |
| Max Coverage vs OCID | 0.1300.03 | 0.0900.02 | 0.1100.02 | 0.1000.03 |
| Metric | ||||
|---|---|---|---|---|
| Width | 23.500.12 | 24.220.13 | 24.160.14 | 23.960.10 |
| Coverage | 0.8350.03 | 0.8350.02 | 0.8550.01 | 0.8600.02 |
| Max Coverage vs ACI | 0.0800.01 | 0.0650.02 | 0.0750.01 | 0.0750.01 |
| Max Coverage vs PID | 0.1050.03 | 0.0900.01 | 0.0900.02 | 0.0750.01 |
| Max Coverage vs OCID | 0.1250.02 | 0.1350.01 | 0.1150.03 | 0.1150.02 |
| Metric | |||||
|---|---|---|---|---|---|
| Width | NA | 23.300.12 | 22.700.13 | 24.110.09 | 23.200.11 |
| Coverage | NA | 0.8650.03 | 0.8400.02 | 0.8350.01 | 0.8450.02 |
| Max Coverage vs ACI | NA | 0.0750.01 | 0.0650.02 | 0.0550.01 | 0.0650.02 |
| Max Coverage vs PID | NA | 0.0800.01 | 0.1000.02 | 0.0800.01 | 0.0700.01 |
| Max Coverage vs OCID | NA | 0.1150.02 | 0.1300.02 | 0.1100.03 | 0.1050.03 |
| Metric | ||||
|---|---|---|---|---|
| Width | NA | 22.210.08 | 23.240.07 | 24.320.13 |
| Coverage | NA | 0.8550.02 | 0.8560.03 | 0.8350.01 |
| Max Coverage vs ACI | NA | 0.0500.01 | 0.0700.02 | 0.0700.01 |
| Max Coverage vs PID | NA | 0.0800.01 | 0.0900.02 | 0.0800.01 |
| Max Coverage vs OCID | NA | 0.1150.01 | 0.1000.01 | 0.1200.01 |
We also provide tables for other hyperparameters in Tables˜10, 9, 10 and 11, fixing them at default values of respectively when not varying them. We see that increasing has a rough impact of decreasing width, while increasing has a weaker widening effect, has no particular effect on width, but low values encourage abstention, and lastly small window lengths also encourage abstention, and generally longer windows results in slightly larger intervals.
D.3.5 Visualization of residual components
Here, we provide extra visualizations of the and parameters along with how the weights change over time, for the same synthetic setup as Section˜7.2 below in Figures˜11 and 12(a).
We observe that when the first shock occurs in the upstream, captures this change, then after it returns, correspondingly shrinks back to the baseline level. correspondingly captures the second downstream shock.
We also see this relationship reflected in the scaling parameters selected by our method as we see them adapt to the upstream shock, the return, then the downstream shock in a similar fashion (Figure˜12(a)). Lastly, we plot the ratios and over time in Figure˜12(b).
We see that the shifts at are visibly identifiable: initially is high during the upstream shift as the majority of error comes from . When the shock returns, we observe that the upstream remains the main source of error, and finally in the downstream shift, becomes the dominant source of error. Concretely, dominates between to when the upstream undergoes a shock and dominates when the downstream undergoes a shock from onward. Thus we can observe which stage is responsible for the error with extreme clarity allowing diagnostic retraining. In particular, if we retrain at after the first upstream shift, we can choose to either retrain just or both and . We observe that just retraining results in a width decrease of for the SR method, while retraining both models, results in a decrease of 25.3451, demonstrating that it is sufficient for our framework to only retrain the affected upstream.
We similarly plot the used scaling parameters over time for the Manheim used vehicles dataset, and observe that there is in fact an asymmetry in the scaling factors in relation to the shifts occurring during 2018-2020. Likewise, we also observe asymmetry in the stocks dataset, with more emphasis on the downstream. This gives us an idea of which part of the model fails and how the shift is affecting it (Figure˜13).
D.3.6 Without quantile level adjustments
In this experiment, we verify that the heuristic update step of the algorithm is necessary for improved performance. Using the experimental setup with upstream and downstream shocks as Section˜7.2, we consider the case in which we fix to initial values 0.01 , in Figure˜14.
We observe that fixing makes the algorithm unable to adapt properly to shifts as it produces sets frequently after the initial upstream shock, which lowers average coverage (considering that to be a miscoverage). Thus, we see that adjusting allows us to mitigate abstention, however, if desiring more sensitivity to shifts, keeping them fixed at larger values could serve as a diagnostic for retraining, similar to the non-adaptive case (Table˜1).
D.3.7 Covariate shift
We consider covariate shift, in which the distribution of suddenly changes, at which affects the entire pipeline. This shift does not have a specific upstream/downstream affect, but our method is still able to perform comparably well to the ACI, PID, and OCID methods Figure˜15. However, all the methods perform similarly and it is difficult to distinguish them.
Thus, while our method provides clear interpretability for upstream/downstream shifts, it is still able to adapt to other types of shifts without overcompensating width in comparison to other methods. However, it does not obtain any explicit advantage compared to the other methods and is still wider on average; thus we see that our method excels under asymmetric shifts at each stage, and furthermore performs best under upstream shifts.