2025-09-09 · 进阶 · 机器学习 · 自然语言处理

Guided Decoding and Its Critical Role in Retrieval-Augmented Generation

本文研究了在检索增强生成(RAG)系统中,引导解码在确保输出结构化并减少幻觉方面的关键作用,并通过比较三种方法(Outlines、XGrammar和LM Format Enforcer)在不同多轮提示设置下的表现,提供了对它们性能和适用性的见解。

更新于 2025-09-09。作者:Özgür Uğur、Musa Yılmaz、Esra Şavirdi、Özay Ezerceli、Mahmut El Huseyni、Selva Taş、Reyhan Bayraktar。

中文摘要

大型语言模型(LLMs)在各种应用中的集成推动了结构化和可靠响应的需求。在检索增强生成(RAG)系统中,一个关键挑战是确保输出与预期格式一致的同时,最大限度地减少幻觉。本研究考察了引导解码在RAG系统中的作用,比较了在不同多轮提示设置(0轮、1轮和2轮)下三种方法:大纲、XGrammar和LM格式执行器。通过评估成功率、幻觉率和输出质量,我们提供了关于它们性能和适用性的见解。我们的发现揭示了多轮交互如何影响引导解码,揭示了可能影响特定用例方法选择的意外性能变化。这项工作推进了对RAG系统中结构化输出生成的理解,既提供了理论见解,也为LLM部署提供了实际指导。

英文摘要

The integration of Large Language Models (LLMs) into various applications has driven the need for structured and reliable responses. A key challenge in Retrieval-Augmented Generation (RAG) systems is ensuring that outputs align with expected formats while minimizing hallucinations. This study examines the role of guided decoding in RAG systems, comparing three methods, Outlines, XGrammar, and LM Format Enforcer, across different multi-turn prompting setups (0-turn, 1-turn, and 2-turn). By evaluating success rates, hallucination rates, and output quality, we provide insights into their performance and applicability. Our findings reveal how multi-turn interactions influence guided decoding, uncovering unexpected performance variations that can inform method selection for specific use cases. This work advances the understanding of structured output generation in RAG systems, offering both theoretical insights and practical guidance for LLM deployment.

解读

一句话总结

本文研究了在检索增强生成(RAG)系统中,引导解码在确保输出结构化并减少幻觉方面的关键作用,并通过比较三种方法(Outlines、XGrammar和LM Format Enforcer)在不同多轮提示设置下的表现,提供了对它们性能和适用性的见解。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt