Reproduce “LazFormer: Scaling Transformers for Industrial Recommendation via Transferable Generative Pre-training” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Xiaodong Li, Alin Fan, Mingyang Li, Yan Xiao, Shichao Nie, Junfeng Zhang, Shaochuan Lin, Zhanming Ou and 2 more

LazFormer combines next-item generative pre-training with industrial ranking by transferring both sparse embeddings and dense Transformer parameters. A zero-initialized residual adapter incorporates ranking-only signals, while request-level sparse attention, history compression, token pruning, and asymmetric multi-epoch training address long-context cost and sparse-embedding overfitting; on Alibaba e-commerce data it improves CTR AUC to 0.7735 and raises online GMV by 9.85%.

Key insights

  • Sparse and dense parameters benefit from different transfer dynamics: repeatedly updating sparse embeddings can cause severe overfitting, whereas accumulating dense ranking updates improves multi-epoch training.
  • Introducing downstream-only features through a residual adapter is more effective than direct concatenation or pre-projection fusion, particularly when conversion-related signals are important.
  • Preserving recent behavior at fine granularity while coarsening older history provides a better accuracy-efficiency trade-off than uniform compression; hybrid attention reaches 3.7–5.1× attention speedups at over 88% sparsity.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.