客户代理:通过工具增强代理和RLVR克服超长购物轨迹中的上下文限制
Customer-Agent: Overcoming Context Limitations in Ultra-Long Shopping Trajectories via Tool-Augmented Agents and RLVR
AI总结:
提出ShopTrajQA基准和客户代理框架,利用RLVR训练代理通过代码解释器自主检索解析外部轨迹文件,突破LLM上下文窗口限制,在超长购物轨迹推理中取得强性能。
摘要:
理解客户购物轨迹对于实现个性化购物体验至关重要。然而,购物记录(如客户的搜索、点击、购买等)通常跨越多年时间,形成极长的轨迹,给现有大型语言模型(LLM)带来重大挑战。尽管该问题重要,现有基准仅限于短客户轨迹,而大型电商平台的真实轨迹由于数据隐私限制难以获取。为解决这一差距,我们引入ShopTrajQA,一个基于真实产品信息和模拟购物轨迹构建的长上下文评估基准。数据集包含高达32k和64k token的变体,能够系统评估模型在不同上下文长度下的鲁棒性。通过对前沿LLM的全面基准测试,我们识别出在长购物轨迹数据推理中的关键性能差距。为应对这些挑战,我们提出一种用于超长上下文管理的客户代理框架。利用可验证奖励强化学习(RLVR)代理训练范式,我们的方法将轨迹存储为外部本地文件,并训练代理通过代码解释器交互(如SQL查询)自主检索和解析它们,有效绕过LLM的固定上下文窗口限制。实验结果表明,我们的框架在ShopTrajQA上取得强性能,并展现出对其他复杂推理任务的泛化能力。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。