SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2309.07852 · 2023

ExpertQA: Expert-Curated Questions and Attributed Answers

arXiv · PDF · Open in the Atlas

Code that ran

5 of 5 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, 1 violated it and 0 have no contract verdict; 3 failures of our instrument; 0 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/2309.07852.json · badge: /api/ran/2309.07852.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
chaitanyamalaviya/expertqa canonical (classifier label)
classifier basis: classifier_2025
5 ran · 0 no recorded run
FunctionStatusWhere it lives
find_urls Ran
ran; our contract draft was wrong, not the code
chaitanyamalaviya/expertqa/modeling/response_collection/fetch_bingchat_responses.py
code served (permissive licence) · get_code("9a3be6f12cbbe3b2")
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 torch
import numpy as np

# Analyze the function: find_urls expects a string parameter 'citations'
# The function:
# 1. Splits the string into a list by whitespace
# 2. Iterates through numbered citations [1]:, [2]:, etc.
# 3. Extracts the URL that follows each citation marker
# 4. Returns a list of URLs

# Create a sample citations string with proper format
# Format: "[1]: url1 [2]: url2 [3]: url3"
citations_string = "[1]: https://example.com [2]: https://google.com [3]: https://github.com"

ARGS = {
    "citations": citations_string
}
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 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
format_example_for_autoais Ran
ran; our contract draft was wrong, not the code
chaitanyamalaviya/expertqa/modeling/auto_attribution/autoais.py
code served (permissive licence) · get_code("f66345e65929ad41")
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)

ARGS = {
    'evidence': 'The sky is blue and clear today.',
    'claim': 'It is a sunny day.'
}
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
format_passage_for_autoais Ran
ran; our contract draft was wrong, not the code
chaitanyamalaviya/expertqa/modeling/auto_attribution/autoais.py
code served (permissive licence) · get_code("b8be2a13d4b17f23")
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 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

PASSAGE_FORMAT = re.compile('« ([^»]*) » « ([^»]*) » (.*)')

def format_passage_for_autoais(passage):
    """Produce the NLI format for a passage.

    Args:
        passage: A passage from the Wikipedia scrape.

    Returns:
        a formatted string, e.g.

        Luke Cage (season 2), Release. The second season of Luke Cage was released
        on June 22, 2018, on the streaming service Netflix worldwide, in Ultra HD
        4K and high dynamic range.
    """
    m = PASSAGE_FORMAT.match(passage)
    if not m:
        return passage
    headings = m.group(2)
    passage = m.group(3)
    return f'{headings}. {passage}'


# Test case 1: passage matching the format
passage_1 = '« article_title » « heading_text » This is the main passage content.'

# Test case 2: passage not matching the format (should return as-is)
passage_2 = 'This is just a regular passage without the special format.'

ARGS = {
    'passage': passage_1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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_entail_label_ids Ran
ran, honoured the contract we drafted
chaitanyamalaviya/expertqa/modeling/auto_attribution/autoais.py
code served (permissive licence) · get_code("38a0c176b9e9285a")
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 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
from transformers import AutoTokenizer

# Create a minimal tokenizer that implements convert_tokens_to_ids
class MinimalTokenizer:
    def convert_tokens_to_ids(self, token):
        # Map token strings to token IDs
        token_map = {
            '0': 0,
            '1': 1,
        }
        return token_map.get(token, -1)

tokenizer = MinimalTokenizer()

ARGS = {
    'tokenizer': tokenizer
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family int — 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
get_score Ran
ran, violated the contract we drafted
chaitanyamalaviya/expertqa/modeling/fact_score/factscore.py
code served (permissive licence) · get_code("6c4b02266edc91ba")
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 numpy as np

class MockLanguageModel:
    """Mock language model that implements the generate method."""
    
    def __init__(self, mode='logits'):
        self.mode = mode
    
    def generate(self, prompt):
        """
        Generate output based on mode.
        Returns either (text, logits) or (text,) depending on mode.
        """
        if self.mode == 'logits':
            # Return tuple with generated text and logits array
            # Logits should be shape [32000] or [32001] with values at indices 5852 and 7700
            logits = np.zeros(32000, dtype=np.float32)
            logits[5852] = 0.8  # true_score
            logits[7700] = 0.2  # false_score
            return ("The answer is true.", logits)
        else:
            # Return tuple with just generated text
            return ("The answer is true.",)


ARGS = {
    'topic': 'climate change',
    'atomic_claim': 'The Earth is warming.',
    'atomic_evidence': 'Recent studies show that global temperatures have increased by 1.1 degrees Celsius since pre-industrial times. This warming is primarily caused by human activities such as burning fossil fuels.',
    'lm': MockLanguageModel(mode='logits')
}
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 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

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 4 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
format_passage_for_autoais 1 other paper
1 dated earlier
2212.08037 (2022-12)
Attributed Question Answering: Evaluation and Modeling for Attributed 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-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

As language models are adopted by a more sophisticated and diverse set of users, the importance of guaranteeing that they provide factually correct information supported by verifiable sources is critical across fields of study. This is especially the case for high-stakes fields, such as medicine and law, where the risk of propagating false information is high and can lead to undesirable societal consequences. Previous work studying attribution and factuality has not focused on analyzing these characteristics of language model outputs in domain-specific scenarios. In this work, we conduct human evaluation of responses from a few representative systems along various axes of attribution and factuality, by bringing domain experts in the loop. Specifically, we collect expert-curated questions from 484 participants across 32 fields of study, and then ask the same experts to evaluate generated responses to their own questions. In addition, we ask experts to improve upon responses from language models. The output of our analysis is ExpertQA, a high-quality long-form QA dataset with 2177 questions spanning 32 fields, along with verified answers and attributions for claims in the answers.

For agents

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

get_harvested_code_for_paper("2309.07852")
get_code_for_paper("2309.07852")
have("2309.07852")

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

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

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

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

Connect an agent — have() is free.