Learnings from GridFM @ Harvard
A visual primer on how power grids work, why "power flow" needs numerical methods, and what the grid foundation model community presented at Harvard in March 2026.
In March 2026, about 200 researchers, utilities, national labs and companies met at Harvard SEAS for the 5th Workshop on Foundation Models of the Electric Grid (GridFM). I went through every talk page, all 43 slide decks, the poster abstracts and the full recordings of all three days. These are my notes. Because the conference assumes you already think like a power engineer, the first part is a from-scratch course on the basics, written for people (like me) who come from outside electrical engineering. Everything with a slider is interactive.
- The basics: a short course — four quantities, the smallest grid, why numerical methods, AC vs DC, what a "power flow case" is
- The conference — what grid foundation models are, the models and benchmarks, every session, themes and disagreements
- The tutorials — universal graph learning, PowSyBl, and the rest
- Open models, datasets and code
- Open research directions
- Sources
Part 1
The basics: a short course
Lesson 1: Electricity in four quantities
Picture water in pipes. The analogy is imperfect but carries surprisingly far.
| Electricity | Water picture | Unit |
|---|---|---|
| Voltage (V) | Pressure | volts |
| Current (I) | How much water flows per second | amps |
| Resistance (R) | How narrow or long the pipe is | ohms |
| Power (P) | Useful work delivered: pressure × flow | watts, megawatts (MW) |
Two rules are enough to start:
- Ohm's law: flow through a pipe depends on the pressure difference across it. Current = (voltage at one end − voltage at the other) ÷ resistance. No difference, no flow.
- Power = voltage × current. A town that uses 150 MW needs voltage × current at the town to equal 150 MW.
One consequence explains why transmission towers carry 138,000–765,000 volts while your socket gives 120: the energy wasted heating a line grows with the square of the current. To deliver the same power with less current, raise the voltage. Double the voltage, halve the current, quarter the losses.
Lesson 2: The smallest grid, and the exact problem
One power plant, one line, one town. The plant holds its end of the line at normal voltage (call it 100%). The line has some resistance. The town uses some amount of power. Question: what is the voltage at the town? That is a power flow problem, the whole field in miniature.
Write down what we know:
- Current in the line = (100% − Vtown) ÷ R: the pressure drop pushes the flow.
- Power reaching the town = Vtown × current: power is voltage times current.
- That power must equal the town's demand.
Substitute 1 into 2 and you get: power = Vtown × (100% − Vtown) ÷ R. The unknown appears twice, multiplied by itself, because power is voltage times current and the current itself depends on the voltage. That self-multiplication is what engineers mean when they say "the power flow equations are nonlinear." It is the root of everything that follows.
Plot "power the line can deliver" against "town voltage" and you get a hill, not a straight line. Drag the demand and click through the solver:
What the hill tells you:
- Low demand is easy. The demand line crosses the hill far to the right; the town's voltage is barely below normal.
- There are two answers, not one. The right-hand crossing is the real, healthy operating point. The left one is a mathematically valid "twin" at very low voltage with huge current and losses; the grid cannot operate there. A solver started from a bad guess can land on the wrong twin.
- There is a ceiling. Above 250 MW the demand line never touches the hill: no voltage makes this line deliver that much. Real grids approaching that peak (the "nose") experience voltage collapse, one of the ways blackouts happen. Cases near the nose are what benchmarks call "close to infeasible."
Lesson 3: Why numerical methods?
For this one-line grid you need nothing clever: the equation is a quadratic, and the school formula solves it exactly. So why do grid engineers iterate?
Because a real grid is this tangle, thousands of times over. The power at every node depends on its own voltage multiplied by each neighbour's voltage, so changing one voltage changes every equation that touches it. In AC grids (lesson 4) each node also has a second unknown, a timing angle, which appears inside sines and cosines. A 2,000-node grid means about 4,000 unknowns in 4,000 tangled equations, to be solved simultaneously. There is no formula for that, just as there is no general formula for the roots of polynomials beyond degree four.
So you do what the widget above does: guess, then correct. Newton's method in four moves:
- Guess. "Every voltage is normal" is called a flat start.
- Measure how wrong you are (the "mismatch"): at that guess the line would deliver X MW, but the town wants Y.
- Pretend the curve is a straight line using its slope where you stand, and jump to where that line meets the demand.
- Repeat until the mismatch is tiny. Each step roughly doubles the number of correct digits, so 3–6 steps usually suffice.
Drag the demand toward 250 MW and step again: near the top of the hill the slope flattens, jumps overshoot, and it takes more steps. Past 250, it never settles. That is what "the solver failed to converge" means, and the painful ambiguity is whether it failed because no answer exists or because the starting guess was bad.
One connection worth noticing: the "DC approximation" you will see everywhere is essentially step 3 done once from the flat start, with no repeats. One straight-line jump. That is why it is instant, and why it is wrong when the grid is heavily loaded.
Lesson 4: AC versus DC
DC (direct current) pushes steadily in one direction. A battery is DC: its + end is always +. Phones, laptops, solar panels, car batteries and the chips inside data centres all run on DC.
AC (alternating current) swings back and forth like a wave: in North America the voltage reverses 60 times per second (60 Hz), in Europe 50. Almost the entire grid is AC. The current sloshes back and forth in the wires, yet energy still moves steadily from plant to town, the way a saw blade goes back and forth but the cut keeps advancing.
Why the grid chose AC:
- Transformers. Lesson 1 said long lines need very high voltage, while homes need low voltage for safety. A transformer steps AC voltage up or down with no moving parts, but it only works with a changing voltage. This is why AC won the 1880s "war of the currents."
- Generators make AC naturally: a spinning magnet past a coil produces a wave.
- Breakers: AC current crosses zero 120 times a second, which makes it easier to interrupt.
DC still lives on the grid: inside devices, in batteries and solar panels (connected through inverters, power electronics that turn DC into AC), and in high-voltage DC (HVDC) links for very long or undersea cables.
The big new idea: every voltage is a wave with a size and a timing
In an AC grid every node's voltage is a wave, and they all swing at exactly 60 Hz together, but not perfectly in step. Each node's wave is shifted slightly in time; that shift is its phase angle. So each node has two numbers: a magnitude (how high the wave swings) and an angle (how early or late it is). The surprise: in AC, real power flows mainly because of the timing difference, not the size difference. Compare:
A picture for the angle: imagine every generator in a region as a runner on a circular track, all running exactly 60 laps a second, tied together by elastic ropes (the transmission lines). A runner slightly ahead stretches the rope and pulls the others along; that pull is power flowing. More lead, more stretch, more power, until the rope effectively snaps past the top of the hill and a generator slips out of step ("loss of synchronism"). Real lines usually run at shifts of 10–30°, far from the top.
Why the AC equations are hard: power on every line contains a sine of the angle difference, multiplied by both voltage magnitudes. Lesson 2's self-multiplication is still there, now with a sine on top, two unknowns per node, coupled across thousands of nodes.
How does an oscillating voltage move energy?
Here is the mechanism, layer by layer. (1) Every node's voltage oscillates at 60 Hz with slightly different timing. (2) Because the two ends of a line are out of step, at almost every instant there is a voltage difference across the line, itself a wave. (3) That difference pushes current back and forth through the line. (4) At the plant end, power at each instant is voltage × current. Most of the time they point the same way and energy goes in; briefly they point opposite ways and a little comes back. On average, energy ratchets one way: from the leading node to the lagging one.
Note that the current also oscillates; nothing travels one way down the wire. Electrons barely move, jiggling by a tiny fraction of a millimetre. What travels from plant to town is energy, carried by the electromagnetic field around the wires.
"But if current runs backward half the time, how does the town keep its power?"
Three layers to the answer. First, current reversing is not energy reversing: when the current flips, the voltage flips at the same moment, and negative × negative is positive. At the town end of an ordinary load, power is never negative. Second, the coral slices above are at the plant end: the line stores a little energy in its magnetic field, like a spring, and some of it pushes back each cycle (this stored, sloshing energy is reactive power). Third, on a single wire the town's power does dip to zero 120 times a second, and that is why grids use three phases:
A single house gets one or two phases, so its power really does dip; you never notice because devices have small "flywheels": filaments stay hot, motors keep spinning, and electronics convert AC to DC and smooth it with capacitors. A whole town, spread evenly across the three phases, draws steady power, so generators see a smooth load. That is also why power lines come in sets of three.
Putting it together: what is a "power flow case"?
A power flow (PF) case is one snapshot of a grid handed to a solver: the map (which places connect, how "easy" each line is), the demand at each town, the output of each power plant (one plant is left free to make up the rest), and which lines are in service. The solver returns how much power flows on every line and in which direction, the voltage at every node, and whether any limit is broken. Every slider position below is one PF case. (This widget uses the simplified "DC" approximation.)
Things to try: raise the town's demand and watch power reach it over both routes without anyone routing it (physics splits the flow). Untick line A–C: that is an N-1 case, the same grid with one element out, and the remaining route may overload. "N-2" means two out. Untick two lines and the grid islands.
That is the whole vocabulary of the conference. Operators solve huge numbers of these cases (for every possible failure, every few minutes). Optimal power flow (OPF) adds one more question: which plants should produce how much so the total cost is lowest without breaking any limit. Grid foundation models are neural networks trained on millions of solved PF and OPF cases to answer new ones much faster.
Part 2
The conference
The 5th GridFM workshop ran March 17–19, 2026 at Harvard SEAS in Allston, hosted by Harvard's Power and AI Initiative. Earlier editions were at IBM Yorktown Heights, Imperial College, Argonne and RWTH Aachen; the 6th is in Porto (October 29–30, 2026). The organizers come from IBM Research, Hydro-Québec, Brookhaven and Stony Brook, MIT, NERC, NRECA, Imperial, INESC TEC, Cornell, Texas A&M, NLR (formerly NREL), CU Boulder, Argonne and Dartmouth.
What a grid foundation model is
In this community a "grid foundation model" mostly means a graph neural network pre-trained on millions of solved grid cases, which emulates the solvers operators already use (power flow, optimal power flow, state estimation) across many grid topologies, then gets fine-tuned per grid. It is not a language model; LLMs appear as a separate "agentic" track that calls these models and classical tools. The founding perspective is Hamann et al., "Foundation models for the electric power grid" (Joule, 2024), which judges success on speed, accuracy, data efficiency, generalizability and robustness to topology changes.
State estimation, the third core task, means recovering the full grid state from sparse, noisy sensor readings.
| Model | Who | What it is | Headline |
|---|---|---|---|
| GENCO | IBM Research, Hydro-Québec, Stony Brook (via LF Energy) | 20M-parameter heterogeneous graph transformer with constraint-enforcing layers; one model for PF, OPF and SE | OPF about 35× faster than a classical solver on a 2,000-bus grid with ≤0.2% optimality gap on IEEE 118; open weights |
| GridSFM | Microsoft Research | Hierarchical graph model for AC-OPF that also predicts whether a case is feasible; trained on grids rebuilt from OpenStreetMap, EIA and Census data | About 99% feasibility accuracy and roughly 500–1,500× faster than the IPOPT solver in the talk; released openly in May 2026 |
| LUMINA | Argonne (DOE multi-lab) | Benchmark and open model for multi-topology AC-OPF | Fine-tuning cut training steps by 49–84% vs training from scratch |
| PFΔ | MIT | Benchmark of 859,800 solved PF cases with N-1, N-2 and near-infeasible cases | ML is up to 5× faster than Newton-Raphson but fails on unseen grid sizes |
Session by session
Keynote: from pilots to grid intelligence (GE Vernova)
Mahesh Sudhakaran argued that most AI pilots never scale because they are trained inside one utility, one topology and one dataset while failures cross ownership boundaries (his example was the April 2025 Iberian blackout). He asked researchers for three things: real-time verification of neural networks, topology-agnostic inference, and synthetic generation of extreme events, for which historical data barely exists. He framed the sharing model as pre-trained weights rather than raw data.
GridFM state of the union
- IBM (Brunschwiler, Vos, Puech, Freitag). GENCO handles PF, OPF and SE in one model. Trained only on N-1 and N-2 cases, it held up to 20 simultaneous outages and caught voltage violations that the DC approximation misses. Speed advantages appear only above about 2,000 buses, and an AC solver stays as the fallback for outliers. A side project builds hourly bus-level load for a synthetic Texas grid from 24 years of ERCOT data, ERA5-Land weather, building footprints and demographics, and reconstructs the unserved demand of Winter Storm Uri.
- LF Energy (Miralles, Parisot). GridFM is an open project under the Linux Foundation for Energy with a public technical steering committee. Utilities in Europe are testing it, and a pan-European grid foundation-model consortium ("AI.grids") intends to build on it.
- Microsoft Research (Weiwei Yang). Builds realistic, OPF-ready grids from public data, teaches the model what infeasible cases look like via eight synthetic stress modes, and uses physics-based self-supervision plus active learning so a new utility needs only a few hundred labelled cases. Warm-starting the classical solver from the model's answer cut its iterations.
- Roadmap (Hendrik Hamann). A community roadmap split into data, models and applications, with named application tracks (benchmarks, core solvers, security, distribution, forecasting, interconnection screening, planning, agents, operations). He noted that nearly everything presented was steady-state and launched a volunteer sprint to write the roadmap.
AI-ready grid data
- Suren Byna (Ohio State): a multi-dimensional definition of "AI-ready data" and the open AIDRIN tool that scores it.
- Charlotte Avery (Centre for Net Zero): Faraday, a generative model producing privacy-preserving synthetic household smart-meter profiles conditioned on location and low-carbon technology, shared through LF Energy's OpenSynth.
- MIT (PFΔ team): training on N-1 cases improves generalization; strong constraint enforcement wins near infeasibility; models fail on grid sizes they have not seen. They also noted there is genuine debate about whether AI is the right tool for power flow at all.
- Russell Bent (Los Alamos): PowerModels.jl and PNNL's GridPACK generate training data at scale on HPC, including load-shedding cases driven by a hurricane damage model on a synthetic Texas grid.
- Panel: the sharpest exchange was whether to make data "AI-ready" or to make AI robust to messy grid data (imputation and physics-based self-supervision built in). Independent certification of grid models was raised; how to prove coverage of extreme contingencies was left open.
Cybersecurity
IBM showed that an attacker can tell whether a grid topology was used to train a model only under very strong assumptions, which supports sharing trained weights (model inversion remains untested). Dartmouth presented privacy-preserving federated detection of bid manipulation in virtual power plants and LLM-based detection of adversarial false-data injection. NEC turned existing fibre-optic cables into vibration sensors to protect data-centre and grid corridors. West Virginia University showed operator assistants built with retrieval and credibility scoring, tested with real operators in a control-room testbed. A community survey found no reported AI security incidents yet.
AI for power markets
TU Delft's PriceFM, a price-forecasting foundation model for 38 European zones that uses the cross-border transmission graph as a prior, beat general time-series foundation models. Michigan showed that forecasting models interacting through market clearing reach an equilibrium, and that training for price accuracy instead of forecast accuracy lowered system cost. Georgia Tech described optimization "proxies" that replace repeated dispatch solves in seconds with certified optimality gaps. Dartmouth used LLM agents with personas to simulate household battery behaviour. Stony Brook's SONNET disaggregates rooftop solar from net load and stays robust when weather forecasts are badly wrong.
Safe AI for the grid (panel)
DOE's Office of Electricity highlighted black-box risk, the lack of data on rare extreme events, and operator complacency, and urged bringing utilities in early. Great River Energy, a Minnesota cooperative, described a phased AI programme that includes storm preparation analytics. The NRC said it has not yet received an AI application to review and concluded that guidance rather than new rules is needed. EPRI described a European AI testing facility and its Open Power AI consortium. Idaho National Laboratory presented an "even-if" safety framework that tests forecasting and restoration AI under drift.
Breakouts (not recorded)
- Agentic AI: Harvard and ISO New England's planning agents; EcoFlow's self-improving home energy management; Argonne's GridMind, which chains a weather agent, outage sampling, contingency analysis and the LUMINA model in a hurricane demo.
- Optimization: GPU linear programming (MIT), batched GPU interior-point solving and implicit differentiation (Georgia Tech), feasibility-guaranteed neural networks (MIT), and optimal transmission switching (MIT).
- Distribution: LIPA's AI engineering portal, TRC's survey of where utility AI is actually deployed, LCRA's extreme-weather control-room needs, NLR's control-room LLM and outage-prediction work, and RSE's graph network for hosting capacity.
Industry, dynamics and AI data centres (day 3)
CAISO described an agentic outage-management assistant in expanded beta and plans time-series foundation models for capacity-margin forecasting that account for weather. GE Vernova reported a cautionary result: a large general time-series foundation model did not beat a small domain model on daily peak load until fully fine-tuned at about 1,000 times the size. AWS described agents in production at a US utility that cut an interconnection model build from 30 days to 45 minutes. PJM, which hosts a large share of US data-centre demand, made the case for AI in extreme multi-outage events. The dynamics session covered electromagnetic models of data-centre loads (Texas A&M with ERCOT), learning black-box inverter models (NYU), waveform-level measurements (UC Riverside) and an LLM assistant for EMT modelling (ASU). The AI-data-centre session covered storage sizing using historical county-level outage data (CU Boulder), flexible job scheduling (Georgia Tech), new data-centre efficiency metrics (Verrus), power-flexible LLM serving (Harvard) and AI load transients (Alberta).
Themes, disagreements and open problems
Where people agreed. Physics must be enforced, not just added as a loss penalty. Heterogeneous graph transformers are the default architecture. Generalizing to new topologies is the defining test. Synthetic data is unavoidable but must be shown to transfer to real grids. LLM agents should wrap trusted tools rather than replace them, and this is the only track with production deployments. Open weights and community governance are the norm.
| Question | One view | The other |
|---|---|---|
| Is AI the right tool for power flow? | Large speedups reported | Speedups only on large grids; outliers need a classical fallback; ML residuals are orders of magnitude larger than Newton-Raphson's |
| Do general time-series foundation models help? | Being evaluated by an ISO | Small domain models matched or beat them on load and price forecasting |
| Where will adoption come first? | Planning, where speed matters more than precision | Markets and trading; meanwhile agents for paperwork are already in production |
| Data or models? | Make data AI-ready | Make models robust to real, messy data |
| How big is the data-centre load wave? | Hundreds of GW of requests in some regions | Past growth forecasts did not materialize |
Open problems named: scaling accuracy to real 10k–100k-bus grids; extreme and rare events (synthetic generation, certifying coverage, learning load-shed spikes); moving beyond steady state into time and dynamics; distribution grids; verification and uncertainty quantification; benchmarks for agents; and getting utilities into the room. Notably, no speaker used a weather foundation model; weather appears in the roadmap only as "alternative data" several years out.
Part 3
The tutorials
Five hands-on tutorials ran in parallel on day 1; none were recorded.
Tutorial 1: Universal graph learning (Cornell and UCF)
Anna Scaglione and Tong Wu tackled a practical pain: a neural network trained on one grid configuration breaks when a line goes out for maintenance or a feeder is added, because the number of nodes, the data distribution and the output size all change. Their goal is one model that keeps working across reconfigurations without retraining (paper).
Idea 1: physics already tells you how information spreads. Voltages behave like a smoothed version of the currents injected into the grid: a demand bump at one node becomes a gentle dip across its neighbours. So the network's "mix with neighbours" step is built from the grid's own electrical connectivity. The learned weights become a recipe for mixing neighbours rather than a lookup table for specific nodes, and the recipe survives rewiring.
Idea 2: handle any size in and any size out.
A shared filter runs on every grid; pooling squashes any number of nodes into a fixed set of summaries; a transformer turns those back into one output per node of the target grid, using position tags (the same trick language models use to know word order). Training adds a third axis beyond space and time, a topology dimension: many deliberately rewired versions of the grid, so new configurations look familiar. In the paper, a model trained across several standard test grids kept about 91–93% accuracy at locating cyberattacked sensors where standard networks fell to about 62–64%, and forecasting error on unseen reconfigurations was about 100 times lower than a plain transformer. Caveats: simulations on textbook grids only, transfer to a completely new grid is future work, and there is no public code.
Tutorial 2: Hands-on power flow with PowSyBl (Artelys)
PowSyBl is the open-source grid simulator built by France's transmission operator RTE, now an LF Energy project; pypowsybl is its Python interface. A foundation-model workshop teaches it because every model learns from solved cases, and the labels are only as good as the solver that produced them. The two public notebooks load five grids (a 6-bus toy, two ENTSO-E standard test grids in the European CGMES exchange format, a synthetic country called "Belgovia", and a 6,515-bus model of the French grid), then show how many hidden decisions sit inside "just run the power flow". The clearest is: when demand rises, who covers it?
Different slack choices put different power on different lines, so the "same" case yields different answers. The notebooks walk through the rest: choice of solver (Newton-Raphson, fast decoupled, Newton-Krylov, or the DC shortcut), stopping tolerance, starting guess (a good one converges in about 5 iterations, a bad one in about 15 or never), generator reactive-power limits that switch mid-solve, what to do when no generator can cover a gap, deliberately breaking convergence and then fixing it with a better start and damped steps, islands, and the equipment zoo (tap changers, capacitor banks, static VAR compensators, HVDC converters). The lesson for machine learning: every benchmark label embeds these settings, which is one reason the community wants shared benchmarks.
Tutorials 3–5 in brief
- gridfm-datakit and gridfm-graphkit (IBM): datakit generates PF and OPF training cases from all 66 standard PGLib grids plus a synthetic Texas grid, perturbing loads from real profiles, topology (N-k outages), line parameters and generator costs, and imports the PFΔ and OPFData datasets; graphkit trains and fine-tunes GENCO and other graph models. Both are Apache-2.0 on GitHub.
- ANDES (NC State, Hantao Cui): an open-source Python library for dynamic (time-domain) grid simulation with over 100 device models, used to generate training data beyond steady state. Only a video was shared.
- PowerMCP and PowerSkills (Harvard, Qian Zhang): connecting a general-purpose LLM to grid software through the Model Context Protocol, plus reusable workflow "skills", from the open PowerAgent community.
Part 4
Open models, datasets and code
| Resource | What | Link |
|---|---|---|
| GENCO weights and datasets | Six checkpoints and 36 PF/OPF datasets (Apache-2.0) | huggingface.co/gridfm |
| gridfm-datakit / graphkit | Data generation and training | github.com/gridfm |
| GridSFM | Microsoft's model, code and an open US grid dataset covering 48 states | code, data |
| LUMINA-2M | Argonne's open AC-OPF model | weights, code |
| PFΔ | Power flow benchmark | data, code |
| PGLearn | OPF datasets from 14 to 24k buses | data |
| Faraday 5.0 | 10M synthetic UK household load profiles | data |
| PowerModels.jl, GridPACK, pypowsybl, ANDES | Classical solvers and simulators | PowerModels, GridPACK, pypowsybl, ANDES |
| FSNet, AIDRIN, APPFL, PowerMCP | Feasibility-guaranteed networks, data readiness, federated learning, LLM tool access | FSNet, AIDRIN, APPFL, PowerMCP |
Part 5
Open research directions
The power-flow and OPF surrogate space is now crowded, with several strong open models. The gap the conference left wide open is weather: every grid model assumes someone hands it the list of failed lines and the loads, and weather-driven outage prediction rarely talks to grid physics. Directions I find most promising:
- Storm → line failures → grid response. Chain a weather model to probabilities of line failure (wind, ice, vegetation), run power flow on the damaged grid, and predict which areas go dark, validated against real outage records. This captures outages caused by failures far away that purely statistical models miss.
- Synthetic extreme events. Use weather foundation models to generate physically plausible variants of real storms and convert them into correlated outage sets for training and stress-testing grid models, directly answering the keynote's request.
- An open benchmark for weather-driven outages. The community has benchmarks for power flow but none for outages; one built from public outage records and reanalysis weather, with locked test events, would let methods be compared honestly.
- Weather-driven load at fine resolution, extending downscaling approaches like IBM's Texas work to other regions so that power flow inputs are realistic during heat waves and cold snaps.
- Weather-dependent line limits (how much a line can safely carry depends on air temperature and wind), which shifts where the "top of the hill" sits for every line.
- Restoration with grid physics, since restoring service means islands rejoining in an order that must not overload what is already energized.
Sources
- Workshop page and agenda, the individual talk pages linked from it, and the poster abstracts.
- Slides from the presenters (43 decks).
- Recordings: day 1, day 2, day 3. Breakouts and tutorials were not recorded; summaries of those come from slides, abstracts and public code.
- Papers, repositories and model cards linked inline; resource status checked October 2026.
- Follow-ups: GridFM monthly meetings and the Porto conference.
Speaker positions are paraphrased from slides and auto-generated captions; any errors of interpretation are mine. Corrections welcome.