SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2602.19049 · ICML · 2026

IAPO: Information-Aware Policy Optimization for Token-Efficient Reasoning

Qi Guo, Jundong Li, Mingjia Shi, Yinhan He, Lin Su, Yaochen Zhu, Wendy Zheng, Xiaoqing Wang

arXiv · PDF · Open in the Atlas

Code that ran

6 of 7 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; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 1 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/2602.19049.json · badge: /api/ran/2602.19049.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
YinhanHe123/IAPO canonical (classifier label)
classifier basis: census
6 ran · 1 no recorded run
FunctionStatusWhere it lives
extract_xml_answer Ran
ran; our contract draft was wrong, not the code
YinhanHe123/IAPO/compute_reward.py
code served (permissive licence) · get_code("ebf9846a096d47ae")
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 str. 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

# The function extract_xml_answer takes a single parameter: text (str)
# It uses string methods: split(), strip()
# It returns a str

# Create a test case with XML-formatted text
text_with_answer = "Some prefix <answer>42</answer> some suffix"

ARGS = {
    "text": text_with_answer
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
last_boxed_only_string Ran
ran; our contract draft was wrong, not the code
YinhanHe123/IAPO/compute_reward.py
code served (permissive licence) · get_code("270295c5488675af")
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 str. 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

# Test case 1: String with a single boxed expression
test_string_1 = r"The answer is \boxed{42}"

# Test case 2: String with multiple boxed expressions
test_string_2 = r"First: \boxed{x+1} and then \boxed{x^2+2x+1}"

# Test case 3: String with nested braces inside boxed
test_string_3 = r"The result is \boxed{\frac{a}{b}}"

# Test case 4: String with no boxed expression
test_string_4 = "Just plain text with no boxes"

# Test case 5: String with complex nested braces
test_string_5 = r"Complex: \boxed{\sum_{i=1}^{n} \{i^2\}}"

# Use test case 1 as the main argument
ARGS = {
    "string": test_string_2
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
nanstd Ran
ran; our contract draft was wrong, not the code
YinhanHe123/IAPO/package_code/trainer/dapo_trainer.py
code served (permissive licence) · get_code("a6cece2ffebe0f9c")
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) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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

torch.manual_seed(0)

# Create a 1D tensor with some NaN values
tensor = torch.tensor([1.0, 2.0, float('nan'), 4.0, 5.0, float('nan'), 7.0])

ARGS = {
    "tensor": tensor
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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
remove_boxed Ran
ran; our contract draft was wrong, not the code
YinhanHe123/IAPO/compute_reward.py
code served (permissive licence) · get_code("ea98a34b07fe1bfa")
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 str. 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 numpy as np

# Test case 1: Valid boxed string
test_boxed_string = "\\boxed{x = 5}"

# Test case 2: None value
test_none = None

# Test case 3: Another valid boxed string with more complex content
test_boxed_complex = "\\boxed{\\frac{1}{2}}"

# Construct ARGS - the function takes one parameter 's' which is Optional[str]
# We'll test with a valid boxed string
ARGS = {
    "s": "\\boxed{42}"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
shuffle_sequence_dict Ran
ran; our contract draft was wrong, not the code
YinhanHe123/IAPO/package_code/trainer/dapo_trainer.py
code served (permissive licence) · get_code("652d93f82a8b4ab5")
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 numpy as np
from collections.abc import Sequence

torch.manual_seed(0)

# Create test data with distinct sizes
x_tensor = torch.arange(8).reshape(2, 4)  # batch_size=2, feature_dim=4
y_list = ["item_a", "item_b"]  # batch_size=2
z_tensor = torch.arange(6).reshape(2, 3)  # batch_size=2, different feature_dim=3

# Construct the sequence dictionary with mixed types
seq_dict = {
    "x": x_tensor,
    "y": y_list,
    "z": z_tensor,
    "none_val": None
}

ARGS = {
    "seq_dict": seq_dict
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, 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
split_tensor_dict Ran
ran; our contract draft was wrong, not the code
YinhanHe123/IAPO/package_code/trainer/dapo_trainer.py
code served (permissive licence) · get_code("ba58cd6dfd66f89c")
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 list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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

torch.manual_seed(0)

# Create test tensors with distinct dimensions
x = torch.arange(12).reshape(6, 2)  # 6 rows, 2 cols
y = torch.arange(6).reshape(6, 1)   # 6 rows, 1 col
z = None  # Test optional None values

tensor_dict = {
    "x": x,
    "y": y,
    "z": z
}

num_chunks = 3

ARGS = {
    "tensor_dict": tensor_dict,
    "num_chunks": num_chunks
}
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 list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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_args Not yet run
unverified (harvested, no recorded run)
YinhanHe123/IAPO/utils.py
code served (permissive licence) · get_code("86f8428907ab55df")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 2 the same month, 2 later) and 5 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
nanstd 7 other papers
5 dated earlier, 1 the same month, 1 later
2402.16302 (2024-02)
Graph Diffusion Policy Optimization
2505.17534 (2025-05)
Co-Reinforcement Learning for Unified Multimodal Understanding and Generation
2506.14755 (2025-06)
Optimizing Length Compression in Large Reasoning Models
and 4 more not named here
split_tensor_dict 7 other papers
5 dated earlier, 1 the same month, 1 later
2402.16302 (2024-02)
Graph Diffusion Policy Optimization
2505.17534 (2025-05)
Co-Reinforcement Learning for Unified Multimodal Understanding and Generation
2506.14755 (2025-06)
Optimizing Length Compression in Large Reasoning Models
and 4 more not named here

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

Large language models increasingly rely on long chains of thought to improve accuracy, yet such gains come with substantial inference-time costs. We revisit token-efficient post-training and argue that existing sequence-level reward-shaping methods offer limited control over how reasoning effort is allocated across tokens. To bridge the gap, we propose IAPO, an information-theoretic posttraining framework that assigns token-wise advantages based on each token's conditional mutual information (MI) with the final answer. This yields an explicit, principled mechanism for identifying informative reasoning steps and suppressing low-utility exploration. We provide a theoretical analysis showing that our IAPO can induce monotonic reductions in reasoning verbosity without harming correctness. Empirically, IAPO consistently improves reasoning accuracy while reducing reasoning length by up to 47%, outperforming existing token-efficient RL methods across various reasoning datasets. Our results demonstrate that information-aware advantage shaping is a powerful and general direction for token-efficient post-training. The code is available at https: //github.com/YinhanHe123/IAPO.

For agents

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

get_harvested_code_for_paper("2602.19049")
get_code_for_paper("2602.19049")
have("2602.19049")

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

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

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

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

Connect an agent — have() is free.