[논문 리뷰] From LLM to Conversational Agent: A Memory Enhanced Architecture with Fine-Tuning of Large Language Models
RAISE는 ReAct 프레임워크를 이중 메모리 아키텍처와 미세 조정(regimen)을 통해 더 맥락 인식 대화 에이전트를 구축하고, real estate ventas에서 평가되어 baseline 에이전트에 비해 개선을 보였다.
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(단기 기억)와 예시의 회수(retrieval 기반 장기 기억)를 결합한 RAISE 아키텍처를 제안한다.
- 대화 선택(Conversation Selection), 씬 추출(Scene Extraction), CoT 완료(CoT Completion), 씬 증강(Scene Augmentation)을 포함한 엔드-투-엔드 에이전트 구축 파이프라인을 자세히 설명한다.
- 미세 조정 데이터 구성 파이프라인을 소개하고 부동산 대화에서 에이전트 성능에 미치는 영향을 시연한다.
제안 방법
- RAISE 아키텍처를 이중 기억 시스템(Scratchpad 및 Example Retrieval)으로 ReAct의 향상으로 제시한다.
- 지각, 계획, 도구 사용, 실행을 처리하는 컨트롤러 루프가 포함된 도구-활용 에이전트 프레임워크를 정의한다.
- 고품질 미세 조정 데이터를 생산하기 위한 데이터 구성 파이프라인(Conversation Selection, Scene Extraction, CoT Completion, Scene Augmentation)을 설명한다.
- 제어성과 효율성을 향상시키기 위해 소형이고 다양한 데이터셋(~1K 샘플)을 활용한 오픈 소스 LLM용 미세 조정 프로토콜을 제안한다.
- 백본으로 GPT-4 및 Qwen-14B-Chat을 사용하여 Act-Only, ReAct, ReAct+Scratchpad, ReAct+Examples, RAISE 간의 프롬프팅 대 미세 조정을 평가한다.
실험 결과
연구 질문
- RQ1이중 기억 시스템(Scratchpad + Example Retrieval)을 추가하는 것이 LLM 기반 에이전트의 맥락 유지 및 대화 품질에 어떤 영향을 미치는가?
- RQ2RAISE 프레임워크 내에서 LLM을 미세 조정하는 것이 부동산 대화 작업에서 프롬프팅 기반 접근법보다 더 우수한 제어성과 및 효율성을 제공하는가?
- RQ3다중 턴의 도구 보강 대화에서 기본 ReAct 변형에 비해 RAISE의 비교 이익은 무엇인가?
- RQ4제안된 데이터 세트 구성 및 씬 증강 파이프라인이 맥락 인식 에이전트를 위한 효과적인 미세 조정 데이터를 생산할 수 있는가?
- RQ5도메인 특정 작업에 미세 조정된 에이전트를 프롬프팅 기반 에이전트와 배포할 때의 실용적 트레이드오프(품질 대 속도)는 무엇인가?
주요 결과
- RAISE는 다중 턴의 맥락 의존적 대화에서 전통적인 에이전트 아키텍처에 비해 우수성을 보인다.
- Fine-tuning within RAISE outperforms prompting-based activation across evaluated frameworks.
- CoT (Chain-of-Thought) reasoning substantially improves understanding and response quality in complex tasks.
- Scratchpad plus Example mechanisms jointly enhance efficiency and naturalness of responses.
- A compact high-quality dataset (~1K samples) can yield strong performance gains in fine-tuned agents.
- Fine-tuned models can achieve better inference efficiency in practical deployments.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.