SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2025.findings-acl.1225 · ACL Findings · 2025

Structured Pruning for Diverse Best-of-N Reasoning Optimization

Anh Nguyen, Hieu Nguyen, Bao Nguyen

Open in the Atlas

Code that ran

11 of 13 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 9 have no contract verdict; 1 failure of our instrument; 2 no recorded run), measured 2026-11-24; 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/2025.findings-acl.1225.json · badge: /api/ran/2025.findings-acl.1225.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
HieuNT91/attention_pruning canonical (classifier label)
classifier basis: census
11 ran · 2 no recorded run
FunctionStatusWhere it lives
apply_prompt Ran
ran on a synthesized input
HieuNT91/attention_pruning/src/math500_utils.py
code served (permissive licence) · get_code("44e1e4da662aca60")
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

torch.manual_seed(0)

# sample dict with 'problem' key
sample = {
    'problem': 'What is 2 + 2?'
}

# model_repo string - test with qwen instruct variant
model_repo = 'Qwen-Instruct'

ARGS = {
    'sample': sample,
    'model_repo': model_repo
}
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
compute_accuracy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
HieuNT91/attention_pruning/src/gsm8k_utils.py
code served (permissive licence) · get_code("6d89eb39c2cd1646")
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 float, 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
import numpy as np

torch.manual_seed(0)

# Construct valid arguments for compute_accuracy
# The function takes two lists: pred and gold
# It compares elements pairwise and computes accuracy

pred = [1, 2, 3, 4, 5]
gold = [1, 2, 0, 4, 5]

ARGS = {
    "pred": pred,
    "gold": gold,
}
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 float, 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
extract_answer_number Ran
ran, honoured the contract we drafted
HieuNT91/attention_pruning/src/gsm8k_utils.py
code served (permissive licence) · get_code("4fc5125ed17db0eb")
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 float, 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 re

ANSWER_PROMPT = 'The answer is: '

def extract_answer_number(sentence: str) -> float:
    sentence = sentence.replace(',', '')
    pred = [s for s in re.findall('-?\\d+\\.?\\d*', sentence)]
    if not pred:
        return float('inf')
    segment = sentence.split(ANSWER_PROMPT)
    if len(segment) > 1:
        pred_answer = segment[1]
        pred_answer = [s for s in re.findall('-?\\d+\\.?\\d*', pred_answer)]
        if len(pred_answer) > 0:
            pred_answer = pred_answer[0]
        else:
            pred_answer = float(pred[-1])
    else:
        pred_answer = float(pred[-1])
    if isinstance(pred_answer, str):
        try:
            pred_answer = float(pred_answer)
        except ValueError as e:
            pred_answer = float('inf')
    return pred_answer

# Test case 1: Simple sentence with number
sentence_1 = "The answer is: 42"

# Test case 2: Sentence with decimal
sentence_2 = "The result is The answer is: 3.14159"

# Test case 3: Sentence with negative number
sentence_3 = "The answer is: -7.5"

# Test case 4: Sentence with comma in number
sentence_4 = "The answer is: 1,000"

# Test case 5: Sentence without answer prompt
sentence_5 = "Some random text with 99 in it"

# Test case 6: Sentence with no numbers
sentence_6 = "No numbers here"

# Test case 7: Multiple numbers, answer prompt present
sentence_7 = "First 10 then The answer is: 25 and more"

ARGS = {
    "sentence": "The answer is: 42.5"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, 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
extract_boxed_answer Ran
ran on a synthesized input
HieuNT91/attention_pruning/src/math500_utils.py
code served (permissive licence) · get_code("fb8a8b4f24c96ca5")
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_boxed_answer takes a single parameter: llm_output (a string)
# It searches for '\boxed{' in the string and extracts the boxed content
# No complex objects needed - just a string

ARGS = {
    'llm_output': 'The answer is \\boxed{42} and that is correct.'
}
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
extract_text_between Ran
ran on a synthesized input
HieuNT91/attention_pruning/attention_pruning_experiments/backup/evaluate_best_of_n.py
code served (permissive licence) · get_code("c0fa6925a046dc88")
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 re

def extract_text_between(text, start_marker='user\n', end_marker='<|im_end|>'):
    """
    Extracts and returns the text between start_marker and end_marker.
    
    Args:
        text (str): The input string to search within.
        start_marker (str): The text marking the start of the extraction segment.
        end_marker (str): The text marking the end of the extraction segment.
    
    Returns:
        str: The extracted text. If no match is found, returns an empty string.
    """
    pattern = re.compile(re.escape(start_marker) + '(.*?)' + re.escape(end_marker), re.DOTALL)
    match = pattern.search(text)
    if match:
        return match.group(1)
    return ''

# Construct valid arguments for the function
text_input = "prefix user\nHello, this is extracted content\n<|im_end|> suffix"
start_marker_input = 'user\n'
end_marker_input = '<|im_end|>'

ARGS = {
    'text': text_input,
    'start_marker': start_marker_input,
    'end_marker': end_marker_input
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
get_accuracy_matrix Ran
ran on a synthesized input
HieuNT91/attention_pruning/attention_pruning_experiments/draw_tables.py
code served (permissive licence) · get_code("75dc027af18383fa")
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 ndarray, ndim 2, dtype family float, shape (5, 4) 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 numpy as np

# The function expects head_accuracies to be a dict where:
# - Keys are strings like '0_acc_vec', '1_acc_vec', ..., 'no_prune_acc_vec'
# - Values are array-like objects (vectors of accuracies)
# The function will transpose these vectors into a matrix

# Create sample accuracy vectors
# Using distinct sizes to make shapes unambiguous: 5 samples per head
head_accuracies = {
    '0_acc_vec': np.array([0.85, 0.87, 0.86, 0.88, 0.89]),
    '1_acc_vec': np.array([0.82, 0.84, 0.83, 0.85, 0.86]),
    '2_acc_vec': np.array([0.80, 0.81, 0.82, 0.83, 0.84]),
    'no_prune_acc_vec': np.array([0.90, 0.91, 0.92, 0.93, 0.94])
}

ARGS = {
    'head_accuracies': head_accuracies
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (5, 4) — shape (5, 4) 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_accuracy_matrix Ran
ran on a synthesized input
HieuNT91/attention_pruning/attention_pruning_experiments/evaluate_best_of_n_wandb.py
code served (permissive licence) · get_code("403a3ccd583ddb40")
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 ndarray, ndim 2, dtype family float, shape (4, 3) 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 numpy as np

# The function expects head_accuracies to be a dict with keys like 'no_prune_acc_vec_0', 'no_prune_acc_vec_1', etc.
# The values should be array-like that can be stacked with .T (transpose)
# Looking at the function: it creates ordered_heads based on len(head_accuracies.keys())
# then accesses each head by key and appends to a list, finally converts to np.array and transposes

# Create a small example with 3 heads, each with 4 accuracy values
head_accuracies = {
    'no_prune_acc_vec_0': np.array([0.85, 0.87, 0.89, 0.91]),
    'no_prune_acc_vec_1': np.array([0.82, 0.84, 0.86, 0.88]),
    'no_prune_acc_vec_2': np.array([0.80, 0.82, 0.84, 0.86]),
}

ARGS = {
    'head_accuracies': head_accuracies
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (4, 3) — shape (4, 3) 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_file_from_cache Ran
ran on a synthesized input
HieuNT91/attention_pruning/attention_pruning_experiments/draw_tables.py
code served (permissive licence) · get_code("77c53ce2f95e1129")
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 2, 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 os
import json
import tempfile
import shutil

# Create a temporary directory with sample JSON files
temp_dir = tempfile.mkdtemp(prefix='tmp_results_')
model_repo = 'Qwen2.5-Math-1.5B-Instruct'

# Create sample JSON files that match the expected pattern
sample_summaries = [
    {'layer': 0, 'pruned': True, 'metrics': {'accuracy': 0.95}},
    {'layer': 1, 'pruned': False, 'metrics': {'accuracy': 0.92}},
    {'layer': 2, 'pruned': True, 'metrics': {'accuracy': 0.94}},
]

# Write test JSON files
for i, summary in enumerate(sample_summaries):
    filename = f"{model_repo}_layer_{i}.json"
    filepath = os.path.join(temp_dir, filename)
    with open(filepath, 'w') as f:
        json.dump(summary, f)

# Also add a non-matching file to ensure filtering works
with open(os.path.join(temp_dir, 'other_file.json'), 'w') as f:
    json.dump({'data': 'test'}, f)

# Add a file with different model repo name
with open(os.path.join(temp_dir, 'OtherModel_layer_0.json'), 'w') as f:
    json.dump({'data': 'test'}, f)

ARGS = {
    'model_repo': 'Qwen2.5-Math-1.5B-Instruct',
    'root_dir': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, 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
load_dataset Ran
ran on a synthesized input
HieuNT91/attention_pruning/attention_pruning_experiments/backup/cluster_and_subsample.py
code served (permissive licence) · get_code("e8ed827a8ac1b57e")
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 os
import json
import tempfile

# Create a temporary directory for the dataset
temp_dir = tempfile.mkdtemp()
dataset_dir = os.path.join(temp_dir, 'datasets', 'math500')
os.makedirs(dataset_dir, exist_ok=True)

# Create a mock test.jsonl file with sample data
test_jsonl_path = os.path.join(dataset_dir, 'test.jsonl')
with open(test_jsonl_path, 'w', encoding='utf-8') as f:
    f.write(json.dumps({'problem': 'What is 2+2?', 'solution': '4'}) + '\n')
    f.write(json.dumps({'problem': 'What is 3+3?', 'solution': '6'}) + '\n')

# Define ARGS mapping all parameters of load_dataset
ARGS = {
    'dataset_path': os.path.join(temp_dir, 'datasets', 'math500'),
    'split': 'test'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
load_dataset Ran
ran on a synthesized input
HieuNT91/attention_pruning/src/math500_utils.py
code served (permissive licence) · get_code("9bdec2298e83c237")
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 json
import tempfile
import os

# Create a temporary file with JSONL data
temp_dir = tempfile.mkdtemp()
dataset_path = os.path.join(temp_dir, "test_dataset.jsonl")

# Write sample JSONL data
with open(dataset_path, 'w', encoding='utf-8') as f:
    f.write(json.dumps({"text": "hello world", "label": 1}) + "\n")
    f.write(json.dumps({"text": "foo bar", "label": 0}) + "\n")
    f.write(json.dumps({"text": "test example", "label": 1}) + "\n")

ARGS = {
    "dataset_path": dataset_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
load_jsonl Ran
ran on a synthesized input
HieuNT91/attention_pruning/attention_pruning_experiments/backup/cluster_and_subsample.py
code served (permissive licence) · get_code("348b0434e55fe7ae")
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 json
import tempfile
import os

# Create a temporary JSONL file with sample data
temp_dir = tempfile.mkdtemp()
dataset_path = os.path.join(temp_dir, "test_dataset.jsonl")

# Write sample JSONL data
with open(dataset_path, 'w', encoding='utf-8') as f:
    f.write(json.dumps({"id": 1, "text": "hello"}) + "\n")
    f.write(json.dumps({"id": 2, "text": "world"}) + "\n")
    f.write(json.dumps({"id": 3, "text": "test"}) + "\n")

ARGS = {
    "dataset_path": dataset_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
get_file_from_wandb Not yet run
unverified (harvested, no recorded run)
HieuNT91/attention_pruning/attention_pruning_experiments/backup/evaluate_best_of_n.py
code served (permissive licence) · get_code("afa3f68e937e7233")
How it ran

no invocation recorded.

get_gsm8k_dataset Not yet run
unverified (harvested, no recorded run)
HieuNT91/attention_pruning/src/gsm8k_utils.py
code served (permissive licence) · get_code("d8cd66a793e8ba3c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 0 later) and 11 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
compute_accuracy 2 other papers
2 dated earlier
2310.08659 (2023-10)
LoftQ: LoRA-Fine-Tuning-Aware Quantization for Large Language Models
2403.01165 (2024-03)
STAR: Constraint LoRA with Dynamic Active Learning for Data-Efficient Fine-Tuning of Large Language Models
extract_answer_number 1 other paper
1 dated earlier
2310.08659 (2023-10)
LoftQ: LoRA-Fine-Tuning-Aware Quantization for Large 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-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

Model pruning in transformer-based language models, traditionally viewed as a means of achieving computational savings, can enhance the model's reasoning capabilities. In this work, we uncover a surprising phenomenon: the selective pruning of certain attention heads leads to improvements in reasoning performance, particularly on challenging tasks. Motivated by this observation, we propose SPRINT, a novel contrastive learning framework that dynamically selects the optimal head and layer to prune during inference. By aligning question embeddings with head embeddings, SPRINT identifies those pruned-head configurations that result in more accurate reasoning. Extensive experiments demonstrate that our method significantly outperforms traditional best-of-N and random head selection strategies on the MATH500 and GSM8K datasets.

For agents

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

get_harvested_code_for_paper("2025.findings-acl.1225")
get_code_for_paper("2025.findings-acl.1225")
have("2025.findings-acl.1225")

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

curl https://syntology.ai/api/ran/2025.findings-acl.1225.json

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

[![Syntology run record](https://syntology.ai/api/ran/2025.findings-acl.1225.svg)](https://syntology.ai/paper/2025.findings-acl.1225)

Connect an agent — have() is free.