INQUIRING LINE

Should a chatbot answer from memory, or stop and look something up — and who decides when?

When should a conversational system choose retrieval over generation?

This explores when a conversational AI should look something up (in documents, or in its memory of earlier turns) rather than answer from what it already knows, and what the corpus says about making that call well.


This explores when a conversational system should fetch outside material, from documents or from earlier in the conversation, and when it should simply answer from what the model already knows. The corpus points to a reframing: this is less a design choice made once and more a decision the system makes again at every step. The clearest evidence is When should language models retrieve external knowledge versus use internal knowledge?, where a model trained to decide at each reasoning step whether to retrieve or rely on its own knowledge gained about 22% in accuracy. Much of that gain came from retrieving less. Unnecessary lookups bring in noise that pulls the answer off course.

So when does retrieval earn its place? One answer is the kind of question being asked. Can long-context LLMs replace retrieval-augmented generation systems? finds that models with very large context windows can match retrieval systems on "find the passage that means this" tasks, but they fail at structured questions that require joining facts across tables. Retrieval with real query machinery still wins there, and a bigger context window doesn't close the gap. A second answer is the cost of being wrong. Can RAG systems refuse to answer without reliable evidence? shows that with messy sources (OCR'd historical newspapers), the winning strategy was to retrieve aggressively and then refuse to answer anything the evidence didn't support. In high-stakes or noisy domains, retrieval works less as a speed-up and more as a check on what the model is allowed to say.

In conversation, "retrieval" also means looking back at your own history, and here the surprise is that more is often worse. Does including all conversation history actually help retrieval? shows that picking which earlier turns to include beats including all of them, because topic switches leave irrelevant material behind. Does retrieved memory quality depend on its functional role? goes further: what matters is what a retrieved memory does, not just how relevant it looks. Memory that clarifies a user's constraints improves accuracy, while off-target memory makes answers worse than having no memory at all. The opposite design, letting one model continuously summarize and regenerate its own memory instead of retrieving it (Can a single model replace retrieval for long-term conversation memory?), removes the lookup step, but quality rises and then falls below a no-memory baseline as repeated compression scrambles details.

The line between retrieval and generation can also blur on purpose. Can RAG systems safely learn from their own generated answers? describes systems that write their own verified answers back into the retrieval corpus, so today's generation becomes tomorrow's retrievable fact. This only works when strict checks keep hallucinations out.

The angle you might not expect: sometimes the right move is neither retrieval nor generation but asking the user. Why do language models fail in gradually revealed conversations? finds that models lose about 39% of their performance when requirements are revealed gradually, because they lock in early guesses. Why do language models respond passively instead of asking clarifying questions? traces this to training that rewards an immediate answer over a clarifying question. If the missing information sits in the user's head rather than in a document, no retrieval policy will find it.


Sources 9 notes

When should language models retrieve external knowledge versus use internal knowledge?

DeepRAG models each reasoning step as a Markov Decision Process where the model learns when to retrieve versus rely on parametric knowledge. The 21.99% improvement comes from better-targeted retrieval and elimination of noise from unnecessary external knowledge.

Can long-context LLMs replace retrieval-augmented generation systems?

The LOFT benchmark shows LCLMs match RAG on semantic retrieval without explicit training, but cannot execute relational queries requiring joins across structured tables. Context length alone cannot bridge this gap.

Can RAG systems refuse to answer without reliable evidence?

A multilingual RAG system for noisy historical newspapers succeeds by aggressively expanding retrieval while constraining generation to only grounded answers. The grounded-refusal prompt prevents hallucination when OCR errors and language drift degrade source quality, trading coverage for integrity.

Does including all conversation history actually help retrieval?

Research shows that automatically selecting relevant previous turns improves retrieval effectiveness more than including all context. Topic switches inject irrelevant information; joint optimization of selection and retrieval beats both full-context baselines and human annotation.

Does retrieved memory quality depend on its functional role?

Retrieved memory type drives response quality more than relevance alone: clarifying memory improves factual accuracy and constraint awareness, while irrelevant memory actively degrades both. Role-aware retrieval and filtering are robustness requirements, not optional optimizations.

Show all 9 sources
Can a single model replace retrieval for long-term conversation memory?

COMEDY merges memory generation, compression, and response into one operation, tracking event recaps, user portraits, and relationship dynamics without vector-DB retrieval. However, empirical work shows continuous reprocessing follows an inverted-U curve, degrading below no-memory baseline due to misgrouping, context loss, and overfitting.

Can RAG systems safely learn from their own generated answers?

Systems can add generated answers to their retrieval corpus when outputs pass entailment verification, source attribution checks, and novelty detection. This prevents hallucinations from polluting future retrievals while allowing genuine knowledge accumulation.

Why do language models fail in gradually revealed conversations?

Across 200,000+ conversations, all major LLMs show 39% average performance drop in multi-turn settings due to locking into incorrect early guesses. Agent mitigations recover only 15-20% of this loss.

Why do language models respond passively instead of asking clarifying questions?

CollabLLM demonstrates that standard RLHF training optimizes for immediate helpfulness, discouraging models from asking clarifying questions or offering multi-turn insights. Multi-turn-aware rewards that estimate long-term interaction value enable active intent discovery and genuine collaboration.

Papers this line draws on 8

The research behind the notes this line reads — ranked by how closely each paper relates.