Large Language Models for Detecting Cyberattacks on Smart Grid Protective Relays
Ahmad Mohammad Saber, Saeed Jafari, Zhengmao Ouyang, Paul Budnarain, Amr Youssef, Deepa Kundur

TL;DR
This paper introduces a framework using fine-tuned compact large language models to detect cyberattacks on power grid relays by textualizing multivariate time-series data, achieving high accuracy and robustness.
Contribution
It presents a novel approach of converting relay measurements into natural language prompts and fine-tuning LLMs for cyberattack detection in smart grids.
Findings
DistilBERT detects up to 97.62% of attacks.
Framework outperforms traditional ML and DL baselines.
Models are robust to noise and attack variations.
Abstract
This paper presents a large language model (LLM)-based framework that adapts and fine-tunes compact LLMs for detecting cyberattacks on transformer current differential relays (TCDRs), which can otherwise cause false tripping of critical power transformers. The core idea is to textualize multivariate time-series current measurements from TCDRs, across phases and input/output sides, into structured natural-language prompts that are then processed by compact, locally deployable LLMs. Using this representation, we fine-tune DistilBERT, GPT-2, and DistilBERT+LoRA to distinguish cyberattacks from genuine fault-induced disturbances while preserving relay dependability. The proposed framework is evaluated against a broad set of state-of-the-art machine learning and deep learning baselines under nominal conditions, complex cyberattack scenarios, and measurement noise. Our results show that…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSmart Grid Security and Resilience · Power Systems Fault Detection · Electricity Theft Detection Techniques
