AIToday
Amazon AI BlogPublished: Aug 15, 2026, 04:01 JST5 min read

Amazon Nova Forge adds custom reward design for multi-turn AI training

Amazon Nova Forge adds custom reward design for multi-turn AI training

Key takeaway

  • Amazon published technical guidance on designing reward functions for multi-turn reinforcement learning with its Nova Forge model customization platform, addressing one of the hardest parts of customizing models for agentic tasks.

  • The post uses a real example—teaching Nova Lite 2.0 to ask clarifying questions before coding—to show how to combine outcome rewards (task correctness), behavioral rewards (intermediate steps), and penalties (failure modes) in a single composite function, and how to catch when high-weighted components silently fail to produce learning signals.

3 Key Points

  1. What happened

    Amazon published guidance on designing custom reward functions for multi-turn reinforcement learning with Amazon Nova Forge, its model customization platform. The post covers how to structure composite rewards combining outcome signals (task success), behavioral signals (intermediate steps like asking before acting), and penalties (failure modes), using a worked example where Nova Lite 2.0 learns to ask clarifying questions before writing code on 500 programming tasks.

  2. Why it matters

    Reward functions silently shape what models learn—a subtle mistake teaches the wrong behavior while training curves look healthy. The post demonstrates how to instrument reward components so teams can catch when high-weighted parts contribute no learning signal, a real failure mode the authors encountered. For businesses customizing Nova models for agentic tasks (code execution, tool calling, multi-step workflows), this is practical guidance on avoiding costly training mistakes.

  3. What to watch

    Amazon Nova Forge now offers a serverless multi-turn RL option (generally available) for teams avoiding custom infrastructure, alongside the Bring Your Own Orchestration (BYOO) path shown here. The worked example uses Amazon SageMaker HyperPod, LoRA fine-tuning, and GRPO (Group Relative Policy Optimization) on 500 unique programming tasks; code is available in the aws-samples/sample-nova-multi-turn-rl-infra repository.

In Depth

Read the full story

Amazon Nova Forge is Amazon's model customization platform, and multi-turn reinforcement learning allows training on agentic tasks where a model acts over several steps—for example, asking questions, calling tools, executing code, or recovering from mistakes. The core technical challenge is designing a reward function (the scoring mechanism) that guides the model toward the right behavior without teaching it the wrong thing by accident.

For multi-turn tasks, Nova Forge offers two paths: a serverless multi-turn RL option (now generally available) for teams that do not want to manage infrastructure, and Bring Your Own Orchestration (BYOO), where teams run the reward logic inside their own environment container. In the BYOO approach, Nova Forge delegates each rollout (a full multi-turn episode or trajectory) to the customer's container, which manages user simulation, code execution, and verification, then returns an aggregate reward score plus optional per-component scores. Training then uses GRPO to rank K model completions within a batch and adjust weights to make higher-reward completions more likely.

The post uses a worked example: training Amazon Nova Lite 2.0 on a collaborative-coding task spanning 500 unique programming tasks. The model receives a brief, under-specified coding request; a user simulator holds the full specification and reveals details only when the model asks a clarifying question. Each turn, the model either asks a question or commits code. If it commits, the code is executed against hidden unit tests to score correctness. The design intent is that guessing produces wrong code, while asking surfaces hidden details and leads to correct code.

The reward is a weighted sum of four components: correctness (1.0 weight: fraction of unit tests passing), asked_before_coding (0.6 weight: 1.0 if asked on turn 1 then committed, 0.6 if asked later then committed, else 0), guessed_immediately (0.4 weight penalty: -1.0 if the first turn is code with no question), and loop_penalty (0.2 weight: -0.5 if the last two turns are more than 80% similar). Two design principles guide this: un-gate the behavior you want (asked_before_coding is credited independently, not conditional on correctness, but does require eventual code commitment to close the "ask forever" loophole), and penalize the failure mode (guessed_immediately makes guessing strictly worse than asking, restoring variation within a GRPO batch). The post demonstrates how to implement these components as scorers inside the environment container and report each through metrics_list.

A critical insight the post surfaces is that a reward component contributes learning only through the variation it creates within a group. If a term takes the same value for every completion, it contributes nothing to the within-group advantage, and therefore nothing to the gradient. The authors encountered a real failure case where the highest-weighted component silently contributed no learning signal at all—a pitfall they explain how to catch by instrumenting each component so teams can trust what training is learning. The infrastructure (Amazon SageMaker HyperPod, an Amazon ECS customer-managed environment, and an S3 bucket for rollout data and checkpoints) and illustrative code are detailed in Part 1 of the series and the aws-samples/sample-nova-multi-turn-rl-infra repository.

Context & Analysis

Reinforcement fine-tuning (RFT) with custom rewards is central to Amazon Nova customization because it teaches models through iterative feedback rather than requiring pre-annotated reasoning paths (as supervised fine-tuning does). Multi-turn RFT extends this to agents acting over sequences of steps—calling tools, executing code, recovering from errors—and optimizes cumulative reward across the entire trajectory. The core challenge, which this post addresses, is that a subtly wrong reward can quietly teach the wrong behavior while all training metrics appear healthy.

The post highlights a critical insight about how GRPO (the optimization algorithm Nova Forge uses) operates: a reward component contributes to learning only through variation it creates within a batch. If a component returns the same score for every completion, it produces zero gradient, contributing nothing to training—a failure mode the authors encountered with a highest-weighted component that should have driven learning but silently did not. This means reward design requires not just defining outcome metrics, but explicitly structuring components to maintain variation and penalizing failure modes so the optimizer sees a clear gradient between good and bad strategies.

FAQ

What are the two main ways to run multi-turn reinforcement learning with Amazon Nova Forge?
Amazon Nova Forge offers a serverless multi-turn RL option (now generally available) for teams that prefer not to manage infrastructure, and a Bring Your Own Orchestration (BYOO) capability where you run reward logic in your own environment container (such as on Amazon ECS), managing multi-turn interaction and conversation state yourself.
What does the worked example teach Nova Lite 2.0 to do?
The example trains Nova Lite 2.0 on a multi-turn collaborative-coding task over 500 unique programming tasks, where the model learns to ask clarifying questions before committing code, using a four-component reward (correctness, asked_before_coding, guessed_immediately penalty, and loop_penalty) with GRPO and LoRA on Amazon SageMaker HyperPod.
What are the three kinds of signal combined in a multi-turn reward?
Outcome rewards (did the final artifact satisfy the goal, e.g., did unit tests pass), behavioral rewards (did the model exhibit intermediate steps like asking before acting or calling the right tool), and penalties (explicitly discouraging failure modes such as guessing, repeating, or stalling).
Amazon AI BlogRead Original Article

Get AI news like this every morning

AI-summarized, only the topics you pick — one digest a day via Email, Slack, or Discord.

Free · takes 30 seconds · unsubscribe anytime

Ask AI

Ask AI anything about this article. Q&As are published on this page for other readers too.

Next articleComfort Systems USA quietly booming on AI data center construction

The AI news that matters, in one minute each morning.

Sign up free