Trustworthiness Layer for Foundation Models in Power Systems: Application to N-k Contingency Screening
summary
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…
In short
This work introduces a model-agnostic trustworthiness layer for foundation models in power systems to provide statistically valid prediction intervals for line loadings during contingency screening. It offers two calibration methods—Stratified Conformal Prediction (SCP) and Kernel-Weighted Conformal Prediction (KCP)—which improve detection accuracy over traditional methods while maintaining computational efficiency.
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 used across episodes
This episode discusses
- Trustworthiness Layer for Foundation Models in Power Systems: Application to N-k Contingency Screening · Paper Radio
- Graph Neural Networks for Fast Contingency Analysis of Power Systems
The paper
Trustworthiness Layer for Foundation Models in Power Systems: Application to N-k Contingency Screening · Read on arXiv
Department of Wind and Energy Systems, Technical University of Denmark
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.
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.
More episodes
- Daily Summary for 2026-12-05
- 2606.23371-TSD: A Physics-Inspired Trajectory Saliency Detector for Efficient Imitation Learning
- 2607.03828-ObjRetarget: An Object-Aware Motion Retargeting Framework with Anthropomorphic Arm Constraints and Polyhedral Hand Modeling
- The day in conversation for 2026-12-05
- 2607.05883-DexTele: A Dual-Arm Dexterous Teleoperation System Based on Motion Retargeting and Adaptive Force Control
- Daily Summary for 2026-12-05
- 2607.26056-INTACT: Isomorphic Intent-to-Action Learning for Search-Free World Models
- 2608.00931-Stipple: Real-Time Photometric 3DGS with Visual-Inertial SLAM
- 2608.24525-RoG-DAgger: Rollout-Guided Post-Training for End-to-End Driving
- 2608.25405-LAC: Linear and Angular Compliance for Humanoid Whole-body Control