Skip to main content
QUICK REVIEW

[论文解读] Enabling Large Language Models to Perform Power System Simulations with Previously Unseen Tools: A Case of Daline

Mengshuo Jia, Zeyu Cui|arXiv (Cornell University)|Jun 25, 2024
Power Systems and TechnologiesEngineering被引用 5
一句话总结

本论文提出一个四模块化框架,利用一个此前未见的工具箱(Daline)来增强大语言模型在电力系统仿真中的能力,在 34 个任务上实现 GPT-4o 的 96.07% 编码准确率。

ABSTRACT

The integration of experiment technologies with large language models (LLMs) is transforming scientific research, offering AI capabilities beyond specialized problem-solving to becoming research assistants for human scientists. In power systems, simulations are essential for research. However, LLMs face significant challenges in power system simulations due to limited pre-existing knowledge and the complexity of power grids. To address this issue, this work proposes a modular framework that integrates expertise from both the power system and LLM domains. This framework enhances LLMs' ability to perform power system simulations on previously unseen tools. Validated using 34 simulation tasks in Daline, a (optimal) power flow simulation and linearization toolbox not yet exposed to LLMs, the proposed framework improved GPT-4o's simulation coding accuracy from 0% to 96.07%, also outperforming the ChatGPT-4o web interface's 33.8% accuracy (with the entire knowledge base uploaded). These results highlight the potential of LLMs as research assistants in power systems.

研究动机与目标

  • 激发并使 LLM 成为电力系统仿真领域的研究助手。
  • 开发一个模块化框架,结合提示设计、增强的RAG、面向工具箱的设计和反馈循环。
  • 在 Daline 的潮流与线性化工具箱上对框架进行 34 项任务的验证。
  • 证明多种技术的整合在仿真编码准确性上优于基线方法。

提出的方法

  • 提出一个四模块框架:(i) 提示设计,(ii) 增强的检索式生成(RAG),(iii) 面向 LLM 的工具箱补充设计,(iv) 反馈循环设计。
  • 使用面向基于工具箱的仿真的链式思考(chain-of-thought)与少样本提示,逐步引导 LLM 的行动。
  • 开发带有查询计划的增强 RAG 策略,将长请求分解为子请求并将其映射到函数/参数关键字以实现并行检索。
  • 创建对 RAG 友好的知识库文档,以及用于工具箱的语法检查/错误报告,以提升信息检索和可靠性。
  • 实现一个包含详细错误报告和故障排除指南的反馈循环,以迭代地纠正代码。
  • 在 Daline 的 34 项仿真任务中,采用 20 种技术方案进行验证,逐任务最多尝试 3 次以衡量编码准确性。

实验结果

研究问题

  • RQ1模块化框架是否能够使 LLM 在对模型未知的工具下执行电力系统仿真?
  • RQ2提示设计、增强的 RAG、工具箱设计和反馈循环在单独及综合情况下如何影响电力系统仿真中的编码准确性?
  • RQ3将 Daline 作为此前未见的工具箱对 LLM 表现有何影响?
  • RQ4哪种技术组合能为 LLMs 产生最高的仿真编码准确率?

主要发现

  • 使用所提框架的 GPT-4o 在 34 项任务中实现 96.07% 的编码准确率,远超 ChatGPT-4o Web 界面的 33.82% 的准确率。
  • 仅使用增强的 RAG 就能提升相对于基线检索方法的准确性(例如,从 GPT-3.5-NK 到 GPT-3.5-Full)。
  • 当与增强的 RAG 结合时,少样本提示能够显著提升准确性(例如从 45.09% 提升到 81.37%)。
  • RAG 友好型的知识库文档与语法检查/错误报告在可靠性与准确性方面有实质性提升(例如,将 RAG 友好文档与仅用户手册比较时,准确率为 75.49% 对 60.29%)。
  • 准确性提升在各技术之间具有累积效应,多个组件共同促成顶级表现(GPT-4o-Full 达到 96.07%)。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。