[논문 리뷰] Demonstrate-Search-Predict: Composing retrieval and language models for knowledge-intensive NLP
DSP는 Demonstrate, Search, Predict 단계를 결합하는 프레임워크를 제안하여 고정된 언어 모델과 검색 모델 간의 정교한 상호작용을 가능하게 하고, 파인튜닝 없이도 지식 집약적 작업에서 최첨단 컨텍스트 학습을 달성합니다.
Retrieval-augmented in-context learning has emerged as a powerful approach for addressing knowledge-intensive tasks using frozen language models (LM) and retrieval models (RM). Existing work has combined these in simple "retrieve-then-read" pipelines in which the RM retrieves passages that are inserted into the LM prompt. To begin to fully realize the potential of frozen LMs and RMs, we propose Demonstrate-Search-Predict (DSP), a framework that relies on passing natural language texts in sophisticated pipelines between an LM and an RM. DSP can express high-level programs that bootstrap pipeline-aware demonstrations, search for relevant passages, and generate grounded predictions, systematically breaking down problems into small transformations that the LM and RM can handle more reliably. We have written novel DSP programs for answering questions in open-domain, multi-hop, and conversational settings, establishing in early evaluations new state-of-the-art in-context learning results and delivering 37-120%, 8-39%, and 80-290% relative gains against the vanilla LM (GPT-3.5), a standard retrieve-then-read pipeline, and a contemporaneous self-ask pipeline, respectively. We release DSP at https://github.com/stanfordnlp/dsp
연구 동기 및 목표
- 태스크 인식적이고 프로그래밍 가능한 LMs와 RMs 간의 상호작용이 단순한 retrieve-then-read 파이프라인을 능가한다는 주장.
- Demonstrations 부트스트랩, 다중 홉 검색 수행, 근거 있는 예측 생성하는 파이프라인을 표현하기 위해 DSP 프레임워크를 도입.
- DSP가 LM 또는 RM 파인튜닝 없이도 지식 집약적 작업에서 최첨단 컨텍스트 학습 결과를 가능하게 한다는 것을 보여준다.
- 엔드태스크 라벨 주도 Demonstration 부트스트래핑을 지원하는 모듈식 변환과 조합 가능한 연산자들을 입증한다.
- 더 광범위한 실험과 재사용을 위해 DSP의 오픈 소스 릴리스를 제공한다.
제안 방법
- Example 데이터타입에서 작동하는 조합 가능한 변환으로 세 단계 DSP (Demonstrate, Search, Predict)를 정의한다.
- Demonstrate를 사용하여 엔드-태스크 라벨로부터의 약한 감독으로 시연을 부트스트랩한다.
- LM이 생성한 쿼리에 의해 구동되는 다중-홉 및 대화형 검색을 수행하기 위해 Search를 활용한다.
- Demonstrations와 검색된 구절들을 사용하여 근거 있는 예측을 생성하고 선택하기 위해 Predict를 사용한다.
- LM 파인튜닝 없이 여러 Demonstration 선택 및 예측 집계 전략(예: self-consistency, PoT, ensemble prompts)을 지원한다.
- Open-SQuAD, HotPotQA, QReCC에서 고정된 GPT-3.5 및 ColBERTv2를 사용하여 DSP를 평가하고 베이스라인 대비 상대 이득을 보고한다.
실험 결과
연구 질문
- RQ1태스크 인식적이고 프로그래밍 가능한 DSP 파이프라인이 지식 집약적 작업에서 일반 인-컨텍스트 학습 및 표준 retrieve-then-read 설정을 능가할 수 있는가?
- RQ2LM과 RM 간의 어떤 변환과 구성이 파인튜닝 없이 다중-홉 및 대화형 추론을 가장 잘 가능하게 하는가?
- RQ3Demonstrations, 다중-홉 검색 전략, 예측 집계가 지식 집약적 NLP에서 근거 제시와 정확도에 어떻게 기여하는가?
- RQ4Demonstration 부트스트래핑과 적응적 Demonstration 선택이 개방 도메인 QA, 다중-홉 QA, 대화형 QA 전반의 강건성을 향상시키는가?
주요 결과
- DSP는 작업 전반에서 일반적인 GPT-3.5 베이스라인에 대해 37–120% 상대 이득을 제공합니다.
- DSP는 표준 retrieve-then-read 파이프라인에 비해 8–39% 상대 이득을 제공합니다.
- DSP는 동시대 self-ask 파이프라인에 비해 80–290% 상대 이득을 제공합니다.
- 저자의 레포지토리에 오픈소스 DSP 구현이 제공됩니다.
- Demonstrate는 엔드-태스크 라벨로부터 중간 단계를 자동으로 주석화하여 수작업 라벨링 필요를 줄입니다.
- 실험은 고정된 모듈과 파인튜닝 없이 개방 도메인 QA, 다중-홉 QA, 대화형 QA를 다룹니다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.