Conformal PID Control
- Conformal PID control is a technique that combines conformal prediction with PID error feedback to adaptively regulate prediction intervals and ensure nominal coverage under nonstationary conditions.
- In time-series prediction, the method dynamically updates quantile thresholds using proportional, integral, and derivative gains, maintaining robust performance even with evolving data dynamics.
- For controller design, conformal mapping approximates fractional-order PID behavior in an integer-order framework, enabling dominant pole placement and reducing control effort.
Conformal PID control encompasses two major, independently developed frameworks: (1) an adaptive online method for time-series prediction sets employing PID-like error regulation in conformal prediction (Angelopoulos et al., 2023), and (2) a conformal mapping-based approach for integer-order PID controller design that preserves key advantages of fractional-order (FO) PID while simplifying implementation (Saha et al., 2012). Both exploit the "conformal" concept to interpolate or adaptively calibrate system parameters, either in the space of confidence thresholds (for uncertainty quantification) or controller zeros (for dominant pole placement).
1. Conformal PID in Online Time Series Prediction
The "Conformal PID control" algorithm for time-series prediction aims to provide distribution-free, formally valid prediction sets with online adaptivity under arbitrary nonstationary or adversarial data sequences. This methodology integrates conformal prediction's nonconformity scoring and classical proportional-integral-derivative (PID) error feedback to tune the quantile thresholds of prediction sets to maintain long-run nominal coverage, regardless of evolving statistical properties (Angelopoulos et al., 2023).
Problem Setup:
- Let denote time-indexed covariate-response pairs, with no stationarity assumption.
- At each , a forecasting rule (AR, Prophet, Transformer, ensemble, etc.) produces a point or distributional prediction for .
- The goal is to output, for each , a prediction set
where is a conformal score (e.g., ), and is a dynamically updated threshold, so that the empirical miscoverage rate converges to the nominal :
0
Error Signal and PID Law:
- With miscoverage indicator 1, define the empirical coverage and error signal:
2
- The quantile threshold 3 is updated via a PID-style recursion:
4
where 5, 6, and 7 are the proportional, integral, and derivative gains.
Theoretical Guarantee:
Under bounded score domains and integrator saturation, the long-run miscoverage error is upper-bounded by
8
with 9 for any sublinear function 0, ensuring
1
independent of the data dynamics (Angelopoulos et al., 2023).
2. Algorithmic Workflow and Pseudocode
The method consists of an online routine:
0
3. Empirical Performance in Prediction Tasks
Applied across diverse real-world forecasting tasks, conformal PID control demonstrated robust regulation of empirical coverage while keeping prediction sets concise:
- COVID-19 Death Forecasting: On CDC Forecast Hub data (80% nominal coverage), the method elevated coverage during local failures (~20% to 70% in the winter 2020–21 wave) and maintained long-run coverage at 80%, with only modest interval widening (Angelopoulos et al., 2023).
- Electricity Demand: For daily-retrained Transformer models, conformal PID (using a Theta-model scorecaster) consistently achieved 90% coverage while outputting tighter prediction sets than Adaptive Conformal Inference.
- Financial Returns: Across Amazon, Google, and Microsoft, PID-based quantile tracking suppressed coverage oscillations and avoided the unbounded sets produced by some alternatives.
- Temperature Forecasting: When nominal regimes shifted rapidly, conformal PID retained valid coverage and eschewed excess conservativeness, outperforming classical conformal and ACI methods.
4. Conformal Mapping and Sub-Optimal PID Tuning
A distinct development of "conformal PID" appears in the context of deterministic control design, exploiting conformal (power) maps to approximate fractional-order PID (FOPID) behavior with integer-order PID controllers, retaining the dominant-pole placement benefits of FO designs (Saha et al., 2012).
Key Procedures:
- Map the FO controller 2 via 3, rendering the controller rational in 4:
5
- The zeros of 6, back-mapped to 7, become 8, guiding the placement of integer-PID zeros.
- By varying 9, the locations of 0 trace an "M-curve," a trajectory in the left half-plane, allowing regulation of closed-loop damping.
Two-Stage Algorithm:
- Use LQR-based dominant pole placement to fix canonical integer-PID gains.
- Map these gains to nominal FOPID parameters; choose 1 and recalculate integer-PID gains such that the closed-loop poles traverse the M-curve to the prescribed damping.
5. The "M-Curve" and Controller Effort Tradeoff
The "M-curve" phenomenon refers to the trajectory described by the zeros of the mapped controller numerator as 2 varies. For 3, zeros shift toward the imaginary axis (reducing damping); 4 pushes zeros left (increasing damping), but excessive reduction jeopardizes stability. The conformal design enables control of closed-loop pole locations with strict equivalence to LQR step and disturbance timings but requires uniformly lower gain magnitudes, and, consequently, lower peak and RMS control effort, as evidenced through Riccati cost analysis (Saha et al., 2012).
6. Practical Considerations and Implementation
- Gain selection: For PID-based conformal prediction, 5 is scaled to typical score deviations; 6 to maximum score magnitude; 7 is minimized for noise suppression. Initialization via brief burn-in using empirical quantiles, followed by steady online adaptation, is effective.
- Computational cost: 8 per timestep for threshold update in conformal prediction; scorecaster inference cost is model-dependent.
- Extensibility: Both frameworks support plug-and-play modularity—arbitrary forecasters (AR, Prophet, Transformer) or scorecasters, and in the control context, analog/digital PID realization with integer gains derived from conformal mapping.
- Fractional order in control: In the sub-optimal design, the fractional order 9 serves as a tuning knob (offline), with all physical implementation remaining strictly integer-order.
7. Summary and Scope
Conformal PID control synthesizes conformal prediction with feedback strategies or uses conformal mappings to transfer the benefits of fractional-order design into integer-domain realizations. In online uncertainty quantification, it maintains long-run coverage guarantees for time-series predictions against arbitrary dynamics with minimal user intervention (Angelopoulos et al., 2023). In deterministic controller design, it yields integer PID controllers with dominant-pole placement and reduced control effort, directly matching the closed-loop time response of optimal LQR tuning while lowering associated quadratic cost (Saha et al., 2012). Both approaches demonstrate that conformal techniques, whether in parameter-space mappings or in online error dynamics calibration, afford principled, formally controllable adaptivity in both statistical learning and feedback control frameworks.