Elamur Research

Meta-Reasoning Improves Tool Use in Large Language Models

Paper · 2025 · Lisa Alazraki and Marek Rei

Summary

A calculator can tell you the result of a division. In a word problem, the harder decision may be whether to divide at all. The solver has to recognize the relationship between the quantities, give the calculator the right inputs, and carry the result forward. When a solution requires several calculations, a mistake in any of these decisions can affect everything that follows. Lisa Alazraki and Marek Rei study what happens when a large language model gets to compare possible operations before it commits to the next step.

Their system, TECTON, works through a solution line by line. An output layer trained to recognize opportunities for tool use supplies candidate operations. As the system drafts a line, it looks for those operations among the highest-ranked tokens at every position, including candidates that fall below the first choice. It asks for inputs to the proposed operations, consolidates identical calls, and runs the rest in Python. The authors call the next phase meta-reasoning. With the learned output extension switched off, the same underlying network looks back at the candidates and decides how to proceed.

The paper tests different ways to make that decision. TECTON-SCORE turns the candidates into a multiple-choice question and adjusts the scores to account for a persistent preference for certain letters. TECTON-GENERATE presents the calls as optional hints and supplies worked examples chosen for their use of the operations under consideration. It then writes the next part of the solution. Both versions use Llama 3 8B Instruct. The authors train the mathematical tool extensions on GSM8K-XL and FuncQA and test transfer to other word-problem benchmarks whose numbers they enlarge to make computation more demanding.

SCORE leads the GSM8K-XL test comparison with 50.7% final-answer accuracy, ahead of ToolkenGPT at 48.4%. GENERATE leads on the FuncQA multi-operation test split with 20.6%, where ToolkenGPT reaches 10.3%. GENERATE also has the highest accuracy on each of the unseen enlarged-number datasets. Removing the letter-score adjustment or the retrieved examples reduces accuracy in the variant that uses it. The experiments show how a second look can improve mathematical tool use under the tested conditions. The multi-operation scores also show how much difficulty remains even when the solver can execute the individual calculations.

Deep dive: Meta-Reasoning Improves Tool Use in Large Language Models

TECTON tests whether comparing several executable calculations helps a language model choose the right next step in a math problem. · about 33 minutes to read

The problem and its context

Where a calculator leaves work for the solver

A word problem gives the solver a description of a situation and asks for a quantity. Some of the work consists of identifying relationships in that description. The rest can involve fairly mechanical computation. Suppose a problem gives a total and asks how much belongs in each equal share. The solver has to recognize that the total and the number of shares play different roles. Once the division is specified, a program can carry it out. If the solver supplies the inputs in the opposite order, the program may still return a perfectly valid number.

The distinction becomes more consequential when an answer depends on intermediate values. The first calculation may establish a subtotal that becomes an input to a later calculation. A mistaken subtotal can travel through an otherwise coherent solution. Later operations can each be appropriate to the preceding line and still give the wrong answer to the original question. This is part of why the authors choose mathematics as a test of tool-assisted reasoning. The paper describes it as a demanding case for earlier systems evaluated across several tasks, precisely because mistakes can accumulate along a chain of calls.

The paper uses tool for a program or an application programming interface that can be invoked with inputs supplied by the solver. Here, calling a tool means specifying a mathematical operation and the values it should act on. This gives the authors a setting where they can distinguish several concrete events. An operation might occur to the solver, it might receive usable inputs, and it might be suitable for the problem at the point where it is being considered. At the end there is also a numerical answer against which to measure overall success.

The authors focus on the transition from a possible call to a committed step. Once a calculation becomes part of the answer, its result helps define the context for the next step. A decision made before that commitment therefore has a different role from a review performed after the whole solution has been written. TECTON places the review inside the process of constructing the answer.

How earlier systems learned to call tools

The paper groups earlier work according to how tool-use behavior is taught. One family uses in-context learning. The prompt contains demonstrations showing how a task can be translated into calls and how outputs can be used. The network's weights stay fixed for the task, and the examples travel with the question. The authors cite systems for visual tasks as examples of this route, including ViperGPT and Visual Programming.

Another family learns from training data in which examples of ordinary text are interspersed with annotations for tool use. The full network can be updated by fine-tuning. That allows the training process to shape tool use across the network. The paper associates this route with work including Toolformer and Gorilla.

Parameter-efficient fine-tuning restricts the updates to a smaller part of the system, potentially a set of parameters added for the task. In the paper's account, full and parameter-efficient training can both support extensive tool inventories. The amount of tool knowledge conveyed through examples at inference is limited by the space available in the prompt. Updating a small addition also lowers the cost of a possible future expansion relative to repeating full-network training. The authors situate this point in earlier work on parameter-efficient fine-tuning.

The form of parameter-efficient training matters for TECTON. Its added parameters can be taken out of the computation while the original network stays available. This makes it possible to give the solver a specialized way to express proposed operations and then ask it to assess them using its ordinary language interface. ToolkenGPT is the closest precedent in the paper because it also gives tools their own learned output representations.

Why revisit the decoding decision?

A language model produces a ranking of possible next tokens for the text it has seen so far. A token can be a piece of a word, a symbol, or, with the appropriate output extension, a marker associated with an operation. Greedy decoding chooses the highest-ranked next token and proceeds from there. The paper identifies greedy selection as a common approach to deciding which tool to use, across systems taught with prompts and systems taught with parameter updates.

At a particular point in a solution, the ranking answers a local question about continuation. A good choice of operation also depends on the role of that operation in the larger answer. For example, an explanation may mention a total because it will eventually need to divide it, while the immediate work is to compute that total. The next likely expression in the draft and the most useful calculation to commit to can come apart. A ranking that puts a good operation near the top can still be useful if the system has a way to reconsider it.

There is also a question of where to look. A candidate might become plausible while the solver is naming the quantities involved, or later when it starts to state the relationship between them. Searching alternatives at only the position where a call was emitted assumes that the useful competition happens at that position. TECTON treats the whole draft line as a source of proposals. The positions contribute candidates to a common decision about how to advance the answer.

The paper draws on earlier uses of a frozen network to evaluate its own output or revisit earlier reasoning. It cites Reflexion among the precedents for that broader practice. TECTON gives reconsideration a specific object. The subsequent prompt contains operations or continuations derived from the current attempt, at a point where the solution can still take a different direction. The question is whether such a review can turn plausible alternatives into better decisions on mathematical problems.

The method, step by step

Give the solver a vocabulary for operations

TECTON uses Llama 3 8B Instruct as the common backbone. The output head is the layer that gives a score to each possible next token based on the representation of the current text. The authors augment that layer with scores for mathematical operation tokens. A token for multiplication, for example, stands for a callable function. Its presence in the ranking indicates that multiplication is being proposed in the current context. An executable call will still require inputs. The underlying network and its ordinary output head come from The Llama 3 Herd of Models.

The ordinary head has 128,256 token representations. For GSM8K-XL, the augmented head has 128,260, with additions for the four basic arithmetic operations. For FuncQA, the head has 128,269, including 13 operation tokens. The larger inventory covers powers, square roots, logarithms, least common multiples, greatest common divisors, remainders, combinations, and permutations in addition to basic arithmetic. The paper trains the inventories separately. Each extension corresponds to the operations annotated in its own training data.

The new linear layer has the dimensions below.

embedding_dimension × number_of_tools

embedding_dimension is the width of the representation reaching the output head. number_of_tools is the number of operation tokens being added. The multiplication sign joins the dimensions of the layer, with an output score for each added token. The added scores are concatenated with those from the standard head. During the review phase, the solver can use only the standard head by disabling the extension.

The authors initialize the added representations randomly and train them on mathematical questions paired with solutions. The solutions carry annotations for the positions where tool tokens should be produced. The training objective is the ordinary language modeling objective, which rewards assigning higher probability to the observed next token in its context. With the original weights frozen, the learned change consists of making the added operation tokens competitive in the contexts where the annotations put them.

A detail of the training data is important here. The annotations refer to sequence positions, and sequence positions depend on tokenization. An annotation is useful only if it points to the intended place in the solution under the tokenizer actually in use. The authors adapt annotations prepared with SentencePiece to Llama 3's Byte-Pair Encoding tokenizer.

They train in half precision, FP16, for ten epochs, using a batch size of 1. The learning rates tried are 1e−4 and 1e−3. A checkpoint, a saved set of parameters, is kept after each epoch. Performance on a validation split determines which checkpoint to use. The selected learning rate is 1e−3 for GSM8K-XL and 1e−4 for FuncQA. The training and inference experiments run on a single NVIDIA Tesla V100 GPU.

The supervision teaches the output extension when operations are plausible in worked answers. The later decision prompts serve a different purpose. A multiple-choice prompt asks which proposed continuation fits the current question, and a generation prompt asks the solver to write a continuation using the proposals as possible help. Those decisions use the frozen network after the added tool outputs have been disabled.

Draft the next line and gather alternatives

At test time, the question and the accepted part of its answer provide the starting context. The reasoning prompt asks for a stepwise solution and includes examples. The system uses newline tokens to divide the solution into units that can be reviewed in turn. At the beginning of a new line, the tool extension is active.

As the solver produces a provisional line, it computes a ranking of possible tokens at each position. TECTON records any operation tokens among the top candidates at that position. The process follows the draft line, looking at nearby token alternatives from the successive contexts encountered along that draft. A tool discovered late in the line can therefore be considered alongside a tool that appeared earlier. The search stays bounded because it uses the leading portion of each ranking.

The paper represents the collection as follows.

C = {{ Wᵢⱼ ∈ T, 1 ≤ i ≤ l, 1 ≤ j ≤ k }}

C is the collection of candidate tool tokens, and the doubled braces indicate a multiset, which permits repeated entries. T is the inventory of learned tool tokens for the task. W stores the ranked tokens examined across the draft line. Wᵢⱼ is the token at position i and rank j, and ∈ T is the requirement that the token belong to the tool inventory. l is the length of the line in tokens. k is the number of leading tokens inspected at each position. The inequalities include every position from 1 through l and every inspected rank from 1 through k.

The authors set k to 5. This setting governs the search at a token position. The eventual number of calls can be smaller if few tool tokens appear, or can draw on tools noticed at several positions in the line. The paper reports inference settings of temperature t at 0 and p at 0.95 alongside this search width. Temperature controls how sharply generation favors the highest-scoring tokens. The p setting is a cumulative-probability threshold used in decoding. During the reasoning phase, the authors also raise tool-token logits, which are the scores before conversion to probabilities. The added bias is 3.0 for GSM8K-XL and 4.0 for FuncQA, encouraging operation tokens to appear among the likely continuations.

The multiset captures what the system sees before forming calls. A token can recur at several positions, and its appearances can lead to proposals with the same or different inputs. During a draft about how to combine quantities, for instance, the same subtraction token might occur near different descriptions of the amounts involved. At that stage, the token says which operation is worth inspecting. The proposed inputs make the calculation specific enough to execute and compare.

Turn operation names into evaluated calls

TECTON prompts the network to supply arguments for each candidate using the context available so far. An argument is an input to a function. For subtraction or division, both the choice of quantities and their order matter. A candidate that names the correct operation can therefore lead to an unsuitable call if the inputs are chosen or arranged incorrectly.

After argument generation, the system removes repetitions of the same operation with the same arguments. At this point duplicate proposals refer to the same executable calculation. A pair of calls to the same operation with different inputs can still represent separate possibilities and survives this particular filter.

The remaining proposals are passed to Python. Successful evaluation leaves the system with concrete candidate operations and their results. Calls that fail to evaluate are removed. A successful evaluation establishes that the computation can be carried out with the supplied inputs. Whether that computation belongs in the answer is the decision reserved for the next phase. To see the difference, consider alternative calls that compute how much stock was added and how much stock is now available. Either computation can return a number. The question and the work already accepted tell the reviewer which quantity is needed at this step.

At the end of the reasoning phase, the original question and the partial answer are still available. The next phase also has the evaluated candidates gathered while drafting this line. The output head used for proposals is switched off, so the subsequent response is produced through the ordinary vocabulary of the frozen network.

How TECTON reviews each solution line

The steps in order.

How TECTON reviews each solution lineStep 1: Read the problem and accepted solution so far1. Read the problem and accepted solution so farStep 2: Draft the next line with tool tokens active2. Draft the next line with tool tokens activeStep 3: Gather likely operation tokens across the draft3. Gather likely operation tokens across the draftStep 4: Supply arguments and collapse identical calls4. Supply arguments and collapse identical callsStep 5: Execute the calls and retain successful evaluations5. Execute the calls and retain successful evaluationsStep 6: Switch off the learned tool extension6. Switch off the learned tool extensionStep 7: Score labeled choices or write from optional hints7. Score labeled choices or write from optional hintsStep 8: Advance the solution with the chosen continuation8. Advance the solution with the chosen continuation

Ask for a letter in TECTON-SCORE

TECTON-SCORE combines the candidate calls with the preceding context to make alternative continuations. It gives each continuation an uppercase-letter label. The prompt describes the decision to be made, includes worked examples of the format, and presents the question, current partial answer, and labeled options. It asks for the letter of the most plausible continuation.

SCORE accepts a maximum of four options. Its prompt uses six fixed examples from the training set, with the number of options in each demonstration matched to the number in the current item. The examples make the selection task concrete. The paper tried selecting examples dynamically for SCORE and found that it gave no validation improvement, so the reported version uses the fixed demonstrations.

Before adjustment for bias, the choice is based on this rule.

arg maxₜᵢ ∈ Vₛᵤᵦ p(tᵢ | t₍<ᵢ₎), with t₍<ᵢ₎ drawn from V

arg max returns the token that gives the largest value of the expression being compared. tᵢ is a possible response token at the decision position i. Vₛᵤᵦ is the subset of the vocabulary containing the uppercase-letter tokens assigned to the available options. The membership condition ∈ Vₛᵤᵦ restricts the comparison to those letters. p denotes probability. The vertical bar is read as “given,” and t₍<ᵢ₎ is the sequence of tokens before position i, including the prompt presenting the options. Those preceding tokens come from the full vocabulary V.

A letter is an indirect way of selecting a calculation. The mathematical content is in the labeled continuation. The response token identifies which continuation is admitted into the answer. The method evaluates the probability of that response in a context containing the whole choice, including the competing continuations. That context is richer than the one in which an operation token initially entered the candidate pool.

Estimate how much the letters matter on their own

Raw label probabilities gave poor validation results. On inspection, the authors found that the same label often ranked highest. An option can benefit from such a preference merely by occupying the favored slot. The paper also cites earlier work on multiple-choice selection bias and a correction based on neutral examples, where each label would ideally be equally likely. The authors use a different way to estimate the preference because they consider suitable neutral cases difficult to construct for their mathematical task.

They first run the reasoning phase on validation items, producing actual questions with candidate continuations. For each question, they rearrange the continuations under the fixed sequence of letters and score the labels for each arrangement. The options move, while the labels stay in place. Each continuation therefore appears under each applicable letter across the rearrangements for that question. A preference that persists when the content moves can be measured by averaging the responses.

n!

n is the number of options in the question. The exclamation mark denotes factorial, the number of possible orderings of n distinct option positions. The authors score every such arrangement at calibration time and average the label probabilities over arrangements and validation items. They do this separately for n equal to 2, 3, or 4. The resulting average describes the label preferences for a given option count. A probability estimated from short lists can thus be kept separate from one estimated when more letters are available.

For a new item, SCORE uses the stored averages corresponding to the number of options in that item. It adjusts the probability for each label according to the following expression.

p̂ᵢ = pᵢ + 1/n − Bᵢ⁽ⁿ⁾

p̂ᵢ is the adjusted value for the label indexed by i. pᵢ is the probability assigned to that label for the current item before calibration. Here i identifies a label within the offered set, independently of the position index used in the draft-line formula. n is the count of available labels. 1/n is the reference share each label would have under a uniform distribution. Bᵢ⁽ⁿ⁾ is the validation estimate for label i in lists of size n. The superscript identifies the size of the list. The correction adds the uniform share and subtracts the estimated average for that letter.

A letter favored in validation receives a downward adjustment relative to the uniform reference. A letter that tends to get too little probability receives an upward adjustment. The selection still depends on the current question because its raw probabilities enter directly. Once the comparison uses these adjusted values, the system takes the continuation associated with the highest-scoring label.

Ask for a continuation in TECTON-GENERATE

TECTON-GENERATE gives the frozen network a writing task. It presents the candidate calculations as hints in square brackets and asks for a continuation. The candidates guide the response when useful, and the network can continue in a way that departs from all of them. There is no letter-choice stage in this version.

The position of the provisional text in the prompt deserves attention. The partial answer contains the lines accepted in previous iterations. GENERATE also includes material from the current draft up to the position where a tool token first appears among the leading alternatives. This gives the writer the beginning of the ongoing step. The hints are placed before that partial answer. The new continuation can thus proceed from the work already established and use the proposed calculations to help complete the current step.

The freedom to write a continuation changes what support the network needs. SCORE sees the choices already written and responds with a label. GENERATE has to turn a hint into text that fits the answer, including deciding how a calculation is related to the current step. The authors supply worked examples that demonstrate this use. The examples are chosen dynamically through few-shot learning with demonstrations drawn from training data.

The authors build the example pool in advance. They take training samples, run TECTON's reasoning phase on them, and attach the resulting candidates as hints. They then append the reference solution, which demonstrates a correct use of an operation and shows how it contributes to the final answer. The demonstrations thus have the ingredients the network will see on a fresh problem, together with a worked solution. A demonstration can show a useful way through a collection of hints that also includes unsuitable suggestions.

At inference, the system retrieves examples according to the tools used in those reference solutions. An example qualifies when its reference answer uses an operation among the present candidates. Thus the current list of operations determines which examples are relevant. Two questions that talk about different objects can still share a useful demonstration of how a particular operation figures in a solution. The selection rule described in the paper looks for this operational match.

The prompt then brings together the retrieved demonstrations, the current question, the hints, and the partial answer. With the custom head disabled, the network writes the continuation from that context. Whatever support it uses from the candidate list becomes part of the next accepted text. That text can in turn provide quantities or relationships for the next draft line. The full process uses repeated local opportunities to reconsider an operation as the solution develops.

Experiments and results

What is held constant and what is measured

The main experiments use Llama 3 8B Instruct across systems. This matters because the comparisons ask what changes when the same underlying solver receives different prompts, adaptations, and tool-selection procedures. The authors evaluate training-associated test sets and a group of additional benchmarks used only for testing. They refer to the latter as out of distribution with respect to the tool-tuning setup.

The main outcome is final-answer accuracy, measured by exact matching after rounding the numerical result to 2 decimal places. A response can receive credit if its final number agrees at that precision. The metric applies to the whole problem, whether a system arrived at its answer through direct generation, worked text, or calls to Python. The paper's separate candidate analysis asks an earlier question about whether the intended operation was available during decoding.

The authors report test accuracies to 1 decimal place. Their decoding strategy is deterministic, and the results are from a single run. Validation has distinct roles in the procedure. It is used to select training checkpoints, estimate letter preferences for SCORE, and examine decisions such as whether dynamic retrieval helps the scoring prompt. The reported accuracy comparisons concern the test data.

Familiar benchmark families and new numerical tests

The GSM8K-XL setup draws on GSM8K, a benchmark of mathematical word problems associated with Training Verifiers to Solve Math Word Problems. The authors emphasize that the training and validation portions of GSM8K-XL are those of GSM8K. The numerical enhancement in this benchmark applies to the test set. In-distribution here refers to the relationship with the training-associated task family. The larger quantities are deliberately part of the test challenge.

FuncQA supplies a wider range of functions and divides its test data according to the number of operations a solution needs. FuncQA-OH, the one-hop subset, contains problems that can be solved with a single operation. FuncQA-MH, the multi-hop subset, requires a chain of operations. The split allows a comparison between success at identifying and applying a function by itself and success when functions have to be composed. End-to-end accuracy on the latter reflects the combined demands of interpreting the problem, selecting several calls, and carrying information through the solution.

For the transfer experiments, the authors use ASDiv-XL, MAWPS-XL, and SVAMP-XL. The tool extensions used on these tests come from training on GSM8K-XL. The paper cites a prior analysis that found little overlap in contiguous sequences of words between the original benchmark families and GSM8K, as well as differences in the typical length of the reasoning chains. These properties motivate using additional problem collections to see what carries over from the original tuning setup.

How the transfer benchmarks are constructed

The conversion to an XL test set works with a problem and its annotated sequence of calculations. That sequence provides a way to identify the numbers whose values must be changed and to compute the correct answer after the change. ASDiv and SVAMP are taken in versions with operation annotations from LILA.

The authors extract numbers from the annotated calculations using regular expressions, which match patterns in text. They then look for the corresponding quantities in the word problem. This search includes quantities spelled out in words. When a quantity can be matched, they replace it with a randomly chosen value in the stated interval.

[−10⁵, 10⁵]

The bracketed expression gives the inclusive lower and upper bounds of the replacement range. The minus sign marks the negative bound, and the superscript ⁵ is the exponent on 10. The replacement procedure preserves the sign of negative and positive quantities and keeps integers and floating-point values in their respective categories. Each chosen value is substituted into the question and the corresponding calculation sequence. The new reference answer comes from evaluating that modified sequence.

If a quantity in the calculation cannot be matched in the question, the item is discarded. The published test sets therefore reflect what the automated procedure could transform. The changes preserve the broad structure of a retained question and its annotated sequence of operations while making unaided calculation more demanding. A system can benefit from recognizing familiar mathematical relationships, but it still has to resolve the actual values in the changed problem.

This construction gives the comparisons a specific purpose. In a small-number problem, a solver may reach the right number without calling an external function. Larger magnitudes increase the value of dependable calculation once a suitable operation has been identified. By editing the numerical values in place, the benchmark keeps much of the original language and mathematical structure available for comparison with the source problems. The paper makes its code and data available through the TECTON project.

The comparison systems

The simplest baseline gives the unmodified solver the question directly. The authors tried adding a zero-shot instruction to reason step by step and found the raw question more effective in this setting. They also implement a separate few-shot baseline using examples from the training set. It uses six demonstrations showing mathematical reasoning in worked answers. The demonstrations are shared with the relevant implementations of ToolkenGPT and TECTON to improve comparability. The prompting approach comes from Chain-of-Thought Prompting.

ToolkenGPT is the closest training comparison. It expands the output matrix with trainable entries for operation tokens and leaves the rest of the network frozen. The authors implement it using the same backbone, annotated datasets, tool sets, and hyper-parameter combinations as TECTON. This comparison starts from a similar capability to propose learned tools. TECTON adds a broader candidate search, evaluates the proposals, and reviews them through a subsequent prompt. The resulting accuracy difference measures the practical effect of that combined procedure under the matched setup.

TRICE provides a comparison with another parameter-efficient training strategy. Its training proceeds from instruction tuning to reinforcement learning from environmental feedback, in which outcomes from tool interaction provide a learning signal. It uses LoRA modules, which provide small trainable updates at points in the network, during both stages. The authors adapt the prompts and special tokens to Llama 3 and reduce the first-stage batch size to 128, with 8 gradient accumulation steps, because of hardware memory constraints. They train TRICE on GSM8K-XL. FuncQA lacks the annotations needed by its environmental-feedback stage, leaving TRICE out of those comparisons.

Taken together, the baselines let the experiments ask several questions at different levels. The direct answer and chain-of-thought systems indicate how well the backbone can solve the problems without the learned mathematical tool extension. The comparison with ToolkenGPT tests TECTON against a closely matched approach to acquiring operation tokens. TRICE adds a learned tool-user whose training relies on a different mechanism. The strongest comparison system can therefore change with the test set.

GSM8K-XL favors explicit scoring

SCORE gives the highest final-answer accuracy on the GSM8K-XL test set. The ranking of the systems also shows the main exception to TECTON's overall advantage. GENERATE trails ToolkenGPT here, although it exceeds TRICE and the prompting baselines.

Final-answer accuracy on the GSM8K-XL test set

The labeled-choice variant leads, while guided continuation falls behind ToolkenGPT.

Final-answer accuracy on the GSM8K-XL test setLlama 3: 13.0Llama 313.0Chain-of-thought prompting: 37.3Chain-of-thought prompting37.3TRICE: 43.5TRICE43.5ToolkenGPT: 48.4ToolkenGPT48.4TECTON-SCORE (this paper): 50.7TECTON-SCORE (this paper)50.7TECTON-GENERATE: 45.8TECTON-GENERATE45.8
The numbers
System or settingaccuracy %
Llama 313.0
Chain-of-thought prompting37.3
TRICE43.5
ToolkenGPT48.4
TECTON-SCORE (this paper)50.7
TECTON-GENERATE45.8

The authors give SCORE's gain on this test as 7.2 percentage points over TRICE and 2.3 over ToolkenGPT. The former compares against a method trained with environmental feedback. The latter is the closer comparison because the training of the operation tokens was matched. The direction of the result for GENERATE shows why it matters how the candidate pool becomes a decision. A set of useful-looking alternatives can be handled through labeled comparison or through prompted continuation, with different final outcomes.

The prompted baseline also offers context for the difficulty of evaluation. The paper cites 79.6% accuracy for Llama 3 8B Instruct with few-shot chain-of-thought on the ordinary GSM8K benchmark. In the authors' GSM8K-XL test, few-shot chain-of-thought reaches 37.3%. These figures come from different benchmark versions and reported evaluations. They give a sense of the challenge of the enlarged-number test. The tool-use comparisons under the same test protocol provide the direct evidence for TECTON.

FuncQA separates isolated calls from chains

On FuncQA-OH, direct generation reaches 10.0% final-answer accuracy and chain-of-thought prompting reaches 25.0%. The trained operation-token system ToolkenGPT reaches 65.0%. TECTON-SCORE obtains 66.7%, and TECTON-GENERATE obtains 70.0%. This comparison suggests that learning when to invoke the inventory has a substantial role in solving isolated-operation problems. Reconsideration can further improve those results, with the strongest result coming from the guided continuation prompt.

Every reported system has lower accuracy on FuncQA-MH than on the one-hop test. The chain-of-thought examples give the solver a way to organize a derivation, yet a derivation on this subset depends on several correct decisions in succession. A call may need an intermediate result, so the system can lose the correct path before it reaches the operation that would produce the final number.

Final-answer accuracy on the FuncQA-MH test split

Guided continuation leads the comparison, and multi-operation problems remain difficult across systems.

Final-answer accuracy on the FuncQA-MH test splitLlama 3: 2.9Llama 32.9Chain-of-thought prompting: 5.9Chain-of-thought prompting5.9ToolkenGPT: 10.3ToolkenGPT10.3TECTON-SCORE: 17.6TECTON-SCORE17.6TECTON-GENERATE (this paper): 20.6TECTON-GENERATE (this paper)20.6
The numbers
System or settingaccuracy %
Llama 32.9
Chain-of-thought prompting5.9
ToolkenGPT10.3
TECTON-SCORE17.6
TECTON-GENERATE (this paper)20.6

The paper emphasizes GENERATE's improvement over ToolkenGPT on this split. The comparison also shows that both TECTON variants can benefit the harder setting, even though their second-phase prompts work differently. The absolute scores put the improvement in context. Executable candidate calls support chained problem solving, but the best tested configuration still reaches a correct final number on a limited share of the multi-hop items. The result is evidence of improved performance under composition, with substantial room for errors throughout the chain.

Both variants transfer to the larger-number benchmarks

On the ASDiv-XL test, GENERATE obtains 55.3% accuracy and SCORE obtains 53.6%. TRICE reaches 52.2%, with ToolkenGPT at 45.3%. The direct-question baseline reaches 25.8% and the chain-of-thought baseline reaches 40.6%. This is a case where TRICE gives the strongest comparison among the earlier tool-learning systems, and both TECTON variants finish ahead of it.

The MAWPS-XL test gives the highest accuracies observed for the TECTON variants across the unseen tests. GENERATE reaches 77.4%, with SCORE at 76.9%. TRICE obtains 71.2% and ToolkenGPT obtains 68.3%. Chain-of-thought prompting gives 58.7% and direct generation gives 26.2%. Both review procedures work with the arithmetic extension carried over from GSM8K-XL, and the resulting scores are close between the TECTON variants on this dataset.

SVAMP-XL has a different ordering among the earlier methods. ToolkenGPT is the strongest baseline in that comparison. Both TECTON configurations exceed it, and GENERATE again leads the full comparison.

Final-answer accuracy on the unseen SVAMP-XL test set

Both TECTON variants improve on ToolkenGPT, with guided continuation obtaining the highest accuracy.

Final-answer accuracy on the unseen SVAMP-XL test setLlama 3: 27.8Llama 327.8Chain-of-thought prompting: 51.9Chain-of-thought prompting51.9TRICE: 49.6TRICE49.6ToolkenGPT: 60.4ToolkenGPT60.4TECTON-SCORE: 62.2TECTON-SCORE62.2TECTON-GENERATE (this paper): 66.7TECTON-GENERATE (this paper)66.7
The numbers
System or settingaccuracy %
Llama 327.8
Chain-of-thought prompting51.9
TRICE49.6
ToolkenGPT60.4
TECTON-SCORE62.2
TECTON-GENERATE (this paper)66.7

Across the unseen tests, the authors report that GENERATE leads ToolkenGPT by an average of 8.5 percentage points and TRICE by 8.8. The corresponding reported averages for SCORE are 6.2 and 6.6. These comparisons show that the learned arithmetic tools and the review procedure can be reused on unfamiliar word-problem collections. They also put the GSM8K-XL result in perspective. SCORE leads on the test associated with its training benchmark, while GENERATE leads on each of the three transfer tests. The ranking of the decision procedures depends on the evaluation setting.

What the ablations show

Correcting persistent letter preferences helps SCORE

The paper connects evidence about the scoring interface to an end-to-end ablation, a comparison made by removing a component from the full system. First, it examines label probabilities averaged on validation data. The distributions depart from the uniform reference, and the paper notes that the skew seen for GSM8K-XL has a counterpart on FuncQA. An answer letter can therefore carry a recurring advantage across many examples. The permutation procedure gives the authors a way to estimate that advantage using the kinds of options the reasoning phase really produces.

The ablation removes calibration from SCORE. On the FuncQA-OH test, accuracy is 58.3% without calibration and 66.7% with it. On FuncQA-MH, the scores are 8.8% and 17.6%, respectively. The paper reports losses of 8.4 and 8.8 percentage points on those splits when calibration is removed. Within these controlled comparisons, the candidate-generation procedure and the multiple-choice interface are shared. The outcome changes when the system stops compensating for the tendencies of the label scores.

On the GSM8K-XL test, the uncalibrated variant reaches 49.3%. On the transfer tests, it reaches 52.2% on ASDiv-XL, 75.0% on MAWPS-XL, and 61.9% on SVAMP-XL. The authors report an average loss from removing calibration of 6.2 percentage points on the training-associated test sets and 1.2 on the unseen tests. The strength of the effect depends on where the scoring procedure is applied. FuncQA shows that a correction to the decision interface can materially affect accuracy even when the candidate operations are gathered in the same way.

The probability analysis and the ablation provide complementary evidence. The first establishes a persistent imbalance in the response channel. The second shows that addressing it changes how often the overall solver reaches the right number. Together they support treating the answer letter as part of the experimental design. The adjusted scores serve to rank alternatives in this particular interface.

Retrieved demonstrations help GENERATE finish the step

The corresponding ablation for GENERATE removes the dynamic retrieval of demonstrations. The system still receives candidate hints and generates a continuation. The comparison tests the contribution of giving the network worked solutions chosen for the operations it is currently considering.

Without retrieval, GENERATE achieves 58.3% accuracy on FuncQA-OH and 13.2% on FuncQA-MH. In the full version those test scores are 70.0% and 20.6%. The authors report losses of 11.7 percentage points on the one-hop test and 7.4 on the multi-hop test. On GSM8K-XL, the variant without retrieval reaches 43.5% test accuracy, compared with 45.8% for the full variant. The paper reports an average decline of 7.2 percentage points on the training-associated tests.

Operation-matched demonstrations also help on the unseen problems. Without them, the test scores are 50.8% on ASDiv-XL, 71.2% on MAWPS-XL, and 62.9% on SVAMP-XL. The average reported loss is 4.9 percentage points across the unseen tests. In these experiments the retrieval pool comes from training data, and it is useful when the current problem comes from a different benchmark family. This supports the value of retrieving by the operation needed in a worked solution, even when the target questions differ from the questions used for training.

The paper gives a narrower finding about SCORE. Its validation experiments did not find an improvement from dynamic retrieval, so the full scoring variant uses fixed demonstrations. In GENERATE, operation-matched examples show how to incorporate a hint into a written step. In SCORE, the prompt already supplies the continuations being judged. The tested procedures therefore offer different evidence about retrieval, consistent with the different tasks the prompts ask the network to perform.

Both ablated variants still exceed chain-of-thought accuracy across the test sets. The paper also reports that their accuracies remain above ToolkenGPT's on the unseen datasets. This puts the component effects in context. Calibration and retrieval make measurable contributions, and the procedures remaining after removal retain some of the benefit of collecting and revisiting candidates.

The preliminary candidate study finds recoverable mistakes

Before testing the full system, the authors look at the original ToolkenGPT implementation with the first LLaMA backbone on the FuncQA validation set. They inspect cases where greedy decoding selected an incorrect tool. In over 60% of those cases, the correct operation with the correct arguments could be found among the leading five token alternatives inspected across the sequence. In some instances the useful candidate appeared at a position other than the one where the incorrect call was produced.

A separate measure asks whether decoding finds the annotated operation, regardless of the arguments attached to it. Under greedy decoding that operation is found in 76.9% of FuncQA validation samples. Inspecting the leading five candidates at each decoding step raises operation coverage to 87.2%. Widening the inspection to 10 candidates adds computational work without an increase in annotated-operation coverage in that experiment.

These are measures of what can be recovered from candidate generation. The operation-coverage comparison shows that a useful operation can be present without winning the greedy decision. The analysis of incorrect greedy selections goes further by checking for the corresponding arguments in those cases. A final solver still has to compare the proposals and advance the solution correctly. The preliminary study motivates both the search across positions and the decision to bound it at the tested width.

Diversity and repetition offer weaker decision rules

The authors also test temperature sampling as a source of candidate operations. Low temperatures yield too little diversity for their purpose, while higher temperatures bring in operations they judge irrelevant. The account is qualitative. It helps explain the choice to inspect high-ranked alternatives along a draft rather than generate different samples to assemble a pool. In the tested arrangement, useful diversity comes from alternatives that remain reasonably plausible in their local contexts.

Another preliminary test chooses the operation that appears most often among the candidates. The authors examine this frequency-based rule with proposals before argument insertion and with candidates after arguments are supplied. On the FuncQA validation set, the best of these configurations performs over 6% below ToolkenGPT, as reported by the paper. Counting mentions therefore provides weak evidence of which operation actually fits this problem. Several appearances can reflect the same local tendency in the draft, while a relevant operation may appear only briefly.

The preliminary comparisons show why the later stage has a substantive job. Expanding the search makes more correct operations available. A frequency rule can still favor the wrong one, and temperature-driven diversity can introduce distractions. The main ablations then test features of the actual decision interfaces. Their evidence concerns how to make reconsideration work with those prompts, while the appendix explains why the authors chose to have a separate decision in the first place.

Limitations

The limit stated by the authors

The authors restrict their claim to mathematical reasoning. They identify knowledge-intensive question answering and navigation in virtual environments as other settings where tools can help and where the proposal could be investigated. Neither domain is part of the reported experiments. The tested calls evaluate mathematical operations, and success is defined by a numerical answer.

That scope matters to the role of execution in the method. Here, evaluating a candidate in Python gives a concrete number for the later phase to inspect, or an execution failure that removes the candidate. A different domain could attach additional consequences to evaluating several proposals. The evidence in this paper comes from a setting in which the operation library and the form of its inputs are established in advance. The authors' broader suggestion is a question for subsequent evaluation.

Limits visible in the experimental setup

The paper describes its architecture as applicable to open-weight networks in general. The final comparisons use Llama 3 8B Instruct. The earlier ToolkenGPT implementation used in the candidate study supplies evidence about near misses under a different setup. It serves a preliminary diagnostic role. The measured effect of the complete procedure, including label calibration and operation-based retrieval, is established for the main backbone and implementation tested.

The tool inventories are also fixed for the corresponding training tasks. In the transfer tests, the arithmetic extension learned with GSM8K-XL is used on new benchmark families. This provides evidence for transfer across word problems with the learned arithmetic inventory. Extending an inventory, choosing among a much larger set of overlapping functions, and grounding richer argument structures are separate questions. The experiments give those questions a starting architecture and leave their outcomes open.

The preliminary search result is valuable for selecting the width of candidate collection, but it comes from FuncQA validation with the original ToolkenGPT implementation. It measures the presence of the intended operation under particular decoding conditions. The same coverage or saturation point would need its own evidence under a different inventory, a different proposal prompt, or another backbone. Likewise, the main accuracy comparison leaves room for changes in how arguments are generated or how candidate calls are displayed.

The enlarged-number benchmarks test a deliberate source of difficulty. Their construction keeps the annotated calculation structure while replacing quantities and recomputing answers. Items the procedure cannot align are discarded. The reported accuracies characterize the retained transformed items, and the advantage on those tests is evidence about handling word problems under greater numerical demands. Questions about the representativeness of the retained examples, or about performance on entirely different forms of mathematics, go beyond what the construction measures. Preserving sign and numeric category supports computational consistency. The procedure described in the paper establishes the new reference answer through the annotated operation chain.

What final-answer accuracy can reveal

The central outcome measures the numerical result at a specified precision. It captures whether the entire process succeeds for a given problem. The same statistic could arise from a solver that follows the annotated calculation and from one that reaches an equivalent answer by another valid route. A right answer can also coexist with an explanation containing mistakes. The test score consequently gives limited information about the quality of specific intermediate decisions.

The candidate study supplies an early diagnostic, and the ablations isolate selected prompt components, but many outcomes remain combined in the full score. A problem can fail because the right operation was absent, because the arguments were wrong, or because the review favored an unsuitable continuation. A later error can also undo an earlier correct choice. The experiments measure the practical advantage of a system that addresses these problems together. They supply no full per-stage accounting of which event explains each solved or failed example.

The name meta-reasoning refers to a procedure the authors can observe and control. The system proposes calls, changes the output interface, and reviews the results of its earlier attempt. The inference supported by the main comparison concerns the benefits of organizing computation this way. The same frozen network participates in both phases, giving the reviewer access to a new prompt and different outputs while sharing the underlying language representations. Its judgment is a further opportunity to catch an error, with no independent mathematical proof attached.

The component removals should be read at the same level. Removing calibration tests the scoring system with and without its correction. Removing retrieved examples tests generation with and without that support. SCORE versus GENERATE changes several features together, including the form of the requested response and the demonstrations. Their accuracy ranking consequently describes the complete variants. A difference between them cannot be assigned uniquely to the ability to write a continuation outside the candidate set.

Cost and uncertainty

The efficiency discussion distinguishes training from inference. TECTON updates added output parameters, as does the matched ToolkenGPT baseline. The authors describe less training work than in TRICE, which updates LoRA modules through successive stages. At inference, TECTON gathers alternatives, obtains arguments, evaluates calls, and performs a further decision for each line. These are additional operations even when the answer to the selection prompt is brief.

For SCORE, the authors characterize the extra generation for selection as negligible because the prompt asks for one token per line. That statement concerns the generated selection token. The work of preparing its prompt and producing its candidate options occurs earlier. The paper's efficiency discussion is qualitative, leaving the full per-problem latency and resource differences unquantified. The accuracy results therefore tell the reader how many problems each system solved under the test protocol, with limited evidence about the cost of those outcomes.

Finally, deterministic decoding explains the use of a single run per configuration. It gives a fixed outcome under the chosen settings and checkpoint. The results are reported as point estimates, without an analysis of uncertainty across training runs or confidence intervals around the differences. This distinction matters especially when comparing close scores. The measured rankings are the rankings on these tests. Their stability under changes in training or sampling the evaluation population remains an open empirical question.

What came after

The later citing work is ToolScope, from 2026. Its title identifies tool merging and context-aware filtering as the means by which it addresses tool use in agents. The point of contact with TECTON is the selection of alternatives that reach a decision. TECTON draws alternatives from token rankings while drafting a mathematical step and compares evaluated calls. ToolScope's stated focus is on shaping the available tool choices through merging and filtering. ToolScope

The citation establishes a connection between the papers. ToolScope's title identifies the interventions it studies, while leaving its specific use of TECTON undetermined. Whether it reuses the learned output extension, adopts a separate review phase, or compares its results directly against either TECTON variant remains unspecified. The relationship that can be described is a shared concern with which tools the solver gets to consider, approached through different stated interventions.

Cite

Cite as Lisa Alazraki and Marek Rei. 2025. Meta-Reasoning Improves Tool Use in Large Language Models. Findings of the Association for Computational Linguistics: NAACL 2025.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2025.findings-naacl.440

@inproceedings{alazraki2025meta,
  title = {{Meta-Reasoning Improves Tool Use in Large Language Models}},
  author = {Lisa Alazraki and Marek Rei},
  booktitle = {Findings of the Association for Computational Linguistics: NAACL 2025},
  year = {2025},
  doi = {10.18653/v1/2025.findings-naacl.440},
  url = {https://doi.org/10.18653/v1/2025.findings-naacl.440}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/alazraki-2025-meta-reasoning-improves-tool-use/