Language models answering questions in a long conversation have a context problem. They need earlier turns to resolve questions like "and what did he do after that?", but every earlier turn and every retrieved passage they read can also pull them off course. Readers built on transformers spread attention softly over everything in the window, and no instruction reliably makes them ignore what is irrelevant. This proposal treats the conversation as a stream of very short texts and gives it a cheap, explicit memory of what it is currently about. Each turn is assigned to exactly one topic. A running belief about the conversation's topic is carried forward from turn to turn and fades over time. That belief then decides which earlier turns and which retrieved passages the reader is allowed to see.
The tools come from an older literature on topic models for tweet streams. In that work, assigning one topic per short post and passing the previous time slice's estimates forward as the prior for the next slice was what made sparse, noisy streams trackable. The bet here is that a conversation is exactly that kind of stream: short, sparse, drifting turns. If so, the same machinery should give a better "what are we talking about now" signal than a fixed recency window or per-turn embedding similarity. The test cases are conversations that digress and later return, and questions that contain almost no content words of their own.
Core Claim
A two-timescale, single-topic Bayesian state of the conversation can serve as a context gate for a reader model. The state is a pair of decaying Dirichlet beliefs, a Dirichlet being a distribution over topic proportions whose parameters act as pseudo-counts. One belief fades fast and tracks the current digression. The other fades slowly and holds the base topic.
The claim is that this gate reduces distraction in long, noisy conversational question answering compared with recency windows and per-turn similarity filtering. It should also come close to LLM query rewriting while making no extra model call.
The claim is narrow and falsifiable. The advantage should come from how the Bayesian update treats low-content turns. A turn like "ok, and then?" has a nearly flat likelihood over topics. Its posterior therefore equals the prior, so it reinforces the current state instead of moving it. An exponential moving average of turn embeddings instead pulls the state toward whatever generic vector "ok, and then?" maps to. If the gains do not concentrate in conversations with many such turns, or in returns to an earlier topic after a digression, the mechanism story is wrong. That would hold even if the headline number looks good.
What Exists and What This Changes
The temporal and single-topic machinery is established for bag-of-words streams. The Topic Tracking Model uses estimates from the previous interval as the mean of the current Dirichlet prior. On-line Trend Analysis with Topic Models adds a fading factor so that accumulated pseudo-counts do not drown out new evidence.
Dynamic Clustering of Streaming Short Documents combines this temporal prior passing with a Dirichlet Multinomial Mixture, a topic model that gives each document exactly one topic. It reports retrieval NDCG of 0.6421 against 0.5936 for the multi-topic tracking model. Dynamic User Profiling for Streams of Short Texts chains per-user topic distributions across several time scales, from a week to a year, and outperforms LDA, dynamic topic models and GSDMM.
These papers supply the method. The design reuses their user-level chaining with "user" replaced by "conversation" and "time interval" replaced by "turn." None of them ever feeds a language model, and none measures distraction. Collaboratively Modeling and Embedding of Latent Topics for Short Texts supplies the remedy for vocabulary sparsity: it mixes word embeddings into the single-topic model, which is needed because conversational turns are shorter than tweets.
The distraction literature motivates the gap and constrains the design. Breaking Focus shows accuracy drops of roughly 45% under semantically coherent distractors; on CommonsenseQA, GPT-4o-mini falls from 85.7% to 22.0%. It also shows that prompting the model to ignore irrelevant text does not work. Any gate therefore has to act before the reader sees the text, not through instructions.
The same paper also limits what this proposal can hope for. Its distractors are on-topic by construction, and a topic gate cannot separate on-topic misleading text from on-topic helpful text. That setting is treated below as a stated failure case, not hidden.
Existing mitigations treat the retrieved pool as static and memoryless. Distraction-aware Answer Selection rescores passages with a generated query likelihood. CompAct compresses passages iteratively. Superposition Prompting prunes parallel document paths. Ext2Gen trains the generator to extract relevant sentences before answering. None of these carries a state across turns.
Self-Knowledge Guided Retrieval Augmentation is the only work in the file that touches time, and it uses TemporalQA only as an evaluation split. Topic-DPR is the closest use of topic models inside a neural pipeline. It conditions retrieval prompts on a static, offline hierarchical LDA. Here the topic structure is online and per-conversation, and it gates reader context rather than shaping retrieval embeddings.
CoQA establishes why history cannot simply be dropped. Human F1 falls from 86.4 to 19.9 without conversation history.
Research Program
The topic layer has two parts. The global part is a single-topic mixture with embedding augmentation in the style of CME-DMM. It is fit once, offline, on short units from the passage domain. Long passages are split into sentence-level chunks so that one topic per unit is a reasonable assumption. This sidesteps the known weakness of single-topic models on multi-faceted long text.
The online part is a per-conversation state. Each turn $t$ gets a topic posterior $q_t(k) \propto \bar{a}_{t-1,k}\, p(\text{turn}_t \mid k)$. Here $p(\text{turn}_t \mid k)$ is the collapsed likelihood of the turn's words under topic $k$, and $\bar{a}_{t-1}$ is the combined prior from the previous turn. Each timescale $s \in \{\text{fast}, \text{slow}\}$ then updates its pseudo-counts as
$$a^{s}_{t,k} = \lambda_s\, a^{s}_{t-1,k} + q_t(k),$$
where $\lambda_s \in (0,1)$ is that timescale's fading factor.
Every candidate context item $x$ is either an earlier turn or a retrieved chunk. It is scored by its predictive likelihood under the current state, normalized by its length $|x|$:
$$s(x) = \frac{1}{|x|}\log \sum_k \big(\omega\, \hat{\pi}^{\text{fast}}_{t,k} + (1-\omega)\, \hat{\pi}^{\text{slow}}_{t,k}\big)\, p(x \mid k).$$
In this score, $\hat{\pi}^{s}_t$ is the normalized $a^{s}_t$, and $\omega$ is the mixing weight between the two timescales. The gate fills a fixed token budget $B$ with the highest-scoring items and keeps their original order.
Three scores are combined only through this budget allocation, never through a learned fusion: the gate score, the retriever score, and a guaranteed slot for the immediately preceding turn. This keeps the method training-free on the reader side.
Parameters $\lambda_{\text{fast}}$, $\lambda_{\text{slow}}$, $\omega$ and the number of topics are tuned on a development split. The tuning budget equals the one given to baselines with free parameters. A separate analysis traces which turns move the state and which do not. This makes the mechanism inspectable in a way attention patterns are not.
Baselines
The naive reference reads everything. The reader gets the full concatenated history and the full retrieved pool, truncated to budget $B$ from the oldest end. Every method uses the same readers. The primary reader is Llama-3.1-8B-Instruct, chosen because Ext2Gen reports on it, and GPT-4o-mini is a second reader. Every method also gets the same retrieval pool and the same $B$.
The first simple baseline is a recency window: keep the last $m$ turns plus the top retrieved chunks, with $m$ tuned on development data. The second is per-turn dense similarity. A cross-encoder reranker scores every candidate against the current question alone and fills $B$ by score. This is the strongest memoryless filter, and it is exactly what fails when the question is elliptical.
The strongest competitor on conversational questions is LLM query rewriting. The reader model itself rewrites the current question into a standalone question from the recent history, and the same reranker then fills $B$. It gets the same development tuning and is charged for its extra call.
Ext2Gen is the strongest existing in-generation distraction method. It reports an average QA score of 0.557 against 0.473 for the default Llama-3.1-8B-Instruct under up to 25 noisy chunks, and it beats RECOMP, CompAct and EXIT. Where its released model can be run, it is used as a reader both with and without our gate, since the two are complementary rather than exclusive.
For conversational history gating under injected noise, there is no reported result found on Lacuna. The closest anchor is CoQA's best reported system, Augmented DrQA, at 65.4 F1 against a human 88.8.
The ablations isolate the key ingredients. Setting $\lambda = 0$ removes temporal smoothing and scores each turn independently. Setting $\lambda = 1$ removes decay. Collapsing to a single timescale removes the two-scale design. Replacing the single-topic model with per-turn LDA mixtures removes the one-topic constraint.
The most important control is an exponential moving average of turn embeddings, both plain and weighted by each turn's content-word mass. This control has the same temporal smoothing without the Bayesian topic structure. Beating the recency window and memoryless reranking is necessary. The claim counts as supported only if the gate also beats both embedding averages on the hard split, by more than the spread across five seeds of distractor construction, and lands within about one F1 point of query rewriting with no extra call.
Why not just…?
Why not just tell the reader to ignore irrelevant turns? Breaking Focus tested exactly this instruction and found it ineffective. Distraction-aware Answer Selection also reports zero-shot readers assigning confidence as high as 0.98 to wrong answers induced by distractors. This prompt is still included as a cheap control, but the evidence says it will not close the gap.
Why not just keep the last few turns? A recency window fails precisely when a conversation returns to a topic after a digression. Turns from the base topic have already scrolled out of the window. The return-to-topic split is built to show this. If recency matches the gate there, conversational drift in these data is too shallow to matter, and that will be reported.
Why not just rewrite the question with the LLM and rerank? This is the real threat. On ordinary conversations it may well match the gate. Two differences are testable. First, the rewriter typically sees only recent turns, so it loses the slow base topic. Second, it costs a full generation per turn. If rewriting matches the gate even on the return-to-topic and low-content splits, the contribution shrinks to a cost saving, and the note will say so.
Why not just average turn embeddings with decay, without any topic model? This alternative carries the same smoothing intuition. The proposal stands or falls on beating it, especially the variant weighted by content. The predicted difference is narrow: uninformative turns should leave the Bayesian state unchanged but drag an embedding average. If the weighted embedding average matches the gate, the conclusion is that temporal smoothing of conversation state matters and topic models do not. That is a useful negative result, and the experiment is designed to make it visible.
Proposed Experiments
The main benchmark is a noisy version of CoQA, built because no streaming-distraction conversational benchmark appears in the file. Each conversation from CoQA keeps its gold questions and answers. Digression blocks of turns borrowed from other conversations are interleaved into it. These come from other domains in the easy split and from the same domain in the hard split.
A return-to-topic split resumes the original thread after a digression. A low-content split selects conversations whose gold questions have few content words.
The retrieval pool for each turn mixes gold-passage chunks with near-miss chunks from other CoQA passages, retrieved by a dense retriever. This mirrors the noisy-chunk protocol of Ext2Gen. The metric is CoQA F1, alongside two diagnostics: the fraction of the token budget spent on gold-thread material, and the number of model calls per turn.
A secondary transfer check builds the same kind of stream from multi-hop questions in the HotpotQA distractor setting. There, BiDAF reaches 58.28 answer F1 against 91.40 for humans. The questions are posed as a sequence of sub-questions, and the other questions' supporting paragraphs act as drifting distractors.
A deliberate failure test injects Breaking Focus-style on-topic distractors into the history. The prediction is that the gate gives little or no help there, since those distractors share the conversation's topic. A gate that appeared to help would itself be suspicious and would be checked for leakage.
Three results would decide the question. First, the gate must beat both embedding-average controls on the hard and return-to-topic splits. Second, its advantage over every baseline should grow with the fraction of low-content turns, which is the signature of the claimed mechanism. Third, the ablation with $\lambda = 0$ should lose most of the gain, which shows that the temporal prior is doing the work rather than the topic model alone. If all three hold, the result supports a principled, inspectable conversation memory that costs no extra model calls. If the first fails, temporal smoothing still helps but the Bayesian topic structure is unnecessary.
References
- Topic Tracking Model for Analyzing Consumer Purchase Behavior
- On-line Trend Analysis with Topic Models: \#twitter Trends Detection Topic Model Online
- Dynamic Clustering of Streaming Short Documents
- Dynamic User Profiling for Streams of Short Texts
- Collaboratively Modeling and Embedding of Latent Topics for Short Texts
- Breaking Focus: Contextual Distraction Curse in Large Language Models
- Improving Zero-shot Reader by Reducing Distractions from Irrelevant Documents in Open-Domain Question Answering
- CompAct: Compressing Retrieved Documents Actively for Question Answering
- Superposition Prompting: Improving and Accelerating Retrieval-Augmented Generation
- Aligning Extraction and Generation for Robust Retrieval-Augmented Generation
- Self-Knowledge Guided Retrieval Augmentation for Large Language Models
- Topic-DPR: Topic-based Prompts for Dense Passage Retrieval
- CoQA: A Conversational Question Answering Challenge
- HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answering