The “Curious Case of Contexts” in Retrieval‐Augmented Generation With a Combination of Labeled and Unlabeled Data

ABSTRACT With the growing reliance on LLMs for a wide range of NLP tasks, optimizing the use of labeled and unlabeled data for effective context generation has become critical. This work explores the interplay between two prominent methodologies in few‐shot learning: in‐context learning (ICL), which utilizes labeled task‐specific data, and retrieval‐augmented generation (RAG), which leverages unlabeled external knowledge to augment generative models. Since each has its individual limitations, we propose a novel hybrid approach to obtain “the best of both worlds” by dynamically integrating both labeled and unlabeled data towards improving the downstream performance of LLMs. Our methodology, which we call LU‐RAG (labeled and unlabeled RAG), recomputes the scores of top‐ k labeled instances and top‐ m unlabeled passages to refine context selection. Our experimental results demonstrate that LU‐RAG consistently outperforms both standalone ICL and RAG across multiple benchmarks, showing significant gains in downstream performance. Furthermore, we show that LU‐RAG performs better with a semantic neighborhood as compared to a lexical one, highlighting its ability to generalize effectively.

Authors

Institutions

Publication Details

Journal
Wiley Interdisciplinary Reviews Data Mining and Knowledge Discovery
Published
2025-05-29
DOI
https://doi.org/10.1002/widm.70021
Citations
1
Primary Topic
Topic Modeling
Type
article
Field-Weighted Citation Impact
2.48
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

The “Curious Case of Contexts” in Retrieval‐Augmented Generation With a Combination of Labeled and Unlabeled Data

Madhusudan Ghosh, Partha Basuchowdhuri, Sudip Kumar Naskar, Debasis Ganguly et al.
1 citations
Wiley Interdisciplinary Reviews Data Mining and Knowledge Discovery
Topic Modeling
2.48
article

The “Curious Case of Contexts” in Retrieval‐Augmented Generation With a Combination of Labeled and Unlabeled Data

Madhusudan Ghosh, Partha Basuchowdhuri, Sudip Kumar Naskar, Debasis Ganguly, Payel Santra
article en
1 citations

Abstract

ABSTRACT With the growing reliance on LLMs for a wide range of NLP tasks, optimizing the use of labeled and unlabeled data for effective context generation has become critical. This work explores the interplay between two prominent methodologies in few‐shot learning: in‐context learning (ICL), which utilizes labeled task‐specific data, and retrieval‐augmented generation (RAG), which leverages unlabeled external knowledge to augment generative models. Since each has its individual limitations, we propose a novel hybrid approach to obtain “the best of both worlds” by dynamically integrating both labeled and unlabeled data towards improving the downstream performance of LLMs. Our methodology, which we call LU‐RAG (labeled and unlabeled RAG), recomputes the scores of top‐ k labeled instances and top‐ m unlabeled passages to refine context selection. Our experimental results demonstrate that LU‐RAG consistently outperforms both standalone ICL and RAG across multiple benchmarks, showing significant gains in downstream performance. Furthermore, we show that LU‐RAG performs better with a semantic neighborhood as compared to a lexical one, highlighting its ability to generalize effectively.

Wiley Interdisciplinary Reviews Data Mining and Knowledge DiscoveryVol. 15(2)
Indian Association for the Cultivation of Science (IN), Jadavpur University (IN), University of Glasgow (GB)
Openalex Percentile: Top 10%
Topic Modeling
2.48
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

The “Curious Case of Contexts” in Retrieval‐Augmented Generation With a Combination of Labeled and Unlabeled Data — Madhusudan Ghosh, Partha Basuchowdhuri, et al. · Wiley Interdisciplinary Reviews Data Mining and Knowledge Discovery (2025) | TGRS Research Map | TGRS