战场物联网中边缘设备上与数据库的自然语言交互
Natural Language Interaction with Databases on Edge Devices in the Internet of Battlefield Things
AI总结:
本文提出面向IoBT边缘设备的LLM与图数据库工作流,将自然语言转换为Cypher并总结结果,实验显示Llama 3.1 8B最优且准确率提升19.4%。
摘要:
物联网(IoT)在战场上的扩展,即战场物联网(IoBT),为增强态势感知带来了新机遇。为了提升IoBT在关键决策中促进态势感知的潜力,来自这些设备的数据必须被处理成可供消费者使用的信息对象,并按需提供给消费者。为应对这一挑战,我们提出一种工作流,利用自然语言处理(NLP)查询数据库技术并以自然语言返回响应。我们的解决方案采用适合边缘设备尺寸的大型语言模型(LLM)来执行NLP,同时采用图数据库;图数据库非常适合IoBT中普遍存在的动态互联网络。我们的架构使用LLM完成两项工作:将自然语言问题映射为Cypher数据库查询,以及将数据库输出以自然语言总结并返回给用户。我们在一个数据库上针对这两项任务评估了若干中型LLM,该数据库表示来自新墨西哥州拉斯克鲁塞斯Jornada靶场的美国陆军多用途传感区域(MSA)的公开可用数据。我们观察到,Llama 3.1(80亿参数)在所有考虑的指标上均优于其他模型。最重要的是,我们注意到,与现有方法不同,我们的两步方法允许放宽所生成Cypher查询与真值代码之间的精确匹配(EM)要求,并以此实现19.4%的准确率提升。我们的工作流为在边缘设备上部署LLM奠定了基础,从而支持与包含信息对象的数据库进行自然语言交互,以服务于关键决策。
英文摘要:
The expansion of the Internet of Things (IoT) in the battlefield, Internet of Battlefield Things (IoBT), gives rise to new opportunities for enhancing situational awareness. To increase the potential of IoBT for situational awareness in critical decision making, the data from these devices must be processed into consumer-ready information objects, and made available to consumers on demand. To address this challenge we propose a workflow that makes use of natural language processing (NLP) to query a database technology and return a response in natural language. Our solution utilizes Large Language Models (LLMs) that are sized for edge devices to perform NLP as well as graphical databases which are well suited for dynamic connected networks which are pervasive in the IoBT. Our architecture employs LLMs for both mapping questions in natural language to Cypher database queries as well as to summarize the database output back to the user in natural language. We evaluate several medium sized LLMs for both of these tasks on a database representing publicly available data from the US Army's Multipurpose Sensing Area (MSA) at the Jornada Range in Las Cruces, NM. We observe that Llama 3.1 (8 billion parameters) outperforms the other models across all the considered metrics. Most importantly, we note that, unlike current methods, our two step approach allows the relaxation of the Exact Match (EM) requirement of the produced Cypher queries with ground truth code and, in this way, it achieves a 19.4% increase in accuracy. Our workflow lays the ground work for deploying LLMs on edge devices to enable natural language interactions with databases containing information objects for critical decision making.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。