프로필

설정

불러오는 중…

← 홈

도움말·문의

자주 묻는 질문

어떤 기능에 로그인이 필요한가요?

공개 논문의 해설과 논문 정보, 모델 구조, 관련 논문, 용어는 로그인 없이 볼 수 있습니다. 논문 올리기, 내 보관함, 읽기 기록, 논문 평가, 관심 분야 추천, 메일과 알림은 로그인해야 쓸 수 있습니다.

PDF 파일로도 올릴 수 있나요?

논문은 arXiv나 DOI 링크로 올리고, 해설은 모두에게 공개됩니다. 출처와 이용 조건이 확인되지 않아 해설을 공개할 수 없는 논문은 올릴 수 없습니다. PDF 파일 올리기와 나만 보기는 구독 회원만 쓸 수 있고, 파일로 올린 논문은 나만 보기로만 저장합니다. 제목으로 공식 정보를 찾는 검색은 버튼을 누를 때만 합니다.

그림과 AI 해설은 정확한가요?

그림은 논문 원본만 쓰고 이용 허락이 확인된 것만 보여 줍니다. 해설은 AI가 쓴 글이라 틀릴 수 있습니다. 중요한 주장과 수치, 그림의 맥락은 원문 근거로 확인해 주세요.

저작권 문제를 알리고 싶어요.

이용 조건과 원문 출처는 논문 정보 탭에 있습니다. 문제가 있으면 ‘문의하기’에서 ‘논문 내용·그림·저작권’을 골라 논문 링크와 문제가 되는 부분, 권리를 확인할 수 있는 근거를 보내 주세요. 접수만으로 권리가 확정되거나 바로 삭제되지는 않습니다. 검토 결과는 ‘내 문의’에서 볼 수 있습니다.

비밀번호를 잊었어요.

이메일로 가입했다면 로그인 창의 비밀번호 찾기에서 인증한 이메일로 다시 설정할 수 있습니다. Google, 네이버, 카카오로 가입했다면 그 서비스에서 비밀번호를 바꿔 주세요.

문의할 때 무엇을 적어야 하나요?

어느 화면에서 무엇을 하다 생긴 문제인지 논문 링크와 함께 적어 주세요. 비밀번호, API 키, 인증 코드, 전화번호 같은 개인정보는 적지 마세요. 문의와 답변은 Refivu에 저장되고 ‘내 문의’에서 볼 수 있습니다.

회원탈퇴는 어떻게 하나요?

설정의 내 계정에서 회원탈퇴를 누르세요. 지워지는 내용을 확인하고 본인 확인을 마치면 탈퇴됩니다. 다른 요청은 ‘문의하기’에서 ‘계정’을 골라 남겨 주세요.

논문 해설

Dr.ICL: Demonstration-Retrieved In-context Learning

Dr.ICL: 시연 검색 기반 인컨텍스트 학습

  • 연구 문제 기존 ICL은 고정되거나 무작위인 데모를 주로 사용해, 질의마다 유용한 데모를 고르는 효과가 충분히 검증되지 않았습니다.
  • 연구 방법 BM25와 GTR로 질의별 데모를 검색하고, PaLM-62B 점수로 재순위화한 후보로 과제 맞춤형 데모 검색기를 학습합니다.
  • 주요 결과 PaLM에서 BM25와 GTR 데모는 무작위 데모보다 나은 것으로 보고되며, 학습된 검색기는 one-shot 평균에서 GTR보다 높은 값을 보입니다.

질의별 데모를 고르는 문제

In-context learning(ICL)은 파라미터를 바꾸지 않고 몇 개의 데모를 입력에 넣어 과제를 수행하게 하는 방식입니다. 기존 연구는 고정된 데모나 무작위 데모를 주로 사용해 왔지만, 이 논문은 테스트 질의마다 데모를 고르는 Demonstration-Retrieved In-context Learning(Dr. ICL)을 다룹니다. 검색은 학습 데이터 풀에서 질의와 가까운 데모를 찾는 방식으로 이루어집니다.

논문은 단순한 단어 중첩 기반 검색기인 BM25도 무작위 데모보다 나은 데모를 찾을 수 있는지 묻습니다. 또한 검색 기반 ICL을 지시 학습된 모델과 Chain-of-Thought(CoT) 프롬프팅에까지 확장할 수 있는지 확인합니다.

off-the-shelf 검색기와 학습된 데모 검색기

BM25는 단어 빈도와 역문서 빈도 등을 이용하는 희소 검색기이고, GTR은 T5 기반 듀얼 인코더로 의미적으로 가까운 데모를 찾는 밀집 검색기입니다. 두 검색기 모두 학습 데이터의 질문-정답 쌍을 검색 코퍼스로 사용합니다.

논문은 여기에 더해 과제 맞춤형 데모 검색기를 학습합니다. 먼저 GTR로 질의마다 후보 100개를 검색하고, PaLM-62B로 각 후보가 정답 확률을 얼마나 높이는지 점수화합니다. 이후 상위 후보를 양성 데모, 하위 후보를 어려운 음성 데모로 사용하며, 검색기 점수 s(q,d)=v_q^⊤v_d를 대조 손실로 GTR에서 미세조정합니다.

Figure 2: Pipeline for training demonstration retriever and inference (R for a neural retriever). Figure on the left
shows the procedure of obtaining data to t…

Figure 2 : Pipeline for training demonstration retriever and inference (R for a neural retriever). Figure on the left shows the procedure of obtaining data to train a demonstration retriever: an off-the-shelf retriever takes an input query xq and retrieves top-k (e.g., 100) demonstrations candidates from the training corpus. Then an LLM is used to output the score of the ground truth of yq with each retrieved demonstration and xq. Figure on the right shows the inference pipeline for in-context learning with the trained demonstration retriever.

원문 · CC BY 4.0 · Man Luo, Xin Xu, Zhuyun Dai, Panupong Pasupat, Mehran Kazemi, Chitta Baral, Vaiva Imbrasaite, Vincent Y Zhao · Dr.ICL: Demonstration-Retrieved In-context Learning · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.

PaLM과 Flan-PaLM에서의 검색 데모 비교

PaLM-540B에서 BM25와 GTR로 검색한 데모는 one-shot과 few-shot 설정 모두에서 무작위 데모보다 나은 것으로 보고됩니다. 이 비교는 NQ, ANLI(r3), GSM8k, StrategyQA, AQuA 같은 데이터셋에서 정확 일치 정확도로 측정되었습니다.

Figure 1: The average performance of PaLM and Flan-
PaLM on five datasets, with one and few-shot ICL. Re-
trieved demonstrations given by either BM25 or GTR
yi…

Figure 1 : The average performance of PaLM and Flan- PaLM on five datasets, with one and few-shot ICL. Re- trieved demonstrations given by either BM25 or GTR yield better performance than random demonstrations.

원문 · CC BY 4.0 · Man Luo, Xin Xu, Zhuyun Dai, Panupong Pasupat, Mehran Kazemi, Chitta Baral, Vaiva Imbrasaite, Vincent Y Zhao · Dr.ICL: Demonstration-Retrieved In-context Learning · 원문 그림 인용 · 원본 PDF 1쪽에서 그림 영역을 추출했습니다.
Figure 3: PaLM: One-shot and few-shot inference with three types of demonstrations, random, BM25, and GTR

Figure 3 : PaLM: One-shot and few-shot inference with three types of demonstrations, random, BM25, and GTR.

원문 · CC BY 4.0 · Man Luo, Xin Xu, Zhuyun Dai, Panupong Pasupat, Mehran Kazemi, Chitta Baral, Vaiva Imbrasaite, Vincent Y Zhao · Dr.ICL: Demonstration-Retrieved In-context Learning · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.

Flan-PaLM은 PaLM과 같은 구조를 가지지만 수천 개의 과제로 지시 학습된 모델입니다. 저자들은 이 모델에서도 학습 데이터에서 검색한 데모가 데모가 없거나 무작위 데모를 사용하는 경우보다 나은 결과를 낸다고 보고합니다. 저자들은 이를 학습 데이터가 추론 시점의 검색 자원으로도 쓰일 수 있다는 해석으로 제시하며, 검색 데모가 모델의 지식 위치를 드러내는 효과인지는 추가 증명하지 않습니다.

Figure 4: Flan-PaLM: One-shot and few-shot inference with three types of demonstrations, random, BM25, and
GTR

Figure 4 : Flan-PaLM: One-shot and few-shot inference with three types of demonstrations, random, BM25, and GTR.

원문 · CC BY 4.0 · Man Luo, Xin Xu, Zhuyun Dai, Panupong Pasupat, Mehran Kazemi, Chitta Baral, Vaiva Imbrasaite, Vincent Y Zhao · Dr.ICL: Demonstration-Retrieved In-context Learning · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.

학습된 데모 검색기의 결과

표 2에서 PaLM 기준 Demo-GTR은 GTR보다 평균 성능이 높습니다. one-shot 평균은 Demo-GTR 51.1이고 GTR 49.8입니다. few-shot 평균은 Demo-GTR 54.8, GTR 54.6입니다. 이 결과는 one-shot 설정에서 개선 폭이 더 뚜렷하다는 점을 보여 줍니다.

Table 2: Performance of PaLM using GTR and Demo-
GTR retrieved demonstrations. Demo-GTR consistently
achieves better performance than GTR in one-shot case

Table 2 : Performance of PaLM using GTR and Demo- GTR retrieved demonstrations. Demo-GTR consistently achieves better performance than GTR in one-shot case.

원문 · CC BY 4.0 · Man Luo, Xin Xu, Zhuyun Dai, Panupong Pasupat, Mehran Kazemi, Chitta Baral, Vaiva Imbrasaite, Vincent Y Zhao · Dr.ICL: Demonstration-Retrieved In-context Learning · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

이 표의 비교는 NQ, ANLI(r3), GSM8k에 대한 PaLM 결과입니다. 따라서 이 결과를 모든 데이터셋이나 모든 모델로 일반화하기는 어렵습니다.

검색 방식의 한계와 해석 범위

BM25는 키워드 매칭에 크게 의존하고 문맥 이해가 부족하여 결과의 정확성이 떨어질 수 있다고 서술됩니다. GTR은 의미 이해에 강점이 있지만 메모리와 계산 효율이 낮고 해석 가능성이 부족하다고 설명됩니다.

겹침 분석에서 데모 답과 정답의 겹침 비율은 여러 데이터셋에서 무작위 기준과 비슷하거나 낮게 나타나 검색 이득이 단순한 라벨 식별 때문이라는 설명은 약하게 보입니다. 다만 NQ에서는 겹침이 크게 나타났으며, 저자들은 이 경우 질문이 데모 질문과 의미적으로 같은 경우가 많았다고 보고합니다.

Table 3: Overlapped Ratio of Demonstrations Answers
with Targets: Random represents the probability of
selecting the correct label if we select randomly from
t…

Table 3 : Overlapped Ratio of Demonstrations Answers with Targets: Random represents the probability of selecting the correct label if we select randomly from the space of possible labels.

원문 · CC BY 4.0 · Man Luo, Xin Xu, Zhuyun Dai, Panupong Pasupat, Mehran Kazemi, Chitta Baral, Vaiva Imbrasaite, Vincent Y Zhao · Dr.ICL: Demonstration-Retrieved In-context Learning · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

논문 정보

저자
Man Luo, Xin Xu, Zhuyun Dai, Panupong Pasupat, Mehran Kazemi, Chitta Baral, Vaiva Imbrasaite, Vincent Y Zhao
학회·저널
arXiv · 프리프린트
최초 공개일
2023년 5월 23일
등록일
2026년 11월 6일
수정일
2023년 5월 23일
버전
v1
arXiv
2305.14128
분류
cs.CL · cs.AI
원문 이용 조건
CC BY 4.0
제공 범위
논문 정보, 해설, 허용된 원문 그림

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

초록

In-context learning (ICL), teaching a large language model (LLM) to perform a task with few-shot demonstrations rather than adjusting the model parameters, has emerged as a strong paradigm for using LLMs. While early studies primarily used a fixed or random set of demonstrations for all test queries, recent research suggests that retrieving semantically similar demonstrations to the input from a pool of available demonstrations results in better performance. This work expands the applicability of retrieval-based ICL approaches by demonstrating that even simple word-overlap similarity measures such as BM25 outperform randomly selected demonstrations. Furthermore, we extend the success of retrieval-based ICL to instruction-finetuned LLMs as well as Chain-of-Thought (CoT) prompting. For instruction-finetuned LLMs, we find that although a model has already seen the training data at training time, retrieving demonstrations from the training data at test time yields better results compared to using no demonstrations or random demonstrations. Last but not least, we train a task-specific demonstration retriever that outperforms off-the-shelf retrievers.

원문 인용

Man Luo, Xin Xu, Zhuyun Dai, Panupong Pasupat, Mehran Kazemi, Chitta Baral, Vaiva Imbrasaite, Vincent Y Zhao (2023). Dr.ICL: Demonstration-Retrieved In-context Learning. arXiv:2305.14128v1. https://arxiv.org/abs/2305.14128v1

BibTeX
@misc{luo2023demonstration,
  title = {{Dr.ICL: Demonstration-Retrieved In-context Learning}},
  author = {Man Luo and Xin Xu and Zhuyun Dai and Panupong Pasupat and Mehran Kazemi and Chitta Baral and Vaiva Imbrasaite and Vincent Y Zhao},
  year = {2023},
  eprint = {2305.14128},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.14128v1}
}

관련 논문 보기다른 논문 둘러보기

논문 미리 보기
계정 보안

Google 계정 연결

Google 계정을 연결하면 그 계정으로도 로그인할 수 있습니다.

Refivu

회원탈퇴

Refivu
Refivu

회원가입