Yiruo Cheng, Kelong Mao, Tianhao Li, Jiejun Tan, Ji-Rong Wen, Zhicheng Dou
6 min
Abstract
Conversational shopping agents represent a critical consumer-facing application of Large Language Model (LLM)-powered agents, yet how to effectively apply post-training Reinforcement Learning (RL) to optimize such agents remains underexplored. This work investigates RL-based optimization for shopping agents in real-world scenarios, where agents must simultaneously satisfy multiple interdependent objectives spanning objective metrics (product correctness), subjective qualities (persuasiveness), outcome rewards (final response quality), and process rewards (tool efficiency). We present a complete methodology to address this challenge. Specifically, we first construct SmartShopBench, a benchmark that captures diverse shopping intents with a hierarchical evaluation that decomposes complex quality requirements into measurable levels. Building on this evaluation framework, we design Hierarchical Reward Modeling (HRM) to structure mixed reward types through conditional gating that reflects their logical dependencies. To enable efficient training, we further propose Dynamic Contrastive Policy Optimization (DCPO), which balances response quality with operational efficiency through dynamic trajectory selection based on reward and reasoning length. Extensive experiments demonstrate that our RL-trained agent, namely ChatShopBuddy, consistently outperforms larger models relying on generic reasoning, achieving superior stability rather than merely higher peaks. Our work provides valuable guidance for applying RL to real-world conversational agents.
Alex: Stability over power. How do they update the agent?
Sam: For each question, the system generates full paths of thinking, tool uses, and answers—called trajectories. It ranks them by layered rewards and length, then compares best, middle, and worst to improve. This is Dynamic Contrastive Policy Optimization, or DCPO. It boosts quality while keeping responses concise.
Alex: Like selecting winning practice runs that nail basics efficiently.
Alex: How does the agent generate those trajectories—what's the step-by-step setup?
Sam: They adapt a large language model into a shopping agent using an agent harness—a framework for looping through steps. Think of a student researching: plan lookups, grab info from books or web, note it, repeat until ready to summarize.
Alex: It's iterative, not one-shot. What are the repeating steps?
Sam: Each trajectory chains thoughts about next moves, tool calls, and returned info. For the blender, it thinks about price, ice-crushing, and noise; searches products by price and ice; then webs for noise data on matches; finally responds with real picks and reasons. This keeps it methodical, dodging guesses.
Alex: Like a detective gathering clues. What tools?
Sam: Product search for database filters like price or features; web search for extras like reviews; python execute for calculations like bundle costs. These pull verifiable data step-by-step, curbing hallucinations. Combined with layered rewards, a smaller trained model stays more stable than larger untrained ones on constraints.
Alex: The loop forces fact-checking. Does evidence show steadier performance across query types?
Sam: The study suggests yes, especially on constrained requests where generics ignore limits or invent specs. Gating rewards on facts first builds reliable habits over flashy ones—a step toward trustworthy shopping assistants.
Alex: What do the numbers show against bigger models?
Sam: Their trained agent beats larger ones, including step-by-step thinkers. Targeted training trumps size: it passes strict checks about twice as often as a much larger baseline.
Alex: Twice as often—that's a reliability edge. Why so consistent across tries?
Sam: Without full reinforcement, outputs vary due to guesses—succeeding sometimes, failing others. Optimization nearly doubles fully passing responses while cutting quality swings. It instills steady habits.
Alex: Dependable every time, across question types like bundles or comparisons?
Sam: Evidence shows gains in all six types under basics, biggest on tough multi-constraint ones. Reinforcement pushes beyond supervised training alone, suiting real e-commerce chats.
Alex: Larger models with reasoning don't always match?
Sam: Some overthink and miss shopping specifics. Without task rewards, they favor fluency over facts, yielding unstable outputs. This prioritizes trustworthy picks.
Alex: A measured advance for reliable agents.
Alex: Does it stay efficient in steps and time?
Sam: Yes—shorter reasoning chains than alternatives, fewer tool calls, better success with less overall effort.
Alex: Built-in efficiency. What if you remove parts like layered rewards?
Sam: Ablations show each matters: no optimization drops consistent passes sharply; no layers weaken facts; no efficiency reward hurts steadiness.
Alex: The combo is key. Caveats?
Sam: Results link to their setup and graders. Untested in other domains or real stores—the paper flags this.
Alex: Fair. Overall, targeted training lets smaller agents match larger ones in consistency and speed—a practical path for reliable shopping chats.
Sam: Exactly.
Alex: Thanks for breaking it down, Sam. Thanks for listening to ResearchPod.