A Rule-Aware Prompt Framework for Structured Numeric Reasoning in Cyber-Physical Systems
Yichen Liu, Hongyu Wu, Bo Liu

TL;DR
This paper introduces a modular, rule-aware prompt framework for large language models to improve numeric reasoning and anomaly detection in power grid systems, aligning AI outputs with domain-specific rules.
Contribution
It presents a novel prompt architecture that encodes power system rules and numeric normalization, enhancing LLM performance in grid anomaly detection tasks.
Findings
Rule-aware prompts improve anomaly detection accuracy.
Hybrid LLM+DL architecture reduces token usage.
Framework enhances consistency with grid operating rules.
Abstract
Smart grids rely on high-dimensional numeric telemetry and explicit operating rules to maintain reliable and secure operation. Recent large language models (LLMs) are increasingly considered as candidate decision-support components for power system operations, yet most deployments focus on textual logs, alerts, or operator messages and do not directly address rule-grounded reasoning over numeric grid measurements. This paper proposes a rule-aware prompt framework that systematically encodes power system domain context, numeric normalization, and decision rules into a modular prompt architecture for LLMs. The framework decomposes prompts into reusable modules, including role, domain context, numeric normalization, rule-aware reasoning, value block, and output schema, and exposes an interface for plugging in diverse grid operating rules. A key design element separates rule specification…
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.
