jiangxinke/Harness-RL
Agentic RAG R1 Framework via Reinforcement Learning
What it solves
Harness-RL addresses the challenge of training language-model agents within complex multi-agent systems. Traditional methods often flatten agent interactions into a single sequence, which can obscure the structure of multi-agent tasks. Harness-RL allows models to be trained as part of a central-agent harness without losing the distinction between different agent roles and their specific actions.
How it works
The system uses a framework called StackPlanner to manage agent interactions and a training engine called slime to handle distributed rollouts and model updates. Instead of treating the entire interaction as one long string, it constructs "black-box" trajectories from interface calls. It then uses Conflict-Aware Policy Optimization (CAPO) to intelligently route training gradients. This ensures that the model learns to distinguish between the "action" (what the agent decides to do) and the "arguments" (the specific details provided for that action) by routing them to different parameter subspaces.
Who it’s for
This project is for researchers and developers working on advanced multi-agent reinforcement learning who need to train language models to perform complex, multi-step tasks. It is designed for users comfortable with Linux, NVIDIA GPU environments, and distributed training workflows.
Highlights
- Uses Conflict-Aware Policy Optimization (CAPO) to decouple action and argument learning.
- Supports both central-only training and joint multi-agent training scenarios.
- Includes distributed rollout, checkpointing, and weight synchronization via the slime framework.
- Provides optional OLE sample selection to filter training data based on episode reward performance.
- Integrates with the StackPlanner runtime for production-ready agent orchestration.
Related
- Dispatch
- Project
- Dispatch
- Dispatch
- Project