LLM2IR: simple unsupervised contrastive learning makes long-context LLM great retriever

Xiaocong Yang
10/31/2025
cs.IRcs.AIcs.CL

No confident code implementation found for this paper.

Abstract

Modern dense information retrieval (IR) models usually rely on costly large-scale pretraining. In this paper, we introduce LLM2IR, an efficient unsupervised contrastive learning framework to convert any decoder-only large language model (LLM) to an information retrieval model. Despite its simplicity, the effectiveness is proven among different LLMs on multiple IR benchmarks including LoCo, LongEmbed and BEIR. We also find that models with a longer context length tend to have a stronger IR capacity by comparing task performances of models in the same model family. Our work not only provides an effective way to build IR models on the state-of-the-art LLMs, but also shed light on the relationship between information retrieval ability and model context length, which helps the design of better information retrievers.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{yang2025llmir,
  title  = {LLM2IR: simple unsupervised contrastive learning makes long-context LLM great retriever},
  author = {Xiaocong Yang},
  year   = {2025},
  eprint = {2601.05262},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.05262v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2601.05262.svg)](https://codeofpaper.com/paper/2601.05262)

Discussion