GridSFM: A Foundation Model for AC Optimal Power Flow
- Weiwei Yang ,
- Andrea Britto Mattos Lima ,
- Thiago V. Spina ,
- Spencer Fowers ,
- Baosen Zhang ,
- Chris White
Grid Small Foundation Model (GridSFM) is a foundation model for power systems trained on 200 grids and over half a million scenarios. It predicts AC-OPF solutions in milliseconds: given a grid topology and loading conditions, it produces bus voltages, generator dispatch, branch power flows, and a feasibility classification without running a solver, and when higher confidence is needed its predictions serve as warm starts that accelerate conventional solvers. GridSFM is released in two tiers, GridSFM-Open (∼15M parameters, for grids up to a few thousand buses, research and prototyping) and GridSFM-Premier (∼100M parameters, for production scale grids up to tens of thousands of buses), both sharing the same architecture and trained on a broad open-data corpus of transmission topologies and operating scenarios spanning feasible and infeasible regimes via a multi-axis perturbation pipeline. Code is available at https://github.com/microsoft/GridSFM, and released checkpoints are hosted in the Hugging Face collection at https://huggingface.co/collections/microsoft/gridsfm.
The Future of the Grid: How AI Transforms Power System Planning
Power grids are becoming increasingly complex as renewable energy, electrification, extreme weather, and growing demand reshape how energy systems operate. In this video, Microsoft Research introduces GridSFM, an open foundation model for power systems that can approximate AC optimal power flow solutions in milliseconds. By combining open power grid data, machine learning, and physics-based modeling, GridSFM enables faster grid analysis, scenario evaluation, and planning for the future electric grid. Learn how open data and AI can help unlock faster, more scalable power system research.