[论文解读] From LLM to Conversational Agent: A Memory Enhanced Architecture with Fine-Tuning of Large Language Models
RAISE 通过双内存架构和微调方案扩展 ReAct 框架,以构建更具上下文感知能力的对话代理,在房地产销售领域的实际评估中显示出对基线代理的改进。
This paper introduces RAISE (Reasoning and Acting through Scratchpad and Examples), an advanced architecture enhancing the integration of Large Language Models (LLMs) like GPT-4 into conversational agents. RAISE, an enhancement of the ReAct framework, incorporates a dual-component memory system, mirroring human short-term and long-term memory, to maintain context and continuity in conversations. It entails a comprehensive agent construction scenario, including phases like Conversation Selection, Scene Extraction, CoT Completion, and Scene Augmentation, leading to the LLMs Training phase. This approach appears to enhance agent controllability and adaptability in complex, multi-turn dialogues. Our preliminary evaluations in a real estate sales context suggest that RAISE has some advantages over traditional agents, indicating its potential for broader applications. This work contributes to the AI field by providing a robust framework for developing more context-aware and versatile conversational agents.
研究动机与目标
- 在多轮对话中,激发对更具上下文感知能力、可控的基于 LLM 的代理的需求。
- 提出将 Scratchpad(短期记忆)与基于检索的长期记忆示例相结合的 RAISE 架构。
- 详细描述包括会话选择、场景提取、CoT 完成和场景增强的端到端代理构建流程。
- 介绍微调数据构建流程并展示其对房地产对话中代理性能的影响。
提出的方法
- 将 RAISE 架构呈现为对 ReAct 的增强,具备双内存系统(Scratchpad 与示例检索)。
- 定义一个具备工具能力的代理框架,其控制循环处理感知、规划、工具使用和执行。
- 描述一个数据构建流水线(会话选择、场景提取、CoT 完成、场景增强)以生成高质量微调数据。
- 提出一个针对开源 LLM 的微调协议,使用紧凑且多样化的数据集(约 1K 条样本)以提升可控性和效率。
- 评估不同架构(仅行动、ReAct、ReAct+Scratchpad、ReAct+Examples、RAISE)下的提示与微调效果,以 GPT-4 和 Qwen-14B-Chat 作为骨干模型。
实验结果
研究问题
- RQ1引入双内存系统(Scratchpad + 示例检索)如何影响基于 LLM 的代理的上下文维护与对话质量?
- RQ2在房地产对话任务中,RAISE 框架内的对LLM进行微调是否比以提示为主的方法在可控性与效率方面表现更好?
- RQ3在多轮、工具增强的对话中,RAISE 相对于基线 ReAct 变体的比较增益是什么?
- RQ4所提出的数据集构建与场景增强流水线是否能产出对上下文感知代理有效的微调数据?
- RQ5在领域特定任务中部署微调代理与基于提示的代理时,实际的权衡(质量与速度)是什么?
主要发现
- RAISE 在多轮、上下文相关对话中优于传统代理架构。
- 在所评估的框架中,RAISE 内的微调优于基于提示的激活。
- 思维链(CoT)推理在复杂任务中显著提升理解与回答质量。
- Scratchpad 与 Example 机制共同提升响应的效率与自然度。
- 紧凑的高质量数据集(约1K样本)可在微调代理中带来显著性能提升。
- 微调模型在实际部署中可实现更好的推理效率。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。