Skip to main content

Outcome Rewards

Outcome rewards are session-level summaries attached to complete sessions. They provide a single quality score for the entire session, enabling efficient filtering, ranking, and analysis.

Overview

Outcome rewards capture session-level outcomes:
  • Total reward (e.g., unique achievements unlocked)
  • Achievement count
  • Step count (episode length)
  • Custom metadata (achievements list, final state, etc.)
Unlike event rewards (which are per-step), outcome rewards summarize the entire session. They are used for:
  • Filtering: Select high-quality sessions for downstream use
  • Ranking: Sort episodes by performance
  • Analysis: Track policy improvement over time

Schema

Fields

session_id (required)
  • Foreign key to session_traces.session_id
  • Links this outcome to a specific session/episode
total_reward (required)
  • Scalar summary of episode performance
  • Common interpretations:
    • Unique achievements unlocked this episode
    • Cumulative environment reward
    • Final score from evaluator
    • Any episode-level metric
achievements_count (required)
  • Number of achievements/milestones reached
  • Useful for environments with discrete goals
total_steps (required)
  • Number of steps/turns in the episode
  • Used for:
    • Filtering by episode length
    • Computing efficiency metrics (reward per step)
reward_metadata (optional)
  • JSON dictionary with additional context:

Recording Outcome Rewards

From Task Apps

Record outcome rewards at the end of rollout execution:

Manual Recording

Querying Outcome Rewards

Get Outcome for a Session

Filter High-Quality Episodes

Compute Statistics

Use Cases

1. Filter for Training Data

Python:

2. Track Policy Improvement

3. Combine with Event Rewards

4. Export Top-K Episodes

Integration with Verifiers

Verifiers can populate outcome rewards automatically:

Best Practices

1. Choose Meaningful total_reward

2. Populate reward_metadata

3. Normalize for Episode Length

4. Use Appropriate Thresholds

Relationship to Event Rewards

Common pattern: Use outcome rewards to filter high-quality sessions, then use event rewards to select the best steps within those sessions.

See Also