arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.11022cs.CLcs.AI
收藏

MultiTEND:一个用于自然语言到 NoSQL 查询转换的多语言基准

MultiTEND: A Multilingual Benchmark for Natural Language to NoSQL Query Translation

The Hong Kong Polytechnic University(香港理工大学);AI Group WeBank Co Ltd(微众银行AI集团);Huawei Technologies Ltd.(华为技术有限公司)

Zhiqian Qin, Yuanfeng Song, Jinwei Lu, Yuanwei Song, Shuaimin Li, Chen Jason Zhang

AI总结:

本文构建覆盖六种语言的 MultiTEND 基准,评估自然语言到 NoSQL 查询生成,并提出融合并行处理、CoT 与 RAG 的 MultiLink 框架,显著提升多语言执行准确率。

摘要:

在大数据时代,面向 NoSQL 数据库的自然语言接口正变得日益重要,它使用户无需深厚的技术专业知识即可与复杂的非结构化数据交互。然而,近期的大多数进展都集中在英语上,导致多语言支持方面存在空白。本文介绍了 MultiTEND,这是首个也是规模最大的自然语言到 NoSQL 查询生成多语言基准,涵盖六种语言:英语、德语、法语、俄语、日语和普通话。借助 MultiTEND,我们分析了跨不同语言结构将自然语言转换为 NoSQL 查询所面临的挑战,包括词汇和句法差异。实验表明,在英语和非英语场景下,性能准确率仍然相对较低;在微调 SLM、零样本 LLM 以及用于 LLM 的 RAG 等场景中存在 4%–6% 的差距。为应对上述挑战,我们提出了 MultiLink,这是一种新颖框架,通过 Parallel Linking Process(并行链接过程)弥合多语言输入到 NoSQL 查询生成之间的差距。该框架将任务分解为多个步骤,整合并行多语言处理、Chain-of-Thought(CoT,思维链)推理和 Retrieval-Augmented Generation(RAG,检索增强生成),以解决多语言 NoSQL 生成中固有的词汇和结构挑战。与最强基线相比,MultiLink 在每种语言的所有指标上均表现出提升,使英语的执行准确率提高约 15%,非英语语言平均提高 10%。

英文摘要:

Natural language interfaces for NoSQL databases are increasingly vital in the big data era, enabling users to interact with complex, unstructured data without deep technical expertise. However, most recent advancements focus on English, leaving a gap for multilingual support. This paper introduces MultiTEND, the first and largest multilingual benchmark for natural language to NoSQL query generation, covering six languages: English, German, French, Russian, Japanese and Mandarin Chinese. Using MultiTEND, we analyze challenges in translating natural language to NoSQL queries across diverse linguistic structures, including lexical and syntactic differences. Experiments show that performance accuracy in both English and non-English settings remains relatively low, with a 4%-6% gap across scenarios like fine-tuned SLM, zero-shot LLM, and RAG for LLM. To address the aforementioned challenges, we introduce MultiLink, a novel framework that bridges the multilingual input to NoSQL query generation gap through a Parallel Linking Process. It breaks down the task into multiple steps, integrating parallel multilingual processing, Chain-of-Thought (CoT) reasoning, and Retrieval-Augmented Generation (RAG) to tackle lexical and structural challenges inherent in multilingual NoSQL generation. MultiLink shows enhancements in all metrics for every language against the top baseline, boosting execution accuracy by about 15% for English and averaging a 10% improvement for non-English languages.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑