LoopRec:为序列推荐引入按条目自适应递归深度
Think Harder Where It Matters: Item-Level Adaptive Recursion for Sequential Recommendation
一篇推荐系统的论文,思路挺巧:不是给用户历史里每个商品都算同样深度,而是让模型自己决定哪些商品多想几步、哪些早点出结果,代码也开源了。
论文针对序列推荐中所有交互条目统一分配计算量的默认做法,提出两条诊断结论:同一序列内条目的计算需求差异巨大,多数条目浅层处理后即收敛;固定分配会浪费算力并牺牲推荐质量。作者提出 LoopRec,用权重共享模块递归处理,每层递归边界由轻量门控对每个条目独立做退出或继续的二元决策,无需辅助深度标签。在公开基准和四类骨干架构上,LoopRec 稳定超过同等计算量的固定深度版本。分析显示低频条目和更近的交互自然获得更深计算,与 oracle 分析一致。
Think Harder Where It Matters: Item-Level Adaptive Recursion for Sequential Recommendation
Existing sequential recommenders usually allocate a fixed computational budget to every item in a user's interaction history, regardless of the item's contribution to the final prediction. We challenge this de facto design with two diagnostic findings. (1) Non-uniform computational need: items within the same sequence vary drastically in how much computation they require. Most converge after shallow processing while a critical minority only stabilizes at full depth. (2) Suboptimality of fixed allocation: given oracle access to the target item, a non-uniform depth assignment consistently outranks the fixed one, indicating that existing uniform computation both wastes capacity on already-converged items and sacrifices overall recommendation quality. These observations motivate a shift from fixed-depth computation to item-level adaptive reasoning. To this end, we propose LoopRec. LoopRec recursively applies a single weight-shared block and introduces a lightweight gate at each recursion boundary that makes a binary exit-or-continue decision for every item independently. Items whose representations have sufficiently matured exit early, while those requiring deeper reasoning continue to subsequent recursions. This design converts the fixed global depth into a learned, per-item property without auxiliary depth labels, and is readily adaptable to diverse backbone architectures. Extensive experiments on public benchmarks with four backbone families demonstrate that LoopRec consistently outperforms matched fixed-depth counterparts. Further analysis reveals that LoopRec's learned allocation exhibits interpretable patterns aligned with our post-hoc oracle analysis: lower-frequency items and more recent interactions naturally receive deeper computation. Our code is available at https://github.com/Elpmis117/LoopRec.