SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2503.22674 · 2025

QuestBench: Can LLMs ask the right question to acquire information in reasoning tasks?

arXiv · PDF · Open in the Atlas

Code that ran

11 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 11 have no contract verdict; 0 failures of our instrument; 1 no recorded run), measured 2026-11-23; 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/2503.22674.json · badge: /api/ran/2503.22674.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
google-deepmind/questbench canonical (classifier label)
classifier basis not recorded on the link
11 ran · 1 no recorded run
FunctionStatusWhere it lives
check_satisfies_constraints Ran
ran on a synthesized input
google-deepmind/questbench/Planning/backtrace_utils.py
code served (permissive licence) · get_code("5aaad1d50295832c")
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.

# Analyzing the function check_satisfies_constraints
# - domain: a key used to index into constraints dict
# - facts: a set that supports & (intersection) operation
# - constraints: a dict where values are lists of sets

# The function checks if facts satisfy constraints by:
# 1. Looking up constraints[domain] to get a list of disjunctive constraints
# 2. For each constraint (a set), checking if facts & constraint is non-empty
# 3. Returning False if any constraint has empty intersection with facts

# Building minimal valid arguments:

domain = "task_domain_1"

# facts is a set of some hashable items
facts = {"fact_a", "fact_b", "fact_c"}

# constraints is a dict where:
# - keys are domain names
# - values are lists of sets (each set is a disjunctive constraint)
constraints = {
    "task_domain_1": [
        {"fact_a", "fact_x"},  # constraint 1: at least one of these must be in facts
        {"fact_b", "fact_y"},  # constraint 2: at least one of these must be in facts
        {"fact_c", "fact_z"},  # constraint 3: at least one of these must be in facts
    ]
}

ARGS = {
    "domain": domain,
    "facts": facts,
    "constraints": constraints,
}
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 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
check_self_consistency Ran
ran on a synthesized input
google-deepmind/questbench/Planning/backtrace_utils.py
code served (permissive licence) · get_code("950be6a18b37b85e")
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 itertools as it

# Analyze the function:
# - domain: string, compared with 'blocks'
# - facts: set of facts (strings), iterated over
# - contradicting_fact_pairs: set of pairs of facts that contradict each other

# For the blocks domain, facts are strings like "(on A B)" or "(holding C)"
# The function parses these strings and validates stack consistency

# Create test data for the blocks domain
domain = 'blocks'

# Create a valid set of facts representing a valid block configuration
# Valid configuration: block A on block B, and block B on table (implicit)
facts = {
    "(on A B)",
    "(on B C)"
}

# Create contradicting fact pairs set
# These would be pairs that cannot both be true
contradicting_fact_pairs = {
    ("(on A B)", "(on A C)"),  # A cannot be on both B and C
    ("(holding A)", "(on A B)"),  # Cannot hold A if it's on B
}

ARGS = {
    'domain': domain,
    'facts': facts,
    'contradicting_fact_pairs': contradicting_fact_pairs
}
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 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
jsonify_prompt Ran
ran on a synthesized input
google-deepmind/questbench/model_utils.py
code served (permissive licence) · get_code("938eefb6de7c1539")
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 json

def jsonify_prompt(prompt):
    return json.dumps(prompt)

# Create a simple prompt that can be JSON serialized
ARGS = {
    "prompt": "This is a test prompt for JSON serialization"
}
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
load_cache_file Ran
ran on a synthesized input
google-deepmind/questbench/model_utils.py
code served (permissive licence) · get_code("08f538194a1bc5fa")
How it ran

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

import json
import os
import tempfile

# Create a temporary cache file with some test data
temp_dir = tempfile.mkdtemp()
cache_file = os.path.join(temp_dir, "test_cache.jsonl")

# Write some test data to the cache file
with open(cache_file, 'w') as f:
    f.write(json.dumps({"prompt": "What is 2+2?", "completion": "4"}) + "\n")
    f.write(json.dumps({"prompt": "Hello", "completion": "Hi there!"}) + "\n")
    f.write(json.dumps({"prompt": "Goodbye", "completion": "See you later!"}) + "\n")

ARGS = {
    "cache_file": cache_file
}
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 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
load_data Ran
ran on a synthesized input
google-deepmind/questbench/SimpleLogic/ruleset.py
code served (permissive licence) · get_code("dd14497bd4b9e103")
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. 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 tempfile
import os
import json

# Create a temporary directory with test data files
temp_dir = tempfile.mkdtemp()

# Create a test .txt file with JSON lines
test_file = os.path.join(temp_dir, "test_rulesets.txt")
with open(test_file, 'w') as f:
    # Write valid JSON lines
    f.write(json.dumps([{"rule": "rule1", "condition": "x > 0"}]) + "\n")
    f.write(json.dumps([{"rule": "rule2", "condition": "y < 10"}]) + "\n")
    # Write an invalid JSON line to test error handling
    f.write("invalid json line\n")
    f.write(json.dumps([{"rule": "rule3", "condition": "z == 5"}]) + "\n")

# Create another test file
test_file2 = os.path.join(temp_dir, "another_rulesets.txt")
with open(test_file2, 'w') as f:
    f.write(json.dumps([{"rule": "rule4", "condition": "a != b"}]) + "\n")

ARGS = {
    "sl_dir": temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple 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
make_constraints Ran
ran on a synthesized input
google-deepmind/questbench/Planning/make_heldout_states.py
code served (permissive licence) · get_code("8d6a2e3dfcad9e26")
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.

# Analyze the function to understand what problem_spec needs
# The function expects problem_spec to be a dict with an 'objects' key
# containing a collection of object names (strings)
# It uses these to build constraint blocks with string set operations

ARGS = {
    'problem_spec': {
        'objects': ['block_a', 'block_b', 'block_c']
    }
}
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 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
make_heldout_states Ran
ran on a synthesized input
google-deepmind/questbench/Planning/make_heldout_states.py
code served (permissive licence) · get_code("21b990e2c7f2ae64")
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.

# Analyze the function to understand its parameters and behavior
# The function takes conditions_to_path: dict of initial conditions to paths to goal
# - Keys are initial states (converted to frozenset)
# - Values are paths to goal (converted to tuple)

# The function works with frozensets and tuples, so we need to construct:
# - A dict where keys are sets of facts (conditions/states)
# - Values are paths (sequences of actions/steps)

# Let's create a minimal but valid example:
# We'll create states as frozensets of facts, and paths as tuples of actions

ARGS = {
    "conditions_to_path": {
        frozenset({"fact_a", "fact_b", "fact_c"}): ["action_1", "action_2"],
        frozenset({"fact_a", "fact_b", "fact_c", "fact_d"}): ["action_1", "action_2", "action_3"],
        frozenset({"fact_a", "fact_b"}): ["action_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 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
make_impossible_and_contradicting_facts Ran
ran on a synthesized input
google-deepmind/questbench/Planning/make_heldout_states.py
code served (permissive licence) · get_code("2b52415e972eca31")
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

# Analyzing the function, I need to provide:
# - domain: a string key used to index contradicting_facts dict
# - problem_spec: a dict with 'objects' (dict), 'facts' (list/set)

# The function uses:
# - problem_spec['objects'] - needs to be iterable (dict with keys)
# - problem_spec['facts'] - needs to be iterable
# - domain - used as a key in contradicting_facts['blocks']

# Build minimal problem_spec
objects = {
    'a': None,
    'b': None,
    'c': None
}

facts = [
    '(handempty)',
    '(ontable a)',
    '(ontable b)',
    '(ontable c)',
    '(clear a)',
    '(clear b)',
    '(clear c)',
    '(holding a)',
    '(holding b)',
    '(holding c)',
    '(on a b)',
    '(on a c)',
    '(on b a)',
    '(on b c)',
    '(on c a)',
    '(on c b)'
]

problem_spec = {
    'objects': objects,
    'facts': facts
}

domain = 'blocks'

ARGS = {
    'domain': domain,
    'problem_spec': problem_spec
}
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
negate Ran
ran on a synthesized input
google-deepmind/questbench/SimpleLogic/ruleset.py
code served (permissive licence) · get_code("f1184021116c0ed9")
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

def negate(word: str):
    if word.startswith('not '):
        return word.split('not ')[-1]
    else:
        return f'not {word}'

ARGS = {
    'word': 'happy'
}
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
powerset Ran
ran on a synthesized input
google-deepmind/questbench/Planning/backtrace_utils.py
code served (permissive licence) · get_code("e661cb08acaf5994")
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 chain. 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 itertools as it

def powerset(iterable):
    """powerset([1,2,3]) --> () (1,) (2,) (3,) (1,2) (1,3) (2,3) (1,2,3)."""
    s = list(iterable)
    return it.chain.from_iterable((it.combinations(s, r) for r in range(len(s) + 1)))


ARGS = {
    "iterable": [1, 2, 3]
}
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 chain — a chain output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a chain 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
union Ran
ran on a synthesized input
google-deepmind/questbench/SimpleLogic/derivation.py
code served (permissive licence) · get_code("fe2be5fdd1352cb9")
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 typing import Any, Dict, Iterable, List

torch.manual_seed(0)

# The function takes an iterable of dictionaries where values support comparison with max()
# It unions all the dicts by taking the max value for each key

# Create test dictionaries with comparable values (integers)
dict1 = {"a": 10, "b": 5, "c": 3}
dict2 = {"a": 8, "b": 12, "d": 7}
dict3 = {"a": 15, "e": 2}

all_dicts = [dict1, dict2, dict3]

ARGS = {
    "all_dicts": all_dicts
}
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
openai_request Not yet run
unverified (harvested, no recorded run)
google-deepmind/questbench/model_utils.py
code served (permissive licence) · get_code("6f3d7c5896fdf158")
How it ran

no invocation recorded.

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 12 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 12 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.

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 (LLMs) have shown impressive performance on reasoning benchmarks like math and logic. While many works have largely assumed well-defined tasks, real-world queries are often underspecified and only solvable by acquiring missing information. We formalize this information-gathering problem as a constraint satisfaction problem (CSP) with missing variable assignments. Using a special case where only one necessary variable assignment is missing, we can evaluate an LLM's ability to identify the minimal necessary question to ask. We present QuestBench, a set of underspecified reasoning tasks solvable by asking at most one question, which includes: (1) Logic-Q: logical reasoning tasks with one missing proposition, (2) Planning-Q: PDDL planning problems with partially-observed initial states, (3) GSM-Q: human-annotated grade school math problems with one unknown variable, and (4) GSME-Q: equation-based version of GSM-Q. The LLM must select the correct clarification question from multiple options. While current models excel at GSM-Q and GSME-Q, they achieve only 40-50% accuracy on Logic-Q and Planning-Q. Analysis shows that the ability to solve well-specified reasoning problems is not sufficient for success on our benchmark: models struggle to identify the right question even when they can solve the fully specified version. This highlights the need for specifically optimizing models' information acquisition capabilities.

For agents

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

get_harvested_code_for_paper("2503.22674")
get_code_for_paper("2503.22674")
have("2503.22674")

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

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

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

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

Connect an agent — have() is free.