Custom reward functions for multi-turn reinforcement learning with Amazon Nova Forge
Machine Learning Blog
This article explains how to design custom reward functions for multi-turn reinforcement learning with Amazon Nova Forge, enabling models to learn desired behaviors through iterative feedback.
- Multi-turn RFT extends reinforcement fine-tuning to agents acting over sequences of steps, optimizing cumulative reward across whole trajectories.
- Effective multi-turn rewards combine three signal types: outcome rewards (final goal achievement), behavioral rewards (intermediate desired actions), and penalties (failure modes).
- Worked example teaches Amazon Nova Lite 2.0 to ask clarifying questions before coding using a four-component reward with correctness, asking behavior, guessing penalty, and loop detection.
- Execute model-generated code safely using isolated environments, resource limits, random sentinels, and test-count validation to prevent reward hacking.
- Reward collapse occurs silently when components have zero within-group variance; detect by tracking per-component standard deviation, not just aggregate reward curves.
- Un-gate target behaviors and penalize failure modes explicitly to maintain within-group variation that GRPO needs to produce gradients.
Proper instrumentation and component ablation catch reward failures early, ensuring models learn intended behaviors rather than gaming proxies.
The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.
Related articles
Jul 2
2026
2026
Best practices for multi-turn reinforcement learning in Amazon SageMaker AI
Jun 3
2026
2026
Amazon SageMaker AI launches multi-turn reinforcement learning for AI agent model customization
Apr 13
2026
2026
How to build effective reward functions with AWS Lambda for Amazon Nova model customization
Feb 26
2026
2026
Reinforcement fine-tuning for Amazon Nova: Teaching AI through feedback
The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.