PToco: Prefix-based Token-level Collaboration Enhances Reasoning for Multi-LLMs
Paper · 2025 · Yuang Bian, Yupian Lin, Jingping Liu et al.
Summary
When several language systems try to solve the same problem, they can agree on how an answer should begin while dividing that answer into different pieces. One system may predict a single digit, while another predicts a string beginning with that digit. Ordinary token-by-token voting counts these as different predictions. PToco gives them a way to agree on the text they share and to carry the rest of a longer prediction into the next round. The paper asks whether this kind of cooperation can improve reasoning among systems that are already trained and use different vocabularies.
At each generation step, PToco keeps a handful of likely candidates from each participant. It groups candidates by prefix relationships, adds their probabilities within each group, and emits the shortest candidate in the winning group. That candidate can be a complete token for some participants and only the beginning of a token for others. When a participant has predicted only longer candidates that start with the chosen text, PToco strips off the part already emitted and redistributes the probability among the remaining suffixes. The participant can then contribute those suffixes without running a new prediction at that step. This handoff is what lets systems with different tokenization boundaries continue producing the same answer.
The authors evaluate exact-answer accuracy on arithmetic, algebra, grade-school word problems, letter extraction and alphabetical sorting. A PToco ensemble reaches 92.7 on Word Sort, where its strongest individual participant scores 85.3. Another reaches 86.4 on GSM8K against a strongest participant at 81.3. Combining all four systems from the main experiments produces the highest reported average across the benchmarks, 79.7, and exceeds the strongest individual participant on each benchmark. The outcome still depends on who participates. On Add&Mul, for example, including two systems with low arithmetic accuracy can bring the ensemble below the score of its strongest member.
The paper also tests different group sizes, temperatures and a collaboration that brings a 70B system into the arithmetic experiments. The results show that a shared tokenizer and comparable parameter counts are unnecessary for the gains observed here. Accuracy is assessed at the final answer, so the experiments establish how frequently PToco solves these tasks under the tested conditions. Running several systems together requires access to their next-token probabilities and increases the time and memory needed for inference.
Deep dive: PToco: Prefix-based Token-level Collaboration Enhances Reasoning for Multi-LLMs
PToco combines next-token predictions across different tokenizers by grouping shared prefixes, improving accuracy on math and symbolic reasoning tasks. · about 31 minutes to read
The problem and its context
Where agreement can go missing
An answer takes shape over a sequence of decisions. At each step, a language model assigns scores to possible next pieces of text based on the input and the text generated so far. Choosing a piece changes the context for all subsequent decisions. In a reasoning task, that choice might begin a calculation, name something from the question or supply a digit inside an intermediate result. By the time a complete answer appears, the uncertainty that accompanied those choices is difficult to recover from the answer alone.
The paper treats this uncertainty as something collaborators can use. A participant may rate a continuation highly even when it would have picked a different continuation on its own. Several participants may lend support to text that none would have produced by following its individual first choice all the way to the end. Sharing probability information during generation makes that support visible at the point where it can change the output. It also introduces a practical question. The pieces receiving those probabilities depend on how each participant divides text.
A tokenizer maps text into units from a fixed vocabulary. A unit can be a word, a fragment of a word, a character or a longer sequence of characters. Its boundaries determine what the next prediction can express in a single decision. You can see the mismatch clearly in the paper’s illustration of numbers. Gemma2 handles numbers digit by digit, Llama3 groups digits in threes, and GLM4 uses a mixture of granularities. Give them the same input and the next piece can cover a different amount of the eventual answer in each system.
Suppose one prediction is a digit and a second prediction begins with that digit. Both favor putting the same character next, though the second commits to more text. A vote keyed to exact token identity records separate entries. The participant proposing more text can supply evidence for the shared beginning, but the system needs a way to recognize that partial agreement. Simply asking everyone for their next token obscures which proposals are compatible at the character level.
The numerical example also reveals a second problem. Once the group has emitted a shared beginning, every participant has to contribute evidence for what follows. One of them may have expected the emitted text to occur inside a longer token. Supplying it by itself can change how the new input is encoded and which continuations the participant favors. A scheme that can find agreement for one decision still needs to preserve continuity across decisions.
Collaboration through completed answers
The authors place this problem in the broader effort to improve the reliability of generated reasoning. They describe hallucinations as outputs that can sound credible while making false claims or producing nonsense. They also point to prior work on mathematical problems and planning as evidence that strong performance on many language tasks leaves substantial difficulties in reasoning. Their experiments pick out mathematical and symbolic tasks where correctness can be checked against a reference.
Multi-agent debate is one approach to combining participants. In the version discussed by the paper, each participant develops an initial response. The participants then read one another’s responses and revise their positions in light of the feedback. A variation adds a judge to evaluate contributions and decide the outcome. This arrangement lets a participant expose a mistake in an argument or supply a consideration that another participant omitted. Its basic unit of exchange is a response that can be read and criticized. Improving Factuality and Reasoning through Multiagent Debate and Encouraging Divergent Thinking through Multi-Agent Debate
The PToco authors identify two difficulties with applying that framework to the systems they want to combine. Debate calls for useful error recognition and revision. They argue that these abilities are stronger in systems such as GPT-4 and harder to count on in smaller participants. Debate also asks each participant to commit to a response before the others can influence it. A completed response can be revised through discussion, but it does not carry the probabilities originally assigned to continuations that were never chosen. GPT-4 Technical Report
PToco relocates the exchange to the next-token decision. Each participant contributes a short list of weighted possibilities. A common procedure determines the text that all participants will continue from. This changes what cooperation requires. A participant can help by assigning a useful continuation substantial probability. It need not express its uncertainty in prose or recognize the flaw in somebody else’s reasoning. At the same time, the probability exchange has no equivalent of a judge reading a whole argument and checking whether its conclusion follows.
Collaboration during generation
The paper describes earlier integration methods that blend next-token distributions. One example combines predictions from a translation system and a language system to improve translation. Another adjusts the influence of a smaller, benign system on a system whose outputs are less trusted. With a common tokenizer, a vocabulary entry can serve as the shared address for the probabilities assigned by different participants. The combination rule can then operate directly on corresponding entries.
A common vocabulary makes the identification step simple. For a heterogeneous group, the entries are different and may consume different amounts of text. Matching decoded strings exactly could still find candidates that happen to spell the same thing. That would leave shorter and longer candidates in separate bins even where their predictions agree about the next character. The paper’s choice of prefixes follows from this specific property of autoregressive generation. The immediate decision concerns what text to append at the current end of a shared sequence. Agreement about a beginning is therefore actionable even when agreement about the rest has yet to be established.
The authors also discuss earlier approaches that choose which participant should produce a token, according to which is expected to be most useful at that step. Selecting a participant can exploit differences in strengths. It gives the chosen participant control of that decision, so other participants’ evidence has a smaller role in the text ultimately selected there. PToco keeps the individual distributions in play and asks which beginning has the highest combined support among the retained predictions.
How prompting fits into the comparison
The paper distinguishes the organization of generation from what the prompt asks a participant to produce. A chain-of-thought prompt encourages a sequence of intermediate reasoning steps on the way to an answer. A few-shot version includes examples to illustrate how that reasoning can be presented. The PToco experiments use both chain-of-thought and few-shot chain-of-thought prompting. Chain-of-Thought Prompting and few-shot learning
Other work described by the authors explores intermediate reasoning paths in a tree, where the process can backtrack, or represents thoughts and their relationships in a graph. PToco acts at a smaller scale than those structures. Its candidate for the current decision is a piece of text, which may be part of an intermediate thought or part of the final answer. The method selects a shared continuation and carries it forward. The reasoning prompt can shape the sort of answer being generated while PToco changes how the participants settle each successive piece of that answer.
The method, step by step
A shared answer with separate vocabularies
PToco starts each participant from the same prompt. Each predicts how the text could continue, using its own vocabulary and assigning a probability to each possible token. The coordinator works with the text represented by the likely tokens and the probabilities attached to them. In a round where a short prediction begins several longer predictions, the coordinator can use the longer predictions as evidence for emitting the short one. After that decision, participants either make new predictions from the updated text or carry forward compatible parts of earlier predictions.
Think of the shared text and the per-participant prediction state as distinct parts of the procedure. The shared text records what has actually been emitted. The prediction state records what each participant has said about possible continuations. A participant whose longer prediction has been partly emitted has something left to say before it needs to predict from scratch. A participant that predicted the chosen piece as a whole token is ready for a fresh decision. Both contribute to the same next round.
How PToco generates a shared continuation
The steps in order.
The decision about a prefix happens before the decision about how each participant should resume. That ordering matters because the chosen prefix may have different statuses across participants. PToco uses the same shared output in all cases, then checks the previous candidates separately for each participant. A reused distribution is thus specific to the participant that previously proposed the longer tokens.
From scores to retained candidates
The paper denotes the participants by Mᵢ, with i indexing the n systems taking part, and calls the initial prompt p. When Mᵢ runs a forward computation, it produces a logit for each member of its vocabulary. A logit is the score before conversion to a probability. PToco uses the softmax function to make that conversion.
Pᵢ(t) = exp(zᵢ(t) / τ) / [∑ᵥ∈Vᵢ exp(zᵢ(v) / τ)]
Here Pᵢ(t) is the probability that participant Mᵢ assigns to candidate token t. Its vocabulary is Vᵢ, and v is a token ranging over that vocabulary in the denominator. The expressions zᵢ(t) and zᵢ(v) are the participant’s logits for the corresponding tokens. The function exp takes an exponential, and ∑ adds the resulting values across the vocabulary. The temperature τ scales the logits before exponentiation. Dividing by the sum makes the result a probability distribution over Vᵢ.
A temperature below 1 sharpens the distribution by increasing the relative advantage of higher logits. A temperature above 1 softens the distribution. The main experiments use τ = 1, which leaves the logits at their original scale before softmax. Temperature can influence the group decision even if a participant’s own ranking of tokens stays the same. PToco uses the numerical probabilities to decide which candidates survive its filter and how much support they add to a group.
There are two filters. PToco first takes up to the k most probable candidates from each participant. It then discards candidates below the probability threshold pₜₕᵣₑₛ. The experiments use k = 5 and pₜₕᵣₑₛ = 5%. Each participant can therefore contribute a different number of candidates. A participant with probability concentrated on a small set may supply fewer entries than one with several strong alternatives. A continuation excluded at this stage cannot lend its probability to a group later in the round.
Tᵢ = {(tᵢ,ⱼ, pᵢ,ⱼ) | tᵢ,ⱼ is among the top k, pᵢ,ⱼ ≥ pₜₕᵣₑₛ}
Tᵢ contains the retained pairs for participant Mᵢ. The token tᵢ,ⱼ is candidate j from that participant, and pᵢ,ⱼ is the probability assigned to it by the softmax. The parentheses enclose a pair, the braces delimit a collection, and the vertical bar introduces the conditions for inclusion. The comma between those conditions means that both must hold. The symbol ≥ includes a candidate whose probability meets the threshold exactly. The number of pairs retained can be smaller than k.
Tₐₗₗ = ⋃ᵢ Tᵢ
Tₐₗₗ is the combined candidate collection. The union sign ⋃ gathers the entries of Tᵢ over the participant index i. The grouping procedure then examines the candidate tokens from that collection. Their attached probabilities remain relevant even when candidates spell the same text, because the group score is meant to collect support from multiple predictions. There is no initial normalization that gives each participant the same total amount of surviving probability after the filter. The probabilities used for a fresh prediction are those of the retained entries in the original distribution.
Finding a beginning the candidates share
The test for putting two tokens together is based on their text. They have a prefix relationship when either token is the beginning of the other. An exact match also meets that test. Sharing some initial characters is insufficient if neither token in its entirety starts the other. The distinction lets PToco use a candidate that somebody actually proposed as the piece of text it emits.
In the grouping algorithm, the coordinator begins with an empty list of groups. It examines a candidate and searches through the existing groups. If the candidate has a prefix relationship with any member of a group, it joins the first group that meets the condition. If the search finds no such group, the candidate starts a new group. This pass turns the candidates into groups of possible continuations. The paper describes the shortest member of a group as the common prefix that represents that group.
A short candidate can connect alternatives that disagree once its characters have been consumed. In the generation figure, the digit 9 is compatible with both 96 and 98. The longer candidates agree on 9 and express different choices about what comes afterwards. Grouping them lets the system resolve the common part immediately. The next round can resolve the remaining part in light of whatever additional evidence is then available. This is how a coarse prediction can inform a fine-grained decision without forcing the complete coarse token into the shared answer.
The matching rule uses the beginning of the candidate, never an occurrence in its interior. If a token contains a relevant character farther along, choosing the character now would skip text that the participant predicted should come first. Prefix agreement respects the left-to-right generation order. It can reconcile different boundaries at the same point in the answer. It cannot align arbitrary spans from completed solutions or recognize that different expressions have the same meaning.
Choosing the group and deciding how much to emit
Once the groups are in place, the coordinator adds the probabilities of their members. The selected group is the one with the highest sum.
Gₘₐₓ = arg max over Gₖ [∑ₜᵢ,ⱼ∈Gₖ pᵢ,ⱼ]
Gₖ is a candidate group indexed by k. In this expression k identifies a group, separately from the earlier use of k as the cap on retained candidates. The condition tᵢ,ⱼ ∈ Gₖ means that the candidate tᵢ,ⱼ from participant i is a member of Gₖ. The sum adds its probability pᵢ,ⱼ and the probabilities of the other members. The operation arg max returns the group that achieves the largest sum, and Gₘₐₓ names that group.
The sum is a score for comparison across groups. Each contributing probability was assigned within a particular participant’s distribution, so the combined score can exceed the maximum possible probability in any one distribution. The illustration makes this visible. The group headed by 9 wins with a cumulative score of 146%. That number expresses pooled support over its members. It should be understood as the value PToco used to rank the group.
PToco emits the shortest token in the selected group. This can differ from taking the individually most probable token among the candidates. A longer candidate may add important support to the winning group and still extend beyond the text that represents the group’s agreement. By emitting the shorter piece, PToco postpones the rest of the decision. When candidates already share the same token text, the emitted piece can of course be a complete token for all the participants that proposed it.
The paper describes this selection as taking the longest common prefix of the group and, in the method, implements the decision as choosing its shortest token. The two descriptions coincide when the shortest member starts every candidate in the group. All members then share its entire text, and any longer proposed common prefix would exceed the shortest member. The illustrated 9 group satisfies that property. The way the pseudocode assigns groups raises a qualification about candidate order, discussed under Limitations.
Keeping continuity across rounds
Once a piece is selected, the coordinator extends the current prompt for the next round. The round index in the paper’s description of this update tracks generation steps.
pᵢ₊₁ = pᵢ ⧺ gᵢ
The symbols pᵢ and pᵢ₊₁ refer to the shared text at the current and next rounds, respectively. The index i here labels a round, and i + 1 denotes the following round. The symbol gᵢ names the text generated at the current round. The operator ⧺ appends that text to the end of pᵢ. The growing input includes the original prompt followed by all the text PToco has accepted.
For a participant that predicted gᵢ as a standalone token among the retained candidates, PToco sends the updated input through that participant again. This applies even if the participant also proposed longer candidates beginning with the selected string. The presence of the standalone candidate is enough for PToco to continue with fresh probabilities.
A participant whose retained list contains longer candidates beginning with gᵢ, but lacks the standalone candidate, follows a different branch. PToco keeps the candidates beginning with gᵢ and removes that prefix from their text. It retains their relative probabilities, scaling them so that the probabilities of the surviving suffixes add to 1. The adjusted list can serve as the participant’s contribution to the next round without a new forward computation.
qᵢ(s) = pᵢ(t) / [∑ᵤ∈Cᵢ pᵢ(u)]
In this expression, i again indexes a participant. Cᵢ is the collection of its retained longer candidates that begin with the accepted prefix. The token t is one of those candidates and s is the suffix left when the prefix is removed. The values pᵢ(t) and pᵢ(u) are the probabilities attached to candidates in the current list, with u ranging over Cᵢ. The sum in the denominator is the total probability carried by that collection. Dividing by it gives the adjusted probability qᵢ(s) for the next round. This conditions the retained predictions on compatibility with the accepted beginning. It uses the candidates available to the procedure, which have already passed the filtering stage.
The paper’s example shows this handoff in action. The participant called Carol offered 96 and 98, while the winning group agreed on 9. After 9 becomes part of the shared answer, Carol contributes the suffixes 6 and 8. Their relative weights come from the preceding round. The other participants’ contributions can then agree or compete with those suffixes. The process uses Carol’s prediction about the longer text without asking Carol to interpret the newly emitted digit as a fresh token boundary.
The authors illustrate the failure this is meant to avoid with Llama3. After the token comprising 9 is appended separately, Llama3 fails to predict the intended next character 4. The authors suggest that a standalone prefix and its longer counterpart can have different token identities during training. The system may therefore react differently to a prompt ending in the standalone prefix than it would while predicting the longer token from the preceding prompt. Carrying forward the suffix distribution preserves information about that longer prediction.
The remaining branch covers a participant that proposed neither the chosen text on its own nor any retained longer token starting with it. PToco sends that participant the updated prompt to obtain a fresh distribution. Its prior list has no compatible suffix to pass forward. This branch gives it a way to rejoin the group after a decision that its earlier candidates did not support. Absence from the retained list is the condition that matters. A participant may have assigned some probability to compatible text farther down its vocabulary ranking.
What is fixed before evaluation
The paper applies PToco to existing chat systems that have already undergone instruction tuning and reinforcement learning from human feedback. The procedure operates on their outputs at inference time. Candidate filtering uses the stated limit and threshold, and the score adds the retained probabilities directly. No additional training of a group scorer forms part of the method described in the paper. The paper makes its experimental code available under the name PToco.
The data procedure belongs to evaluation. The authors construct Add&Mul by randomly generating arithmetic problems and use existing datasets for the other tasks. They apply reasoning prompts and compare generated answers with references. The score depends on what the joint generation procedure ultimately puts in the answer. The benchmarks supply questions and a way to judge them, while the participants’ probabilities supply the evidence used at each step of decoding.
Experiments and results
What the tasks ask the systems to do
The mathematical benchmarks cover numerical calculation, algebraic questions with answer choices, and grade-school word problems. Add&Mul isolates arithmetic with randomly generated questions. It includes addition of pairs of 8-digit, 12-digit, 16-digit and 20-digit numbers and multiplication of pairs of 2-digit or 3-digit numbers. These subsets give the paper a way to look at operand length and operation separately, in addition to reporting the overall result on the dataset.
AQuA uses multiple-choice algebra problems. Success requires selecting the correct option. The answer score can establish whether that selection was correct while leaving the quality of the explanation unmeasured. GSM8K uses grade-school mathematics problems, which the paper describes as usually involving 2 to 8 reasoning steps. Presented together, these benchmarks help distinguish performance on calculations alone from performance on problems where the text also has to be understood. Program Induction by Rationale Generation and Training Verifiers to Solve Math Word Problems
The symbolic tasks put the emphasis elsewhere. In Last Letter Concat, a system extracts the final letter of each word in a phrase and joins the letters in their original order. In Word Sort, it arranges a list of 8-10 words alphabetically. The first task requires finding the right characters and preserving their order. The second requires comparing the words character by character and producing a correctly ordered list. Success on either shows that the decoding procedure can help on tasks whose outputs are meaningful as strings outside the arithmetic setting. Beyond the Imitation Game
All the dataset results use exact-match accuracy against the reference answer. That makes the target clear. A nearly correct numerical result or a sorted list with a misplaced word still fails the answer check. Conversely, the score rewards a correct final answer without judging whether every explanatory statement leading to it was sound. The reported average combines results across the benchmarks, whose exact matches represent different kinds of answers. It gives a view of overall performance across the test suite alongside the separate task scores.
How to read the comparisons
The main experiments use Qwen2-7B, Gemma2-9B, Llama3-8B and GLM4-9B. All are chat systems with fewer than 10 billion parameters. For the individual runs, the authors use greedy decoding, meaning that each system repeatedly chooses its most probable next token. For collaboration, the participants supply distributions at temperature 1 and PToco chooses the shared continuation. The main result table reports the settings with three participants. The analyses also report collaboration in pairs and among all four.
An ensemble’s comparison baseline is the highest individual accuracy among its own participants on the benchmark in question. For example, the baseline for a group containing GLM4 on Word Sort can be GLM4’s 85.3. A group without GLM4 has a different best-member baseline there. This distinction makes both the ensemble’s absolute score and the identity of its strongest participant worth checking. A group can improve on its own baseline while trailing another group in absolute accuracy, and the largest reported gain need not identify the highest score.
The strongest participant also changes with the task. GLM4-9B posts 85.3 on Word Sort and 81.3 on GSM8K, while its Add&Mul accuracy is 10.2. Qwen2-7B scores 68.4 on Add&Mul and 60.6 on AQuA, with 11.7 on Word Sort. Llama3-8B and Gemma2-9B each reach 68.0 on Last Letter Concat. These differences are central to the study. The same fixed ensemble can contain several able participants for one task and relatively few for another.
The paper’s averages for individual runs are 54.7 for Qwen2-7B, 58.0 for Llama3-8B, 60.7 for GLM4-9B and 66.7 for Gemma2-9B. Those averages give a sense of performance across the test suite. They conceal some of the strongest differences among tasks. Qwen2, for instance, has the lowest individual average of the four and leads the individual results on both Add&Mul and AQuA. A single overall ranking would miss why it can be a valuable participant in a mathematical ensemble.
Symbolic reasoning
On Last Letter Concat, the three-participant configurations in the main table all outperform their strongest individual members. Llama3-8B, GLM4-9B and Gemma2-9B together reach 85.3, with the paper listing a gain of 17.3 over the best individual score in that group. Qwen2-7B, Llama3-8B and Gemma2-9B reach 84.7. The other tested trios both reach 82.0. The best trio for this task contains the systems that are strongest in the individual results, although the improvement is broad across the groups tested.
The same trio of Llama3-8B, GLM4-9B and Gemma2-9B reaches 92.7 on Word Sort, the highest reported score in the comparisons among the smaller systems. It brings together the highest individual Word Sort score and participants that also perform reasonably well on that task. Qwen2-7B, GLM4-9B and Gemma2-9B reach 89.3. Qwen2’s individual accuracy of 11.7 makes that combination a useful contrast. A participant with poor independent performance can be present in a group that still improves on its strongest member.
Word Sort also shows that composition and size need to be considered together. Adding Qwen2-7B to the strongest trio gives 90.0 for the ensemble of all four. This exceeds GLM4-9B’s individual result and falls short of the trio’s 92.7. Across ensembles of the same size, the trio of Qwen2-7B, Llama3-8B and Gemma2-9B reaches 79.3. That is above its own strongest individual participant, Gemma2-9B at 73.3. The score still trails the individual GLM4-9B result, illustrating the difference between the ensemble’s baseline and the strongest system in the study.
Word Sort exact-match accuracy for individual and collaborative decoding
PToco reaches its highest sorting accuracy with the trio of strong individual sorters.
The numbers
| System or setting | accuracy % |
|---|---|
| Qwen2-7B | 11.7 |
| Llama3-8B | 72.3 |
| Gemma2-9B | 73.3 |
| GLM4-9B | 85.3 |
| PToco with Qwen2, GLM4 and Gemma2 | 89.3 |
| PToco with all four participants | 90.0 |
| PToco with Llama3, GLM4 and Gemma2 (this paper) | 92.7 |
The two symbolic tasks complement one another as evidence. Last Letter Concat has fairly close individual scores, and every trio reports an improvement. Word Sort has much wider separation among individuals. The results there show what can happen when an ensemble has to combine sharply different abilities on the same task. Neither result traces the gain to particular generation steps. The measured outcome is the accuracy of the completed character string or word ordering.
Mathematics
GSM8K has fairly strong individual results across the group. GLM4-9B scores 81.3, Gemma2-9B scores 80.6, Qwen2-7B scores 76.3 and Llama3-8B scores 74.7. All the trios in the main results improve on their own best individual participant. The highest result is 86.4 for Qwen2-7B, GLM4-9B and Gemma2-9B, with a reported gain of 5.1 over the strongest member. The trio of Qwen2-7B, Llama3-8B and Gemma2-9B comes close at 86.1. Its reported gain is 5.5 because it starts from a different best-member result, Gemma2-9B’s 80.6.
GSM8K exact-match accuracy for individual systems and PToco trios
The best trio combines strong individual performers, and another lineup comes close without the strongest individual solver.
The numbers
| System or setting | accuracy % |
|---|---|
| Llama3-8B | 74.7 |
| Qwen2-7B | 76.3 |
| Gemma2-9B | 80.6 |
| GLM4-9B | 81.3 |
| PToco with Llama3, GLM4 and Gemma2 | 83.1 |
| PToco with Qwen2, Llama3 and GLM4 | 83.3 |
| PToco with Qwen2, Llama3 and Gemma2 | 86.1 |
| PToco with Qwen2, GLM4 and Gemma2 (this paper) | 86.4 |
Add&Mul distinguishes the stronger arithmetic participants from the weaker ones more sharply. Qwen2-7B leads individual decoding at 68.4, followed by Gemma2-9B at 64.5. The best trio is Qwen2-7B, Llama3-8B and Gemma2-9B at 76.1, with a reported gain of 7.7 over the strongest member. Qwen2-7B, GLM4-9B and Gemma2-9B reach 71.4, with a reported gain of 3.0. Both trios contain the two strongest arithmetic participants but differ in the third member. The result favors Llama3 over GLM4 in that particular combination and task.
The two trios that include both Llama3-8B and GLM4-9B perform less well on Add&Mul. With Gemma2-9B as the third participant, the group scores 58.5, below Gemma2-9B’s individual 64.5. With Qwen2-7B instead, it scores 59.4 against Qwen2-7B’s 68.4. Each group contains one participant with a much stronger arithmetic result than its peers. That participant’s presence is insufficient to lift the ensemble to its standalone accuracy.
For AQuA, the best trio is Qwen2-7B, GLM4-9B and Gemma2-9B. The group reaches 67.3, with a reported gain of 6.7 over Qwen2-7B. Qwen2-7B, Llama3-8B and GLM4-9B reach 63.0. The trios that contain both Llama3-8B and Gemma2-9B each reach 59.1. For the group with GLM4-9B, that is below GLM4-9B’s 59.5. For the group with Qwen2-7B, it is below Qwen2-7B’s 60.6. The comparison again associates group performance with the strengths of several members on the particular task.
The best trio average is 79.3 for Qwen2-7B, GLM4-9B and Gemma2-9B. Across the suite it combines the best trio results on AQuA and GSM8K with competitive results elsewhere. The trio with the best Word Sort score averages 75.7. The trio with the best Add&Mul score averages 77.1. These rankings capture different questions. The average favors the lineup that performs well across the suite. A task-specific result identifies which lineup generated the most exact answers for that benchmark.
What the ablations show
Changing how many participants collaborate
The group-size analysis adds the pairwise results and the ensemble of all four to the individual and trio comparisons. Pairs are useful because they show what happens when a strong participant has only one other source of support. The largest ensemble tests whether the procedure can still combine the available evidence when every participant contributes. These comparisons vary who is included as well as group size. The particular pair or trio matters when interpreting a result.
All the pairs improve over their own best individual participant on Last Letter Concat and GSM8K. On Last Letter Concat, Qwen2-7B and Gemma2-9B reach 83.3 against Gemma2-9B’s 68.0. GLM4-9B and Gemma2-9B reach 80.0. On GSM8K, the latter pair reaches 84.9 against GLM4-9B’s 81.3, while Llama3-8B and Gemma2-9B reach 80.8 against Gemma2-9B’s 80.6. The improvement holds across the tested pairs on these benchmarks, and its magnitude still varies with the membership.
The Word Sort pairs reveal the effect of a large gap between participants. Each pair involving Qwen2-7B falls below the score of its stronger partner. The pair with Llama3-8B scores 56.7 against Llama3-8B’s 72.3, and the pair with Gemma2-9B scores 62.3 against Gemma2-9B’s 73.3. Pairing Qwen2-7B with GLM4-9B produces 80.3, also below GLM4-9B’s 85.3. On the same benchmark, pairing GLM4-9B with Gemma2-9B raises the score to 91.0. These paired results give some support to the authors’ interpretation that a strong collaborator benefits from having another able participant lend weight to compatible predictions.
That interpretation gains a concrete point of comparison from the trios. Qwen2-7B and GLM4-9B achieve 80.3 on Word Sort as a pair. With Gemma2-9B added, PToco reaches 89.3. The extra participant in this comparison has solid individual accuracy on the task, and the group moves from below GLM4-9B’s result to above it. PToco uses probabilities instead of a count of independent votes. The result is consistent with another strong participant supplying good evidence, while the answer-level measurements leave its specific contribution at each token unresolved.
Pairs on Add&Mul also show that a larger group does not automatically improve on a particular smaller one. Qwen2-7B and Gemma2-9B reach 72.5. Adding Llama3-8B gives 76.1, while adding GLM4-9B gives 71.4. Every group in that comparison has the same strongest individual arithmetic participant, Qwen2-7B at 68.4. Thus the direction of change from the pair’s score depends on which additional participant supplies predictions. Among pairs, Qwen2-7B and GLM4-9B reach only 43.3, despite including the best individual arithmetic solver of the four. These comparisons fit the paper’s claim that collaborator quality matters at the task level.
The ensemble of all four reaches 79.7 on the reported average, ahead of the best trio average of 79.3. Its Last Letter Concat accuracy reaches 86.7, ahead of the trio results on that dataset. It scores 90.0 on Word Sort, 74.9 on Add&Mul, 61.8 on AQuA and 85.1 on GSM8K. Each of those scores exceeds the best individual accuracy among its participants. Several are lower than the best trio score for the corresponding benchmark. The larger group is strongest as a single lineup for the suite under the average reported here, while choosing a lineup for a specific task can lead to a different result.
Mean exact-match accuracy across the five reasoning benchmarks by collaboration size
The best reported average rises across these settings and peaks with all four participants.
The numbers
| System or setting | average accuracy % |
|---|---|
| Gemma2-9B alone | 66.7 |
| PToco with Qwen2 and Gemma2 | 72.6 |
| PToco with Qwen2, GLM4 and Gemma2 | 79.3 |
| PToco with all four participants (this paper) | 79.7 |
The chart follows the highest reported average for each size. The best individual, pair and trio all include Gemma2-9B, but the membership changes along with the count. The comparison measures what the best tested choice at each size achieved. It leaves open the effect of adding an arbitrary participant or expanding beyond the group sizes the authors evaluated.
Changing the temperature
The temperature analysis starts from the best-performing combination for each dataset, allowing the chosen lineup to vary by task. The authors then test collaboration with temperatures ranging from 0.5 to 1.5. Their stated conclusion from the resulting curves is that PToco performs best at 1.0. The best combinations used for the sweep can come from pairs, trios or the ensemble of all four. This is a test of temperature within selected collaborative setups.
A change in temperature can influence PToco through both candidate selection and group scoring. A sharper distribution can leave fewer alternatives above the filter threshold and give a high-confidence candidate more influence. A softer distribution shifts relative weight away from the largest probabilities and can change which alternatives reach the threshold. The relative weights of a participant’s carried-over suffixes also originate in its earlier candidate probabilities. The temperature therefore affects evidence available for both the current decision and the next one when those predictions are reused.
The authors suggest that leaving the logits unscaled preserves the participants’ original confidence. The experiment establishes that 1.0 works best in the sweep as reported. Establishing the proposed explanation would require evaluating how well the probabilities correspond to correctness and how the temperature affects which candidates survive. The curves summarize the effect on final accuracy. They do not isolate the changes in candidate membership from the changes in weights within a group.
Bringing a larger participant into the arithmetic tests
The scale analysis returns to the individual Add&Mul subsets. The authors take Qwen2-7B, the strongest individual system on Add&Mul in the smaller group, and the best arithmetic trio, which includes Qwen2-7B, Llama3-8B and Gemma2-9B. They test each in collaboration with Llama3-70B. This holds the task family fixed while introducing a much larger participant into lineups already evaluated on arithmetic.
Llama3-70B has the highest individual Add&Mul average shown for this comparison, 68.7, with Qwen2-7B at 68.4. PToco with Qwen2-7B and Llama3-70B reaches 78.4. The paper reports a gain of 9.7 points over Llama3-70B’s standalone average. Adding Llama3-70B to the best smaller trio yields 80.7, the highest average in the scale experiment. The comparison shows that a large gap in parameter count can coexist with useful collaboration. The individual average is more closely matched for the successful pair than their parameter counts suggest.
The subset details clarify how the aggregate changes. On Add-20, Qwen2-7B scores 68.0 and Llama3-70B scores 49.5 individually. Together they reach 80.0. On Add-16, Llama3-70B scores 79.4 and Qwen2-7B scores 73.7, while the pair reaches 88.7. The individual ranking changes across the two addition lengths. The same pair improves on both participants at each of those lengths.
Other subsets show why the largest average and the best result for a particular operation are distinct. On Add-16 the pair’s 88.7 exceeds the larger group’s 87.5. On Mul-2, Gemma2-9B alone reaches 96.6, and the group that includes it and Llama3-70B reaches 96.7. On Mul-3 the highest reported result in the scale table is 26.4 for that group, compared with 22.2 for Llama3-70B on its own. Even the strongest ensemble in that comparison leaves substantial room for improvement on the harder multiplication subset.
What these comparisons isolate
The paper’s ablations establish how the full procedure behaves under changes in membership, group size and temperature. The scale comparison also shows how results vary across arithmetic subsets when a larger participant is brought in. These are informative controls for selecting an ensemble. They allow a reader to see that the gains depend on more than the number of available systems or their parameter counts.
A different question is how much accuracy comes from each part of the decoding rule. The paper illustrates why prefix grouping makes differently sized token predictions comparable and why suffix reuse can avoid disrupting a coarse prediction. It does not report a component-level accuracy comparison that disables either stage while keeping the other conditions fixed. The observed gains belong to the full procedure. The examples explain the mechanisms, while the benchmark and ablation results measure their combined behavior.
Limitations
Limits the authors identify
The authors identify participant selection as a practical requirement. Performance can fall when several participants are weak on the task, as the Word Sort pairs and the Add&Mul trios illustrate. PToco’s group score collects support from the candidates put forward by its members. A participant with high standalone accuracy has no special protection when the combined mass favors another continuation. Preliminary evaluation of individual participants is therefore part of the authors’ account of how to choose a suitable group.
The authors also require access to token-level probabilities during generation. The coordinator needs to inspect and compare likely continuations, then decide what text every participant should proceed from. A service that only returns completed answers cannot participate in the procedure as described. The authors frame this as restricting the approach to open-source systems. The technical dependency is access to the predictions at each step, together with control over what text is supplied for later steps.
The final stated limitation is computational overhead. Running multiple participants, collecting their predictions and coordinating a prefix decision require more GPU memory and inference time than running a single participant. Reusing suffix predictions can remove a forward computation for a participant in a particular round. The results do not quantify how frequently that happens or translate the savings into an end-to-end timing or memory comparison. Accuracy alone therefore cannot establish how PToco would compare with another use of the same computation budget.
Limits visible in the evaluation
The tasks are all reasoning benchmarks with reference answers that can be checked exactly. That common scoring rule lets the paper compare task success across mathematical and symbolic problems. It leaves the reasoning text largely unexamined. A correct answer can follow an imperfect explanation, and an incorrect answer can contain valid intermediate work. The results therefore establish differences in final-answer accuracy. The motivating concern about hallucinations would require separate factuality measurements to establish how the procedure changes that behavior.
The experimental baseline answers a focused question. Can collaborators beat the strongest answer generator among their own members when that participant decodes greedily? The benchmark comparisons establish when they can. The setup includes no direct comparison with multi-agent debate, a completed-answer vote or another collaborative decoding method on these same tasks. It also supplies no budget-matched comparison with using a single participant for more inference. The paper’s account of earlier approaches explains why PToco was designed this way. The experimental advantage is measured against the individual baselines it actually ran.
The smaller group draws on four families, and the mixed-scale result comes from adding Llama3-70B on Add&Mul. That is concrete evidence of operation across the tested tokenizers and parameter counts. It leaves other kinds of reasoning, other participant lineups and larger ensembles open. Likewise, the temperature sweep applies to combinations selected for the tested datasets. It shows a useful setting in those experiments without establishing the same optimum for new tasks or differently calibrated participants.
Limits of the grouping and filtering rules
The printed grouping algorithm inserts each candidate into the first existing group that contains a compatible token. It gives no step that merges existing groups when a subsequent candidate matches members of both. Consider the candidate strings care, cat and ca. If care and cat are processed first, neither begins with the other, so each can start its own group. A later ca fits both and is inserted in the first compatible group. If ca is processed first, the longer strings can both join its group. Candidate order can therefore affect which probabilities are pooled under the algorithm as written.
The group’s shortest candidate also need not be a common prefix under every ordering permitted by that insertion rule. A shorter candidate can join because it matches a longer member, even when it fails to prefix some other member already in the group. The paper’s example cleanly illustrates the intended behavior. The pseudocode alone does not justify a general guarantee that each group has that structure. The benchmark results give the behavior of the evaluated system without measuring the frequency or consequences of order-dependent cases.
Filtering sets a further boundary on what PToco can call consensus. A participant may assign meaningful total probability to many compatible candidates while each individual candidate falls below the cutoff or outside the top list. That support disappears before grouping. When compatible suffixes are reused, their weights are normalized over the survivors. The resulting distribution represents the continuations retained by the algorithm, and its strength depends on what the filter preserved. The paper varies temperature but does not give a separate sensitivity study for the candidate cap or the probability threshold. The reported settings work in the evaluated conditions without establishing how much useful evidence other settings would preserve.
What came after
No later citing work is documented for PToco, so there is no established follow-up to describe. The evidence for using prefixes to coordinate different tokenizers, including the arithmetic collaboration across parameter scales, comes from the original experiments.
Cite
Cite as Yuang Bian, Yupian Lin, Jingping Liu and Tong Ruan. 2025. PToco: Prefix-based Token-level Collaboration Enhances Reasoning for Multi-LLMs. Proceedings of the 31st International Conference on Computational Linguistics.
@inproceedings{bian2025ptoco,
title = {{PToco: Prefix-based Token-level Collaboration Enhances Reasoning for Multi-LLMs}},
author = {Yuang Bian, Yupian Lin, Jingping Liu and Tong Ruan},
booktitle = {Proceedings of the 31st International Conference on Computational Linguistics},
year = {2025},
url = {https://aclanthology.org/2025.coling-main.556/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bian-2025-ptoco-prefix-based-token-level/