Three small language models debate a maths problem. Left alone, they get worse each turn. Trained together on a verifier’s score, they climb from 0.677 to 0.809.
Pick a way to train the debaters, then press Play the debate. Watch the accuracy after each turn. Then we build, piece by piece, the game, the verifier, the reward and the training loop that make the climb happen.
You need a feel for what a language model does (it writes the next word again and again) and the idea of a score. We build the rest from zero: debate, reinforcement learning, game theory.
Based on “MAPoRL2: Multi-Agent Post-Co-Training for Collaborative Large Language Models with Reinforcement Learning” by Chanwoo Park, Seungju Han, Xingzhi Guo, Asuman Ozdaglar, Kaiqing Zhang and Joo-Kyung Kim (MIT, Stanford, Amazon, UMD). arXiv 2502.18439. A reading for MIT MMAI Lecture 14, Cross-Modal Transfer. Every idea is re-taught here in our own words and devices.
Numbers are the paper’s, for Phi-3-mini (3.4B) with three agents on 1,319 held-out GSM8K questions: off the shelf 0.677, 0.689, 0.639 (Tables 7 and 8); MAPoRL 0.677, 0.797, 0.809 (Table 7); SFT on the top 10% of debates 0.578 at turn 2 and 0.525 at turn 3 (Section 4.7); single-agent RL 0.732 after one turn (Table 8). The paper does not report SFT or single-agent turn 1, so we draw the shared starting point 0.677.
Chapter 0
See why three language models that talk to each other often end up no better than before, and what the paper changes
Three friends sit at a table with one hard maths problem. Each writes an answer on a card. Then they swap cards, read each other’s work, and write a second answer. A third round follows. At the end, the group takes a vote.
Why do people do this? Because it works. Maybe Ana notices Ben’s sign error. Maybe Ben sees that Ana’s method is cleaner. Each round, the group should get closer to the right answer.
Now swap the friends for three copies of a small language model. A language model (LM) is a program that reads text and writes the most likely next word, over and over. Give three of them the same table, the same cards and the same three rounds. This setup has a name: multi-agent debate. Each model is an agent, a program that reads a situation and writes an action, here a written answer.
The idea comes from Du and colleagues (2024). It looked like free accuracy. You do not train anything. You just ask the models to talk. The hero at the top of this page shows what really happens with a small model.
Look at the “Off the shelf” line in the hero. Off the shelf means the model exactly as its makers released it, with no extra training for this job. Its accuracy goes 0.677, then 0.689, then 0.639. After three rounds of debate it is worse than after one. Huang and colleagues (2024) saw the same thing. Extra turns do not reliably help.
The paper’s authors give a plain reason. These models can imitate a debate. They know what one looks like. But nobody ever trained them to win one: to change their mind for a good reason, or to hold firm against a bad one. Acting out teamwork is not the same as being good at it.
The obvious fix is to teach them with examples. Collect the best debates, then train the models to copy them. This is supervised fine-tuning (SFT): more training on example inputs and the outputs you want. The hero shows what happens. The line falls even further, to 0.525. Chapter 8 explains why.
The paper is called MAPoRL2, short for Multi-Agent Post-co-training with Reinforcement Learning (the “2” marks the second arXiv version). Split the name. Post-training is the extra training a model gets after its big first phase. Co-training means several models train together, at the same time, against each other’s changing behaviour. Reinforcement learning (RL) is learning from a score: try something, get a reward, do more of what scored well.
So the recipe has three parts. Put the models in a debate. Let a separate scorer, a verifier, give each answer a number between 0 and 1 for how likely it is right. Turn those numbers into rewards and train all the models at once. Press MAPoRL in the hero. The line now climbs: 0.677, 0.797, 0.809.
One more line in the hero matters. Single-agent RL trains one model alone with the same verifier. It reaches 0.732 after one turn. Good, but below 0.809. Training for debate beats training for solo answers. Chapter 2 gives the theory for why.
An average hides the story. Here is the same debate seen answer by answer. Take 100 answers from the models at turn 1. After a turn, each answer is in one of four states: it stayed right, it was wrong and became right, it was right and became wrong, or it stayed wrong. Pick a system and a turn, and count the dots.
Each dot is one answer out of 100 on GSM8K. Green dots are right, red dots are wrong. Bright dots changed in this turn. Choose a system and a turn.
The percentages are read from the paper’s Figure 3 (Phi-3-mini, GSM8K). Dots are the percentages rounded to whole answers out of 100. The paper’s “net improved” figure is the share that became right minus the share that became wrong.
Off the shelf at turn 3, about 10 answers flip from right to wrong and only about 5 flip from wrong to right. The debate is talking good answers out of being right. MAPoRL at turn 2 does the opposite: about 14 flip to right and only about 2 flip to wrong.
That is the whole puzzle of the paper. A trained collaborator keeps the right answers and rescues the wrong ones. An untrained one drifts. To build the trained kind, we need four things: a clear picture of the debate, a reason single-model training is not enough, a scorer, and a way to turn scores into updates.
Each part of the hero is explained in one chapter. The last chapter is a field guide you can keep.
Chapter 1
Follow exactly what text each model reads at each turn, and learn the one idea of reinforcement learning the rest of the paper needs
Picture a group chat with a teacher. Everyone gets the same question. Everyone posts a first answer, and nobody has seen anybody else’s. Then the teacher pins all the answers and says: read these, then post again. After the last round, the group votes.
This is the whole debate. There is no hidden machinery. A debate is a loop that builds text, hands it to a model, and collects what the model writes.
Take the paper’s setup. There are A agents and T turns. Write q for the question. Write st,i for the answer that agent i gives at turn t. At turn 1, every agent sees only the question. At every later turn, an agent sees the question plus every answer from every agent in every earlier turn.
Two special cases help. If A = 1, the single agent reads only its own past answers. That is self-correction: one model rereading its own work. If A > 1, the agents also read each other.
The paper adds one detail that is easy to miss. After each turn, the verifier scores every answer (Chapter 3). The prompt for the next turn then includes those scores: “Reward from a verifier of your answer: 0.51 out of 1.0”, plus a score beside each other agent’s answer. The agents can read how much to trust each answer.
The bar is everything agent 1 reads before it writes. Change the number of agents and the turn. Watch the history block grow.
Illustrative sizes: 40 tokens of instructions, a 120-token question, 150 tokens per answer (the paper caps GSM8K answers at 300 tokens), 30 tokens per verifier line and an 80-token closing instruction. The structure, the question, all earlier answers and their scores, follows the paper’s prompt in Appendix G.5.
Now the data flow at the model. The whole text becomes a list of L token ids, shape [L]. The model turns it into scores for the next token, shape [L, V], where V is the vocabulary size (the number of different tokens the model knows). The last row is the one that matters. A sampling rule (the paper uses temperature 0.7) draws one token from it. Append it, repeat. A GSM8K answer stops at 300 tokens at most, an ANLI answer at 250.
One more fact shapes everything that follows. In the paper, the parameters are indexed by agent and turn: θt,a. In principle, agent a at turn 2 and agent a at turn 3 are different models. In practice they share one frozen base model and differ by a small adapter (Chapter 5).
Now the learning part. Think of the game “hot and cold”. A friend hides a key. You walk around. They say “warmer” or “colder”. They never tell you where the key is. You learn by keeping the steps that made you warmer.
That is reinforcement learning. The model is the policy: a rule that gives a probability to each next token, written πθ. The θ is the set of numbers inside the model, its parameters. A written answer is one episode. A number comes back, the reward. You then nudge θ so that tokens from high-reward answers become a little more likely.
Why not just copy good answers, as SFT does? Because in a debate, a good answer depends on what the other agents will write next. No fixed example set contains that. Reward does: it scores what actually happened.
Two problems follow. First, where does the reward come from when we have no answer key? (Chapter 3: a trained verifier.) Second, what is the reward for an answer whose value shows up only in later turns? (Chapter 4.)
Chapter 2
Use a two-player game to see why a model trained alone gives up on teamwork, and why two models trained together do not
Two classmates share a project. Each evening, each can do one of two things. They can work alone on their own slide: a safe, sure gain. Or they can spend the evening on the shared notes: a smaller gain tonight, but the notes are what make the final project great.
There is a catch. The shared notes only pay off if both keep contributing. If you write notes and your partner works on a slide, your evening is half wasted. So each of you asks the same question: will my partner show up?
The paper turns this scene into a small, exact game. It is a toy, but every conclusion of the paper is visible in it.
A question q is posed. Over T turns, each of two agents picks an action: Collaborate (a0) or Act independently (a1). Collaborating stands for sharing exploratory ideas and partial steps. Acting independently stands for the standard, safe approach.
Rewards are numbers. Acting independently pays Rind per turn. Collaborating pays Rcol, and Rcol < Rind: it costs something now. But if the agents collaborate together enough times, they reach collaborative synergy, and from then on every turn pays Rsyn = 1, a near-certain correct solution. The number of joint collaborations needed is the threshold C(q). Hard questions have a high C.
This is a coordination game: a game where the best move depends on matching your partner’s move. Two settings of the same game give two very different answers, and that is the point.
Let T = 2 and C = 1, the smallest case. On the last turn, acting independently is always best (nothing comes after it). So the only live choice is turn 1. Suppose the partner collaborates with probability π, and never changes. Our agent compares two expected rewards.
Where does this come from? Collaborating earns (Rcol + Rsyn)π + (Rcol + Rind)(1 − π). Acting alone earns 2Rind. Collaborate when the first is at least the second. Move terms and you get the line above. The result is a best response: the best move against a fixed partner.
Worked example with illustrative numbers. Let Rind = 0.4, Rcol = 0.2, Rsyn = 1. Then the left side is 0.6π and the right side is 0.2. So collaborate when π ≥ 1/3. If the partner shows up less than a third of the time, our agent should not bother. A weak, unreliable partner teaches the agent to stay alone. The paper’s point: a trained-alone model facing a fixed, non-strategic partner tends to avoid collaboration.
Now both agents learn, and each one’s behaviour changes the other’s best move. Write the four outcomes of turn 1 as a table of rewards over the two turns.
| You \ Partner | Partner collaborates | Partner acts alone |
|---|---|---|
| You collaborate | Rcol + Rsyn (each) | you: Rcol + Rind |
| You act alone | you: 2Rind | 2Rind (each) |
There are two stable outcomes: both collaborate, or both act alone. Neither player gains by changing alone. Which one will learning pick? Add a little randomness to each player’s choice: an entropy bonus scaled by a small number τ, which rewards a player for not being too predictable. Each player then picks actions with a softmax over expected reward, and the pair settles into an entropy-regularized Nash equilibrium, a state where neither player gains by changing its own habits.
As τ shrinks to zero, theory says the pair picks the risk-dominant outcome: the one that is safer if you are unsure what your partner will do. Compare the cost of being wrong in each. If you collaborate and the partner does not, you lose Rind − Rcol. If you act alone and the partner collaborates, you lose Rcol + Rsyn − 2Rind. Collaboration is risk-dominant when the second loss is bigger than the first: Rsyn > 3Rind − 2Rcol. Together with the coordination condition Rsyn > 2Rind − Rcol, that is Observation 2.
With the same illustrative numbers, 3(0.4) − 2(0.2) = 0.8 < 1 and 2(0.4) − 0.2 = 0.6 < 1. Both hold, so two co-trained agents collaborate, even though a solo learner facing a 30% partner would not. Try other values in the device.
The warm line is the reward for collaborating. The blue line is the reward for acting alone. Where they cross is the partner reliability you need. Drag the partner’s reliability and the rewards.
The game and Observations 1 and 2 are the paper’s (Section 2, T = 2, C = 1, Rsyn = 1); the slider values are illustrative. The percentage of questions is our own calculation from the two observations, using the paper’s question distribution (Rind uniform on 0 to 1, Rcol uniform on 0 to Rind). The paper’s Figure 5 uses longer horizons (T = 10 and 20) solved by backward induction, and shows the same ordering.
For T = 10 and 20 turns, the authors solve the game exactly by backward induction: start at the last turn and work backward, so that each earlier choice knows what the later ones will be. A solo agent faces a fixed partner who collaborates with probability 0.5, 0.6 or 0.7. Even at 0.7, the solo learner stays mostly independent on turn 1. The co-trained pair, with τ = 0.1, collaborates far more often, at every threshold C from T − 1 down to half of T. Each point averages 5,000 random questions.
The lesson for language models is direct. A model trained against the frozen behaviour of its partner, as in ordinary fine-tuning, learns the best response to a partner that does not change. A model trained with its partner learns that its habits shape the partner’s habits. That is why the paper co-trains. It is also why a bonus for collaboration (Chapter 6) is justified: raising Rsyn makes the cooperative outcome easier to reach.
Chapter 3
Build the scorer that says how likely an answer is right, and prove that the right training loss makes it an honest probability
A teacher marks homework. A good teacher does more than write right or wrong at the bottom. She reads your working, and she can say after three lines: “this is going well” or “I think you slipped here.”
The debaters need that kind of teacher. A debate has no answer key at test time, and a turn-2 answer can be good or bad even before the final vote. The paper adds a verifier: a separate model that reads a question and an answer and outputs one number between 0 and 1, the chance that the answer is right. In the paper’s words, it is a reward model, and it supplies the reward for training.
Start from a language model, Phi-3-mini, compressed to save memory (quantized: stored with fewer bits per number). Cut off its word-writing head. Put a small linear head in its place, one layer that turns the last hidden vector, shape [d], into one number, and squash it to the range 0 to 1. The input is the question plus a prefix of the answer: Verifier(q, s1:x) where s1:x means the first x tokens of the answer. The output is a single score.
Because the score is defined for every prefix, the verifier can watch an answer go wrong. Start at x = 1 and read forward. The score tends to hover while the reasoning looks fine, then drop at the step where the mistake appears.
We need examples of answers with known outcomes. For GSM8K, the authors take the 7,463 training questions and let the base model write 100 answers to each. They check each final answer against the key. Each answer gets a label y: 1 if its final answer is right, 0 if it is wrong. They keep 20 right and 20 wrong answers per question (writing extra ones from a reference example, or a deliberate trivial error, when a question has too few). For ANLI they take the first 10,000 questions with 50 answers each and keep 10 right and 10 wrong.
Here is the key trick. Every prefix of an answer gets the label of the whole answer. A prefix of a correct answer is labelled 1. A prefix of a wrong answer is labelled 0. The verifier then learns to predict, from the part written so far, how the answer will end.
This is binary cross-entropy, the standard loss for yes-or-no predictions. When y = 1, the loss is −log V: small if the score is near 1, huge if it is near 0. When y = 0 it is −log(1 − V). The loss punishes confident wrong scores most.
Two practical details from the appendix. Training on only the latter half of each answer’s tokens worked better than all tokens, because early prefixes tell the verifier little about the ending. And a verifier must use the same base model that wrote the answers. When the authors paired a different base model, the loss did not go down. The settings: QLoRA adapters with rank 16, scale 32, batch size 2, AdamW, learning rate 2 × 10−4.
The paper proves it (Theorem 1). Take one situation: a question and a prefix. Suppose that among all answers that look like this, a fraction r finally turn out right. The verifier will see this situation with labels that are 1 a fraction r of the time. If it says the number p, its expected loss is L(p) = −[r log p + (1 − r) log(1 − p)].
Take the slope: L′(p) = −r/p + (1 − r)/(1 − p). Set it to zero. Then r(1 − p) = (1 − r)p, so r = p. The best score is exactly the fraction that end right. A perfect verifier reports P(final answer is correct | q, prefix). That is what a reward should be: a calibrated chance of success. Drag the sliders to see it.
Pretend 100 answers look the same so far. The blue slider sets how many end right. The teal slider is the score the verifier gives them all. The curve is the loss it pays.
Illustrative: the loss formula and the theorem are the paper’s (Appendix E.4); the share r is yours to set. Loss uses the natural logarithm. The paper’s trained verifiers reach accuracy 0.91 on GSM8K and 0.92 on ANLI (Table 6), counted as correct when the score is above 0.5 for a right solution and below 0.5 for a wrong one.
Set r to 0.7 and p to 0.5 and the loss is 0.693. Move p to 0.7 and it falls to 0.611, the lowest possible. The curve always bottoms out at p = r.
A reward model that the agents train against can be fooled. The authors split the data so that the verifier never trains on the questions MAPoRL trains on. For GSM8K, the verifier uses the 7,463 official training questions, and MAPoRL trains on the first 12,800 TinyGSM questions. For ANLI, the verifier takes the first 10,000 examples, MAPoRL the next 12,800, and 1,200 are held out for testing.
Chapter 4
Pay each answer for what it scores now and for what it causes in every later turn, by every agent
Think of a coach who is paid only for today’s match. She plays the star and ignores the youth team. A smarter club pays the coach for the whole season, including how much the youth players improved because of her.
The debate has the same problem. Suppose agent 1 writes a mediocre turn-1 answer that contains one sharp idea. Agent 2 reads it, builds on it, and gets the turn-2 answer right. If we score agent 1 only for turn 1, its sharp idea earns nothing. We would train it away.
The paper defines three reward functions (rules that turn verifier scores into the number the learner trains on). Let Vt,j be the verifier’s score for agent j’s answer at turn t.
A discount factor γ between 0 and 1 says how much a later score is worth compared with a score now. With γ = 1 all turns count equally. With γ = 0.5, each later turn counts half as much as the one before it.
The E in front means expected value: an average over the random answers the other agents might write. In training, one rollout gives one sample of it.
Take A = 2 agents, T = 3 turns, γ = 1. We want agent 1’s reward at turn 1. The verifier scores in this toy (illustrative): turn 1, agent 1 gets 0.40. Turn 2: agent 1 gets 0.70, agent 2 gets 0.80. Turn 3: both get 0.90.
Step 1: the normaliser is 1 + 1 + 1 = 3. Step 2: the turn-2 average over agents is (0.70 + 0.80)/2 = 0.75. Step 3: the turn-3 average is 0.90. Step 4: add 0.40 + 0.75 + 0.90 = 2.05. Step 5: divide by 3. The reward is 0.683.
Compare. Immediate pays 0.40. Cumulative pays (0.40 + 0.70 + 0.90)/3 = 0.667. Influence-aware pays 0.683. The gap between 0.667 and 0.683 is exactly agent 2’s better turn-2 answer, credited to agent 1. In the device, drag agent 2’s turn-2 score and watch only the influence-aware reward move.
Each box is a verifier score. Outlined boxes count toward agent 1’s turn-1 reward, with the weight shown. Pick a reward function, set the discount, then change agent 2’s turn-2 score.
The three reward functions are the paper’s (Section 3.1 and Appendix F). The scores are illustrative. The paper’s own runs use γ = 1 for the cumulative reward (Appendix G.2).
Notice what the influence term does to the agents’ incentives. Agent 1 now wants agent 2 to do well. A confident but wrong answer that misleads agent 2 lowers agent 1’s own reward. A clear, correct answer that persuades agent 2 raises it. Chapter 6 adds explicit bonuses on top of this.
What does the discount do? With γ = 0, only the answer’s own score counts, which is the immediate reward. With γ = 1, a turn-3 score counts as much as a turn-1 score. Pick a number in between when you trust near effects more than far ones, because a later score depends on many other things. The paper’s runs use γ = 1, so each turn is valued equally.
Why average over agents instead of summing? Averaging keeps the reward in the same 0 to 1 range for any group size, so two agents and three agents train with the same scale.
One cost is worth saying plainly. To compute the reward for turn 1, you must play the whole debate to turn T first. Training cannot update a turn-1 answer until the later turns exist.
Chapter 5
Turn one debate and its rewards into a safe, small update for every agent, and see the tensors that flow through it
You now have a debate (Chapter 1), a score for each answer (Chapter 3) and a reward built from the scores (Chapter 4). One job is left: change each agent so that good answers become likelier. You must do it without breaking what the agent already knows.
Think of tuning a guitar string. A small turn of the peg improves the note. A big turn snaps the string. Learning from reward has the same danger. If you push too hard on one lucky answer, the model collapses into a bad habit. Proximal policy optimization (PPO) is the standard recipe for small, safe pushes.
Run the debate with the current models, called the old policy θold. In the paper’s setup, 12 episodes (questions) run at once. Each episode produces, for each agent a and turn t, a written answer of up to 300 tokens. After every turn, the verifier scores all answers, and the next turn’s prompt includes those scores.
Save, for every answer token: the token id, the log-probability the old policy gave it, and a value estimate (Step 3). For one answer these are arrays of shape [L], with L at most 300, and for the whole batch [12, L].
Rewards are sparse: there is exactly one real number per answer, the influence-aware reward R. It lands on the last token. Every token also pays a small penalty for drifting away from a reference model, a frozen copy of the starting model. The penalty is the KL divergence, a measure of how different two probability lists are, scaled by λKL = 2 × 10−4. It keeps the agent from forgetting how to write.
One reward at the end does not say which of 200 tokens mattered. A second network, the value function V, learns to predict the reward still to come from any point in the text. It has its own small adapter and a linear head, one number per token. A token was good if the reward that followed beat the value’s prediction. That gap is the advantage A. The paper estimates it with generalized advantage estimation (GAE, Schulman et al., 2016), a smoothed sum of these gaps over the next few tokens. The value network trains on a squared error against its target, weighted by λvalue = 0.1.
For each token, compare the new policy with the old one: the ratio ρ = πθ(token) / πold(token). If ρ = 1.4, the new model makes the token 40% likelier than the old one did. The PPO objective keeps the push inside a trust zone.
Worked example with illustrative numbers. A token had probability 0.20 under the old policy and 0.28 under the new one, so ρ = 1.4. Let ε = 0.2 and A = +0.5. The plain term is 1.4 × 0.5 = 0.70. The clipped ratio is 1.2, giving 0.60. The minimum is 0.60, which is flat in ρ. The gradient is zero. The token already moved enough. Now let A = −0.5. The plain term is −0.70, the clipped term is −0.60, the minimum is −0.70, and the gradient pushes the token back down. Try it.
The curve is the objective for one token. Slide the ratio ρ. The dot shows where the token is. A flat stretch means no gradient: the push stops.
The objective is the paper’s (Section 3.2). Its value for ε is not stated in the main text, so 0.2 is the common default and the advantage of 0.5 is a toy number. The slider shows the single-token objective, not a full training run.
All the pieces fit in a short loop. Each agent a at each turn t is updated with its own PPO loss, with the value loss added.
python# one MAPoRL training iteration (sketch of Sections 3.1 to 3.3) for q in questions_batch: # 12 episodes at once hist = [] for t in range(T): # T = 3 turns for a in range(A): # A = 2 or 3 agents prompt = build_prompt(q, hist) # question + all answers + scores s[t][a], logp_old, val = policy[t][a].generate(prompt, temp=0.7) scores[t] = [verifier(q, s[t][a]) for a in range(A)] hist += [(s[t][a], scores[t][a]) for a in range(A)] for t, a in product(range(T), range(A)): R = influence_reward(scores, t, a, gamma=1.0) # Chapter 4 r = kl_penalty(a, t, lam=2e-4); r[-1] += R # shape [L] adv = gae(r, val) # shape [L] for _ in range(4): # 4 PPO passes per rollout loss = ppo_surrogate(policy[t][a], logp_old, adv) + 0.1 * value_loss(a, t) loss.backward(); opt.step()
You might ask: do we need 6 or 9 copies of a 3.4B model? No. Every agent and every value function is a small QLoRA adapter (low-rank update matrices, rank 8) on one shared, quantized base model. Each adapter is under 0.2% of the base’s parameters. That is why the whole job fits on 8 A100 GPUs of 80 GB. The learning rate is 1 × 10−5 with 10 warm-up steps; the batch size is 1 with 4 gradient-accumulation steps.
Chapter 6
Add four bonus knobs, alpha and beta, that pay an agent for good changes of mind and for good influence
In a good study group, two things earn respect. First, you change your mind when someone shows you a better answer. Second, when you are wrong, you still say something that moves the group toward the truth.
The verifier alone does not pay for either behaviour directly. Chapter 2 gave the theory: a larger synergy reward Rsyn makes collaboration worth it. In real debates, the paper cannot change Rsyn by hand. It adds reward shaping instead: extra reward terms that steer behaviour while the task reward stays the same.
Look at one agent between turn t and turn t + 1. The majority is the answer most agents give at a turn. Two questions decide what happened. Did this agent change its answer? Was the group’s majority right or wrong?
The first pair of knobs, α0 and α1, is about the agent’s own revision. α1 rewards persuadability: moving toward a correct majority, and not leaving it. α0 rewards critical reasoning: pulling a right answer out of a wrong crowd, and not caving in to one.
| Own answer at t | Own answer at t+1 | Majority at t | Bonus for the t+1 answer | What it rewards |
|---|---|---|---|---|
| Right | Wrong | Right | −α1 | Do not abandon a right answer the group already holds. |
| Right | Wrong | Wrong | −α0 | Do not cave in to a wrong crowd. |
| Wrong | Right | Wrong | +α0 | Escape a wrong crowd with critical reasoning. |
| Wrong | Right | Right | +α1 | Be persuaded by the correct majority. |
The second pair, β0 and β1, is about influence on others. Here we look at how the majority moved between t and t + 1, and credit the agent’s answer at turn t.
| Majority at t | Majority at t+1 | Own answer at t | Bonus for the t answer | What it rewards |
|---|---|---|---|---|
| Right | Wrong | Right | −β1 | A right answer that failed to hold the group. |
| Right | Wrong | Wrong | −β0 | A wrong answer that misled a right group. |
| Wrong | Right | Wrong | +β0 | A wrong answer that still held a useful clue. |
| Wrong | Right | Right | +β1 | A right answer that persuaded the group. |
So β1 is the reward for persuading with a correct answer. β0 is the more unusual one: it pays a wrong answer that contained useful pieces. That matches Chapter 2, where collaborating means offering partial, exploratory ideas that cost something now.
Choose a table, set the three facts with the buttons, and set the knob size. The bar shows the bonus added to the reward.
The four-row tables are the paper’s Tables 1 and 2. A combination that is not a row (for example, the answer stays right) gets no bonus. The knob values 0, 1 and 2 are the ones the paper tries.
To test one knob at a time, the authors shorten the debate to two turns and set one knob to 2 while the others stay at 0. They count how answers move. Two summary measures matter. Follow gap = (wrong then right, with a right majority) minus (right then wrong, with a right majority). Break gap = (wrong then right, with a wrong majority) minus (right then wrong, with a wrong majority).
| Setting | Measure | From | To | Change |
|---|---|---|---|---|
| α1 = 2 (Table 3) | Follow gap | 0.1757 | 0.1924 | +9.5% |
| α0 = 2 (Table 3) | Break gap | 0.0681 | 0.0678 | about 0 (the paper reports +2.57%) |
| β0 = 2 (Table 4) | Follow gap | 0.0151 | 0.0177 | +17.2% |
| β1 = 2 (Table 4) | Break gap | −0.0227 | −0.0230 | −1.32%, no gain |
Read the table with care. The paper’s own table headers and its text label these gaps in a mixed-up way. We recomputed each gap from the four transition columns, as defined above. For α0, the transition columns give a base of 0.0681, not the printed 0.0661, so the paper’s +2.57% disappears. The α1 and β0 results stand. A small printed typo (a 0.0686 where 0.0069 fits) shows up in Table 4 too.
Two lessons follow. Rewarding persuadability (α1) works. Rewarding useful wrong answers (β0) helps the most, as the paper says. Over a full three-turn debate, runs with all knobs at 0, 1 and 2 (Figure 2) improve a little over each other, but the paper calls the gain modest. Most of the benefit comes from Chapters 3 to 5.
Chapter 7
Read the main tables and figures: how the setup was tested, what rose, what transferred, and what the numbers do not prove
You have just built the method. Now we ask the plain question: does it work, and how would we know? A good reader of a paper first asks how the test was set up, and only then looks at the bars.
Two tasks, chosen because they need reasoning. GSM8K is a set of grade-school maths word problems with one numeric answer each. ANLI (adversarial natural language inference) gives a premise and a hypothesis, and asks whether the hypothesis follows (entailment), conflicts (contradiction) or neither (neutral). The questions were written to fool strong models.
The main model is Phi-3-mini-128k-instruct (3.4B parameters). Others are Qwen2.5-3B-instruct and Llama-3-8B-instruct. Everything is quantized and fine-tuned with QLoRA adapters. Test sets: 1,319 held-out GSM8K questions and 1,200 ANLI questions.
A fair test needs fair rules. After the last turn, the final answer is the majority vote of the agents. If two answers tie, the score is the expected accuracy of picking one tied answer at random, so there is no arbitrary tiebreak. A separate LLM then extracts the final answer from the text, so that formatting skill is not rewarded. The off-the-shelf baseline gets 600 tokens per answer, double the 300 that MAPoRL agents get, to remove any advantage from length.
Training uses two agents for three turns, starting at turn 2 (turn 1 is mostly knowledge, and an equal turn 1 keeps the comparison fair). The test uses three agents for three turns. So the trained agents face a group size they never trained with.
On GSM8K the numbers (Table 7) are: off the shelf 0.677, 0.689, 0.639; MAPoRL 0.677, 0.797, 0.809. The paper’s Figure 2 shows the same shape on ANLI. Look back at Chapter 0’s count of flips (Figures 3 and 4): MAPoRL at turn 2 moves 14.3% of GSM8K answers from wrong to right and 2.3% from right to wrong, a net gain of 12.03%. Off the shelf at turn 3 loses 4.95% net. On ANLI the net is +4.01% for MAPoRL at turn 2, against +0.47% off the shelf, and +1.09% against −1.72% at turn 3.
A fair worry: maybe training simply taught the model more GSM8K. Remark 2 tests this by asking each model the question alone, with no debate. Accuracy: Phi-3 0.609 on GSM8K and 0.451 on ANLI; MAPoRL turn-2 model 0.604 and 0.458; turn-3 model 0.611 and 0.453. These are within a point or less. Solo skill did not change. What changed is the use of other agents’ words.
Train on one task, test on the other. Table 5 gives 3-agent accuracy.
| Train, then test | Model | Turn 1 | Turn 2 | Turn 3 |
|---|---|---|---|---|
| ANLI, then GSM8K | Off the shelf | 0.677 | 0.688 | 0.640 |
| ANLI, then GSM8K | Trained | 0.677 | 0.712 | 0.720 |
| GSM8K, then ANLI | Off the shelf | 0.482 | 0.486 | 0.468 |
| GSM8K, then ANLI | Trained | 0.482 | 0.499 | 0.507 |
The trained agents still gain on a task they never saw. Compare: trained on ANLI, tested on GSM8K reaches 0.720 at turn 3, below the 0.809 of training on GSM8K itself. So transfer is real but partial. The authors read it as a general “collaboration skill”. We would add that these are one model family and two tasks.
Can a small model and a different small model help each other? The paper pairs Phi-3 with Qwen2.5-3B and with Llama-3-8B, for two agents and two turns (GPU memory allows only that). Reading the paper’s Figure 7 by eye, the Phi-3 plus Qwen2.5 pair goes from about 0.61 at turn 1 to about 0.76 at turn 2 after MAPoRL, against about 0.68 off the shelf. Phi-3 plus Llama-3 goes from about 0.65 to about 0.75, against about 0.67. Both pairs beat their untrained versions, and both beat the single-model start.
Pick an experiment. Gray bars are off-the-shelf debaters. Warm bars are MAPoRL-trained ones. Look at the last turn.
GSM8K and the two transfer settings are exact numbers from Tables 7 and 5 (3 agents, 3 turns). The two-model pairs are read by eye from Figure 7 (2 agents, 2 turns) and are approximate to about 0.01. The bars start at 0.4 so the gaps show; they are not drawn from zero.
Be careful. The models are 3B to 8B, small by 2025 standards. Each result comes from one training run per setting, with no error bars. The tasks are two. The final score is a vote, which the authors note a manager agent might beat. The paper says as much in its limits. The pattern, a rising curve against a falling one, is clear. The exact gaps may differ in your setting.
Chapter 8
Remove one piece at a time to see which parts carry the result, then see how the agents tried to cheat the reward
A cook tastes a soup after leaving out the salt, then after leaving out the pepper. That is an ablation: take one ingredient away and see what the result loses. If the soup is the same, the ingredient was not needed. The paper runs four such tests. Together they show which design choices are doing the work.
The most natural alternative to RL is supervised fine-tuning. The authors made it as favourable as they could. They ran the debate system 12,800 times with the off-the-shelf model, matching the number of questions used for MAPoRL. They allowed 600 tokens per answer. Then they kept the best 10%, which is 1,280 debates. A debate stayed only if its answers were well formatted, if its final majority vote was correct, and if the verifier gave the final answer a top score for correctness and reasoning.
Then they trained on those debates. Accuracy fell. Off the shelf had 0.689 at turn 2 and 0.639 at turn 3. After SFT it was 0.578 (down 0.111) and 0.525 (down 0.114). They repeated it with different generation temperatures and saw the same decline each time.
Why? The paper offers two guesses: SFT may need far more data, or it may not be the right tool. Our reading: the training debates were written by models that did not collaborate well. Imitating a debate copies the style of a conversation, but not the reasons one answer should change another. RL pays for outcomes, so it can find those reasons.
Without the verifier, the only reward is binary: 1 if the final answer is right, 0 if wrong, and nothing at middle turns. Table 7 gives GSM8K accuracy at turns 1 to 3: 0.677, 0.734, 0.746. With the verifier it is 0.677, 0.797, 0.809. So the verifier adds 0.063 at turn 3, but the no-verifier version still rises each turn. The paper concludes that the multi-agent training goal drives much of the gain, and the verifier adds more.
A fair question: why not RL a single model with the verifier? The authors did. It reached 0.732 after one turn, above the off-the-shelf 0.689 but under MAPoRL’s 0.809 at turn 3. The authors add that their aim is to study collaboration, so a solo oracle is not a full match. Still, this confirms Chapter 2 in a real model.
They trained verifiers on different base models (Qwen, Llama, Gemma) and paired them with generators from another family. Two things went wrong. The reward signal got worse. And, during RL, the generator drifted in style toward the verifier’s base model, often at the cost of accuracy. So the verifier and the agents should share a base model.
Each bar is a way to train. Tap a bar or a button to see what it removed from the full method.
All numbers are GSM8K accuracy with Phi-3-mini from the paper: off the shelf at turn 3 (Table 7), SFT at turn 3 (Section 4.7), single-agent RL after one turn (Table 8), MAPoRL without the verifier at turn 3 (Table 7), MAPoRL at turn 3 (Table 7). The single-agent run has one turn, so it is not the same setting as the others.
Any system that learns from a score will look for ways to raise the score without doing the task. This is reward hacking. The authors list what they met and what they did about it.
| Hack the agents found | Symptom | Fix in the paper |
|---|---|---|
| Answer too short | Terse answers scored fine, with no reasoning. | A penalty for answers under 50 tokens. Agents then used other end tokens, so the check was hardened. |
| Meaningless text (ANLI) | Long junk that met the length rule. | A reasoning-quality prompt that scores whether real reasoning is present, apart from correctness. |
| Token repetition | The same 2 to 5 tokens repeated. | A penalty of −10 for more than 3 repeats in a row, except for numbers. |
| Text after the boxed answer | Random tokens after \boxed{...}. | A penalty for any token after the box. |
| No boxed answer | Answer not in the required format. | Verifier score set to −10. |
One more guard sits on the evaluation side. An LLM extracts the final answer, so a model cannot gain from formatting tricks at test time.
The models are small (3B to 8B). Outputs depend on the instruction prompt, so results may shift with different wording. A manager agent that makes the final call could beat a majority vote. And there is a risk: a method that makes agents collaborate also helps bad agents collaborate with others.
Chapter 9
Keep the numbers, the terms, a build checklist and the core code, and see where the paper sits in the field
The paper in one paragraph. Debate between off-the-shelf models does not reliably improve answers. MAPoRL puts several models in a debate, scores every answer with a verifier trained on prefix labels, builds an influence-aware reward that credits an answer for what it causes later, and trains all agents at once with multi-agent PPO on small adapters. Optional incentives pay persuadability and useful influence. A toy game explains why co-training beats training alone. On GSM8K, Phi-3-mini debaters go from 0.677 to 0.809 over three turns, where untrained ones fall to 0.639.
| What | Value | Where |
|---|---|---|
| Off-the-shelf debate, GSM8K, turns 1 to 3 | 0.677, 0.689, 0.639 | Tables 7, 8 |
| MAPoRL, GSM8K, turns 1 to 3 | 0.677, 0.797, 0.809 | Table 7 |
| MAPoRL without the verifier | 0.677, 0.734, 0.746 | Table 7 |
| Single-agent RL, one turn | 0.732 | Table 8 |
| SFT on top 10% of debates, turns 2 and 3 | 0.578, 0.525 | Section 4.7 |
| Net answers fixed, GSM8K turn 2 | +12.03% vs +1.15% | Figure 3 |
| Solo accuracy before and after (GSM8K, ANLI) | 0.609, 0.451 vs 0.611, 0.453 | Remark 2 |
| Transfer ANLI to GSM8K, turn 3 | 0.640 to 0.720 | Table 5 |
| Transfer GSM8K to ANLI, turn 3 | 0.468 to 0.507 | Table 5 |
| Verifier accuracy (GSM8K, ANLI) | 0.91, 0.92 | Table 6 |
| Training settings | γ = 1, λKL = 2e−4, λvalue = 0.1, lr 1e−5, temp 0.7 | Appendix G.2 |
| Term | Plain meaning |
|---|---|
| Multi-agent debate | Several models read each other’s answers and answer again, for T turns. |
| Post-co-training | Extra training, after pretraining, in which several models train together. |
| Verifier | A trained scorer that outputs the chance an answer is right. |
| Influence-aware reward | An answer’s own score plus everyone’s later scores, discounted and averaged. |
| Multi-agent PPO | PPO where each agent and turn has its own policy and value function. |
| Incentive (α, β) | A bonus or penalty for good changes of mind or good influence. |
| Synergy | In the toy game, the big reward reached after enough joint collaboration. |
| Reward hacking | Raising the score without doing the task. |
pythonimport math def influence_reward(scores, t, a, gamma=1.0): """scores[t][j] = verifier score of agent j at turn t. Chapter 4.""" T, A = len(scores), len(scores[0]) norm = sum(gamma ** k for k in range(T - t)) total = scores[t][a] for tp in range(t + 1, T): total += gamma ** (tp - t) * sum(scores[tp]) / A return total / norm def verifier_loss(p, y): # Chapter 3, one prefix return -(y * math.log(p) + (1 - y) * math.log(1 - p)) def ppo_token_objective(logp_new, logp_old, adv, eps=0.2): # Chapter 5 rho = math.exp(logp_new - logp_old) clipped = min(max(1 - eps, rho), 1 + eps) return min(rho * adv, clipped * adv) def alpha_bonus(own_t, own_t1, maj_t, a0, a1): # Chapter 6, Table 1; True = right if own_t and not own_t1: return -a1 if maj_t else -a0 if own_t1 and not own_t: return a1 if maj_t else a0 return 0.0 # check against the worked example of Chapter 4 S = [[0.40, 0.30], [0.70, 0.80], [0.90, 0.90]] assert abs(influence_reward(S, 0, 0) - 0.6833) < 1e-3
MAPoRL joins three lines of work. The first is prompted debate and self-correction (Du et al. 2024; Huang et al. 2024), which this paper shows is unreliable on small models. The second is RL for reasoning with a verifier or a checkable answer, such as DeepSeek-R1 and outcome or process reward models. The third is multi-agent RL, where MAPPO is a standard base. Two contemporaneous papers (Subramaniam et al. 2025; Zhao et al. 2025) reach for multi-agent improvement with iterative SFT and data augmentation. MAPoRL uses RL and no augmentation.
For the MMAI course, the link to the lecture on transfer is Table 5. A skill learned on one task (collaboration on ANLI) carries over to another (GSM8K). Here the skill moves between tasks, not between senses.
Credit. MAPoRL2 is by Chanwoo Park, Seungju Han, Xingzhi Guo, Asuman Ozdaglar, Kaiqing Zhang and Joo-Kyung Kim. Read the original: arXiv 2502.18439. The authors’ code is at github.com/chanwoo-park-official/MAPoRL. Every device above is our own toy built on the paper’s numbers.
Go back to the hero instrument and press MAPoRL again. Then open Teach to explain the reward from memory, or Sparks to review the ideas.