SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2601.10712 · 2026

MatchTIR: Fine-Grained Supervision for Tool-Integrated Reasoning via Bipartite Matching

Jun Xu, Shuaiqiang Wang, Dawei Yin, Changle Qu, Sunhao Dai, Hengyi Cai

arXiv · PDF · Open in the Atlas

Code that ran

15 of 19 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 12 failures of our instrument; 4 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2601.10712.json · badge: /api/ran/2601.10712.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
bytedance/FTRL canonical (classifier label)
classifier basis: census
4 ran · 3 no recorded run
quchangle1/MatchTIR community
Papers with Code archive
11 ran · 1 no recorded run
FunctionStatusWhere it lives
answer_verify Ran
ran, violated the contract we drafted
quchangle1/MatchTIR/Code/verl/utils/reward_score/tool.py
pointer only (licence: NONE) · get_code("7179b65bd3c93eea")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, quchangle1/MatchTIR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

assign_rewards_hungarian Ran
ran, honoured the contract we drafted
quchangle1/MatchTIR/Code/verl/utils/reward_score/tool.py
pointer only (licence: NONE) · get_code("65cca1ca014f423c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, quchangle1/MatchTIR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

call_function Ran
ran; our contract draft was wrong, not the code
quchangle1/MatchTIR/Code/verl/utils/reward_score/tool.py
pointer only (licence: NONE) · get_code("0a568a81348c83e7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, quchangle1/MatchTIR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compute_solve_f1 Ran
ran; our contract draft was wrong, not the code
quchangle1/MatchTIR/Code/verl/utils/reward_score/tool.py
pointer only (licence: NONE) · get_code("850fdb21b1d32aed")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, quchangle1/MatchTIR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

find_all_subsequence Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
quchangle1/MatchTIR/Code/verl/utils/reward_score/tool.py
pointer only (licence: NONE) · get_code("a1e7fb4d9cbe6efe")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, quchangle1/MatchTIR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_feedback Ran
ran; our contract draft was wrong, not the code
quchangle1/MatchTIR/Code/verl/utils/reward_score/tool.py
pointer only (licence: NONE) · get_code("3673b46bdbf2a6ac")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, quchangle1/MatchTIR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_params Ran
ran; our contract draft was wrong, not the code
bytedance/FTRL/Code/utils/utils.py
code served (permissive licence) · get_code("501d2100f7741a14")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

class MockTokenizer:
    def __init__(self):
        self.pad_token_id = 0

class MockArgs:
    def __init__(self):
        self.enable_thinking = False
        self.do_sample = True
        self.temperature = 0.7
        self.tokenizer = MockTokenizer()

ARGS = {
    'model': 'qwen',
    'args': MockArgs()
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_parse_output Ran
ran; our contract draft was wrong, not the code
bytedance/FTRL/Code/utils/parse_output.py
code served (permissive licence) · get_code("a5236a2a51f747d4")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned function. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json

def get_parse_output(model):
    if model == 'qwen':
        return parse_qwen
    elif model == 'llama31':
        return parse_llama31
    else:
        raise NotImplementedError

# Test case 1: qwen model
qwen_test_model = 'qwen'

# Test case 2: llama31 model
llama31_test_model = 'llama31'

ARGS = {
    'model': 'qwen'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
json_repair — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
hungarian_assignment Ran
ran; our contract draft was wrong, not the code
quchangle1/MatchTIR/Code/verl/utils/reward_score/tool.py
pointer only (licence: NONE) · get_code("2664c679aed5810a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, quchangle1/MatchTIR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

match_score Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
quchangle1/MatchTIR/Code/verl/utils/reward_score/tool.py
pointer only (licence: NONE) · get_code("94757c508755516a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, quchangle1/MatchTIR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

parse_llama31 Ran
ran; our contract draft was wrong, not the code
bytedance/FTRL/Code/utils/parse_output.py
code served (permissive licence) · get_code("d4b73829ffa7df42")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json_repair
from hashlib import sha256
import datetime
import json

# The function parse_llama31 takes a single parameter: inputs (str)
# It processes this string to extract content and tool calls
# No complex objects needed - just a string

ARGS = {
    'inputs': '<|python_tag|>{"name": "calculate", "parameters": {"x": 5, "y": 3}}Some content before'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
json_repair — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_qwen Ran
ran; our contract draft was wrong, not the code
quchangle1/MatchTIR/Code/verl/utils/reward_score/tool.py
pointer only (licence: NONE) · get_code("113830b3948f4147")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, quchangle1/MatchTIR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

parse_qwen Ran
ran; our contract draft was wrong, not the code
bytedance/FTRL/Code/utils/parse_output.py
code served (permissive licence) · get_code("4c916494d4847ebd")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import json
from hashlib import sha256
import datetime

# Test case 1: Simple text without tool calls
inputs_1 = "This is a simple response without any tool calls."

# Test case 2: Text with a valid tool call
inputs_2 = """Here's the result: <tool_call>{"name": "calculate", "arguments": {"x": 5, "y": 3}}</tool_call>"""

# Test case 3: Text with multiple tool calls and preceding content
inputs_3 = """I will help you with this. <tool_call>{"name": "get_weather", "arguments": {"city": "New York"}}</tool_call> And here's another one: <tool_call>{"name": "send_email", "arguments": {"to": "user@example.com", "subject": "Hello"}}</tool_call>"""

# Test case 4: Tool calls with string arguments that need parsing
inputs_4 = """Processing request: <tool_call>{"name": "parse_data", "arguments": "{\\"key\\": \\"value\\", \\"number\\": 42}"}</tool_call>"""

# Use the simplest case for ARGS
ARGS = {
    'inputs': inputs_1,
    'one_tool_only': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
preprocess_text Ran
ran; our contract draft was wrong, not the code
quchangle1/MatchTIR/Code/verl/utils/reward_score/tool.py
pointer only (licence: NONE) · get_code("11664393d2a5d440")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, quchangle1/MatchTIR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

tool_similarity Ran
ran, honoured the contract we drafted
quchangle1/MatchTIR/Code/verl/utils/reward_score/tool.py
pointer only (licence: NONE) · get_code("8049ac34873b4ee4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, quchangle1/MatchTIR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compute_process_KM Not yet run
unverified (harvested, no recorded run)
quchangle1/MatchTIR/Code/verl/utils/reward_score/tool.py
pointer only (licence: NONE) · get_code("e5f4e58d0acd5122")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, quchangle1/MatchTIR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_weight_loader Not yet run
unverified (harvested, no recorded run)
bytedance/FTRL/Code/verl/models/weight_loader_registry.py
code served (permissive licence) · get_code("acf240079d434746")
How it ran

no invocation recorded.

get_weight_saver Not yet run
unverified (harvested, no recorded run)
bytedance/FTRL/Code/verl/models/weight_loader_registry.py
code served (permissive licence) · get_code("aa51429ab4c58a74")
How it ran

no invocation recorded.

load_model Not yet run
unverified (harvested, no recorded run)
bytedance/FTRL/Code/utils/utils.py
code served (permissive licence) · get_code("ec450fb84a121b33")
How it ran

no invocation recorded.

Also present in other papers' code

Of 19 samples lifted from this paper's linked repositories, 19 carry a function identity and 0 do not. Of the 19 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 1 the same month, 1 later) and 17 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
get_weight_loader 58 other papers
10 dated earlier, 4 the same month, 42 later, 2 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2505.14362 (2025-05)
DeepEyes: Incentivizing "Thinking with Images" via Reinforcement Learning
2505.20046 (2025-05)
REARANK: Reasoning Re-ranking Agent via Reinforcement Learning
and 55 more not named here
get_weight_saver 1 other paper
1 dated earlier
2506.12935 (2025-06)
SoundMind: RL-Incentivized Logic Reasoning for Audio-Language Models

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Tool-Integrated Reasoning (TIR) empowers large language models (LLMs) to tackle complex tasks by interleaving reasoning steps with external tool interactions. However, existing reinforcement learning methods typically rely on outcome-or trajectory-level rewards, assigning uniform advantages to all steps within a trajectory. This coarse-grained credit assignment fails to distinguish effective tool calls from redundant or erroneous ones, particularly in long-horizon multi-turn scenarios. To address this, we propose MatchTIR, a framework that introduces fine-grained supervision via bipartite matching-based turn-level reward assignment and dual-level advantage estimation. Specifically, we formulate credit assignment as a bipartite matching problem between predicted and ground-truth traces, utilizing two assignment strategies to derive dense turn-level rewards. Furthermore, to balance local step precision with global task success, we introduce a dual-level advantage estimation scheme that integrates turn-level and trajectory-level signals, assigning distinct advantage values to individual interaction turns. Extensive experiments on three benchmarks demonstrate the superiority of MatchTIR. Notably, our 4B model surpasses the majority of 8B competitors, particularly in long-horizon and multiturn tasks. Our codes are available at https: //github.com/quchangle1/MatchTIR.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2601.10712")
get_code_for_paper("2601.10712")
have("2601.10712")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2601.10712.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2601.10712.svg)](https://syntology.ai/paper/2601.10712)

Connect an agent — have() is free.