Hallucination Mitigation for Modelling Electromagnetic Structures With LLMs Using Function Tool-Calling Approach

功能(生物学) 计算机科学 人工智能 遥感 计算机视觉 噪音(视频) 地质学 工程类 钥匙(锁) 特征(语言学)
作者
Dingwei Xi,Puchu Li,Zheng-Hua Tan,Zhen‐Guo Liu,Gert Frølund Pedersen,Ming Shen
出处
期刊: [Institute of Electrical and Electronics Engineers]
卷期号:2: 541-560
标识
DOI:10.1109/jsteap.2026.3731537
摘要

Large language models (LLMs) show considerable potential for controlling electromagnetic (EM) simulation software through scripting interfaces such as the Visual Basic for Applications (VBA) API. However, direct code generation is vulnerable to hallucination, whereby the model produces syntactically plausible but incorrect or non-executable commands because of insufficient grounding in software-specific interfaces and operation requirements. To mitigate this issue, this paper proposes a function tool-calling framework in which frequently used modelling and simulation operations are encapsulated as predefined functions with structured schemas and verified local VBA implementations. The LLM is therefore responsible for selecting the intended function and generating all required arguments rather than producing arbitrary VBA code. The developed tool library supports geometric modelling, parameter adjustment, unit-cell simulation configuration, solver execution, and simulation data extraction, enabling reliable parameterized simulation and structured data acquisition through natural-language interaction. Furthermore, a lightweight hierarchical multi-agent strategy with a mode-switching mechanism is introduced for complex tasks. It separates common-mode and array-mode function sets and automatically augments array-related prompts, thereby reducing interference from irrelevant candidate tools. The proposed framework is evaluated using ten models from OpenAI, Qwen, and Anthropic over 720 common-mode and 390 array-mode test cases, where a result is considered correct only when both the intended function and all required arguments are correctly returned. In common mode, the Claude models achieve accuracies of 98.89%–99.58%, the OpenAI models achieve 97.36%–99.03%, and the Qwen models achieve 94.31%–96.39%. In array mode, most models maintain accuracies above 95%, while the distractor-tool experiment demonstrates that enlarging the candidate tool set can cause strongly model-d...
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
Hh完成签到,获得积分10
刚刚
田様的应助被牟前苇采纳,获得10
刚刚
Txuan完成签到,获得积分10
刚刚
yang完成签到,获得积分10
刚刚
福袋子完成签到,获得积分10
刚刚
1秒前
cdercder的应助被wang采纳,获得10
1秒前
MaxZhang发布了新的文献求助10
1秒前
wu完成签到,获得积分10
1秒前
Brylon完成签到,获得积分10
1秒前
yKkkkkk完成签到,获得积分10
2秒前
LIMO完成签到,获得积分10
2秒前
中科路2020完成签到,获得积分10
2秒前
左传琦完成签到,获得积分10
2秒前
你在我安完成签到,获得积分10
2秒前
吃饭加汤发布了新的文献求助10
2秒前
水晶果变萌完成签到 ,获得积分10
2秒前
清澜庭完成签到,获得积分10
2秒前
3秒前
huang完成签到,获得积分10
3秒前
整齐妙之发布了新的文献求助10
3秒前
ercha完成签到,获得积分10
3秒前
无语的南风完成签到,获得积分10
3秒前
一条摆摆的沙丁鱼完成签到 ,获得积分10
4秒前
科研小白完成签到,获得积分10
4秒前
陈信宏完成签到,获得积分10
4秒前
2567733526完成签到,获得积分20
4秒前
开心万岁完成签到,获得积分10
4秒前
wanci的应助被Jaaay采纳,获得10
5秒前
Jasper的应助被羊肉卷采纳,获得10
5秒前
嘻嘻完成签到,获得积分10
5秒前
七七七完成签到 ,获得积分10
5秒前
哭泣尔安完成签到 ,获得积分10
5秒前
鲸落完成签到,获得积分20
6秒前
6秒前
Pami发布了新的文献求助10
6秒前
xzy998的应助被闪电先生采纳,获得10
7秒前
玩命的糖豆完成签到,获得积分10
7秒前
徐逸发布了新的文献求助10
7秒前
地球发布了新的文献求助10
7秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Current status of early diagnosis of pancreatic cancer 600
Data Driven Casing Collar Feature Detection and Identification for Automated Depth Estimation for Wireline 500
Bonding in Metal(IV) Hexafluorides Examined Using Fluorine K-edge X-ray Absorption Spectroscopy 500
病理集団の構造 : 親分乾分集団研究 400
Tutorials in Operations Research: Operations Research and Artificial Intelligence: Better Together 400
Tutorials in Operations Research: Advances in Analytics and Operations Research: Improving Decisions to Secure the Future 400
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 工程类 有机化学 化学工程 生物化学 物理 复合材料 内科学 催化作用 光电子学 人工智能 细胞生物学 无机化学 物理化学 数学
热门帖子
关注 科研通微信公众号,转发送积分 8254228
求助须知:如何正确求助?哪些是违规求助? 9628593
关于积分的说明 22154315
捐赠科研通 7875734
什么是DOI,文献DOI怎么找? 3458695
关于科研通互助平台的介绍 2577277
邀请新用户注册赠送积分活动 2510274