Trustworthiness Layer for Foundation Models in Power Systems: Application to N-k Contingency Screening

arXiv:2602.07995 · eess.SY, cs.SY · Submitted 2026-02-08 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: Robotics Radio. Generated commentary on the latest robotics and control papers.

Rosa: We're looking at the paper: "Trustworthiness Layer for Foundation Models in Power Systems".

Title and authors: Rosa: So we're looking at this paper today, "Trustworthiness Layer for Foundation Models in Power Systems: Application to N-k Contingency Screening". It comes from Antonio Alcantara and Spyros Chatzivasileiadis. They are proposing a way to make any foundation model used for power systems have statistically valid prediction intervals.

Dev: Yeah, what they're doing is putting this layer on top of an existing foundation model so it can give us confidence bounds on things like line loadings. It sounds like they are trying to solve the problem of just having a raw prediction without knowing how certain we actually are about that prediction.

Taro: I wonder if this means that even if we use a super smart foundation model for power systems, we still don't know when it might be totally wrong, right?

Rosa: Exactly. The paper says they offer two calibration approaches. First is stratified conformal prediction, which partitions the residuals based on both the contingency severity and which part of the grid is involved. Then there’s kernel-weighted conformal prediction, which localizes that calibration to each specific test scenario using representations of those scenarios to get tighter bounds.

Dev: That sounds like they're trying to make those safety margins adaptive instead of using one fixed threshold for the whole system. I remember seeing traditional methods just setting one number and hoping it works everywhere, but this seems much more nuanced.

Taro: So if we think about failure modes, does partitioning by contingency level help us understand the risk better? Or is that just a way to manage the complexity of those failures?

Rosa: It helps because it allows the bounds to adjust based on how bad the outage is and which lines are affected. The stratified conformal prediction, or SCP, partitions things into subgroups called strata based on contingency level k and line l. The bound they calculate there, q hat of one minus alpha l k is derived from a quantile of the residuals for that specific stratum >

Title and authors: Dev: Okay, so SCP uses a single global quantile for each stratum. The authors point out that this standard approach produces valid intervals, but they are inefficient because it gives you under-coverage when the contingency is severe and over-conservative bounds when it's routine >

Taro: That makes sense. If I'm testing a very rare, major outage, I need a bound that actually covers the real risk without being way too wide for every other situation. What about that second method, kernel-weighted conformal prediction?

Rosa: Kernel-weighted conformal prediction or KCP refines this by weighting the calibration residuals based on how similar they are to the current scenario you're testing. It uses a numerical vector for each scenario to calculate squared Euclidean distances against all calibration scenarios in that same stratum >

Dev: So KCP is localizing that calibration, making it more specific to that exact test point, which should give us tighter bounds than SCP > I'm interested in the computational side here. How much extra work are we talking about for running this on a foundation model?

Rosa: The authors say the computational overhead is negligible. For SCP, it just requires a table lookup of precomputed quantiles that they already calculated. KCP adds one encoder pass and a nearest-neighbor search to find those similar calibration scenarios >

Taro: So if we're running this in real time, like on a grid model, the speed difference between SCP and KCP isn't going to be a huge deal, even though KCP gives better results > How does this translate to actual safety?

Dev: The results show that for N-k screening, the trustworthiness layer captures over ninety percent of all critical violations across N-k levels <ref:2602.07995#pg1>. And they claim it maintains up to five times fewer false alarms compared to DC Power Flow > That means we're catching most of the real problems while not bothering us with too many false alarms that lead to unnecessary alerts.

Rosa: And when they look at the numbers, KCP strictly dominates SCP and classical threshold tuning across every operating point in the precision recall space > For instance, on the IEEE one hundred eighteen-bus system where things are harder, KCP shows its strongest advantage in terms of precision > <ref:2602.07995#pg1>

Title and authors: Taro: So if I'm only listening to this show, what does this mean for my daily life? Like if I were driving and needed some kind of safety check?

Dev: It means that when we use these foundation models for power system screening, we get the confidence needed for big studies across different load and generation scenarios that are too computationally expensive with conventional solvers > This approach gives us a principled path toward deploying trustworthy AI in safety-critical grid operations.

Rosa: Exactly. So, to wrap up this discussion on the "Trustworthiness Layer for Foundation Models in Power Systems: Application to N-k Contingency Screening", we've seen how SCP and KCP give us adaptive, linespecific safety margins > The core mechanism is computing residuals from a held-out calibration set and then using stratification or kernel weighting to generate those bounds.

Dev: And the main practical implication for us is that we can use these models reliably for large-scale security assessment beyond just routine N-one screening because it handles diverse scenarios with good detection rates >

Taro: I just think the comparison to DC Power Flow helps put the performance in perspective, showing how much cleaner this method is at flagging real violations >

Rosa: And I think the future work will be about pushing these models even further into more complex power system dynamics, testing them outside of just these standard N-k screening examples.

Dev: Right. We've talked a lot about how KCP beats SCP in terms of precision recall on harder systems, and how negligible the computational cost is compared to running the model itself >

Taro: It’s good to see that even with this layer, we still have some room to explore what happens when the world misbehaves in unexpected ways that fall outside the trained scenario space >

Rosa: That's right. We've discussed how this trustworthiness layer helps equip foundation models for power systems with statistically valid prediction intervals using stratified conformal prediction and kernel-weighted conformal prediction >

The paper's summary: Rosa: So, to recap, this paper is about putting a trustworthiness layer on top of any foundation model that’s being used for power systems, specifically to give those models statistically valid prediction intervals for things like line loadings during contingencies.

Dev: Right. The authors are proposing two main ways to do this: stratified conformal prediction and kernel-weighted conformal prediction. Basically, they want a way to tell not just what the model *predicts*, but how much it can actually *trust* that prediction is within a certain range.

Taro: So, instead of just getting one number for the risk level, they're looking at partitioning things by how bad the outage is and which parts of the grid are affected. That’s stratified conformal prediction.

Rosa: Exactly. SCP takes all those residuals—the difference between what you predicted and what actually happened—and splits them into groups based on whether it’s an N-one outage or an N-two outage, and which specific line is stressed.

Dev: And then for each group, they pick a quantile from that residual set to set the prediction interval. It’s a way to make sure the safety margin changes depending on the situation you're in.

Taro: That sounds like it helps manage that risk level and local volatility we talked about earlier. But what about kernel-weighted conformal prediction? Is that method more sophisticated than just splitting things up?

Rosa: KCP builds on that. It takes those residuals and instead of just picking one quantile for the whole group, it weights them based on how similar the test scenario you're currently running is to the calibration scenarios used to build the layer.

Dev: So KCP localizes that calibration—it gets tighter bounds specifically for that exact test point by looking at its neighbors in terms of system characteristics. That should give us much more precise safety information than just using a global quantile for a whole stratum.

Taro: If KCP is better at localizing the uncertainty, how does that actually translate to catching more real problems without making the system alert too often? What’s the empirical evidence on that?

Rosa: The experiments on the GridFM model show this works really well. They found that this layer captures over ninety percent of actual critical violations across all those N-k levels. And they also found it maintains up to five times fewer false alarms compared to just using a traditional DC power flow method.

Dev: Five times fewer false alarms is significant for real-time operations where you can't afford a flood of alerts. It means the system is actually prioritizing the right warnings, not just shouting everything at once.

Taro: So, for someone who only listens to this show, what does it change? It means we can use these powerful foundation models for large-scale security assessments that are way too slow or complex for traditional solvers because we finally have a reliable way to quantify the uncertainty attached to their predictions.

Rosa: That’s right. The whole point is giving the AI models in power systems a principled path toward being trustworthy, so we can do systematic studies across all those diverse load and generation scenarios that were previously computationally prohibitive.

Dev: And moving forward, it looks like the next step is pushing these models even further into more complex power system dynamics outside of just these standard N-k screening examples. That’s where the real testing happens.

The paper's improvements: Tom: So, we've seen how they set up those two main calibration methods, stratified conformal prediction and kernel-weighted conformal prediction, to get these adaptive safety bounds for foundation models in power systems. Now we're looking at what improvements the authors suggest for this trustworthiness layer itself.

Rosa: The main idea is that the system can be made more robust by making sure it adapts even when things get weird outside of the perfectly modeled scenario space. They want to test how well this layer works when the world misbehaves in unexpected ways, which is something we do a lot outside of the lab.

Dev: That means they are focusing on extending this framework beyond just those standard N-k contingency levels they tested, like N-one or N-two outages. They want to see if these bounds still hold up when the system hits situations it hasn't seen much training data for.

Taro: I like that angle. If the world throws us a scenario that’s totally novel, we need to know how gracefully this layer recovers instead of just giving us a weird, unreliable bound. It’s about building resilience into the AI's safety checks.

Rosa: Exactly. They are looking at how the layer handles those extreme or novel conditions, which is where real-world field testing comes in handy. It’s not just about perfect data fitting; it's about handling the inevitable surprises in power grids.

Dev: So what does that mean for the safety case? If we can test it against those hard scenarios, we get a much stronger argument for deploying this kind of AI for critical operations, because we know its limits.

Taro: It shifts the focus from just getting high accuracy on known cases to ensuring that when the world throws us something totally new, the system still gives us a statistically sound warning or at least a very conservative bound. That’s a huge step for autonomy research in critical systems.

Rosa: And this work suggests that this trustworthiness layer isn't just an add-on; it's a fundamental way to give these foundation models the confidence needed to be used systematically in safety-critical grid operations across all those diverse scenarios.

Dev: It’s about moving past just routine N-one screening and building a reliable system for large scale security assessment that can handle the full spectrum of possible events, not just the ones we train on.

Taro: So, to wrap up this discussion on these improvements, it boils down to making sure that when the real world throws us something unexpected in power systems, our AI doesn't just freeze or give a bad guess; it gives us a statistically valid measure of its own uncertainty.

Conclusion: Rosa: So we’re wrapping up this discussion on the "Trustworthiness Layer for Foundation Models in Power Systems: Application to N-k Contingency Screening". Basically, it’s about giving any foundation model a statistically valid way to get prediction intervals so we know how much we can trust its output.

Dev: Right. It boils down to using stratified conformal prediction and kernel-weighted conformal prediction to create those adaptive safety bounds for line loadings during contingencies.

Taro: I think what this means for the world is that it gives us a principled way to deploy trustworthy AI in safety-critical grid operations, allowing us to run large scale security assessments that are too computationally expensive with conventional solvers.

Rosa: It’s about combining the speed of foundation models with these calibrated uncertainty bounds, and the authors show it adds negligible computational overhead for SCP, which is just a table lookup, and KCP, which needs one encoder pass and a nearest neighbor search.

Dev: That negligible overhead is key because it means we can use these models reliably across diverse load and generation scenarios that were previously too slow to handle with traditional methods. The safety case gets much stronger when you have that kind of quantifiable risk attached to the prediction.

Taro: It’s good to see the paper focus on how this layer handles those extreme or novel conditions, which is where real-world field testing comes in handy for autonomy research in critical systems.

Rosa: Exactly. The idea is that this trustworthiness layer helps equip foundation models with statistically valid prediction intervals, and it provides a clear path toward using AI reliably in safety-critical grid operations.

Dev: We’ve seen how the comparison to DC power flow shows how much cleaner this method is at flagging real violations, and we can rely on these calibrated bounds for high recall across all those N-k levels.

Taro: I think the future work will be about pushing these models even further into more complex power system dynamics, testing them outside of just those standard N-k screening examples to see how they handle truly unexpected events.

Rosa: That’s right. The trustworthiness layer for foundation models in power systems is a principled path toward deploying trustworthy AI in safety-critical grid operations, and we’ll keep following their work on those more complex dynamics.

Department of Wind and Energy Systems, Technical University of Denmark

eess.SY, cs.SY

Submitted: 2026-02-08

Updated: 2026-11-27

Code: https://github.com/gridfm/gridfm-datakit

License: http://creativecommons.org/licenses/by-nc-nd/4.0/

Importance score: 90/100

The gist: We propose a model-agnostic trustworthiness layer that equips any foundation model (FM) for power systems with statistically valid prediction intervals.<ref:2602.07995#pg1,Trustworthiness Layer for…

Key concepts

Trustworthiness Layer
A framework added to any foundation model that calculates statistically valid prediction intervals. It ensures that the predicted line loading remains below a specific bound with a desired confidence level, making the model's predictions reliable for safety-critical applications.
Stratified Conformal Prediction (SCP)
A calibration method where calibration data is split into subgroups based on contingency severity (e.g., N-1 vs. N-2) and the specific line being analyzed. This allows the prediction intervals to adapt to both how severe the outage is and which grid component is involved.
Kernel-Weighted Conformal Prediction (KCP)
An advanced calibration technique that refines SCP by weighting calibration residuals based on how similar a test scenario is to past scenarios using distance metrics. This localizes the prediction bounds to specific system states, resulting in tighter and more accurate uncertainty estimates.

Terminology

Summary

We propose a model-agnostic trustworthiness layer that equips any foundation model (FM) for power systems with statistically valid prediction intervals. p. 0

Where the paper says it

1 Trustworthiness Layer for Foundation Models in Power Systems: Application to N-k Contingency Screening Antonio Alcantara, Spyros Chatzivasileiadis, ´ Senior Member, IEEE Abstract—We propose a model-agnostic trustworthiness layer that equips any foundation model (FM) for power systems with statistically valid prediction intervals. The layer offers two calibration approaches: (i) stratified conformal prediction (SCP), which partitions residuals by contingency severity and grid element, and (ii) kernel-weighted conformal prediction (KCP), which localizes the calibration to each test scenario via scenario representations, yielding tighter, approximately conditional bounds.

<ref:2602.07995#pg1,Trustworthiness Layer for Foundation Models in Power Systems: Application to N-k Contingency Screening>. p. 0
Where the paper says it

1 Trustworthiness Layer for Foundation Models in Power Systems: Application to N-k Contingency Screening Antonio Alcantara, Spyros Chatzivasileiadis, ´ Senior Member, IEEE Abstract—We propose a model-agnostic trustworthiness layer that equips any foundation model (FM) for power systems with statistically valid prediction intervals. The layer offers two calibration approaches: (i) stratified conformal prediction (SCP), which partitions residuals by contingency severity and grid element, and (ii) kernel-weighted conformal prediction (KCP), which localizes the calibration to each test scenario via scenario representations, yielding tighter, approximately conditional bounds.

p. 0
Where the paper says it

1 Trustworthiness Layer for Foundation Models in Power Systems: Application to N-k Contingency Screening Antonio Alcantara, Spyros Chatzivasileiadis, ´ Senior Member, IEEE Abstract—We propose a model-agnostic trustworthiness layer that equips any foundation model (FM) for power systems with statistically valid prediction intervals. The layer offers two calibration approaches: (i) stratified conformal prediction (SCP), which partitions residuals by contingency severity and grid element, and (ii) kernel-weighted conformal prediction (KCP), which localizes the calibration to each test scenario via scenario representations, yielding tighter, approximately conditional bounds.

The trustworthiness layer offers two calibration approaches: stratified conformal prediction (SCP), which partitions residuals by contingency severity and grid element, and kernel-weighted conformal prediction (KCP), which localizes the calibration to each test scenario via scenario representations, yielding tighter, approximately conditional bounds. p. 0
Where the paper says it

1 Trustworthiness Layer for Foundation Models in Power Systems: Application to N-k Contingency Screening Antonio Alcantara, Spyros Chatzivasileiadis, ´ Senior Member, IEEE Abstract—We propose a model-agnostic trustworthiness layer that equips any foundation model (FM) for power systems with statistically valid prediction intervals. The layer offers two calibration approaches: (i) stratified conformal prediction (SCP), which partitions residuals by contingency severity and grid element, and (ii) kernel-weighted conformal prediction (KCP), which localizes the calibration to each test scenario via scenario representations, yielding tighter, approximately conditional bounds.

<ref:2602.07995#pg1,Abstract—We propose a model-agnostic trustworthiness layer that equips any foundation model (FM) for power systems with statistically valid prediction intervals>. p. 0
Where the paper says it

1 Trustworthiness Layer for Foundation Models in Power Systems: Application to N-k Contingency Screening Antonio Alcantara, Spyros Chatzivasileiadis, ´ Senior Member, IEEE Abstract—We propose a model-agnostic trustworthiness layer that equips any foundation model (FM) for power systems with statistically valid prediction intervals. The layer offers two calibration approaches: (i) stratified conformal prediction (SCP), which partitions residuals by contingency severity and grid element, and (ii) kernel-weighted conformal prediction (KCP), which localizes the calibration to each test scenario via scenario representations, yielding tighter, approximately conditional bounds.

p. 0
Where the paper says it

1 Trustworthiness Layer for Foundation Models in Power Systems: Application to N-k Contingency Screening Antonio Alcantara, Spyros Chatzivasileiadis, ´ Senior Member, IEEE Abstract—We propose a model-agnostic trustworthiness layer that equips any foundation model (FM) for power systems with statistically valid prediction intervals. The layer offers two calibration approaches: (i) stratified conformal prediction (SCP), which partitions residuals by contingency severity and grid element, and (ii) kernel-weighted conformal prediction (KCP), which localizes the calibration to each test scenario via scenario representations, yielding tighter, approximately conditional bounds.

p. 0
Where the paper says it

1 Trustworthiness Layer for Foundation Models in Power Systems: Application to N-k Contingency Screening Antonio Alcantara, Spyros Chatzivasileiadis, ´ Senior Member, IEEE Abstract—We propose a model-agnostic trustworthiness layer that equips any foundation model (FM) for power systems with statistically valid prediction intervals. The layer offers two calibration approaches: (i) stratified conformal prediction (SCP), which partitions residuals by contingency severity and grid element, and (ii) kernel-weighted conformal prediction (KCP), which localizes the calibration to each test scenario via scenario representations, yielding tighter, approximately conditional bounds.

Using GridFM as a guiding example, we demonstrate the framework on N −k contingency screening for IEEE 24- and 118-bus systems. p. 0
Where the paper says it

The layer offers two calibration approaches: (i) stratified conformal prediction (SCP), which partitions residuals by contingency severity and grid element, and (ii) kernel-weighted conformal prediction (KCP), which localizes the calibration to each test scenario via scenario representations, yielding tighter, approximately conditional bounds. Using GridFM as a guiding example, we demonstrate the framework on N −k contingency screening for IEEE 24- and 118-bus systems.

<ref:2602.07995#pg1,Abstract—Using GridFM as a guiding example, we demonstrate the framework on N −k contingency screening for IEEE 24- and 118-bus systems>. p. 0
Where the paper says it

The layer offers two calibration approaches: (i) stratified conformal prediction (SCP), which partitions residuals by contingency severity and grid element, and (ii) kernel-weighted conformal prediction (KCP), which localizes the calibration to each test scenario via scenario representations, yielding tighter, approximately conditional bounds. Using GridFM as a guiding example, we demonstrate the framework on N −k contingency screening for IEEE 24- and 118-bus systems.

The trustworthiness layer ensures that over 90% of all critical violations are captured across N −k levels, minimizing missed detections while maintaining up to 5× fewer false alarms than DC Power Flow. p. 0
Where the paper says it

Using GridFM as a guiding example, we demonstrate the framework on N −k contingency screening for IEEE 24- and 118-bus systems. The trustworthiness layer ensures that over 90% of all critical violations are captured across N −k levels, minimizing missed detections while maintaining up to 5× fewer false alarms than DC Power Flow.

<ref:2602.07995#pg1,Abstract—The trustworthiness layer ensures that over 90% of all critical violations are captured across N −k levels, minimizing missed detections while maintaining up to 5× fewer false alarms than DC Power Flow>. p. 0
Where the paper says it

Using GridFM as a guiding example, we demonstrate the framework on N −k contingency screening for IEEE 24- and 118-bus systems. The trustworthiness layer ensures that over 90% of all critical violations are captured across N −k levels, minimizing missed detections while maintaining up to 5× fewer false alarms than DC Power Flow.

With negligible computational overhead over the underlying FM, this approach enables reliable large-scale security assessment beyond routine N −1 screening. p. 0
Where the paper says it

The trustworthiness layer ensures that over 90% of all critical violations are captured across N −k levels, minimizing missed detections while maintaining up to 5× fewer false alarms than DC Power Flow. With negligible computational overhead over the underlying FM, this approach enables reliable large-scale security assessment beyond routine N −1 screening.

<ref:2602.07995#pg1,Abstract—With negligible computational overhead over the underlying FM, this approach enables reliable large-scale security assessment beyond routine N −1 screening>. p. 0
Where the paper says it

The trustworthiness layer ensures that over 90% of all critical violations are captured across N −k levels, minimizing missed detections while maintaining up to 5× fewer false alarms than DC Power Flow. With negligible computational overhead over the underlying FM, this approach enables reliable large-scale security assessment beyond routine N −1 screening.

The Core Mechanism of Uncertainty Quantification

The trustworthiness layer computes a confidence bound Lˆ+l for each prediction such that the true line loading Ll remains below this bound with a target coverage probability of 1 − α, i.e., P(Ll ≤ Lˆ+l) ≥ 1 − α <ref:2602. p. 0

Where the paper says it

0, ensuring conservative screening that minimizes missed violations (false negatives). The same framework aparXiv:2602.

07995#pg2>. Both introduced calibration approaches share a common first step: given a held-out calibration set Dcal consisting of n scenarioslbrace xj, Ljr n j=1, we compute residuals Rj,l = Lj,l − Lˆj,l <ref:2602. p. 1
Where the paper says it

2 plies to voltage magnitudes; here we demonstrate it on line loadings. Both introduced calibration approaches share a common first step: given a held-out calibration set Dcal consisting of n scenarios {xj , Lj} n j=1, we compute residuals Rj,ℓ = Lj,ℓ − Lˆ j,ℓ.

07995#pg2,Both introduced calibration approaches share a common first step: given a held-out calibration set Dcal consisting of n scenarioslbrace xj, Ljr n j=1, we compute residuals Rj,ℓ = Lj,ℓ − Lˆj,ℓ>. p. 1
Where the paper says it

2 plies to voltage magnitudes; here we demonstrate it on line loadings. Both introduced calibration approaches share a common first step: given a held-out calibration set Dcal consisting of n scenarios {xj , Lj} n j=1, we compute residuals Rj,ℓ = Lj,ℓ − Lˆ j,ℓ.

Calibration Strategies for Adaptive Bounds

The two primary methods for generating prediction intervals are stratified conformal prediction (SCP) and kernel-weighted conformal prediction (KCP).<ref:2602.07995#pg2,A. Approach I: Stratified Conformal Prediction (SCP) Standard split CP [8] uses a single global quantile, which produces valid but inefficient intervals: under-coverage for severe contingencies and over-conservative bounds for routine ones, so we address this by partitioning Dcal into distinct subgroups (or ‘strata’) based on contingency level k (e. p. 1

Where the paper says it

Approach I: Stratified Conformal Prediction (SCP) Standard split CP [8] uses a single global quantile, which produces valid but inefficient intervals: under-coverage for severe contingencies and over-conservative bounds for routine ones. We address this by partitioning Dcal into distinct subgroups (or ‘strata’) based on contingency level k (e.

p. 1
Where the paper says it

Approach I: Stratified Conformal Prediction (SCP) Standard split CP [8] uses a single global quantile, which produces valid but inefficient intervals: under-coverage for severe contingencies and over-conservative bounds for routine ones. We address this by partitioning Dcal into distinct subgroups (or ‘strata’) based on contingency level k (e.

p. 1
Where the paper says it

Approach I: Stratified Conformal Prediction (SCP) Standard split CP [8] uses a single global quantile, which produces valid but inefficient intervals: under-coverage for severe contingencies and over-conservative bounds for routine ones. We address this by partitioning Dcal into distinct subgroups (or ‘strata’) based on contingency level k (e.

p. 1
Where the paper says it

Approach I: Stratified Conformal Prediction (SCP) Standard split CP [8] uses a single global quantile, which produces valid but inefficient intervals: under-coverage for severe contingencies and over-conservative bounds for routine ones. We address this by partitioning Dcal into distinct subgroups (or ‘strata’) based on contingency level k (e.

g. N −1, N −2) and line l, qˆ(1−α)l,k = Quantile1−α Rj,l: j ∈ D(k) cal where D(k) cal contains only samples with k simultaneous outages > Lˆ+l = Lˆl + ˆq(1−α)l,k. p. 1
Where the paper says it

N −1, N −2) and line ℓ: qˆ (1−α) ℓ,k = Quantile1−α {Rj,ℓ : j ∈ D(k) cal } (1) where D (k) cal contains only samples with k simultaneous outages. The upper bound becomes Lˆ+ ℓ = Lˆ ℓ + ˆq (1−α) ℓ,k .

p. 1
Where the paper says it

N −1, N −2) and line ℓ: qˆ (1−α) ℓ,k = Quantile1−α {Rj,ℓ : j ∈ D(k) cal } (1) where D (k) cal contains only samples with k simultaneous outages. The upper bound becomes Lˆ+ ℓ = Lˆ ℓ + ˆq (1−α) ℓ,k .

p. 1
Where the paper says it

N −1, N −2) and line ℓ: qˆ (1−α) ℓ,k = Quantile1−α {Rj,ℓ : j ∈ D(k) cal } (1) where D (k) cal contains only samples with k simultaneous outages. The upper bound becomes Lˆ+ ℓ = Lˆ ℓ + ˆq (1−α) ℓ,k .

p. 1
Where the paper says it

N −1, N −2) and line ℓ: qˆ (1−α) ℓ,k = Quantile1−α {Rj,ℓ : j ∈ D(k) cal } (1) where D (k) cal contains only samples with k simultaneous outages. The upper bound becomes Lˆ+ ℓ = Lˆ ℓ + ˆq (1−α) ℓ,k .

<ref:2602.07995#pg2,This ensures that bounds adapt to both the severity of the contingency and the local volatility of each grid component, while retaining marginal coverage guarantees within each strata >. p. 1
Where the paper says it

The upper bound becomes Lˆ+ ℓ = Lˆ ℓ + ˆq (1−α) ℓ,k . This ensures that bounds adapt to both the severity of the contingency and the local volatility of each grid component, while retaining marginal coverage guarantees within each strata.

Since each quantile is derived from residuals of the same line l under the same contingency level k, we only require exchangeability (a core requirement of CP theory) across scenarios within each stratum as a substantially weaker and more physically realistic condition than global exchangeability, as it avoids assuming that a model’s error behavior is identical across all grid elements and stress levels. p. 1
Where the paper says it

Since each quantile is derived from residuals of the same line ℓ under the same contingency level k, we only require exchangeability (a core requirement of CP theory) across scenarios within each stratum. This is a substantially weaker and more physically realistic condition than global exchangeability, as it avoids assuming that a model’s error behavior is identical across all grid elements and stress levels.

<ref:2602.07995#pg2,B. Approach II: Kernel-Weighted Conformal Prediction (KCP) KCP refines this by weighting calibration residuals based on their similarity to the current scenario under evaluation, yielding tighter, scenario-specific bounds > KCP requires a numerical vector z(x) for each scenario x that captures its unique system characteristics, and squared Euclidean distances d2j = ∥ztest − zj∥2 2 are computed against all calibration scenarios j in stratum k. p. 1
Where the paper says it

Approach II: Kernel-Weighted Conformal Prediction (KCP) SCP applies the same correction to every scenario within a stratum. KCP refines this by weighting calibration residuals based on their similarity to the current scenario under evaluation, yielding tighter, scenario-specific bounds.

<ref:2602.07995#pg3>. If neff falls below a threshold n min eff, KCP reverts to uniform weights (SCP) to preserve the conformal guarantee. p. 1
Where the paper says it

Normalized weights wj quantify the relevance of each past scenario j to the current case: wj = exp(−d 2 j /h2 ) P i∈Dcal(k) exp(−d 2 i /h2) (2) The effective sample size (neff = 1/ P j w 2 j , with wj normalized so P j wj = 1) indicates how many calibration scenarios effectively contribute to the quantile estimate: it equals the full calibration set size under uniform weights and drops toward 1 when weight concentrates on a single scenario. If neff falls below a threshold n min eff , KCP reverts to uniform weights (SCP) to preserve the conformal guarantee.

<ref:2602.07995#pg3>

Empirical Performance and Superiority

The case study on GridFM for N-k screening demonstrates that the trustworthiness layer identifies over 90% of actual violations while maintaining a 5× higher ratio of correct detections among all flagged alerts than DCPF.<ref:2602.07995#pg3,Table I reports recall and precision for line congestion screening by N −k level, with KCP achieving 0. p. 1

Where the paper says it

054), foreshadowing the precision gains below. Table I reports recall and precision for line congestion screening by N −k level.

963 overall recall >. p. 1
Where the paper says it

947 overall), while KCP reaches 0. 963 with higher 1https://github.

The precision–recall trade-off is illustrated in Fig. p. 2
Where the paper says it

This Pareto improvement reflects the benefit of test-point-specific bounds: by localizing calibration in embedding space, KCP avoids the uniform over-correction that penalizes SCP’s precision on larger, more heterogeneous networks. The precision–recall trade-off is illustrated in Fig.

1 at different 1 − α bound target coverage levels. p. 2
Where the paper says it

The precision–recall trade-off is illustrated in Fig. 1 at different 1 − α bound target coverage levels.

<ref:2602.07995#pg3,KCP strictly dominates SCP and classical threshold tuning across every operating point, confirming that localizing calibration to similar system states is the key mechanism driving the precision–recall improvement > KCP achieves 0. p. 2
Where the paper says it

SCP and threshold tuning yield comparable results. However, KCP strictly dominates all other approaches across every operating point, confirming that localizing calibration to similar system states is the key mechanism driving the precision–recall improvement.

972 overall recall—the highest among all approaches—while maintaining precision at 0. p. 2
Where the paper says it

KCP strictly dominates SCP here: it achieves 0. 972 overall recall—the highest among all approaches—while maintaining precision at 0.

480, nearly 5× the DCPF baseline. p. 2
Where the paper says it

972 overall recall—the highest among all approaches—while maintaining precision at 0. 480, nearly 5× the DCPF baseline (0.

<ref:2602.07995#pg3,Even at 95% coverage (i. p. 2
Where the paper says it

However, KCP strictly dominates all other approaches across every operating point, confirming that localizing calibration to similar system states is the key mechanism driving the precision–recall improvement. Even at 95% coverage (i.

e. 1 − α = 0.95), KCP maintains precision 4× that of DCPF >

Computational Efficiency and Deployment

The trustworthiness layer adds negligible computational overhead: SCP requires only a table lookup of precomputed quantiles, while KCP adds one encoder pass and a nearest-neighbor search. p. 2

Where the paper says it

95), KCP maintains precision 4× that of DCPF. Crucially, the trustworthiness layer adds negligible computational overhead: SCP requires only a table lookup of precomputed quantiles, while KCP adds one encoder pass and a nearest-neighbor search.

p. 2
Where the paper says it

95), KCP maintains precision 4× that of DCPF. Crucially, the trustworthiness layer adds negligible computational overhead: SCP requires only a table lookup of precomputed quantiles, while KCP adds one encoder pass and a nearest-neighbor search.

<ref:2602.07995#pg3,In the case of GridFM on the IEEE 118-bus system, whose GPU inference runs at ∼0. p. 2
Where the paper says it

Crucially, the trustworthiness layer adds negligible computational overhead: SCP requires only a table lookup of precomputed quantiles, while KCP adds one encoder pass and a nearest-neighbor search. In the case of GridFM on the IEEE 118-bus system, whose GPU inference runs at ∼0.

36 ms per scenario (∼18× faster than ACPF at 6. p. 2
Where the paper says it

In the case of GridFM on the IEEE 118-bus system, whose GPU inference runs at ∼0. 36 ms per scenario (∼18× faster than ACPF at 6.

73 ms, and competitive with DCPF at 0. p. 2
Where the paper says it

072 at N − 2). DCPF’s seemingly competitive recall is an artifact of over-conservative linear approximations that flag many states as risky, capturing unsafe states (high recall) alongside far too many safe ones (very low precision).

59 ms on CPU), neither calibration approach materially affects the real-time pipeline >

Conclusion

Combining FM speed with these calibrated uncertainty bounds offers the confidence needed for systematic large-scale security studies—across diverse load and generation scenarios—that are computationally prohibitive with conventional solvers. The trustworthiness layer adds negligible computational overhead: SCP requires only a table lookup of precomputed quantiles, while KCP adds one encoder pass and a nearest-neighbor search.<ref:2602.07995#pg3,Combining FM speed with these calibrated uncertainty bounds offers the confidence needed for systematic large-scale security studies—across diverse load and generation scenarios—that are computationally prohibitive with conventional solvers >. p. 2

Where the paper says it

90 across all severity levels and delivering up to 5× precision gains over DC Power Flow, at negligible additional computation time. Combining FM speed with these calibrated uncertainty bounds offers the confidence needed for systematic large-scale security studies— across diverse load and generation scenarios—that are computationally prohibitive with conventional solvers.

The framework applies to any FM producing continuous predictions, and provides a principled path toward deploying trustworthy AI in safety-critical grid operations Combining FM speed with these calibrated uncertainty bounds offers the confidence needed for systematic large-scale security studies—across diverse load and generation scenarios—that are computationally prohibitive with conventional solvers. p. 2
Where the paper says it

Combining FM speed with these calibrated uncertainty bounds offers the confidence needed for systematic large-scale security studies— across diverse load and generation scenarios—that are computationally prohibitive with conventional solvers. The framework applies to any FM producing continuous predictions, and provides a principled path toward deploying trustworthy AI in safety-critical grid operations.

The trustworthiness layer adds negligible computational overhead: SCP requires only a table lookup of precomputed quantiles, while KCP adds one encoder pass and a nearest-neighbor search.

--- Page 1 ---

1

Trustworthiness Layer for Foundation Models in Power Systems: Application to N-k Contingency Screening

Antonio Alcantara, Spyros Chatzivasileiadis, ´ Senior Member, IEEE

Abstract—We propose a model-agnostic trustworthiness layer that equips any foundation model (FM) for power systems with statistically valid prediction intervals.<ref:2602.07995#pg1,Trustworthiness Layer for Foundation Models in Power Systems: Application to N-k Contingency Screening>. The layer offers two calibration approaches: (i) stratified conformal prediction (SCP), which partitions residuals by contingency severity and grid element, and (ii) kernel-weighted conformal prediction (KCP), which localizes the calibration to each test scenario via scenario representations, yielding tighter, approximately conditional bounds. p. 0

Where the paper says it

1 Trustworthiness Layer for Foundation Models in Power Systems: Application to N-k Contingency Screening Antonio Alcantara, Spyros Chatzivasileiadis, ´ Senior Member, IEEE Abstract—We propose a model-agnostic trustworthiness layer that equips any foundation model (FM) for power systems with statistically valid prediction intervals. The layer offers two calibration approaches: (i) stratified conformal prediction (SCP), which partitions residuals by contingency severity and grid element, and (ii) kernel-weighted conformal prediction (KCP), which localizes the calibration to each test scenario via scenario representations, yielding tighter, approximately conditional bounds.

p. 0
Where the paper says it

1 Trustworthiness Layer for Foundation Models in Power Systems: Application to N-k Contingency Screening Antonio Alcantara, Spyros Chatzivasileiadis, ´ Senior Member, IEEE Abstract—We propose a model-agnostic trustworthiness layer that equips any foundation model (FM) for power systems with statistically valid prediction intervals. The layer offers two calibration approaches: (i) stratified conformal prediction (SCP), which partitions residuals by contingency severity and grid element, and (ii) kernel-weighted conformal prediction (KCP), which localizes the calibration to each test scenario via scenario representations, yielding tighter, approximately conditional bounds.

<ref:2602.07995#pg1,Abstract—We propose a model-agnostic trustworthiness layer that equips any foundation model (FM) for power systems with statistically valid prediction intervals>. The layer offers two calibration approaches: (i) stratified conformal prediction (SCP), which partitions residuals by contingency severity and grid element, and (ii) kernel-weighted conformal prediction (KCP), which localizes the calibration to each test scenario via scenario representations, yielding tighter, approximately conditional bounds.<ref:2602.07995#pg1,Abstract—We propose a model-agnostic trustworthiness layer that equips any foundation model (FM) for power systems with statistically valid prediction intervals>.

--- Page 2 ---

2

plies to voltage magnitudes; here we demonstrate it on line loadings.<ref:2602.07995#pg1,Both introduced calibration approaches share a common first step: given a held-out calibration set Dcal consisting of n scenarioslbrace xj, Lj r j=1, we compute residuals Rj,l = Lj,l − Lˆj,l. p. 1

Where the paper says it

2 plies to voltage magnitudes; here we demonstrate it on line loadings. Both introduced calibration approaches share a common first step: given a held-out calibration set Dcal consisting of n scenarios {xj , Lj} n j=1, we compute residuals Rj,ℓ = Lj,ℓ − Lˆ j,ℓ.

Here, xj denotes the input for scenario j (load, generation, and outages), while Lj,l and Lˆj ell are the true and predicted loadings for line l respectively. p. 1
Where the paper says it

Both introduced calibration approaches share a common first step: given a held-out calibration set Dcal consisting of n scenarios {xj , Lj} n j=1, we compute residuals Rj,ℓ = Lj,ℓ − Lˆ j,ℓ. Here, xj denotes the input for scenario j (load, generation, and outages), while Lj,ℓ and Lˆ j,ℓ are the true and predicted loadings for line ℓ, respectively.

p. 1
Where the paper says it

Both introduced calibration approaches share a common first step: given a held-out calibration set Dcal consisting of n scenarios {xj , Lj} n j=1, we compute residuals Rj,ℓ = Lj,ℓ − Lˆ j,ℓ. Here, xj denotes the input for scenario j (load, generation, and outages), while Lj,ℓ and Lˆ j,ℓ are the true and predicted loadings for line ℓ, respectively.

p. 1
Where the paper says it

Both introduced calibration approaches share a common first step: given a held-out calibration set Dcal consisting of n scenarios {xj , Lj} n j=1, we compute residuals Rj,ℓ = Lj,ℓ − Lˆ j,ℓ. Here, xj denotes the input for scenario j (load, generation, and outages), while Lj,ℓ and Lˆ j,ℓ are the true and predicted loadings for line ℓ, respectively.

A. Approach I: Stratified Conformal Prediction (SCP) Standard split CP [8] uses a single global quantile, which produces valid but inefficient intervals: under-coverage for severe contingencies and over-conservative bounds for routine ones, so we address this by partitioning Dcal into distinct subgroups (or ‘strata’) based on contingency level k (e.g. N −1, N −2) and line l, qˆ(1−α)l,k = Quantile1−α Rj,l: j ∈ D(k) cal where D(k) cal contains only samples with k simultaneous outages > Lˆ+l = Lˆl + ˆq(1−α)l,k.<ref:2602.07995#pg2,This ensures that bounds adapt to both the severity of the contingency and the local volatility of each grid component, while retaining marginal coverage guarantees within each strata >

--- Page 3 ---

3

plies to voltage magnitudes; here we demonstrate it on line loadings.<ref:2602.07995#pg1,Both introduced calibration approaches share a common first step: given a held-out calibration set Dcal consisting of n scenarioslbrace xj, Lj r j=1, we compute residuals Rj,l = Lj,l − Lˆj ell. p. 1

Where the paper says it

2 plies to voltage magnitudes; here we demonstrate it on line loadings. Both introduced calibration approaches share a common first step: given a held-out calibration set Dcal consisting of n scenarios {xj , Lj} n j=1, we compute residuals Rj,ℓ = Lj,ℓ − Lˆ j,ℓ.

p. 1
Where the paper says it

2 plies to voltage magnitudes; here we demonstrate it on line loadings. Both introduced calibration approaches share a common first step: given a held-out calibration set Dcal consisting of n scenarios {xj , Lj} n j=1, we compute residuals Rj,ℓ = Lj,ℓ − Lˆ j,ℓ.

Here, xj denotes the input for scenario j (load, generation, and outages), while Lj,l and Lˆj ell are the true and predicted loadings for line l respectively. A. Approach I: Stratified Conformal Prediction (SCP) Standard split CP [8] uses a single global quantile, which produces valid but inefficient intervals: under-coverage for severe contingencies and over-conservative bounds for routine ones, so we address this by partitioning Dcal into distinct subgroups (or ‘strata’) based on contingency level k (e.g. N −1, N −2) and line l, qˆ(1−α)l,k = Quantile1−α Rj,l: j ∈ D(k) cal where D(k) cal contains only samples with k simultaneous outages > Lˆ+l = Lˆl + ˆq(1−α)l,k.<ref:2602.07995#pg2,This ensures that bounds adapt to both the severity of the contingency and the local volatility of each grid component, while retaining marginal coverage guarantees within each strata >

--- Page 3 ---

3

plies to voltage magnitudes; here we demonstrate it on line loadings.<ref:2602.07995#pg1,Both introduced calibration approaches share a common first step: given a held-out calibration set Dcal consisting of n scenarioslbrace xj, Lj r j=1, we compute residuals Rj,l = Lj,l − Lˆj ell. Here, xj denotes the input for scenario j (load, generation, and outages), while Lj,l and Lˆj ell are the true and predicted loadings for line l respectively. A. Approach I: Stratified Conformal Prediction (SCP) Standard split CP [8] uses a single global quantile, which produces valid but inefficient intervals: under-coverage for severe contingencies and over-conservative bounds for routine ones, so we address this by partitioning Dcal into distinct subgroups (or ‘strata’) based on contingency level k (e.g. N −1, N −2) and line l, qˆ(1−α)l,k = Quantile1−α Rj,l: j ∈ D(k) cal where D(k) cal contains only samples with k simultaneous outages > Lˆ+l = Lˆl + ˆq(1−α)l,k.<ref:2602.

Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.

Improvements for AI systems

  1. Stratified Conformal Prediction (SCP) allows for partitioning calibration residuals by contingency severity and grid element, ensuring that bounds adapt to both risk level and local volatility, thereby maintaining marginal coverage guarantees within each stratum.

  2. Kernel-Weighted Conformal Prediction (KCP) refines SCP by weighting calibration residuals based on similarity to the current scenario using squared Euclidean distances in an embedding space, yielding tighter bounds that localize calibration to specific test points.

  3. The improved system can perform N-k contingency screening for power systems with over 90% of actual violations captured while maintaining up to 5 times fewer false alarms than DC Power Flow, enabling reliable large-scale security assessment beyond routine N-1 screening.

  4. KCP strictly dominates SCP and classical threshold tuning across every operating point in the precision-recall space, achieving recall above 0.90 across all severity levels and delivering up to 5 times precision gains over DC Power Flow at negligible computational overhead.

Abstract

We propose a model-agnostic trustworthiness layer that equips any foundation model (FM) for power systems with statistically valid prediction intervals. The layer offers two calibration approaches: (i) stratified conformal prediction (SCP), which partitions residuals by contingency severity and grid element and comes with a formal coverage guarantee, and (ii) kernel-weighted conformal prediction (KCP), which localizes the calibration to each test scenario, yielding tighter, scenario-adaptive bounds whose coverage we verify empirically. Using publicly released GridFM models as a guiding example, we demonstrate the framework on N!-!k contingency screening for the IEEE 118-bus and a 500-bus system. Although the models are trained on N!-!1 data only, the true values stay within the bounds in about 90% of cases at every contingency level up to N!-!5 on both systems. On IEEE-118, the layer raises detected overloads from about 81% to 97% at a precision comparable to that of DC power flow (DCPF), and cuts the share of insecure contingencies wrongly declared secure to 0.3% or less, against 12% for DCPF. On the 500-bus system, KCP cuts this share from 20-26% (FM alone and DCPF) to 3.6-4.4%. The layer also bounds bus voltages, which DCPF cannot screen. Adding under 0.1ms per scenario to the FM, it enables reliable large-scale security assessment beyond routine N!-!1 screening. An open-source implementation is publicly available.

Sources

Related papers