SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.18822 · 2025

AdaCtrl: Towards Adaptive and Controllable Reasoning via Difficulty-Aware Budgeting

arXiv · PDF · Open in the Atlas

Code that ran

6 of 15 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; 1 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 3 failures of our instrument; 9 no recorded run), measured 2026-11-24; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2505.18822.json · badge: /api/ran/2505.18822.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
joeying1019/adactrl canonical (classifier label)
classifier basis not recorded on the link
6 ran · 9 no recorded run
FunctionStatusWhere it lives
compute_ce_dpo_loss_rm Ran
ran on a synthesized input
joeying1019/adactrl/recipe/prime/prime_core_algos.py
code served (permissive licence) · get_code("de3d16d0873508ea")
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 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)

# Analyze the function:
# - token_level_scores: used with * operator and .sum(dim=1), so a float tensor
# - acc: passed to binary_cross_entropy as target, should be float tensor with same shape as cur_scores
# - eos_mask: used with * operator and .sum(dim=1), so a float tensor with same shape as token_level_scores
# - beta: used with * operator, so a scalar (float or tensor)

# token_level_scores and eos_mask are multiplied element-wise then summed over dim=1
# This suggests shape (batch_size, seq_len)
# After sum(dim=1), shape becomes (batch_size,)
# acc should match the output shape of ((token_level_scores * eos_mask).sum(dim=1) * beta).sigmoid()
# which is (batch_size,)

batch_size = 2
seq_len = 4

token_level_scores = torch.randn(batch_size, seq_len)
eos_mask = torch.rand(batch_size, seq_len)
acc = torch.rand(batch_size)
beta = 0.5

ARGS = {
    "token_level_scores": token_level_scores,
    "acc": acc,
    "eos_mask": eos_mask,
    "beta": beta
}
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 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
compute_detach_dpo_loss_rm Ran
ran on a synthesized input
joeying1019/adactrl/recipe/prime/prime_core_algos.py
code served (permissive licence) · get_code("b0af30a76b102578")
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 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)

# Analyze the function to understand what each argument needs:
# - token_level_scores: used with .sum(dim=1), .shape[0], element-wise ops -> 2D tensor
# - acc: used with indexing [i], comparison (> 0), .float() -> 1D tensor
# - Q_bc: used with indexing [i][...], .mean(), comparison with cur_Q -> 2D tensor
# - acc_bc: used with .shape[1], indexing [i][...], comparison with acc -> 2D tensor
# - eos_mask: used with element-wise multiplication, .sum(dim=1) -> 2D tensor same shape as token_level_scores
# - beta: scalar multiplier
# - bon_mode: string parameter ('none', 'bon_rm', 'bon_acc')

batch_size = 2
seq_len = 4
n_samples = 3

# token_level_scores: (batch_size, seq_len)
token_level_scores = torch.randn(batch_size, seq_len)

# acc: (batch_size,) - accuracy scores
acc = torch.tensor([1.0, 0.0])

# Q_bc: (batch_size, n_samples) - Q values for beam candidates
Q_bc = torch.randn(batch_size, n_samples)

# acc_bc: (batch_size, n_samples) - accuracy for beam candidates
acc_bc = torch.randn(batch_size, n_samples)

# eos_mask: (batch_size, seq_len) - binary mask for end-of-sequence positions
eos_mask = torch.ones(batch_size, seq_len)

# beta: scalar hyperparameter
beta = 0.5

# bon_mode: string
bon_mode = 'none'

ARGS = {
    'token_level_scores': token_level_scores,
    'acc': acc,
    'Q_bc': Q_bc,
    'acc_bc': acc_bc,
    'eos_mask': eos_mask,
    'beta': beta,
    'bon_mode': bon_mode,
}
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 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
get_huggingface_actor_config Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
joeying1019/adactrl/verl/utils/model.py
code served (permissive licence) · get_code("fe79c459a3e4cc64")
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 MockConfig. 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
from transformers import AutoConfig

torch.manual_seed(0)

# The function uses:
# - model_name: str parameter passed to AutoConfig.from_pretrained()
# - override_config_kwargs: Dict that gets iterated with items() and used with setattr()
# - trust_remote_code: bool parameter passed to AutoConfig.from_pretrained()

# Since we can't actually download models, we need to mock AutoConfig.from_pretrained
# to return a config object that has attributes we can set

class MockConfig:
    """Mock configuration object that behaves like a PretrainedConfig"""
    def __init__(self):
        self.hidden_size = 768
        self.num_hidden_layers = 12
        self.vocab_size = 50257
        self.max_position_embeddings = 2048
    
    def __repr__(self):
        return f"MockConfig(hidden_size={self.hidden_size}, num_hidden_layers={self.num_hidden_layers})"

# Patch AutoConfig.from_pretrained to return our mock config
original_from_pretrained = AutoConfig.from_pretrained
AutoConfig.from_pretrained = lambda model_name, trust_remote_code=False: MockConfig()

ARGS = {
    "model_name": "gpt2",
    "override_config_kwargs": {
        "hidden_size": 256,
        "num_hidden_layers": 4,
        "vocab_size": 1000
    },
    "trust_remote_code": False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type MockConfig — a MockConfig output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MockConfig 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
is_digit Ran
ran, honoured the contract we drafted
joeying1019/adactrl/utils/openmathinst_utils.py
code served (permissive licence) · get_code("2a180d3156997924")
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 tuple, 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
import numpy as np

# The function is_digit takes a single parameter 's' which is converted to string
# and checked if it can be parsed as a float, with special handling for commas and '{,}'

ARGS = {
    's': '1,234.56'
}
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 tuple, ndim 1, dtype family float — a tuple 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
union_tensor_dict Ran
ran; our contract draft was wrong, not the code
joeying1019/adactrl/verl/protocol.py
code served (permissive licence) · get_code("21331a58f93375e4")
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 TensorDict. 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
from tensordict import TensorDict

torch.manual_seed(0)

# Create two TensorDicts with identical batch size
batch_size = torch.Size([2])

# First tensor dict with some keys
tensor_dict1 = TensorDict(
    {
        "shared_key": torch.randn(2, 4),
        "key1": torch.randn(2, 3),
    },
    batch_size=batch_size,
)

# Second tensor dict with overlapping and new keys
tensor_dict2 = TensorDict(
    {
        "shared_key": tensor_dict1["shared_key"].clone(),  # Same tensor values
        "key2": torch.randn(2, 5),
    },
    batch_size=batch_size,
)

ARGS = {
    "tensor_dict1": tensor_dict1,
    "tensor_dict2": tensor_dict2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensordict, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type TensorDict — a TensorDict output has no array shape of its own; none is 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
unpad_dataproto Ran
ran; our contract draft was wrong, not the code
joeying1019/adactrl/verl/protocol.py
code served (permissive licence) · get_code("25f0ea3f460f6ce1")
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 DataProto. 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

torch.manual_seed(0)

class DataProto:
    """Stand-in class for DataProto that supports slicing."""
    def __init__(self, data):
        self.data = data
    
    def __getitem__(self, key):
        """Support slicing to return a new DataProto with sliced data."""
        sliced_data = self.data[key]
        return DataProto(sliced_data)
    
    def __repr__(self):
        return f"DataProto({self.data})"

# Create a small DataProto instance with some data
data_tensor = torch.randn(2, 4)
data_proto = DataProto(data_tensor)

ARGS = {
    "data": data_proto,
    "pad_size": 0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataProto — a DataProto output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataProto 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
check_conversation_format Not yet run
unverified (harvested, no recorded run)
joeying1019/adactrl/utils/data_utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from zzy1127/GIFT, is pointer only (licence: NONE) · get_code("875194b0e06d05e1")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from zzy1127/GIFT, and GitHub detected no licence in that repository 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_generation_config Not yet run
unverified (harvested, no recorded run)
joeying1019/adactrl/verl/utils/model.py
code served (permissive licence) · get_code("660713a8fa047736")
How it ran

no invocation recorded.

get_weight_loader Not yet run
unverified (harvested, no recorded run)
joeying1019/adactrl/verl/models/weight_loader_registry.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from ncbi-nlp/Med-V1, is pointer only (licence: NOASSERTION) · get_code("af005d03c2088909")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from ncbi-nlp/Med-V1, and GitHub could not classify the licence of that repository (NOASSERTION). 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_saver Not yet run
unverified (harvested, no recorded run)
joeying1019/adactrl/verl/models/weight_loader_registry.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Alibaba-NLP/VRAG, is pointer only (licence: NONE) · get_code("914227ac881d05be")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from Alibaba-NLP/VRAG, and GitHub detected no licence in that repository 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.

normalize Not yet run
unverified (harvested, no recorded run)
joeying1019/adactrl/utils/openmathinst_utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from zzy1127/GIFT, is pointer only (licence: NONE) · get_code("6b11d915b45fae0d")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from zzy1127/GIFT, and GitHub detected no licence in that repository 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.

normalize_answer_string Not yet run
unverified (harvested, no recorded run)
joeying1019/adactrl/utils/openmathinst_utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from zzy1127/GIFT, is pointer only (licence: NONE) · get_code("11d097e9be003804")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from zzy1127/GIFT, and GitHub detected no licence in that repository 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.

read_json Not yet run
unverified (harvested, no recorded run)
joeying1019/adactrl/utils/data_utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from zzy1127/GIFT, is pointer only (licence: NONE) · get_code("dd9ca8cdc6aa690d")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from zzy1127/GIFT, and GitHub detected no licence in that repository 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.

read_jsonl Not yet run
unverified (harvested, no recorded run)
joeying1019/adactrl/utils/data_utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from zzy1127/GIFT, is pointer only (licence: NONE) · get_code("82f198e67affc0bb")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from zzy1127/GIFT, and GitHub detected no licence in that repository 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.

squeeze Not yet run
unverified (harvested, no recorded run)
joeying1019/adactrl/verl/utils/model.py
code served (permissive licence) · get_code("3b15e2ac7497c441")
How it ran

no invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 13 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 7 the same month, 13 later) and 2 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
unpad_dataproto 89 other papers
12 dated earlier, 11 the same month, 62 later, 1 same year, order not determinable, 3 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2410.21236 (2024-10)
Flaming-hot Initiation with Regular Execution Sampling for Large Language Models
2025.findings-emnlp.1015 (2025 (year only))
MT-R1-Zero: Advancing LLM-based Machine Translation via R1-Zero-like Reinforcement Learning
and 86 more not named here
squeeze 82 other papers
11 dated earlier, 11 the same month, 56 later, 1 same year, order not determinable, 3 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2410.21236 (2024-10)
Flaming-hot Initiation with Regular Execution Sampling for Large Language Models
2025.findings-emnlp.1015 (2025 (year only))
MT-R1-Zero: Advancing LLM-based Machine Translation via R1-Zero-like Reinforcement Learning
and 79 more not named here
union_tensor_dict 64 other papers
12 dated earlier, 13 the same month, 35 later, 1 same year, order not determinable, 3 undated · 4 only as an assembly brick
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2410.21236 (2024-10)
Flaming-hot Initiation with Regular Execution Sampling for Large Language Models
2025.findings-emnlp.1015 (2025 (year only))
MT-R1-Zero: Advancing LLM-based Machine Translation via R1-Zero-like Reinforcement Learning
and 61 more not named here
get_generation_config 63 other papers
7 dated earlier, 4 the same month, 50 later, 2 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2410.21236 (2024-10)
Flaming-hot Initiation with Regular Execution Sampling for Large Language Models
2502.19613 (2025-02)
Self-rewarding correction for mathematical reasoning
and 60 more not named here
get_huggingface_actor_config 53 other papers
11 dated earlier, 11 the same month, 28 later, 1 same year, order not determinable, 2 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2410.21236 (2024-10)
Flaming-hot Initiation with Regular Execution Sampling for Large Language Models
2025.findings-emnlp.1015 (2025 (year only))
MT-R1-Zero: Advancing LLM-based Machine Translation via R1-Zero-like Reinforcement Learning
and 50 more not named here
is_digit 7 other papers
4 dated earlier, 1 the same month, 2 later
2404.02078 (2024-04)
Advancing LLM Reasoning Generalists with Preference Trees
2412.01981 (2024-12)
Free Process Rewards without Process Labels
2502.01456 (2025-02)
Process Reinforcement through Implicit Rewards
and 4 more not named here
get_weight_loader 4 other papers
1 dated earlier, 1 the same month, 2 later
2502.19613 (2025-02)
Self-rewarding correction for mathematical reasoning
2505.24875 (2025-05)
ReasonGen-R1: CoT for Autoregressive Image generation models through SFT and RL
2602.12735 (2026-02)
VimRAG: Navigating Massive Visual Context in Retrieval-Augmented Generation via Multimodal Memory Graph
and 1 more not named here
get_weight_saver 2 other papers
1 dated earlier, 1 later
2502.19613 (2025-02)
Self-rewarding correction for mathematical reasoning
2602.12735 (2026-02)
VimRAG: Navigating Massive Visual Context in Retrieval-Augmented Generation via Multimodal Memory Graph
check_conversation_format 1 other paper
1 later
2601.09233 (2026-01)
GIFT: Reconciling Post-Training Objectives via Finite-Temperature Gibbs Initialization
normalize 1 other paper
1 later
2601.09233 (2026-01)
GIFT: Reconciling Post-Training Objectives via Finite-Temperature Gibbs Initialization
normalize_answer_string 1 other paper
1 later
2601.09233 (2026-01)
GIFT: Reconciling Post-Training Objectives via Finite-Temperature Gibbs Initialization
read_json 1 other paper
1 later
2601.09233 (2026-01)
GIFT: Reconciling Post-Training Objectives via Finite-Temperature Gibbs Initialization
read_jsonl 1 other paper
1 later
2601.09233 (2026-01)
GIFT: Reconciling Post-Training Objectives via Finite-Temperature Gibbs Initialization

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-24.

Repositories linked to this paper

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

Abstract

Modern large reasoning models demonstrate impressive problem-solving capabilities by employing sophisticated reasoning strategies. However, they often struggle to balance efficiency and effectiveness, frequently generating unnecessarily lengthy reasoning chains for simple problems. In this work, we propose AdaCtrl, a novel framework to support both difficulty-aware adaptive reasoning budget allocation and explicit user control over reasoning depth. AdaCtrl dynamically adjusts its reasoning length based on self-assessed problem difficulty, while also allowing users to manually control the budget to prioritize either efficiency or effectiveness. This is achieved through a two-stage training pipeline: an initial cold-start fine-tuning phase to instill the ability to self-aware difficulty and adjust reasoning budget, followed by a difficulty-aware reinforcement learning (RL) stage that refines the model's adaptive reasoning strategies and calibrates its difficulty assessments based on its evolving capabilities during online training. To enable intuitive user interaction, we design explicit length-triggered tags that function as a natural interface for budget control. Empirical results show that AdaCtrl adapts reasoning length based on estimated difficulty, compared to the standard training baseline that also incorporates fine-tuning and RL, it yields performance improvements and simultaneously reduces response length by 10.06% and 12.14% on the more challenging AIME2024 and AIME2025 datasets, which require elaborate reasoning, and by 62.05% and 91.04% on the MATH500 and GSM8K datasets, where more concise responses are sufficient. Furthermore, AdaCtrl enables precise user control over the reasoning budget, allowing for tailored responses to meet specific needs.

For agents

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

get_harvested_code_for_paper("2505.18822")
get_code_for_paper("2505.18822")
have("2505.18822")

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

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

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

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

Connect an agent — have() is free.