arXiv:2610.36239cs.AIOct 2026

Manuscript Offprint

arXiv:2610.36239

BehaveRec: When Does Long-Term Behavioral History Help Sequential Recommendation? A Study with Session, History, and Community Signals

Aysenur Inan, Reza Yousefi Maragheh, Jayesh Uddhav Kudase, Selene Xu, Kaushiki Nag, Jianpeng Xu, Sushant Kumar

Aysenur Inan, Reza Yousefi Maragheh, Jayesh Uddhav Kudase, Selene Xu, Kaushiki Nag, Jianpeng Xu, Sushant Kumar Walmart Global Tech, Sunnyvale, CA, USA {aysenur.inan, reza.yousefimaragheh, jayeshuddhav.kudase, yue.xu, kaushiki.nag, jianpeng.xu, sushant.kumar}@walmart.com

Abstract—Sequential recommendation models typically predict a user's next action from recent session interactions, which limits personalization when short-term signals are weak or ambiguous. Rather than assuming that incorporating longer-term history and community signals is universally beneficial, we study when it actually helps. We propose BehaveRec, a three-signal framework combining a causal session transformer, a bidirectional User History Encoder (UHE) over a 90-day window, and a GraphSAGE module over a user-user graph built from behavioral embedding similarity rather than item co-occurrence; a learned gate blends the three signals per user.

On an industrial dataset of 137M sequences from 12.6M users, BehaveRec improves R@5 by +3.2% over SASRec, with a larger-capacity SASRec baseline (more parameters than BehaveRec) still trailing by +2.5%, ruling out capacity as the explanation. More importantly, a user-level stratification by history length reveals a clear dose-response relationship: BehaveRec's advantage is negligible below roughly 10 interactions and grows monotonically with history richness, reaching +0.017 R@5 for users with 101+ events. This pattern is corroborated across one industrial and three public datasets spanning history-rich (MovieLens) to history-sparse (Amazon) regimes, where session-only models remain preferable. These headline results, and the resulting deployment threshold, are established for category-level intent prediction; a preliminary, single-run check on the full item-level vocabulary (Section V-I) yields a directionally mixed result and is scoped as an open question rather than a claim. We use these results to derive a practical deployment rule – roughly 20 interactions per user – for when long-term history and behavioral-graph signals are worth their added complexity. Despite this added complexity, BehaveRec remains lightweight: it uses 5.67M parameters and trains on a single GPU in under two days.

Index Terms—Sequential Recommendation, User History Encoding, Behavioral Graph, History-Richness Threshold, GraphSAGE, Industrial Scale, Intent Prediction

I. INTRODUCTION

Recommender systems are central to the user experience of large-scale e-commerce platforms, where predicting a customer's next intent translates directly to measurable business outcomes. The dominant paradigm for sequential recommendation has converged on self-attention-based models such as SASRec [1], which model the causal structure of a user's recent session to identify the most likely next action.

Despite strong aggregate performance, session-only models have a fundamental limitation: they cannot personalize predictions across users who share identical short-term sessions. Consider two customers who both viewed and added a coffee grinder to cart. One is a daily coffee enthusiast with 200 events across coffee equipment and pet dental care; the other is a college student making a one-time purchase. A session-only model assigns both users identical predictions. The session captures what the user is doing right now; it says nothing about who the user is.

This gap motivates the integration of longer-term personal history. User behavior over a 90-day window encodes a behavioral persona: recurring clusters of intent, activity patterns, and category affinities that define a user's preferences independent of any single session. Beyond personal history, behavioral communities offer a complementary signal – users who share similar long-term behavioral personas tend to follow similar transition patterns across intent clusters.

Rather than assuming richer history and community signals are always worth their added modeling and serving complexity, we ask a more specific question: when does long-term behavioral history help session-based recommendation, and by how much? Answering this requires an architecture capable of using such signals, controlled comparisons that isolate their marginal contribution, and an evaluation designed to detect the point at which they stop mattering. We build BehaveRec to serve as this instrument, and use it to conduct a user-level and cross-domain study of history-richness effects at industrial scale. As we show, the answer is not “always” or “never” but a quantifiable dose-response curve (Section V-F) – and we report the cases where the added signal does not help (Sections V-G, V-I) with the same care as the cases where it does.