arXiv:2502.03916cs.CLcs.AI2025-02被引 2

用检索增强生成提升大模型对闭源仿真软件的理解能力

Experiments with Large Language Models on Retrieval-Augmented Generation for Closed-Source Simulation Software

  • 用本地小模型结合检索增强生成处理闭源软件
  • 提示词定制使回答准确率显著提升
  • 适合科研机构和小型团队使用

大型语言模型(LLMs)已成为开发与编程中不可或缺的工具,但在处理未知知识时容易产生幻觉,尤其在支持闭源软件应用时更为明显。检索增强生成(RAG)通过结合预训练知识与额外信息,可有效提升响应质量,适用于智能补全、问答、模型摘要、组件解释、组合推理及仿真组件生成等任务。本研究测试现有RAG系统在闭源仿真框架Pasimodo上的表现,重点保障数据安全与知识产权。由于小机构资源有限,优先测试小型本地语言模型。实验显示系统表现良好,但常因信息不足而失败。通过根据提示动态调整输入信息,显著提升了回答质量,证明了RAG在闭源仿真场景的巨大潜力,同时也揭示了信息检索优化的必要性。

原文摘要 · Abstract (English)

Large Language Models (LLMs) are tools that have become indispensable in development and programming. However, they suffer from hallucinations, especially when dealing with unknown knowledge. This is particularly the case when LLMs are to be used to support closed-source software applications. Retrieval-Augmented Generation (RAG) offers an approach to use additional knowledge alongside the pre-trained knowledge of the LLM to respond to user prompts. Possible tasks range from a smart-autocomplete, text extraction for question answering, model summarization, component explaining, compositional reasoning, to creation of simulation components and complete input models. This work tests existing RAG systems for closed-source simulation frameworks, in our case the mesh-free simulation software Pasimodo. Since data protection and intellectual property rights are particularly important for problems solved with closed-source software, the tests focus on execution using local LLMs. In order to enable smaller institutions to use the systems, smaller language models will be tested first. The systems show impressive results, but often fail due to insufficient information. Different approaches for improving response quality are tested. In particular, tailoring the information provided to the LLMs dependent to the prompts proves to be a significant improvement. This demonstrates the great potential and the further work needed to improve information retrieval for closed-source simulation models.

大模型RAG闭源软件仿真

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。