논문 해설
Unsupervised Dense Information Retrieval with Contrastive Learning
대조 학습을 활용한 비지도 밀집 정보 검색
- 연구 문제 레이블이 없는 상태에서도 밀집 검색기를 학습해 BM25와 견줄 만한 검색 성능을 낼 수 있는지 묻습니다.
- 연구 방법 문서에서 랜덤 크롭으로 만든 양성 쌍과 MoCo 큐를 사용해 대조 학습으로 bi-encoder를 사전학습합니다.
- 주요 결과 비지도 Contriever는 BEIR에서 15개 중 11개 데이터셋의 Recall@100에서 BM25를 앞서며, MS MARCO fine-tuning 후 BEIR 평균 Recall@100이 67.1로 향상됩니다.
레이블 없는 검색기 학습의 어려움
정보 검색에서 신경망 기반 밀집 검색기(dense retriever)는 MS MARCO처럼 대규모 질의-문서 쌍이 있는 영역에서 강한 성능을 보입니다. 그러나 이러한 학습 데이터를 만들려면 질의와 관련 문서를 사람이 직접 짝짓는 작업이 필요하며, 문서 컬렉션이 수백만 또는 수십억 개에 이르면 이는 사실상 어렵습니다. 그 결과 새로운 도메인이나 영어 이외의 언어에서는 학습 데이터가 부족합니다. 이 상황에서 MS MARCO로 학습한 밀집 검색기를 다른 도메인에 제로샷으로 적용하면, 레이블이 필요 없는 용어 빈도 기반 방법인 BM25에 자주 뒤처집니다. 이 논문은 이 한계를 넘기 위해 레이블 없이 밀집 검색기를 학습할 수 있는지, 그리고 그 성능이 BM25와 견줄 만한지를 묻습니다.
대조 학습으로 두 뷰를 만드는 방법
이 논문은 쿼리와 문서를 각각 같은 BERT 기반 인코더로 임베딩하는 bi-encoder 구조를 사용합니다. 관련도는 두 표현의 내적으로 계산합니다. 학습은 문서 하나에서 두 개의 뷰를 만드는 방식으로 진행됩니다. 이때 독립 랜덤 크롭핑은 한 문서에서 두 스팬을 독립적으로 샘플링해 양성 쌍을 만들며, 두 뷰가 겹칠 수 있다는 점이 특징입니다. 반면 ICT는 하나의 스팬을 쿼리로, 나머지를 키로 삼아 상호 배타적인 두 뷰를 만듭니다. 손실은 InfoNCE 형태로, 쿼리와 양성 키의 점수를 음성 키들과의 점수 합에 대해 정규화하며 온도 파라미터 τ를 포함합니다. 음성 예시는 MoCo로 얻습니다. MoCo에서는 이전 배치의 키 표현을 큐에 저장하고, 키 네트워크는 쿼리 네트워크의 파라미터로부터 지수이동평균으로 갱신됩니다.
따라서 배치 크기를 키우지 않고도 많은 음성 예시를 사용할 수 있습니다.
BEIR와 질문응답에서의 비지도 검색 비교
먼저 MS MARCO fine-tuning 없이 비지도 pre-training 모델 Contriever를 BM25와 비교합니다. NaturalQuestions와 TriviaQA의 오픈 도메인 검색에서 Contriever는 Recall@100 기준으로 BM25에 가까운 성능을 보이며, NaturalQuestions에서는 BM25 대비 3포인트 높습니다. BEIR에서는 Recall@100 기준으로 15개 데이터셋 중 11개에서 BM25를 앞섭니다. 다만 Trec-COVID와 Touche-2020에서는 BM25가 더 높습니다. 저자들은 Trec-COVID가 학습 데이터 수집 시점 이후의 주제라는 점과 Touche-2020의 긴 문서 특성을 이 차이의 원인으로 해석합니다.
한편 nDCG@10은 상위 문서 순위를 더 강하게 평가하므로, 여기서는 Contriever가 비지도 검색기와 BM25 사이의 격차를 크게 줄이지만 BM25를 넘지는 못합니다.

Figure 1 : Unsupervised retrieval. We compare our pre-training without usingany annotated data to REALM (Guu et al., 2020), SimCSE (Gao et al., 2021) and BM25. For SimCSE we report results of the model using RoBERTa large. REALM uses annotated entity recognition data for training. We highlight that our unsupervised pre-training is on par with BM25 but on 2 datasets.
원문 · CC BY 4.0 · Gautier Izacard, Mathilde Caron, Lucas Hosseini, Sebastian Riedel, Piotr Bojanowski, Armand Joulin, Edouard Grave · Unsupervised Dense Information Retrieval with Contrastive Learning · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.
Table 1 :Unsupervised recall@kon the test sets of NaturalQuestions and TriviaQA. For Inverse Cloze Task and Masked Salient Spans we report the results of Sachan et al. (2021). The Masked Salient Spans model uses annotated named entity recognition data. For BM25 we report the results of Ma et al. (2021)
원문 · CC BY 4.0 · Gautier Izacard, Mathilde Caron, Lucas Hosseini, Sebastian Riedel, Piotr Bojanowski, Armand Joulin, Edouard Grave · Unsupervised Dense Information Retrieval with Contrastive Learning · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.
Table 2 :BEIR Benchmark.We report nDCG@10 on the test sets from the BEIR benchmark for bi-encoder methods without re-ranker. We also report the average and number of datasets where a method is the best (“Best on”) over the entire BEIR benchmark (excluding three datasets because of their licence). Bold is the best overall. MS MARCO is excluded from the average. “CE” refers to cross-encoder.
원문 · CC BY 4.0 · Gautier Izacard, Mathilde Caron, Lucas Hosseini, Sebastian Riedel, Piotr Bojanowski, Armand Joulin, Edouard Grave · Unsupervised Dense Information Retrieval with Contrastive Learning · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.
Table 10 :BEIR Benchmark. We report the recall@100 on the test sets from the BEIR benchmark for bi-encoder methods. We report the capped recall@100 on Trec-COVID following the original BEIR setup. Note that using a cross-encoder to re-rank the top-100 documents do not change the recall@100, hence, we do not include these methods in this table. We also report the average and number of datasets where a method is the best (“Best on”) over the entire BEIR benchmark (excluding three datasets because of their licence). Bold is the best overall. On Trec-COVID we report the capped Recall@100, see Thakur et al. (2021) for more details. MS MARCO is excluded from the average.
원문 · CC BY 4.0 · Gautier Izacard, Mathilde Caron, Lucas Hosseini, Sebastian Riedel, Piotr Bojanowski, Armand Joulin, Edouard Grave · Unsupervised Dense Information Retrieval with Contrastive Learning · 원문 그림 인용 · 원본 PDF 18쪽에서 그림 영역을 추출했습니다.MS MARCO fine-tuning과 적은 예시의 효과
pre-training 뒤 MS MARCO로 미세조정하면 BEIR 평균 Recall@100이 65.0에서 67.1로 향상됩니다. 이 결과는 MS MARCO fine-tuning 이후의 값이며, 비지도 모델 자체의 수치와 구분해 읽어야 합니다. 원문은 적은 in-domain 예시에서의 실험도 함께 보고합니다. SciFact, NFCorpus, FiQA의 소규모 학습 세트에서는 Contriever가 BERT의 pre-training보다 좋은 nDCG@10을 보이며, 이 설정에서 BM25보다도 높습니다. 이 결과는 세 데이터셋과 해당 학습 크기에서 얻은 것입니다.

Table 3 :Few-shot retrieval.Test nDCG@10 after training on a small in-domain training set. We compare BERT and our model, with and without an intermediate fine-tuning step on MS MARCO. Note that our unsupervised pre-training alone outperforms BERT with intermediate MS MARCO fine-tuning.
원문 · CC BY 4.0 · Gautier Izacard, Mathilde Caron, Lucas Hosseini, Sebastian Riedel, Piotr Bojanowski, Armand Joulin, Edouard Grave · Unsupervised Dense Information Retrieval with Contrastive Learning · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.
Table 9 :Fine-tuning. We report nDCG@10 after fine-tuning BERT and our model on MS MARCO.
원문 · CC BY 4.0 · Gautier Izacard, Mathilde Caron, Lucas Hosseini, Sebastian Riedel, Piotr Bojanowski, Armand Joulin, Edouard Grave · Unsupervised Dense Information Retrieval with Contrastive Learning · 원문 그림 인용 · 원본 PDF 13쪽에서 그림 영역을 추출했습니다.다국어 검색과 교차 언어 평가
다국어 모델 mContriever는 29개 언어의 CCNet 데이터로 사전학습되며, 초기화는 104개 언어로 학습된 mBERT로 합니다. Mr. TyDi의 Recall@100에서 mContriever는 비지도 설정으로도 BM25를 능가하며, MS MARCO fine-tuning 뒤에는 이 지표에서 최고 성능을 보입니다. 그러나 첫 번째로 검색된 문서의 품질을 강조하는 MRR@100에서는 비지도 mContriever가 여전히 BM25보다 뒤처집니다. 교차 언어 평가인 MKQA에서는 영어 위키백과를 대상으로 다른 언어 질의를 검색하며, MS MARCO로 미세조정한 mContriever가 CORA보다 높은 평균 Recall@100을 보입니다.

Table 4 :Multilingual retrieval on Mr. TyDi.We report MRR@100 and Recall@100 on the test sets of Mr. TyDi. mContriever fine-tuned on MS MARCO is compared against its counterparts without contrastive pre-training using a similar fine-tuning recipe, referred to asmBERT + MS MARCO , as well as a model initialized with XLM-R referred to asXLM-R + MS MARCO . We also report the results after fine-tuning on Mr. TyDi for the model trained on MS MARCO.
원문 · CC BY 4.0 · Gautier Izacard, Mathilde Caron, Lucas Hosseini, Sebastian Riedel, Piotr Bojanowski, Armand Joulin, Edouard Grave · Unsupervised Dense Information Retrieval with Contrastive Learning · 원문 그림 인용 · 원본 PDF 10쪽에서 그림 영역을 추출했습니다.
Table 5 :Cross-lingual retrieval on MKQA.We report the average on all languages included in MKQA for the Recall@100 and the Recall@20, and report the Recall@100 for a subset of languages. Complete results are reported in Table 13 and Table 14 of appendix.
원문 · CC BY 4.0 · Gautier Izacard, Mathilde Caron, Lucas Hosseini, Sebastian Riedel, Piotr Bojanowski, Armand Joulin, Edouard Grave · Unsupervised Dense Information Retrieval with Contrastive Learning · 원문 그림 인용 · 원본 PDF 11쪽에서 그림 영역을 추출했습니다.
Table 13 :Recall@100 on MKQA for cross-lingual retrievalin the setting described in Section 5.3.
원문 · CC BY 4.0 · Gautier Izacard, Mathilde Caron, Lucas Hosseini, Sebastian Riedel, Piotr Bojanowski, Armand Joulin, Edouard Grave · Unsupervised Dense Information Retrieval with Contrastive Learning · 원문 그림 인용 · 원본 PDF 20쪽에서 그림 영역을 추출했습니다.
Table 14 :Recall@20 on MKQA for cross-lingual retrievalin the setting described in Section 5.3.
원문 · CC BY 4.0 · Gautier Izacard, Mathilde Caron, Lucas Hosseini, Sebastian Riedel, Piotr Bojanowski, Armand Joulin, Edouard Grave · Unsupervised Dense Information Retrieval with Contrastive Learning · 원문 그림 인용 · 원본 PDF 20쪽에서 그림 영역을 추출했습니다.MoCo, 데이터 증강, 학습 데이터의 역할
절제 실험은 주로 영어 위키백과에서 사전학습한 모델로 수행됩니다. MoCo와 in-batch 음성 예시를 비교하면 평균 nDCG@10 차이는 작으며, 저자들은 MoCo를 큐 크기만 키워 많은 음성 예시를 쓸 수 있다는 이유로 선택합니다. 데이터 증강에서는 독립 랜덤 크롭핑이 ICT보다 nDCG@10 평균이 높습니다(32.2 대 25.9). 저자들은 이를 쿼리와 키의 분포가 동일해 MoCo 학습이 더 안정적이라는 해석으로 제시하지만, 이 불안정성을 직접 측정한 결과는 아닙니다. 학습 데이터 비교에서는 Wikipedia, CCNet, 두 소스 혼합 사이에 뚜렷한 우열이 없으며, 다양한 CCNet은 FiQA와 Quora에서 이점을 보이고 FEVER에서는 Wikipedia가 더 낫습니다.

Table 6 :MoCo vs. in-batch negatives.In this table, we report nDCG@10 on the BEIR benchmark for in-batch negatives and MoCo, without fine-tuning on the MS MARCO dataset.
원문 · CC BY 4.0 · Gautier Izacard, Mathilde Caron, Lucas Hosseini, Sebastian Riedel, Piotr Bojanowski, Armand Joulin, Edouard Grave · Unsupervised Dense Information Retrieval with Contrastive Learning · 원문 그림 인용 · 원본 PDF 11쪽에서 그림 영역을 추출했습니다.
Figure 2 :Impact of the number of negatives.We report nDCG@10 as a function of the queue size, with and without fine-tuning on MS MARCO. We report numbers using the MoCo framework where the keys for the negatives are computed with the momentum encoder and stored in a queue.
원문 · CC BY 4.0 · Gautier Izacard, Mathilde Caron, Lucas Hosseini, Sebastian Riedel, Piotr Bojanowski, Armand Joulin, Edouard Grave · Unsupervised Dense Information Retrieval with Contrastive Learning · 원문 그림 인용 · 원본 PDF 12쪽에서 그림 영역을 추출했습니다.
Table 7 :Impact of data augmentions.We report nDCG@10 without fine-tuning on MS MARCO.
원문 · CC BY 4.0 · Gautier Izacard, Mathilde Caron, Lucas Hosseini, Sebastian Riedel, Piotr Bojanowski, Armand Joulin, Edouard Grave · Unsupervised Dense Information Retrieval with Contrastive Learning · 원문 그림 인용 · 원본 PDF 13쪽에서 그림 영역을 추출했습니다.
Table 8 :Training data.We report nDCG@10 without fine-tuning on MS MARCO.
원문 · CC BY 4.0 · Gautier Izacard, Mathilde Caron, Lucas Hosseini, Sebastian Riedel, Piotr Bojanowski, Armand Joulin, Edouard Grave · Unsupervised Dense Information Retrieval with Contrastive Learning · 원문 그림 인용 · 원본 PDF 13쪽에서 그림 영역을 추출했습니다.적용 범위와 남은 한계
이 결과는 BEIR의 특정 데이터셋, NaturalQuestions와 TriviaQA, Mr. TyDi, MKQA에서 얻은 것입니다. 비지도 모델은 nDCG@10과 MRR@100에서 BM25를 넘지 못하며, Trec-COVID와 Touche-2020에서는 BM25가 더 강합니다. 또한 MS MARCO fine-tuning 이후의 결과는 지도 데이터를 사용한 설정이므로 비지도 성능과 같은 조건으로 묶을 수 없습니다. 원문에 나타난 MoCo 불안정성 설명은 저자의 해석이며, 이 논문이 직접 측정으로 증명한 결론은 아닙니다.
논문 정보
- 저자
- Gautier Izacard, Mathilde Caron, Lucas Hosseini, Sebastian Riedel, Piotr Bojanowski, Armand Joulin, Edouard Grave
- 학회·저널
- arXiv · 프리프린트
- 최초 공개일
- 2021년 12월 16일
- 등록일
- 2026년 11월 5일
- 수정일
- 2022년 8월 29일
- 버전
- v4
- arXiv
- 2112.09118
- 분류
- cs.IR · cs.AI · cs.CL
- 원문 이용 조건
- CC BY 4.0
- 제공 범위
- 논문 정보, 해설, 허용된 원문 그림
AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.
초록
Recently, information retrieval has seen the emergence of dense retrievers, using neural networks, as an alternative to classical sparse methods based on term-frequency. These models have obtained state-of-the-art results on datasets and tasks where large training sets are available. However, they do not transfer well to new applications with no training data, and are outperformed by unsupervised term-frequency methods such as BM25. In this work, we explore the limits of contrastive learning as a way to train unsupervised dense retrievers and show that it leads to strong performance in various retrieval settings. On the BEIR benchmark our unsupervised model outperforms BM25 on 11 out of 15 datasets for the Recall@100. When used as pre-training before fine-tuning, either on a few thousands in-domain examples or on the large MS~MARCO dataset, our contrastive model leads to improvements on the BEIR benchmark. Finally, we evaluate our approach for multi-lingual retrieval, where training data is even scarcer than for English, and show that our approach leads to strong unsupervised performance. Our model also exhibits strong cross-lingual transfer when fine-tuned on supervised English data only and evaluated on low resources language such as Swahili. We show that our unsupervised models can perform cross-lingual retrieval between different scripts, such as retrieving English documents from Arabic queries, which would not be possible with term matching methods.
원문 인용
Gautier Izacard, Mathilde Caron, Lucas Hosseini, Sebastian Riedel, Piotr Bojanowski, Armand Joulin, Edouard Grave (2021). Unsupervised Dense Information Retrieval with Contrastive Learning. arXiv:2112.09118v4. https://arxiv.org/abs/2112.09118v4
BibTeX
@misc{izacard2021unsupervised,
title = {{Unsupervised Dense Information Retrieval with Contrastive Learning}},
author = {Gautier Izacard and Mathilde Caron and Lucas Hosseini and Sebastian Riedel and Piotr Bojanowski and Armand Joulin and Edouard Grave},
year = {2021},
eprint = {2112.09118},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2112.09118v4}
}