SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.00662 · 2025

DeepCritic: Deliberate Critique with Large Language Models

arXiv · PDF · Open in the Atlas

Code that ran

12 of 12 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 10 have no contract verdict; 2 failures of our instrument; 0 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.00662.json · badge: /api/ran/2505.00662.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
rucbm/deepcritic canonical (classifier label)
classifier basis not recorded on the link
12 ran · 0 no recorded run
FunctionStatusWhere it lives
apply_chat_template Ran
ran on a synthesized input
rucbm/deepcritic/Critique_Generation/correct_slutions_rollout.py
code served (permissive licence) · get_code("488c133e028a1ca6")
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 int; 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

class MockTokenizer:
    def __init__(self):
        self.pad_token_id = 0
        self.eos_token_id = 2
    
    def apply_chat_template(self, messages, add_generation_prompt=False, tokenize=False):
        # Simulate chat template application
        template_str = ""
        for msg in messages:
            template_str += f"{msg['role']}: {msg['content']}\n"
        if add_generation_prompt:
            template_str += "assistant: "
        return template_str
    
    def __call__(self, text, add_special_tokens=False):
        # Simulate tokenization
        # Return an object with input_ids attribute
        tokens = [ord(c) % 256 for c in text[:20]]  # Simple fake tokenization
        
        class TokenizerOutput:
            def __init__(self, ids):
                self.input_ids = ids
        
        return TokenizerOutput(tokens)

# Create tokenizer
toker = MockTokenizer()

# Create prompt and partial solution
prompt = "What is the capital of France?"
partial_solution = "The capital of France is Paris because"

# Optional chat template
chat_template = "User: {prompt}\nAssistant: {partial_solution}"

ARGS = {
    "toker": toker,
    "prompt": prompt,
    "partial_solution": partial_solution,
    "chat_template": chat_template,
}
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 list, ndim 1, dtype family int — 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
apply_chat_template Ran
ran on a synthesized input
rucbm/deepcritic/Critique_Generation/gen_step_solutions.py
code served (permissive licence) · get_code("2e16de463ce3df94")
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 int; 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 torch.nn as nn

class MockTokenizer:
    def __init__(self):
        self.has_chat_template = True
    
    def apply_chat_template(self, messages, add_generation_prompt=False, tokenize=False):
        # Simulate returning a formatted prompt string
        return "[INST] " + messages[0]['content'] + " [/INST]"
    
    def __call__(self, text, add_special_tokens=False):
        # Simulate tokenization - return a mock result with input_ids
        # Simple mock: assign token IDs based on string length and content
        token_ids = [101] + [200 + (i % 100) for i in range(len(text) // 5)] + [102]
        
        class TokenizerOutput:
            def __init__(self, ids):
                self.input_ids = ids
        
        return TokenizerOutput(token_ids)


class MockChatTemplate:
    def format(self, prompt):
        return "[INST] " + prompt + " [/INST]"


# Create instances
toker = MockTokenizer()

messages = [
    {"role": "user", "content": "Hello, how are you?"},
    {"role": "assistant", "content": "I'm doing well!"}
]

chat_template = MockChatTemplate()

ARGS = {
    "toker": toker,
    "messages": messages,
    "chat_template": chat_template
}
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 int — 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
create_partial_solution Ran
ran on a synthesized input
rucbm/deepcritic/Critique_Generation/correct_slutions_rollout.py
code served (permissive licence) · get_code("bfa9f7362eb0b4eb")
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

# Define test data for the function
steps = [
    "Step 1: Identify the problem",
    "Step 2: Analyze the constraints",
    "Step 3: Develop a solution",
    "Step 4: Verify the result",
    "Step 5: Document findings"
]

n = 3

ARGS = {
    "steps": steps,
    "n": n
}
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_answer Ran
ran; our contract draft was wrong, not the code
rucbm/deepcritic/Critique_Generation/gen_step_solutions.py
pointer only (licence: MIT); the stored copy get_code serves, from qwenlm/processbench, is pointer only (licence: NONE) · get_code("315054dfedd692ff")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from qwenlm/processbench, 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. A run is recorded.

extract_boxed_answers Ran
ran on a synthesized input
rucbm/deepcritic/Critique_Generation/gen_in_depth_critique.py
code served (permissive licence) · get_code("15ffa726dbd74ce2")
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 int; 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.

# Analyze the function to understand what it needs
# extract_boxed_answers takes a single parameter: text (a string)
# It processes the text by:
# 1. Splitting on 'boxed{'
# 2. Iterating through pieces
# 3. Looking for matching braces and extracting candidate strings
# 4. Checking if candidates are integers using is_int()
# 5. Returning a list of integers found in boxed expressions

# Create test cases for the text parameter
test_text_1 = r"The answer is \boxed{42}"
test_text_2 = r"Results: \boxed{7} and \boxed{123}"
test_text_3 = r"Complex: \boxed{99}% improvement"
test_text_4 = r"Multiple boxed{5} and boxed{10} values boxed{15}"
test_text_5 = r"Invalid boxed{abc} but valid boxed{42}"

# The function only takes one parameter: text
ARGS = {
    "text": test_text_4
}
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 int — 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
extract_boxed_content Ran
ran on a synthesized input
rucbm/deepcritic/Critique_Generation/correct_slutions_rollout.py
code served (permissive licence) · get_code("270812d6db4adfac")
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.

# Setup code for extract_boxed_content function

# The function takes a single string parameter and extracts content from \boxed{} expressions
# We need to construct a test string with boxed content

ARGS = {
    'text': r'The solution is \boxed{42} and the answer is correct.'
}
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
extract_boxed_content Ran
ran on a synthesized input
rucbm/deepcritic/Critique_Generation/gen_step_solutions.py
code served (permissive licence) · get_code("f9fd47fd902934ae")
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

# Setup for extract_boxed_content function
# The function takes a single parameter: text (str)
# It searches for \boxed{} patterns and extracts the content inside

ARGS = {
    "text": r"The answer is \boxed{42} which is correct."
}
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
extract_completion_only Ran
ran on a synthesized input
rucbm/deepcritic/Critique_Generation/gen_in_depth_critique.py
code served (permissive licence) · get_code("3dbf34d9c40730cb")
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 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 torch
import torch.nn as nn

class MockOutput:
    def __init__(self, text):
        self.text = text

class MockAnswer:
    def __init__(self, outputs):
        self.outputs = outputs

ARGS = {
    "answer": [
        MockAnswer([
            MockOutput("prefix_text_completion_one"),
            MockOutput("prefix_text_completion_two")
        ]),
        MockAnswer([
            MockOutput("prefix_text_completion_three"),
            MockOutput("prefix_text_completion_four")
        ])
    ]
}
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 2, 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
is_adapter_model Ran
ran on a synthesized input
rucbm/deepcritic/sft/alignment/model_utils.py
code served (permissive licence) · get_code("50bfbe8479134a7d")
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 bool, 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 os
import tempfile
from huggingface_hub import list_repo_files
from huggingface_hub.utils._validators import HFValidationError

# Create a temporary directory to simulate a local adapter model
temp_dir = tempfile.mkdtemp()

# Create adapter_model.safetensors file in the temp directory
adapter_file_path = os.path.join(temp_dir, 'adapter_model.safetensors')
with open(adapter_file_path, 'w') as f:
    f.write('')

ARGS = {
    'model_name_or_path': temp_dir,
    'revision': 'main'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
huggingface_hub — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, 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
is_int Ran
ran on a synthesized input
rucbm/deepcritic/Critique_Generation/gen_in_depth_critique.py
code served (permissive licence) · get_code("41542784f0cd38ef")
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 bool, 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

ARGS = {
    "s": "42"
}
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 bool, 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
prepare_input_boxed Ran
ran; our contract draft was wrong, not the code
rucbm/deepcritic/ProcessBench/code/run_eval.py
pointer only (licence: MIT); the stored copy get_code serves, from qwenlm/processbench, is pointer only (licence: NONE) · get_code("89efe8bf76c531ce")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from qwenlm/processbench, 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. A run is recorded.

reformat_step_solution Ran
ran on a synthesized input
rucbm/deepcritic/Critique_Generation/process_step_solutions.py
code served (permissive licence) · get_code("c6e823c86aa89dfb")
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 re

def reformat_step_solution(solution):
    steps = re.findall('Step \\d+:.*?(?=Step \\d+:|$)', solution, re.DOTALL)
    if not steps:
        return None
    formatted_steps = []
    for i, step in enumerate(steps, 1):
        step = step.strip()
        if not step.startswith(f'Step {i}:'):
            step_match = re.match('Step (\\d+):', step)
            if step_match:
                step = f'Step {i}:' + step[len(f'Step {step_match.group(1)}:'):]
            else:
                step = f'Step {i}: ' + step
        formatted_steps.append(step)
    return formatted_steps


# Test case 1: Valid multi-step solution
solution_1 = """Step 1: First, we identify the problem.
Step 2: Then we analyze it carefully.
Step 3: Finally, we solve it."""

# Test case 2: Solution with misaligned step numbers
solution_2 = """Step 1: Calculate the initial value.
Step 3: Verify the result.
Step 5: Document findings."""

# Test case 3: Single step solution
solution_3 = "Step 1: This is the only step."

# Test case 4: Solution without proper step format
solution_4 = "This is a solution without proper step formatting."

# Test case 5: Empty solution
solution_5 = ""

ARGS = {
    "solution": solution_1
}
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

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 11 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 9 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
extract_answer 1 other paper
1 dated earlier
2412.06559 (2024-12)
ProcessBench: Identifying Process Errors in Mathematical Reasoning
prepare_input_boxed 1 other paper
1 dated earlier
2412.06559 (2024-12)
ProcessBench: Identifying Process Errors in Mathematical Reasoning

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

As Large Language Models (LLMs) are rapidly evolving, providing accurate feedback and scalable oversight on their outputs becomes an urgent and critical problem. Leveraging LLMs as critique models to achieve automated supervision is a promising solution. In this work, we focus on studying and enhancing the math critique ability of LLMs. Current LLM critics provide critiques that are too shallow and superficial on each step, leading to low judgment accuracy and struggling to offer sufficient feedback for the LLM generator to correct mistakes. To tackle this issue, we propose a novel and effective two-stage framework to develop LLM critics that are capable of deliberately critiquing on each reasoning step of math solutions. In the first stage, we utilize Qwen2.5-72B-Instruct to generate 4.5K long-form critiques as seed data for supervised fine-tuning. Each seed critique consists of deliberate step-wise critiques that includes multi-perspective verifications as well as in-depth critiques of initial critiques for each reasoning step. Then, we perform reinforcement learning on the fine-tuned model with either existing human-labeled data from PRM800K or our automatically annotated data obtained via Monte Carlo sampling-based correctness estimation, to further incentivize its critique ability. Our developed critique model built on Qwen2.5-7B-Instruct not only significantly outperforms existing LLM critics (including the same-sized DeepSeek-R1-distill models and GPT-4o) on various error identification benchmarks, but also more effectively helps the LLM generator refine erroneous steps through more detailed feedback.

For agents

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

get_harvested_code_for_paper("2505.00662")
get_code_for_paper("2505.00662")
have("2505.00662")

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

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

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

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

Connect an agent — have() is free.