Tau2 partial - introduce partial credit scoring for tool calling, enabling Process Reward Models (PRM) over traditional Outcome Reward Models (ORM)#151
Open
sulbhajain wants to merge 3 commits intosierra-research:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Partial Rewards for Tool Calling: PRM vs ORM Support
Overview
This PR introduces partial credit scoring for tool calling evaluation in tau2, enabling Process Reward Models (PRM) over traditional Outcome Reward Models (ORM). This enhancement provides granular feedback signals essential for effective agent training, reinforcement learning, and reward model development.
Motivation
The Problem with Binary Evaluation (ORM)
Traditional benchmarks use Outcome Reward Models (ORM) that apply all-or-nothing scoring:
This binary approach creates significant limitations:
Example Scenario:
Why Partial Credit Matters (PRM)
Process Reward Models (PRM) evaluate intermediate steps, providing:
Same scenario with PRM:
Implementation
Scoring Framework
The partial credit system uses a three-tier scoring approach:
search_flights(origin="NYC", destination="LAX", date="2024-03-15")search_flights(origin="NYC", destination="LAX")get_weather(location="NYC")Usage
Enable partial credit scoring with the
allow_partialflag:Test Coverage
New test cases added in the airline domain:
allow_partial: trueImpact on Benchmarking
Score Differences: ORM vs PRM
Key Improvements
Real-World Alignment
Partial credit better reflects production scenarios where:
Use Cases
1. Reinforcement Learning with Human Feedback (RLHF)
2. Process Reward Model Training
3. Agent Debugging & Analysis
Resources
Migration Guide
For Existing Benchmarks
Backward Compatibility
allow_partial=Truerequired to enable PRMTechnical Details
Evaluation Logic
Aggregation for Multi-Tool Tasks
For tasks requiring multiple tool calls:
Future Work
Contributing
We welcome contributions to expand partial credit evaluation: