FOSTER: First-order Dataset Distillation for Text-based Sequential Recommendation

Hung Vinh Tran, Tong Chen, Xinyi Gao, Junliang Yu, Julien Monteil, Hongzhi YinarXiv 2026

TL;DR

Text-based sequential recommenders deliver high accuracy by incorporating item metadata, but their training is notoriously slow due to heavy language model encoders. FOSTER overcomes this bottleneck with a highly efficient first-order dataset distillation framework, compressing massive interaction logs into as few as 20 synthetic sequences while matching or exceeding full-dataset performance.

What Problem Does This Paper Address?

Modern sequential recommender systems are moving away from simple item IDs and instead leveraging text encoders (like BERT or LLMs) to process item titles and descriptions. While this solves the classic "cold-start" problem for new items, it introduces a massive computational burden: training requires repeatedly passing tokenized text through heavy language models.

Dataset distillation—compressing a massive dataset into a tiny, highly informative set of synthetic samples—offers a way out. However, applying it to text-based recommendation introduces two major hurdles:

  1. The Vocabulary Scale: Existing distillation methods represent synthetic interactions as dense probability distributions over the entire item catalog, requiring expensive embedding calculations for every single item at every step.
  2. The Bi-level Optimization Trap: Standard distillation relies on Backpropagation Through Time (BPTT), which requires unrolling gradients over multiple training steps. This is prohibitively expensive and memory-intensive for large text-based catalogs.

FOSTER (First-order dataset distillation for Text-based Sequential Recommendation) is designed to break these efficiency barriers.

Methods

FOSTER achieves scalable and effective dataset distillation through three novel components:

  1. Stochastic Item Subset Sampling: Instead of calculating sequence probabilities across the entire item catalog at each inner training step, FOSTER uniformly samples a small random subset of items ($N \ll |V|$). This drastically slashes per-step memory and computational overhead.
  2. First-Order Optimization with Trajectory Anchoring: To escape expensive bi-level gradient computations, the authors reformulate dataset distillation as a single-level constrained optimization problem. To keep the training stable, they introduce a trajectory-anchored parameter reset that periodically re-initializes the model weights using checkpoints from a pre-recorded real training trajectory.
  3. Distributional Hypothesis Alignment Regularization ($L_{reg}$): Recommender models frequently share weights between input and output layers (embedding tying). FOSTER introduces a regularization loss that ensures semantically similar items maintain similar co-occurrence patterns within the synthetic sequences, preserving vital real-world data relationships.
Figure 1: (a) Overview of our proposed pipeline. Given real dataset D , we distill it into a compact synthetic dataset S via stochastic item sampling, a single-level computational graph with inner/outer variable updates, and a regularization loss Lreg. (b) Comparison of BOME and BPTT unrolling strategies, illustrating how BOME avoids full trajectory backpropagation by using constraint q.

Datasets

The authors evaluated FOSTER on three public recommendation benchmarks:

  • Amazon Games (559,128 interactions, 35,995 items)
  • Amazon Foods (251,085 interactions, 45,833 items)
  • Yelp (214,722 interactions, 5,927 items, filtered to Nashville city)

All datasets were pre-processed using a standard 5-core filter and split chronologically into 8:1:1 training, validation, and testing sets.

Key Insights and Ideas

  • Escaping the Bi-level Trap: Traditional bi-level optimization requires differentiating through the entire inner training loop. By treating the inner-loop optimality as a constraint and utilizing stop-gradients, FOSTER eliminates the need for expensive second-order derivatives.
  • The Power of Resets: If the synthetic dataset and model parameters are co-optimized from scratch without constraints, the synthetic data quickly overfits to a specific trajectory. Periodically resetting model parameters to a real training trajectory prevents this drift, forcing the synthetic data to capture generalized, transferable recommendation patterns.
Effect of periodic reset on bilevel distillation
  • Data Density Over Volume: Remarkably, models trained on just 20 distilled sequences can outperform those trained on the full dataset. This suggests that dataset distillation acts as an effective noise filter, concentrating the most critical collaborative filtering signals.

Key Results

  • Performance Match with Tiny Data: On the Games and Foods datasets, FOSTER matched or exceeded full-dataset performance using just 20 synthetic sequences. For example, on Games, FOSTER achieved a Recall@10 of 0.0386 compared to the full dataset's 0.0350.
  • Massive Efficiency Gains: Compared to the state-of-the-art sequential distillation baseline (TD3), FOSTER achieved a 25.46× memory reduction on the Foods dataset, requiring only 1,296 MB of VRAM versus TD3's 5,004 MB (and completely avoiding the Out-Of-Memory errors TD3 suffered when scaling to the full item catalog).
  • Cross-Architecture Transferability: Synthetic data distilled using a lightweight TinyBERT encoder successfully trained a much larger downstream model (Qwen3-4B). On the Foods dataset, training on FOSTER's distilled data cut total training time from 13.4 hours down to just 1.2 hours while maintaining competitive accuracy.

Limitations and Future Work

  • Hyperparameter Sensitivity: FOSTER introduces several sensitive hyperparameters, including the number of inner steps ($T$), the reset interval ($R$), and the sampled item size ($N$), which currently require manual validation effort to tune.
  • The Long-Tail Challenge: On datasets with sharp tail cutoffs (like Yelp), the synthetic sequences tend to collapse toward popular items because the sparse tail provides weak gradient signals during optimization.
  • LLM Transfer Gap: While transfer learning to larger models is highly efficient, a noticeable performance gap still remains when transferring distilled data from small encoders to massive LLMs due to differences in how they represent text semantics.

Summary updated

BibTeX
@misc{tran2026foster,
  author = {Hung Vinh Tran and Tong Chen and Xinyi Gao and Junliang Yu and Julien Monteil and Hongzhi Yin},
  title = {{FOSTER: First-order Dataset Distillation for Text-based Sequential Recommendation}},
  year = {2026},
  eprint = {2605.30772},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.30772},
}
Figure