Influential Exemplar Replay for Incremental Learning in Recommender Systems

Xinni Zhang, Yankai Chen, Chenhao Ma, Yixiang Fang, Irwin King

Abstract

Recommender systems face a critical trade-off between adapting to emerging user trends and preserving long-term preferences. Traditional fine-tuning often leads to "catastrophic forgetting," while full retraining is computationally prohibitive for large-scale systems. This paper introduces INFER (INFluential Exemplar Replay), a model-agnostic framework designed for efficient incremental learning. By leveraging influence functions to select and replay a small set of highly impactful historical interactions, INFER mitigates performance decay without the need for costly full-model retraining. Experimental results across four real-world datasets demonstrate that INFER achieves performance comparable to full retraining while significantly reducing computational complexity.

The Challenge of Dynamic Recommendation

Most recommendation engines are trained in a static setting, learning from a fixed snapshot of data. However, real-world user interests shift constantly. When updating these models, engineers typically face two suboptimal choices:

  1. Fine-tuning: Updating only on new data. This is fast but causes the model to quickly forget long-term user habits.
  2. Full Retraining: Training from scratch on all historical and new data. This is accurate but computationally expensive and slow.
Performance decay (AUC and Recall@20) across consecutive time steps for various recommendation models.

As shown in the figure above, standard models experience a significant drop in both AUC and Recall metrics as they encounter consecutive time steps without effective knowledge retention strategies.

The INFER Framework

The authors propose INFER to enable Incremental Learning (IL) by maintaining a small "reservoir" of past interactions and interleaving them with new data during updates. The core innovation lies in the selection process for this reservoir.

Influence-Based Selection

Instead of picking old samples randomly or based on simple statistics like frequency, INFER identifies "influential exemplars." These are samples that, if removed or altered, would have the greatest impact on the model's overall recommendation accuracy.

The INFER workflow, showing the selection of influential exemplars into a reservoir for incremental data integration.

Optimization: INFER-ONCE

While the initial implementation (INFER-Vanilla) uses second-order derivatives (Hessian matrix) to calculate influence, its $O(q^2)$ complexity is impractical for massive neural networks. To solve this, the authors developed INFER-ONCE, which uses a first-order gradient approximation. By analyzing how a specific sample's gradient aligns with the overall model gradient, the system reduces complexity to $O(q)$, making it viable for production environments.

Experimental Evaluation

The framework was evaluated on four diverse benchmarks: Lastfm-2k, Taobao 2014, Gowalla, and Foursquare. These datasets were partitioned chronologically to simulate a real-world production environment.

Key Results

  • Superior Accuracy: INFER-ONCE consistently outperformed simple fine-tuning and standard uniform sampling. In CTR prediction, it improved AUC by up to 5.12% over basic fine-tuning.
  • Closing the Gap: In many scenarios, INFER-ONCE achieved performance nearly identical to "Full-Data Retraining" while using only a tiny fraction of the historical data.
  • Model-Agnosticism: INFER proved effective across various backbones, including DeepFM, TwoTower, and LightGCN, and can be integrated into other incremental models like GraphSAIL to further boost performance.

Conclusion and Future Work

INFER provides a scalable solution for maintaining recommendation quality in streaming data environments. While it nearly solves the gap in CTR prediction, the authors note that a performance gap remains for Top-N ranking tasks. Future research will explore "graph structural influence"—identifying samples based on their connectivity within user-item graphs—and generative replay methods to synthesize influential interactions, potentially reducing storage requirements even further.

Summary updated

BibTeX
@inproceedings{zhang2024influential,
  author = {Xinni Zhang and Yankai Chen and Chenhao Ma and Yixiang Fang and Irwin King},
  title = {{Influential Exemplar Replay for Incremental Learning in Recommender Systems}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i8.28790},
}
Figure