检索增强模型将参数预测器与非参数记忆相结合,但其在具有概念漂移的流式监督学习中的应用尚不明确。我们研究非平稳环境中的在线分类,并提出Retrieval-Augmented Memory for Online Learning (RAM-OL),这是随机梯度下降的简单扩展,维护一个过去示例的小缓冲区。在每个时间步,RAM-OL在隐藏表示空间中检索当前输入的几个最近邻居,并在当前示例和检索到的邻居上联合更新模型。我们比较了朴素回放变体与一个使用时间窗口、相似度阈值和梯度再加权约束邻居的门控回放变体,以在快速重用相关过去数据与对过时制度的鲁棒性之间取得平衡。从理论角度来看,我们将在有界漂移模型下解释RAM-OL,并讨论检索如何在模式随时间重复时减少适应成本并提高遗憾常数。经验上,我们将在一个简单的在线多层感知机上实例化RAM-OL,并在三个来自电力定价、电力负荷和航班延误数据的真实世界数据流上评估它。在强漂移和周期性漂移的数据流上,RAM-OL将预quential准确率提高约7个百分点,并大幅减少随机种子之间的方差,而在噪声航班数据流上,门控变体接近纯在线基线。这些结果表明,检索增强的记忆是处理概念漂移的在线学习中实用且稳健的工具。
英文摘要:
Retrieval-augmented models couple parametric predictors with non-parametric memories, but their use in streaming supervised learning with concept drift is not well understood. We study online classification in non-stationary environments and propose Retrieval-Augmented Memory for Online Learning (RAM-OL), a simple extension of stochastic gradient descent that maintains a small buffer of past examples. At each time step, RAM-OL retrieves a few nearest neighbours of the current input in the hidden representation space and updates the model jointly on the current example and the retrieved neighbours. We compare a naive replay variant with a gated replay variant that constrains neighbours using a time window, similarity thresholds, and gradient reweighting, in order to balance fast reuse of relevant past data against robustness to outdated regimes. From a theoretical perspective, we interpret RAM-OL under a bounded drift model and discuss how retrieval can reduce adaptation cost and improve regret constants when patterns recur over time. Empirically, we instantiate RAM-OL on a simple online multilayer perceptron and evaluate it on three real-world data streams derived from electricity pricing, electricity load, and airline delay data. On strongly and periodically drifting streams, RAM-OL improves prequential accuracy by up to about seven percentage points and greatly reduces variance across random seeds, while on a noisy airline stream the gated variant closely matches the purely online baseline. These results show that retrieval-augmented memory is a practical and robust tool for online learning under concept drift.
A Systematic Study of Retrieval Pipeline Design for Retrieval-Augmented Medical Question Answering
Department of Mechatronics & Industrial Engineering, Chittagong University of Engineering & Technology(吉大港工程与技术大学机电与工业工程系);Department of Mechanical Engineering, Chittagong University of Engineering & Technology(吉大港工程与技术大学机械工程系)
Long Context Modeling with Ranked Memory-Augmented Retrieval
University of New South Wales(新南威尔士大学);Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));The Hong Kong University of Science and Technology(香港科技大学);University of Southampton(南安普顿大学);Mohamed Bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学)