YYHDBL/shopping-grpo-longhorizon
面向长程购物 Agent 的可复现后训练
What it solves
This project provides a reproducible pipeline for training and evaluating AI agents designed for long-horizon shopping tasks. It addresses the challenge of building agents that can reliably navigate complex e-commerce environments—performing tasks like searching, comparing product specifications, and making final purchases based on specific user constraints.
How it works
The project uses a multi-stage training pipeline:
- Data Collection: It uses a teacher model to collect successful interaction trajectories within the ShopSimulator environment.
- Supervised Fine-Tuning (SFT): It performs LoRA-based fine-tuning on these trajectories to teach the model valid tool-use strategies.
- GRPO Training: It employs the veRL library to further optimize the model using Group Relative Policy Optimization (GRPO), which allows the agent to learn from its own environment rollouts without needing a separate reward model.
- Evaluation: It uses a rigorous, multi-faceted evaluation pipeline that combines deterministic code-based checks with LLM-as-a-Judge scoring to assess performance across five dimensions, including search strategy and decision quality.
Who it’s for
This project is for researchers and developers working on agentic AI, specifically those focused on long-horizon task planning, tool-use, and reinforcement learning from environment feedback (RLHF/GRPO) in simulated real-world scenarios.
Highlights
- End-to-End Pipeline: Includes everything from data collection and SFT to GRPO training and a comprehensive evaluation suite.
- ShopSimulator Integration: Comes with an embedded version of the ShopSimulator v2.1 environment for consistent testing.
- Deterministic Reward System: Uses a rule-based Reward v3 system to evaluate outcomes objectively, avoiding the subjectivity of pure LLM-based reward modeling.
- Reproducible Benchmarking: Provides a "Final-200 Clean" benchmark set to ensure fair and consistent comparison between different model iterations.
Related
- Project
- Dispatch
- Project
- Project
- Project