paper-with-me

Papers

In-Context Optimization for Retrieval-Augmented Generation: A Gradient-Descent Perspective

2026-05-25 · Mingchen Li, Jiatan Huang, Chuxu Zhang, Liang Zhao, Hong Yu arxiv

In-context learning has recently been linked to implicit gradient descent in linear self-attention models, suggesting that context can induce a forward-pass update. Retrieval-augmented generation (RAG) also relies on context, but retrieved documents are usually treated as static evidence rather than signals for adaptation. We study RAG as an in-context optimization process. First, we show that one linear self-attention layer can implement one gradient-descent step on a unified linearized RAG objective covering both projection-based and dot-product retrieval interfaces. This gives an exact regime where retrieval-augmented prediction and in-context optimization coincide. We use this result not as a literal model of LLM computation, but as a guide for adapting the interaction between queries and retrieved evidence. We then test the boundary of this correspondence: it remains stable under controlled linear extensions, but becomes feature-distribution dependent under nonlinear architectures. Finally, we turn this view into a lightweight method for frozen RAG LLMs. The method keeps the retriever and backbone fixed, and predicts a context-conditioned update to a generator-side evidence-use interface. Across seven QA benchmarks, two retrievers, and two frozen LLM backbones, this forward-only update improves a shared-interface baseline, transfers to held-out tasks, and approaches test-time gradient adaptation at much lower per-query cost.

📄 PDF Abstract BibTeX arXiv:2605.26356

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

DioR: Adaptive Cognitive Detection and Contextual Retrieval Optimization for Dynamic Retrieval-Augmented Generation

2025-04-14 · Hanghui Guo, Jia Zhu, Shimin Di, Weijie Shi 외

Dynamic Retrieval-augmented Generation (RAG) has shown great success in mitigating hallucinations in large language models (LLMs) during generation. However, existing dynamic RAG methods face significant limitations in t…

RAGRetrievalRetrieval-augmented Generation

CLaRa: Bridging Retrieval and Generation with Continuous Latent Reasoning

2025-11-24 · Jie He, Richard He Bai, Sinead Williamson, Jeff Z. Pan 외 arxiv

Retrieval-augmented generation (RAG) enhances large language models (LLMs) with external knowledge but still suffers from long contexts and disjoint retrieval-generation optimization. In this work, we propose CLaRa (Cont…

Question Answering

Towards Optimizing a Retrieval Augmented Generation using Large Language Model on Academic Data

2024-11-13 · Anum Afzal, Juraj Vladika, Gentrit Fazlija, Andrei Staradubets 외

Given the growing trend of many organizations integrating Retrieval Augmented Generation (RAG) into their operations, we assess RAG on domain-specific data and test state-of-the-art models across various optimization tec…

In-Context LearningLanguage ModelingLanguage ModellingLarge Language Model+3

Metadata-Driven Retrieval-Augmented Generation for Financial Question Answering

2025-10-28 · Michail Dadopoulos, Anestis Ladas, Stratos Moschidis, Ioannis Negkakis arxiv

Retrieval-Augmented Generation (RAG) struggles on long, structured financial filings where relevant evidence is sparse and cross-referenced. This paper presents a systematic investigation of advanced metadata-driven Retr…

Question Answering

RPO: Retrieval Preference Optimization for Robust Retrieval-Augmented Generation

2025-01-23 · Shi-Qi Yan, Zhen-Hua Ling

While Retrieval-Augmented Generation (RAG) has exhibited promise in utilizing external knowledge, its generation process heavily depends on the quality and accuracy of the retrieved context. Large language models (LLMs) …

MemorizationRAGResponse GenerationRetrieval+1