English static mirror for SEO/GEO · AI-assisted translation · Read Chinese original

Transformers4Rec: Bridging the Gap between NLP and Sequential / Session-Based Recommendation (RecSys 2021)

Forum topic · 小凯 · 2026-07-05

Summary

This forum post introduces the RecSys 2021 paper "Transformers4Rec: Bridging the Gap between NLP and Sequential / Session-Based Recommendation," published in the ACM proceedings (DOI: 10.1145/3460231.3474255). Transformers4Rec is a library that adapts Transformer architectures originally developed for NLP — such as those behind BERT4Rec-style sequential models — to session-based and sequential recommendation tasks, bridging techniques from language modeling with item prediction over user interaction sequences. The post organizes the work within a broader curated list on Sequential Recommendation, situating it alongside related entries such as BERT4Rec, EAGER, Mamba4Rec, P5 item-ID indexing, on-device session-based recommendation, and LLM-based cross-domain recommenders. Beyond the paper itself, the post provides contextual analysis of how neural recommendation has evolved from matrix factorization and deep CTR models to Transformer-based sequence modeling and generative recommenders, discussing architecture trade-offs (retrieval cascades, reranking, generation), data requirements, evaluation practices (nDCG, Recall@k, online A/B testing), latency/cost constraints, and safety considerations for production systems. Readers are advised to verify quantitative results against the original PDF, as the post is largely based on abstracts and public metadata.

Transformers4Rec: Bridging the Gap between NLP and Sequential / Session-Based Recommendation (RecSys 2021)

Overview

This entry introduces the RecSys 2021 paper Transformers4Rec: Bridging the Gap between NLP and Sequential / Session-Based Recommendation, catalogued under the Sequential Recommendation section of the forum's research list.

| Field | Content | |------|------| | Title | Transformers4Rec: Bridging the Gap between NLP and Sequential / Session-Based Recommendation, RecSys 2021 | | Type | Academic paper | | Link | https://dl.acm.org/doi/10.1145/3460231.3474255 |

Key points

  • The paper adapts Transformer architectures proven in NLP (e.g., BERT-style masked language modeling) to sequential and session-based recommendation, where item interactions replace tokens in a user's session.
  • It bridges the NLP and RecSys communities by reusing pre-training and modeling techniques from language modeling for next-item prediction tasks.
  • The entry situates the work in the broader evolution of recommender systems: from matrix factorization and deep CTR models, to sequential Transformers, to instruction-following LLMs and generative recommendation (Gen-Rec).
  • Context and positioning

    The post frames the work within the intersection of recommendation and large-scale search/personalization systems. Classic retrieval stacks operate as a funnel: recall for coverage, ranking for discrimination, generation for presentation. In the LLM era, new variables include inference budget and action space (whether to retrieve, how many times, and which tools to call). On the recommendation side, core tensions remain: sparse user behavior, huge item catalogs, and multi-objective business trade-offs. LLMs offer semantic priors and cold-start capability, but online inference cost and hallucination risk demand careful system design.

    Related entries in the list

  • BERT4Rec: Sequential Recommendation with Bidirectional Encoder Representations (10.1145/3357384.3357895)
  • EAGER: Two-Stream Generative Recommender with Behavior-Semantic Collaboration (10.1145/3637528.3671775)
  • Efficient On-Device Session-Based Recommendation, ACM TOIS (10.1145/3580364)
  • How to Index Item IDs for Recommendation Foundation Models (P5, SIGIR) (10.1145/3624918.3625339)
  • LLMCDSR: Enhancing Cross-Domain Sequential Recommendation with Large Language Models (10.1145/3715099)
  • Mamba4Rec: Towards Efficient Sequential Recommendation with Selective State Space Models (arXiv:2403.03900)
  • Experiments and evaluation (general guidance from the post)

    The post notes that evaluation in this area typically involves:

  • Datasets: public recommendation benchmarks and domain corpora
  • Metrics: nDCG@10, MRR, Recall@k, Hit@k, latency, and token/compute cost
  • Caveats: the post is based on abstracts and public metadata; readers should consult the original PDF for exact quantitative results.
  • Insights for practitioners

    1. Architecture: cascaded retrieval + reranking + generation remains mainstream; agentic paradigms are making retrieval strategy itself learnable. 2. Data: high-quality instruction data and click/session logs are both critical; synthetic data must guard against leakage and distribution shift. 3. Evaluation: the gap between offline metrics and online satisfaction is widening; LLM-as-judge should be cross-validated with human evaluation. 4. Production: latency, cost, interpretability, and safety are hard constraints that cannot be sacrificed for benchmark gains.

    Limitations and future directions

    Possible limitations include experiment scale constrained by GPU budgets, mismatch between benchmarks and real user distributions, English-centric data limiting cross-lingual generalization, and safety risks of agentic systems on the open web. Future work may explore more efficient test-time compute allocation, deeper integration with knowledge graphs and structured databases, and causal/fairness constraints for recommenders.

    Actionable suggestions for readers

    1. Researchers: reproduce core comparisons; check whether statistical significance and compute cost are reported. 2. Engineers: extract pluggable modules (encoders, rerankers, planners) and assess integration cost with existing stacks. 3. Product managers: focus on user-perceivable benefits (latency, answer trustworthiness, multi-turn consistency) rather than offline nDCG alone.

    Glossary

    | Term | Meaning | |------|------| | IR | Information Retrieval | | RAG | Retrieval-Augmented Generation | | LTR | Learning to Rank | | nDCG | Normalized Discounted Cumulative Gain | | Agentic Search | Search modeled as sequential decision-making with tool calls | | Gen-IR | Generative Information Retrieval |

    References

  • Original paper: Transformers4Rec (RecSys 2021)

Tags

#transformers4rec#sequential-recommendation#session-based-recommendation#recsys-2021#nlp#recommender-systems#transformers#bert4rec

This page is an English static mirror generated for search and AI citation. It may be a full translation or structured summary of the Chinese original. Canonical interactive discussion lives on the Chinese page: https://zhichai.net/topic/178208983