Repository navigation
feat: add multi-granular reward weight ablation study - #116
Merged
Merged
Conversation
- Add --reward_config parameter to train_grpo.py for custom reward weights - Add ablation experiment script with 9 experiment groups - Add comprehensive experiment design documentation - 100% backward compatible, no breaking changes This ablation study validates the multi-granular reward design (commit f70215a) by systematically testing different weight configurations against the baseline (format=1, tool=3, argument=2, process=1, outcome=3). Related: docs/multigranular_rl.md
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.
PR: Add Multi-granular Reward Weight Ablation Study
📋 Summary
This PR introduces a comprehensive ablation study framework for the multi-granular reward weights introduced in commit f70215a. It includes:
--reward_configparameter totrain_grpo.pyfor custom reward weights🎯 Motivation
The current multi-granular reward function uses weights
(format=1, tool=3, argument=2, process=1, outcome=3)based on prior design, but lacks systematic validation. This ablation study aims to answer:Current best model (8B GRPO v3) achieves strict 72.8% on 81-task benchmark. This study provides empirical evidence for future optimization.
📦 Changes
1. Core Training Enhancement
File:
AgenticArxiv/rl/train_grpo.pyChange: Add optional
--reward_configparameterUsage:
Backward compatibility: ✅ 100% compatible. Existing scripts work without modification.
2. Ablation Experiment Script
File:
scripts/ablation_reward_weights.pyFeatures:
Usage:
3. Experiment Design Documentation
File:
docs/ablation_reward_weights.mdContents:
🧪 Experiment Groups
📊 Expected Output
After running experiments, the following artifacts are generated:
Key metrics:
strict_success_rate: Strict task completiontool_accuracy: Tool sequence accuracyargument_accuracy: Parameter matching accuracyreward_mean/std: Reward statisticsfrac_reward_zero_std: Training stability indicator✅ Testing
Unit Test (Dry Run)
Integration Test (Quick Test)
$ python scripts/ablation_reward_weights.py --quick_test --experiments baseline ⚡ 快速测试模式:10 steps 🔬 将运行 1 个实验组 ... 🚀 训练命令: python -m AgenticArxiv.rl.train_grpo --model outputs/sft/final \ --reward_config artifacts/ablation_reward_weights/baseline/config.json ... ✅ 训练完成 📊 开始评测... ✅ 评测完成🔄 Migration Guide
For existing users: No action needed. All existing commands work as before.
For ablation study users:
train_grpo.py(seetrain_grpo_patch.md)python scripts/ablation_reward_weights.pyartifacts/ablation_reward_weights/ablation_summary.json📚 References
docs/multigranular_rl.md(commit f70215a)scripts/analyze_curriculum.pydocs/edge-vlm-posttrain.md🙏 Acknowledgements
This ablation study builds upon the multi-granular reward framework introduced in commit f70215a and references the project's existing curriculum learning and evaluation infrastructure.
Checklist:
Estimated runtime: