arXiv:2606.07995cs.CL2026-06

解决超长购物轨迹理解难题,用工具+强化学习让大模型突破上下文限制。

Customer-Agent: Overcoming Context Limitations in Ultra-Long Shopping Trajectories via Tool-Augmented Agents and RLVR

论文配图:Customer-Agent: Overcoming Context Limitations in Ultra-Long Shopping Trajectories via Tool-Augmented Agents and RLVR
图 1 · 摘自论文原文
  • 用外部文件存储轨迹,通过代码工具自主检索解析
  • 在64k token长序列上表现显著优于主流模型
  • 适合做电商个性化推荐与长时序行为分析的研究者

理解用户购物轨迹对实现个性化购物体验至关重要。然而,购物记录常跨越多年,形成极长轨迹,给现有大语言模型带来巨大挑战。现有基准多限于短轨迹,真实平台数据因隐私问题难以获取。为此,我们构建了基于真实商品信息和模拟轨迹的长上下文评估基准ShopTrajQA,包含最高达32k和64k tokens的数据变体,可系统评估模型在不同上下文长度下的鲁棒性。对前沿LLMs的全面评测揭示其在长轨迹推理上的显著性能差距。为此,我们提出客户代理框架(Customer Agent),采用可验证奖励的强化学习(RLVR)训练范式,将轨迹存储于外部本地文件,通过代码解释器交互(如SQL查询)自主检索与解析,有效绕过LLM固定上下文窗口限制。实验表明,该框架在ShopTrajQA上表现优异,并展现出向其他复杂推理任务的泛化能力。

原文摘要 · Abstract (English)

Understanding customer shopping trajectories is essential for enabling personalized shopping experiences. However, shopping records (i.e., customer's search, clicks, purchases, etc.) often span long time horizons over multiple years, resulting in extremely long trajectories that pose significant challenges for existing large language models (LLMs). Despite the importance of this problem, existing benchmarks are limited to short customer trajectories, while real-world trajectories from large e-commerce platforms are rarely accessible due to data privacy constraints. To address this gap, we introduce ShopTrajQA, a long-context evaluation benchmark constructed from real-world product information and simulated shopping trajectories. The dataset includes variants of up to 32k and 64k tokens, enabling systematic evaluation of model robustness under varying context lengths. Through comprehensive benchmarking of frontier LLMs, we identify critical performance gaps in reasoning over long shopping trajectory data. To address these challenges, we propose a Customer Agent Framework for ultra-long context management. Leveraging a Reinforcement Learning with Verifiable Rewards (RLVR) agentic training paradigm, our approach stores trajectories as external local files and trains the agent to autonomously retrieve and parse them through code-interpreter interactions (e.g., SQL queries), effectively bypassing the fixed in-context window constraints of LLMs. Experimental results demonstrate that our framework achieves strong performance for ShopTrajQA and shows generalization to other complex reasoning tasks.

长序列建模智能代理电商推荐RLVR

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。