NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DUQGen: Effective Unsupervised Domain Adaptation of Neural Rankers by Diversifying Synthetic Query Generation

Ramraj Chandradevan, Kaustubh D. Dhole, Eugene Agichtein

Introduction

Modern information retrieval relies heavily on neural rankers—models like BERT or T5—to determine document relevance. While these models excel in general-purpose web search, they frequently suffer from domain shift when applied to specialized fields such as medicine, law, or finance. Traditionally, overcoming this shift requires fine-tuning on thousands of human-labeled query-document pairs, a process that is often prohibitively expensive.

Recent research has explored using Large Language Models (LLMs) to generate synthetic training data. However, these methods typically require millions of generated queries to be effective or fail to capture the full breadth of the target domain. DUQGen (Diversified Unsupervised Query Generation) addresses these challenges by prioritizing data quality and diversity over raw volume, achieving state-of-the-art results with significantly less data.

The DUQGen Framework

DUQGen is an unsupervised framework designed to adapt neural rankers to new domains using a small, highly diverse set of synthetic training data. The pipeline operates in four distinct stages, moving from an unlabelled target corpus to a fine-tuned ranker.

The DUQGen pipeline: from target corpus clustering to fine-tuned neural ranker.
  1. Collection Document Clustering: To ensure the model encounters the full variety of topics within a domain, DUQGen uses a text encoder (such as Contriever) to generate embeddings for the entire corpus. These embeddings are then grouped into clusters using K-Means.
  2. Diversified Document Selection: Rather than random sampling, DUQGen employs Maximal Marginal Relevance (MMR) to select documents for query generation. MMR balances two objectives: selecting documents that represent their cluster (similarity to the centroid) and ensuring those documents are distinct from one another (diversity).
  3. Synthetic Query Generation: For each selected document, an LLM (e.g., Llama-2-7B) generates a relevant query. To align the LLM with the specific domain's style, the authors use 3-shot in-domain prompting, providing only three human-written examples of domain-specific queries.
  4. Negative Mining and Fine-tuning: The synthetic queries are paired with "hard negatives"—documents that are topically similar but irrelevant—to fine-tune neural rankers like MonoT5 or ColBERT.

Experimental Results

The authors evaluated DUQGen using the BEIR benchmark, the standard for zero-shot information retrieval, which spans 18 diverse datasets including Bio-Medical (COVID-19), Finance (FiQA), and Social/Q&A (Quora).

Performance comparison of DUQGen against baselines across the BEIR benchmark.

Key Findings

  • Efficiency and Scalability: DUQGen outperformed previous state-of-the-art methods (like Promptagator++) while using only 1,000 high-quality, diverse pairs—a 1,000x reduction in data requirements compared to methods using 1,000,000 pairs. This demonstrates that the bottleneck in domain adaptation is coverage and diversity, not just data volume.
  • Superior Performance: DUQGen beat zero-shot baselines and existing unsupervised methods on 16 out of 18 BEIR datasets, achieving an average relative improvement of 4% across the benchmark.
  • The Role of Clustering: Ablation studies showed that without clustering (K=1), performance often fell below zero-shot baselines. Clustering acts as a critical map for the domain space, preventing the synthetic data from being overly narrow.

Conclusion

DUQGen demonstrates that "less is more" in the context of unsupervised domain adaptation. By combining document clustering with diversity-aware sampling and few-shot LLM prompting, the framework provides a cost-effective and highly efficient path for deploying advanced neural rankers in specialized domains. Future work will likely focus on reducing sensitivity to specific prompt wording and implementing robust safety filters for LLM-generated content.

Summary updated

BibTeX
@inproceedings{chandradevan2024duqgen,
  author = {Ramraj Chandradevan and Kaustubh D. Dhole and Eugene Agichtein},
  title = {{DUQGen: Effective Unsupervised Domain Adaptation of Neural Rankers by Diversifying Synthetic Query Generation}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.naacl-long.413},
}
Figure