Amazon Web Services detailed a method for training multi-step enterprise search agents using multi-turn reinforcement learning (MTRL) on Amazon SageMaker AI. The approach uses trajectory-level rewards to fine-tune specialized open-weight models, offering an alternative to relying on costly frontier large language models or static supervised fine-tuning.
Addressing Multi-Step Decision Challenges
Standard supervised fine-tuning requires expert step-by-step demonstrations, which are difficult to gather for enterprise environments. Meanwhile, single-turn reinforcement learning optimizes isolated responses, missing dependencies across interactive search rounds. AWS explained that SageMaker AI MTRL evaluates complete multi-turn sequences, allowing models to learn when to query, which retrieval strategy to select, and when to end a search.
The MTRL service operates serverlessly on a per-token pricing model. It uses an asynchronous rollout architecture to separate generation from gradient updates, supported by algorithms like Proximal Policy Optimization (PPO) and advantage estimators such as GRPO. Training runs can be resumed across jobs, and trajectory metrics are exposed through MLflow integration within SageMaker AI.
Fine-Tuning Performance on Benchmark Datasets
AWS demonstrated the setup by fine-tuning Qwen3.6-27B in the us-west-2 region. The test configuration provided the agent with two tools: BM25 lexical search for exact keyword matching and vector search for semantic queries. The system scored final outputs using Normalized Discounted Cumulative Gain at rank 10 (nDCG@10) as a trajectory reward, while assigning a penalty score of -1 to runs that exceeded token budgets or interaction limits.
Across held-out evaluation datasets, the fine-tuned model improved retrieval accuracy on three of four benchmarks. On BrowseComp-Plus, nDCG@10 increased by 23.7 percent while the agent's failure rate fell from 22.89 percent to 0.68 percent. The WixQA benchmark saw an 18.4 percent gain in nDCG@10, and Wands showed a 6 percent improvement, though FreshStack experienced a slight regression. AWS noted that default MTRL hyperparameter settings were sufficient to achieve these gains.
AI-generated editorial illustration; not a documentary photograph.
Source: Fine-tune a search agent with multi-turn RL on Amazon SageMaker AI

Leave a Reply