ArCHer: Training Language Model Agents via Hierarchical Multi-Turn RL
TL;DR. Multi-turn agents act over turns, but LLMs act over tokens. ArCHer (Actor-Critic with a Hierarchical Structure) runs two RL problems at once: an off-policy utterance-level critic that learns the value of each turn from a replay buffer, and an on-policy token-level actor that is pushed toward turns the critic rates highly. The paper reports at least 100× better sample efficiency than PPO on a twenty-questions game.
Key idea
Section titled “Key idea”Treat each turn (an “utterance”) as one action in a high-level MDP, whose state is the dialogue history so far. Inside each turn, token generation is a low-level MDP whose terminal reward is the high-level Q-value of the finished utterance.
- High level (critic). Train Q(s, a) and V(s) on turn-level transitions with TD targets: J_Q = (Q − r − γV̄(s’))² and J_V = (V − E over a∼π of Q̄)². Two copies of Q and V are used (double Q-learning), and target networks V̄, Q̄ stabilise bootstrapping. Because TD targets are policy-independent, the critic reuses a replay buffer.
- Low level (actor). A REINFORCE-style update weights the log-probability of every token in the turn by the critic’s advantage A = Q − V for the whole turn. An optional token-level baseline further reduces variance.
The trick is in the time-scale. Credit is assigned over ~20 turns rather than thousands of tokens, which makes bootstrapping workable. The actor still gets an on-policy gradient.
Key results
Section titled “Key results”All numbers are paper-reported (median over three seeds, §5). On Twenty Questions (157 hidden words, −1 per question), PPO needed more than 100k samples to reach an average return just above −17, while ArCHer reached that value with fewer than 1,000. PPO only improved stably with at least 1,024 on-policy rollouts per gradient step. ArCHer beat the baselines on Twenty Questions, its subset, Guess My City and WebShop, and matched the best on the easy Detective Game. On WebShop, a GPT-2 actor trained with ArCHer beat GPT-3.5 with an expert prompt and with ReAct (Figure 4). The Figure 5 ablations show that a replay buffer of only the latest 48 rollouts is unstable (larger buffers help, then plateau), and that a token-level baseline helps on Guess My City.
Connections
Section titled “Connections”- Before: Value functions & Bellman, actor-critic & advantage and DQN (target networks, replay buffers).
- Contrast: PPO is the on-policy baseline that needs many fresh rollouts; GRPO drops the critic entirely.
- After: RAGEN and Long-horizon tool agents study multi-turn agent RL with critic-free trajectory objectives.
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Mechanism
ArCHer trains its critic on whole utterances (one turn = one action) but trains the actor on individual tokens. Explain what each level gains from that choice, and why the critic can reuse a replay buffer while the actor update stays on-policy.
What a strong answer covers
- At the utterance level the horizon is the number of turns (about 20), not the number of tokens (hundreds or thousands), so TD bootstrapping propagates reward over far fewer steps.
- The critic learns Q(s, a) and V(s) by TD regression on stored (s, a, r, s') transitions. Bellman targets do not depend on which policy collected the transition, so old data stays valid.
- The actor is a token-level REINFORCE update weighted by the critic's advantage Q − V for the whole utterance. It needs samples from the current policy, so it uses fresh actions on stored states.
- This mixes off-policy sample efficiency (critic) with the stability of on-policy policy gradients (actor), which is the "sweet spot" the paper argues for.
- Derive / compute
Write the critic losses J_Q = (Q(s,a) − r − γ V̄(s'))² and J_V = (V(s) − E over a'∼π of Q̄(s,a'))². For a two-turn toy where the agent asks one question and then guesses, reward −1 per non-final turn and 0 on a correct final guess, trace what V and Q should converge to with γ = 1.
What a strong answer covers
- The final turn is terminal: Q(s₁, correct guess) = 0 and Q(s₁, wrong guess) = −1 (or whatever terminal penalty is set), so V(s₁) is the policy-weighted average of these.
- The first turn: Q(s₀, question) = −1 + V(s₁). A more informative question raises the chance of a correct guess, so raises V(s₁) and therefore Q(s₀, question).
- The advantage Q(s₀, q) − V(s₀) is positive for questions that are better than the policy's average question. That single number is broadcast to every token of the question in the actor loss.
- V̄ and Q̄ are slow-moving target networks, as in DQN, to keep the bootstrapped targets stable.
- Critique
ArCHer's headline evidence is a GPT-2 actor with a RoBERTa critic on Twenty Questions, Guess My City, Detective Game and WebShop. What would you need to see before using it to train a 7B search agent with a learned critic?
What a strong answer covers
- Scale: the actor is GPT-2 in the main results, with one ablation scaling to Mistral-7B on the Twenty Questions subset only.
- The critic is a separate encoder model. On real search tasks it must judge long tool outputs, so critic accuracy and context length become the bottleneck.
- Comparison baseline: PPO needed at least 1,024 on-policy rollouts per update here. Modern GRPO-style critic-free baselines with group normalisation were not compared.
- Rewards are dense, synthetic and cheap. A search agent with a sparse final-answer reward would test whether TD credit assignment really beats Monte-Carlo group baselines.