LLM Memory & RAG 相关度: 8/10

Learning to Query History: Nonstationary Classification via Learned Retrieval

Jimmy Gammell, Bishal Thapaliya, Yoon Jung, Riyasat Ohib, Bilel Fehri, Deepayan Chakrabarti
arXiv: 2604.07027v1 发布: 2026-04-08 更新: 2026-04-08

AI 摘要

提出一种基于历史数据检索的非平稳分类方法,通过学习检索历史相关样本提升模型鲁棒性。

主要贡献

  • 提出基于检索的非平稳分类框架
  • 引入学习到的离散检索机制
  • 在真实数据集上验证了方法的有效性

方法论

将非平稳分类问题转化为时间序列预测,利用可学习的检索机制从历史数据中检索相关样本,与分类器端到端训练。

原文摘要

Nonstationarity is ubiquitous in practical classification settings, leading deployed models to perform poorly even when they generalize well to holdout sets available at training time. We address this by reframing nonstationary classification as time series prediction: rather than predicting from the current input alone, we condition the classifier on a sequence of historical labeled examples that extends beyond the training cutoff. To scale to large sequences, we introduce a learned discrete retrieval mechanism that samples relevant historical examples via input-dependent queries, trained end-to-end with the classifier using a score-based gradient estimator. This enables the full corpus of historical data to remain on an arbitrary filesystem during training and deployment. Experiments on synthetic benchmarks and Amazon Reviews '23 (electronics category) show improved robustness to distribution shift compared to standard classifiers, with VRAM scaling predictably as the length of the historical data sequence increases.

标签

非平稳分类 检索增强 时间序列预测

arXiv 分类

cs.LG