SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2512.13059 · NeurIPS · 2025

An Open and Reproducible Deep Research Agent for Long-Form Question Answering

Ikuya Yamada, Jun Suzuki, Mengyu Ye, Wataru Ikeda, Ko Yoshida, Hinata Sugimoto, Masatoshi Suzuki, Hisanori Ozaki

arXiv · PDF · Open in the Atlas

Code that ran

9 of 10 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, 2 violated it and 1 has no contract verdict; 6 failures of our instrument; 1 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2512.13059.json · badge: /api/ran/2512.13059.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
efficient-deep-research/efficient-deep-research canonical (classifier label)
classifier basis: census
9 ran · 1 no recorded run
FunctionStatusWhere it lives
create_eval_criterion_prompt Ran
ran; our contract draft was wrong, not the code
efficient-deep-research/efficient-deep-research/utils/response_quarity_evaluators.py
code served (permissive licence) · get_code("edec44a394d048f7")
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

torch.manual_seed(0)

# The function takes three parameters:
# 1. eval_criteria - a string key from the criteria_to_description dict
# 2. question - a string
# 3. answer - a string

ARGS = {
    'eval_criteria': 'Clarity',
    'question': 'What are the main factors affecting climate change?',
    'answer': 'Climate change is driven by multiple interconnected factors. First, greenhouse gas emissions from fossil fuel combustion increase atmospheric CO2 concentrations, trapping heat. Second, deforestation reduces carbon sinks, exacerbating the problem. Third, industrial agriculture contributes methane emissions. Finally, ocean acidification creates feedback loops that amplify warming effects.'
}
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
create_kpr_prompt Ran
ran; our contract draft was wrong, not the code
efficient-deep-research/efficient-deep-research/utils/response_quarity_evaluators.py
code served (permissive licence) · get_code("774ec94f99dd5b73")
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

torch.manual_seed(0)

# Construct valid arguments for create_kpr_prompt
ARGS = {
    "key_point": "The patient showed significant improvement in blood pressure readings over the treatment period.",
    "answer": "The clinical report documents a 15% reduction in systolic blood pressure after 8 weeks of medication therapy. The patient's diastolic readings also improved from baseline measurements."
}
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
detect_variant_markers Ran
ran, violated the contract we drafted
efficient-deep-research/efficient-deep-research/utils/response_format_validators.py
code served (permissive licence) · get_code("17f421ee9a6029c3")
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 re

def extract_incorrect_markers(input_string):
    """
    Extract incorrect markers from the input string. Correct markers are in the form of <|keyword|>.

    Args:
        input_string (str): Input string.
    Returns:
        List[str]: List of incorrect markers found in the input string.
    """
    standard_keywords = ['begin_search_query', 'end_search_query', 'begin_search_result', 'end_search_result']
    pattern = re.compile('(' + '|'.join(map(re.escape, standard_keywords)) + ')')
    incorrect_markers = []
    for match in pattern.finditer(input_string):
        keyword = match.group()
        start, end = (match.start(), match.end())
        prefix_ok = start >= 2 and input_string[start - 2:start] == '<|'
        suffix_ok = end + 2 <= len(input_string) and input_string[end:end + 2] == '|>'
        if not (prefix_ok and suffix_ok):
            keyword = input_string[start - 2:end + 2]
            incorrect_markers.append(keyword)
    return incorrect_markers

def detect_variant_markers(input_string):
    """
    Detect whether variant forms of markers exist in the input string.

    Args:
        input_string (str): Input string.

    Returns:
        bool: Whether variant markers exist or think tags are used excessively. Returns True if issues are detected, otherwise False.
    """
    variant_markers = extract_incorrect_markers(input_string)
    think_count = input_string.count('</think>')
    has_think_issue = think_count > 2
    return len(variant_markers) > 0 or has_think_issue


# Test case 1: string with correct markers (should return False)
test_string_1 = "Here is <|begin_search_query|>my query<|end_search_query|> and result <|begin_search_result|>data<|end_search_result|>"

# Test case 2: string with incorrect markers (should return True)
test_string_2 = "Here is begin_search_query my query end_search_query and result"

# Test case 3: string with excessive think tags (should return True)
test_string_3 = "Text </think> more text </think> another </think> final </think>"

# Test case 4: empty string (should return False)
test_string_4 = ""

ARGS = {
    "input_string": test_string_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 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
evaluate_with_openai_judge Ran
ran on a synthesized input
efficient-deep-research/efficient-deep-research/utils/response_quarity_evaluators.py
code served (permissive licence) · get_code("8ef4a4fb26ce1a8e")
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 coroutine. 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 asyncio
from typing import Any
from pydantic import BaseModel, Field


# Create a minimal Pydantic schema class for the response format
class JudgeResponse(BaseModel):
    decision: str = Field(description="The evaluation decision")
    reasoning: str = Field(description="The reasoning behind the decision")


# Create a mock AsyncAzureOpenAI client
class MockAsyncAzureOpenAI:
    def __init__(self):
        self.beta = self
        self.chat = self
        self.completions = self
    
    async def parse(self, model: str, messages: list, response_format: Any):
        # Return a mock response
        class MockChoice:
            def __init__(self):
                self.message = MockMessage()
        
        class MockMessage:
            def __init__(self):
                self.parsed = JudgeResponse(
                    decision="approved",
                    reasoning="The response meets all criteria"
                )
        
        class MockResponse:
            def __init__(self):
                self.choices = [MockChoice()]
        
        return MockResponse()


# Set up the arguments dictionary
ARGS = {
    'semaphore': asyncio.Semaphore(5),
    'prompt': 'Please evaluate the following response: "This is a test response that needs evaluation."',
    'schema_class': JudgeResponse,
    'client': MockAsyncAzureOpenAI(),
    'model': 'gpt-4-turbo'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
openai, pydantic, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type coroutine — a coroutine output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a coroutine 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_incorrect_markers Ran
ran; our contract draft was wrong, not the code
efficient-deep-research/efficient-deep-research/utils/response_format_validators.py
code served (permissive licence) · get_code("a33bf2a6288ef920")
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 extract_incorrect_markers(input_string):
    """
    Extract incorrect markers from the input string. Correct markers are in the form of <|keyword|>.

    Args:
        input_string (str): Input string.
    Returns:
        List[str]: List of incorrect markers found in the input string.
    """
    standard_keywords = ['begin_search_query', 'end_search_query', 'begin_search_result', 'end_search_result']
    pattern = re.compile('(' + '|'.join(map(re.escape, standard_keywords)) + ')')
    incorrect_markers = []
    for match in pattern.finditer(input_string):
        keyword = match.group()
        start, end = (match.start(), match.end())
        prefix_ok = start >= 2 and input_string[start - 2:start] == '<|'
        suffix_ok = end + 2 <= len(input_string) and input_string[end:end + 2] == '|>'
        if not (prefix_ok and suffix_ok):
            keyword = input_string[start - 2:end + 2]
            incorrect_markers.append(keyword)
    return incorrect_markers


# Test case 1: String with correctly formatted markers
test_input_1 = "Search: <|begin_search_query|>test<|end_search_query|>"

# Test case 2: String with incorrectly formatted markers (missing prefix/suffix)
test_input_2 = "begin_search_query and end_search_result are here"

# Test case 3: String with mixed correct and incorrect markers
test_input_3 = "Start <|begin_search_query|> middle begin_search_result end <|end_search_query|>"

# Test case 4: String with malformed markers (partial delimiters)
test_input_4 = "This has <begin_search_query|> and |end_search_result|> markers"

ARGS = {
    "input_string": test_input_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 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_qa_instruction Ran
ran; our contract draft was wrong, not the code
efficient-deep-research/efficient-deep-research/utils/prompts.py
code served (permissive licence) · get_code("ba8397fba6f8b338")
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 get_qa_instruction

ARGS = {
    "MAX_SEARCH_LIMIT": 5,
    "question": "What is the capital of France?",
    "initial_search_result": "France is a country in Western Europe. The capital of France is Paris (#id001). Paris is known for the Eiffel Tower (#id002)."
}
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_data Ran
ran; our contract draft was wrong, not the code
efficient-deep-research/efficient-deep-research/generate_rollouts.py
code served (permissive licence) · get_code("f7ee342a11b3b1e5")
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 JSON file with sample data
temp_dir = tempfile.mkdtemp()
data_file = os.path.join(temp_dir, "test_data.json")

sample_data = [
    {"id": 1, "text": "Hello world", "label": 0},
    {"id": 2, "text": "Goodbye world", "label": 1},
    {"id": 3, "text": "Test example", "label": 0}
]

with open(data_file, 'w', encoding='utf-8') as f:
    json.dump(sample_data, f)

ARGS = {
    "data_path": data_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 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
make_output_dir Ran
ran; our contract draft was wrong, not the code
efficient-deep-research/efficient-deep-research/generate_rollouts.py
code served (permissive licence) · get_code("39bc9345b1792e76")
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 os
import tempfile

# Create a temporary directory for testing
temp_base_dir = tempfile.mkdtemp()

ARGS = {
    'output_dir_base': temp_base_dir,
    'dataset_name': 'test_dataset',
    'rollout_id': 42
}
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
validate_history Ran
ran, violated the contract we drafted
efficient-deep-research/efficient-deep-research/utils/response_format_validators.py
code served (permissive licence) · get_code("790c8542de449abb")
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
import numpy as np

# Valid test case 1: Single search query
history_valid_1 = ['<|begin_search_query|>test query<|end_search_query|>']

# Valid test case 2: Multiple valid messages
history_valid_2 = [
    '<|begin_search_query|>what is python<|end_search_query|>',
    '<|begin_search_result|>Python is a programming language<|end_search_result|>'
]

# Valid test case 3: Think token at end only
history_valid_3 = [
    '<|begin_search_query|>test<|end_search_query|>',
    '<|begin_search_result|>result content<|end_search_result|>',
    'Some response</think>'
]

# Valid test case 4: Just a search result
history_valid_4 = ['<|begin_search_result|>Some result<|end_search_result|>']

# Choose one valid history for the function call
valid_history = history_valid_2

ARGS = {
    'history': valid_history
}
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 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
fetch_url Not yet run
unverified (harvested, no recorded run)
efficient-deep-research/efficient-deep-research/scrape_urls.py
code served (permissive licence) · get_code("c312935554646703")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 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 10 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

We present an open deep research system for long-form question answering, selected as a winning system in the text-to-text track of the MMU-RAG competition at NeurIPS 2025. The system combines an open-source large language model (LLM) with an open web search API to perform iterative retrieval, reasoning, and synthesis in real-world open-domain settings. To enhance reasoning quality, we apply preference tuning based on LLM-as-a-judge feedback that evaluates multiple aspects, including clarity, insightfulness, and factuality. Our experimental results show that the proposed method consistently improves answer quality across all three aspects. Our source code is publicly available at https: //github.com/efficient-deep-research/efficient-deep-research.

For agents

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

get_harvested_code_for_paper("2512.13059")
get_code_for_paper("2512.13059")
have("2512.13059")

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

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

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

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

Connect an agent — have() is free.