{"slug": "ecom-rlve-adaptive-verifiable-environments-for-e-commerce-conversational-agents", "title": "Ecom-RLVE: Adaptive Verifiable Environments for E-Commerce Conversational Agents", "summary": "Ecom-RLVE, a framework that extends the RLVE system from single-turn reasoning puzzles to multi-turn, tool-augmented e-commerce conversations. It provides eight verifiable environments—such as product discovery, cart building, and returns—with procedural problem generation, a 12-axis difficulty curriculum, and algorithmically verifiable rewards. The authors train a Qwen 3 8B model using DAPO and present early results showing that environment scaling and adaptive difficulty improve real-world task completion for conversational shopping agents.", "body_md": "Ecom-RLVE: Adaptive Verifiable Environments for E-Commerce Conversational Agents\nTL;DR — We extend the RLVE framework from single-turn reasoning puzzles to multi-turn, tool-augmented e-commerce conversations. EcomRLVE-GYM provides 8 verifiable environments — product discovery, substitution, cart building, returns, order tracking, policy QA, bundle planning, and multi-intent journeys — each with procedural problem generation, a 12-axis difficulty curriculum, and algorithmically verifiable rewards. We train a Qwen 3 8B model with DAPO over 300 steps and present early results demonstrating that environment scaling and adaptive difficulty transfer to agentic, real-world task completion.\nThis project originated in the Pytorch OpenEnv Hackathon and is still evolving, follow us for updates 🔥\nWhy RL for shopping agents?\nLarge language models can hold fluent conversations, yet deploying them as shopping assistants reveals a persistent gap: fluency ≠ task completion. A customer who asks \"find me a USB-C charger under $25 that ships in two days\" needs an agent that invokes the right catalog search, filters on three hard constraints, avoids hallucinating product IDs it never retrieved, and handles follow-ups when the top result goes out of stock.\nSupervised fine-tuning can teach surface-level tool use from demonstrations, but it cannot scale to the combinatorial space of constraint configurations, partial-information dialogues, and multi-step transactional workflows that real e-commerce demands.\nReinforcement learning with verifiable rewards (RLVR) offers an alternative: the agent optimises for outcomes — did the products satisfy the constraints? Was the cart correct? Was the return initiated for the right order line? The challenge is constructing reward functions that are both verifiable (no LLM-as-a-judge subjectivity) and adaptive (difficulty that grows with the policy's capability).\nFrom RLVE-Gym to EcomRLVE-GYM\nRLVE-Gym provides 400 environments for sorting, multiplication, Sudoku, and other algorithmic-reasoning tasks; however, those are all single-turn, text-in / text-out puzzles — extending to agentic domains was left as future work.\nEcomRLVE-GYM fills that gap: we stay in the verifiable regime (e-commerce outcomes can be checked algorithmically) while extending to multi-turn, tool-augmented, agentic conversations — environments where the agent must act (call tools, modify world state) rather than merely reason (produce a text answer) and compensates for the deficiency of the search system.\nEcomRLVE-GYM transforms customer-service outcomes structurally verifiable:\nEvery signal above can be evaluated by a program with access to the hidden ground-truth goal. No human annotation or LLM-as-a-judge is needed.\nWhat a training episode looks like\nBefore we explain the framework, here is what a single EcomRLVE episode looks like at difficulty d = 4\n. The environment generates a hidden goal, a simulated user opens the chat, and the agent must use tools to satisfy the request. Every action is verified algorithmically — no LLM judge required.\nThe reward is fully computed by code: F1 over (product, variant, qty)\ntuples, an efficiency bonus for finishing in fewer turns, and a hallucination check that every recommended product ID was actually retrieved. If the agent had picked the Lightning variant instead of USB-C, the simulated user would have corrected it mid-dialogue — and the F1 would have dropped.\nThe eight environments\nEach environment covers a distinct real-world shopping scenario. The agent must complete the task using tools (catalog search, cart operations, order lookups, policy queries) and is scored by a program — not a human or another LLM.\nEvery environment uses the same three-part reward signal:\n- Task reward — did the agent actually complete the goal? (e.g., were the right products recommended, was the cart correct, was the right order tracked?)\n- Efficiency reward — did the agent complete it without wasting turns? Turns the user caused (asking a follow-up, confirming an action) don't count against the agent — only turns caused by agent mistakes do.\n- Hallucination penalty — did the agent only recommend products it actually retrieved during the session? Recommending product IDs that were never looked up is penalised, so the agent cannot invent results from memory.\nInvalid outputs (malformed JSON, illegal tool calls) trigger an immediate failure score, creating a strong incentive for well-formed responses from step one.\nAdaptive difficulty curriculum\nA single difficulty number d\ncontrols 12 independent aspects of a task simultaneously. This is important because e-commerce conversations are hard in many different ways at once — not just along one dimension.\nHere are four representative difficulty axes:\nThe other eight axes cover turn budget, input noise (typos, slang), context switches, retrieval depth, order-history size, policy complexity, and tool budget. The full breakdown is in the technical report.\nAdaptive scheduling. Each environment tracks the agent's success rate independently and only advances to harder problems once the agent is passing the current level reliably. This keeps every environment training at the agent's capability frontier — avoiding both \"too easy to learn from\" and \"too hard to make progress on\".\nDeep dive: Cart Building (E_CART)\nCart building is a good showcase because it requires the full search → inspect → clarify → act loop, has a binary ground truth, and introduces a challenge absent from most recommendation benchmarks: variant selection.\nTo succeed, the agent must develop five distinct skills:\nThe agent uses six tools to accomplish this:\nThe problem\nThe generator samples 1–5 target products (scaling in difficulty with d\n), each potentially requiring a specific variant (USB-C vs Lightning, Matte vs Glossy) and a quantity > 1. The agent must:\n- Search the catalog to find each product\n- Call\ncatalog.get_variants\nto see available options - Add the correct\n(product_id, variant_id, qty)\ntuples to the cart\nWhy variants matter\nReal product catalogs have sparse variant data — many products have none, and those that do typically vary only by colour or size. To create a richer discrimination task, we synthesize variants at episode initialization:\n- A per-category priority list picks the most natural attribute to vary (electronics →\nconnector_type\n; clothing →size\n; kitchen →material\n). - For each target product, we generate 3 variants: 1 target + 2 plausible distractors. An \"Anker 65W USB-C Charger\" produces\n{USB-C, Lightning, HDMI}\n. - The verifier checks composite keys\n(product_id, variant_id)\n— correct product but wrong variant means the unit is unmatched.\nDifficulty scaling\nAt d = 0\nthe agent adds a single product with no variant complexity — learning the basic catalog.search → cart.add\nworkflow. At d = 6\nit juggles 3 items, nearly all requiring a specific variant, with half needing qty > 1.\nScoring\nThe cart must be exactly right — correct product, correct variant, correct quantity. Partial credit is given for partially correct carts, but a perfect score requires every item to match. If the agent adds the wrong variant, the simulated user corrects it mid-dialogue (\"that's the Lightning version, but I need USB-C\"), giving the agent a chance to self-correct before the episode ends.\nTrajectories: easy vs. hard\nTwo real E_CART episodes from a Qwen 3 8B agent. Same environment, same agent — difficulty alone changes the game.\nAt d=1 the agent solves the task in 3 clean turns. At d=8 it spirals — picking Bamboo instead of Charcoal, XL instead of XS, never fixing the air fryer despite two user corrections, then hallucinating that the variant doesn't exist. This is exactly the kind of multi-step error cascade that the difficulty curriculum surfaces, and that adaptive training should teach the agent to recover from.\nUser simulation\nA verifiable environment needs a user simulator that behaves realistically. We use Qwen3.5 (9.7B) to generate natural, varied user messages rather than canned templates — covering everything from typo-filled requests to mid-conversation topic switches.\nTwo design choices matter for training quality:\nPreferences match stated constraints. Each simulated user has a hidden set of preferences (price sensitivity, brand loyalty, shipping speed, etc.). These are deliberately biased toward whatever constraints the user communicated — so if the user said \"under $25\", the reward function actually cares about price. Without this, an agent could be penalised for correctly following the user's instructions.\nStrategic omission. The LLM deliberately withholds some constraints from the opening message to force the agent to ask clarifying questions. The system tracks exactly what was and wasn't mentioned, so the agent is never penalised for information it was never given.\nEnvironment scaling\nFollowing RLVE's methodology, we define nested environment collections:\nC1 ⊂ C2 ⊂ C4 ⊂ C8\nWe hypothesise — consistent with RLVE's findings — that C8 agents outperform single-environment specialists, even on the specialist's own task.\nEarly results\nWe trained Qwen 3 8B with DAPO on C1 (Cart Building) for 300 steps as an initial viability study.\nWe saw progressive growth in difficulty reached, confirming that adaptive scheduling produces a steady learning signal rather than the saturation (static-low) or starvation (static-high) patterns predicted by the RLVE paper.\nTry it yourself\nRun a live episode directly in your browser using the embedded demo below. Here is how to get started:\n- Pick an environment from the dropdown (e.g.,\nE_CART\nfor cart building orE_PD\nfor product discovery). - Set a difficulty —\n0\nis a simple single-constraint task;6+\nintroduces missing information, noisy retrieval, and variant selection. - Click \"Reset Episode\" — the simulated user will open with a shopping request.\n- You are the agentnow: Make tool calls, analyse outputs and submit the final list of product ids.\n- Click \"Reset Episode\" between runs to start a fresh scenario.\nResources\nThe environments, verifiers, and training configs are all open-source:\ngit clone https://github.com/owlgebra-ai/EcomRLVE-Gym\ncd EcomRLVE-Gym\npip install -e .\nThe 2M-product catalog is on the Hub:\nfrom datasets import load_dataset\ncatalog = load_dataset(\"owlgebra-ai/Amazebay-catalog-2M\", split=\"train\")\nprint(f\"{len(catalog)} products loaded\")\nReferences\nZeng, Z., Ivison, H., Wang, Y., et al. (2025). RLVE: Scaling Up Reinforcement Learning for Language Models with Adaptive Verifiable Environments. ICML 2025. arXiv:2511.07317\nYu, Q., Zhang, Z., Zhu, R., et al. (2025). DAPO: An Open-Source LLM Reinforcement Learning System at Scale. arXiv:2503.14476\nShao, Z., Wang, P., Zhu, Q., et al. (2024). DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models. arXiv:2402.03300\nDeepSeek-AI. (2025). DeepSeek-R1: Incentivizing Reasoning in LLMs through Reinforcement Learning. Nature.\nMeta AI. (2024). Llama 3.1: A Foundation Model for General Intelligence. llama.meta.com\nQwen Team. (2025). Qwen3 Technical Report. arXiv:2505.09388", "url": "https://wpnews.pro/news/ecom-rlve-adaptive-verifiable-environments-for-e-commerce-conversational-agents", "canonical_source": "https://huggingface.co/blog/ecom-rlve", "published_at": "2026-04-16 00:00:00+00:00", "updated_at": "2026-05-19 22:00:29.571081+00:00", "lang": "en", "topics": ["large-language-models", "machine-learning", "artificial-intelligence", "research", "products"], "entities": ["RLVE", "EcomRLVE-GYM", "Qwen 3 8B", "DAPO", "Pytorch OpenEnv Hackathon"], "alternates": {"html": "https://wpnews.pro/news/ecom-rlve-adaptive-verifiable-environments-for-e-commerce-conversational-agents", "markdown": "https://wpnews.pro/news/ecom-rlve-adaptive-verifiable-environments-for-e-commerce-conversational-agents.md", "text": "https://wpnews.pro/news/ecom-rlve-adaptive-verifiable-environments-for-e-commerce-conversational-agents.txt", "jsonld": "https://wpnews.pro/news/ecom-rlve-adaptive-verifiable-environments-for-e-commerce-conversational-agents.jsonld"}}