SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2504.03101 · 2025

Single-Pass Document Scanning for Question Answering

arXiv · PDF · Open in the Atlas

Code that ran

11 of 14 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 9 have no contract verdict; 2 failures of our instrument; 3 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/2504.03101.json · badge: /api/ran/2504.03101.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
mambaretriever/mambaretriever canonical (classifier label)
classifier basis not recorded on the link
11 ran · 3 no recorded run
FunctionStatusWhere it lives
call_until_timeout Ran
ran on a synthesized input
mambaretriever/mambaretriever/generation/generation.py
code served (permissive licence) · get_code("79668c04070c8b13")
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 threading
import time

torch_imported = False
try:
    import torch
    import torch.nn as nn
    torch_imported = True
    torch.manual_seed(0)
except ImportError:
    pass

# Define a simple mock function that simulates a language model call
def mock_model_func(model, **kwargs):
    """
    Mock function that simulates calling a language model.
    Returns (result_string, [input_tokens, output_tokens])
    """
    # Simulate successful call
    result = "This is a mock output from the model."
    input_tokens = 42
    output_tokens = 23
    return result, [input_tokens, output_tokens]

# Define a simple mock function that fails then succeeds
call_count = 0
def mock_model_func_with_retry(model, **kwargs):
    """
    Mock function that fails once then succeeds.
    """
    global call_count
    call_count += 1
    if call_count == 1:
        raise Exception("Simulated transient error")
    result = "Success after retry"
    input_tokens = 50
    output_tokens = 30
    return result, [input_tokens, output_tokens]

# Define arguments for the function
ARGS = {
    'func': mock_model_func,
    'timeout_seconds': 30,
    'delay': 5,
    'model': 'gpt-3.5-turbo'
}
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
divide_string Ran
ran on a synthesized input
mambaretriever/mambaretriever/document_tokenization.py
code served (permissive licence) · get_code("c3aafaada0c57fb8")
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

# Set seed for reproducibility
torch.manual_seed(0)

# Define arguments for divide_string function
ARGS = {
    "input_string": "The quick brown fox jumps over the lazy dog and runs through the forest",
    "max_words": 3
}
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
f1_score Ran
ran; our contract draft was wrong, not the code
mambaretriever/mambaretriever/rag_pipeline/metrics.py
code served (permissive licence) · get_code("477258f8938c0fd2")
How it ran

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

import torch
import numpy as np
from collections import Counter

torch.manual_seed(0)

# Analyzing the function:
# - prediction: used with Counter() and len()
# - ground_truth: used with Counter() and len()
# - **kwargs: not used in the function body
# Both parameters should be sequences/iterables that can be counted

# Simple lists of integers work well for this function
prediction = [1, 2, 3, 2, 4]
ground_truth = [1, 2, 2, 5, 6]

ARGS = {
    "prediction": prediction,
    "ground_truth": ground_truth,
}
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 float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
jpg_path2base64 Ran
ran on a synthesized input
mambaretriever/mambaretriever/generation/models/util.py
code served (permissive licence) · get_code("745d72d6be972c22")
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.

from PIL import Image
import tempfile
import os

# Create a temporary directory for test images
temp_dir = tempfile.mkdtemp()

# Create a simple test image and save it
test_image = Image.new('RGB', (100, 100), color='red')
test_image_path = os.path.join(temp_dir, 'test_image.jpg')
test_image.save(test_image_path, format='JPEG')

ARGS = {
    'img_path': test_image_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL — 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_prompt_dict Ran
ran on a synthesized input
mambaretriever/mambaretriever/generation/generation.py
code served (permissive licence) · get_code("ce44625b30442068")
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 pickle
import tempfile
import os

# Create a temporary file with pickled prompt data
temp_dir = tempfile.mkdtemp()
prompt_file = os.path.join(temp_dir, "prompts.pkl")

# Create sample prompt data
sample_prompts = {
    "prompt_1": "What is the capital of France?",
    "prompt_2": "Explain machine learning",
    "system_prompt": "You are a helpful assistant"
}

# Pickle and save the data
with open(prompt_file, 'wb') as f:
    pickle.dump(sample_prompts, f)

# Define ARGS
ARGS = {
    "prompt_path": prompt_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
normalize_answer Ran
ran; our contract draft was wrong, not the code
mambaretriever/mambaretriever/rag_pipeline/metrics.py
pointer only (licence: MIT); the stored copy get_code serves, from borealisai/radar-decoding, is pointer only (licence: LGPL-3.0) · get_code("e7e75981cb464788")
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 borealisai/radar-decoding, and LGPL-3.0, as GitHub detects it on that repository, is not in the permissive set Syntology serves inline. 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.

percentage_of_english_letters Ran
ran on a synthesized input
mambaretriever/mambaretriever/filter_language.py
code served (permissive licence) · get_code("e6b06451d4ea9e89")
How it ran

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

import torch

# The function takes a single parameter: input_string
# It operates on a string, checking characters with isalpha() and isascii()
# No torch, numpy, scipy objects are needed

ARGS = {
    "input_string": "Hello World 123!"
}
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 float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
qa_f1_score Ran
ran on a synthesized input
mambaretriever/mambaretriever/rag_pipeline/metrics.py
code served (permissive licence) · get_code("326a510284c7f861")
How it ran

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

import re
import string
from collections import Counter

def normalize_answer(s):
    """Lower text and remove punctuation, articles and extra whitespace."""

    def remove_articles(text):
        return re.sub('\\b(a|an|the)\\b', ' ', text)

    def white_space_fix(text):
        return ' '.join(text.split())

    def remove_punc(text):
        exclude = set(string.punctuation)
        return ''.join((ch for ch in text if ch not in exclude))

    def lower(text):
        return text.lower()
    return white_space_fix(remove_articles(remove_punc(lower(s))))

def f1_score(prediction, ground_truth, **kwargs):
    common = Counter(prediction) & Counter(ground_truth)
    num_same = sum(common.values())
    if num_same == 0:
        return 0
    precision = 1.0 * num_same / len(prediction)
    recall = 1.0 * num_same / len(ground_truth)
    f1 = 2 * precision * recall / (precision + recall)
    return f1

def qa_f1_score(prediction, ground_truth, **kwargs):
    normalized_prediction = normalize_answer(prediction)
    normalized_ground_truth = normalize_answer(ground_truth)
    prediction_tokens = normalized_prediction.split()
    ground_truth_tokens = normalized_ground_truth.split()
    return f1_score(prediction_tokens, ground_truth_tokens)

# Setup code to construct valid arguments
ARGS = {
    "prediction": "The quick brown fox jumps over the lazy dog.",
    "ground_truth": "A quick brown fox jumps over a lazy dog!",
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
sliding_window Ran
ran on a synthesized input
mambaretriever/mambaretriever/evaluate.py
code served (permissive licence) · get_code("f2d62b62735e61eb")
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. 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 bisect

def sliding_window(input_ids_without_question, question_ids, end_sentence_indices, window_size):
    if window_size <= 0:
        raise Exception('window size must be larger than the length of question')
    all_slices = []
    end_sentence_indices = [ele - len(question_ids) for ele in end_sentence_indices]
    start_sentence_indices = [0] + [ele + 1 for ele in end_sentence_indices[:-1]]
    start_index = 0
    while start_index <= start_sentence_indices[-1]:
        end_index_approximation = start_index + window_size
        end_idx = bisect.bisect_left(end_sentence_indices, end_index_approximation) - 1
        if end_idx == -1:
            end_idx = 0
        if end_sentence_indices[end_idx] <= start_index:
            end_idx += 1
        end_index = end_sentence_indices[end_idx]
        if end_idx == len(end_sentence_indices) - 1:
            start_index_approximation = end_index - window_size
            start_idx = bisect.bisect_left(start_sentence_indices, start_index_approximation)
            if start_idx > end_idx:
                start_idx = end_idx
            start_index = start_sentence_indices[start_idx]
            input_slice = input_ids_without_question[start_index:end_index + 1]
            all_input_ids = question_ids + input_slice
            sub_start_sentence_indices = start_sentence_indices[start_idx:end_idx + 2]
            if start_sentence_indices[start_idx:end_idx + 2] == start_sentence_indices[start_idx:end_idx + 1]:
                sub_start_sentence_indices.append(end_sentence_indices[-1] + 1)
            sub_start_sentence_indices = [ele - sub_start_sentence_indices[0] for ele in sub_start_sentence_indices][1:]
            sub_end_sentence_indices = [ele - 1 for ele in sub_start_sentence_indices]
            sub_end_sentence_indices = [ele + len(question_ids) for ele in sub_end_sentence_indices]
            all_slices.append((all_input_ids, sub_end_sentence_indices, (start_idx, end_idx)))
            break
        else:
            start_idx = start_sentence_indices.index(start_index)
            input_slice = input_ids_without_question[start_index:end_index + 1]
            all_input_ids = question_ids + input_slice
            sub_start_sentence_indices = start_sentence_indices[start_idx:end_idx + 2]
            if start_sentence_indices[start_idx:end_idx + 2] == start_sentence_indices[start_idx:end_idx + 1]:
                sub_start_sentence_indices.append(end_sentence_indices[-1] + 1)
            sub_start_sentence_indices = [ele - sub_start_sentence_indices[0] for ele in sub_start_sentence_indices][1:]
            sub_end_sentence_indices = [ele - 1 for ele in sub_start_sentence_indices]
            sub_end_sentence_indices = [ele + len(question_ids) for ele in sub_end_sentence_indices]
            all_slices.append((all_input_ids, sub_end_sentence_indices, (start_idx, end_idx)))
            start_index_approximation = start_index + window_size // 2
            start_idx = bisect.bisect_left(start_sentence_indices, start_index_approximation) - 1
            if start_idx == -1:
                start_idx = 0
            if start_sentence_indices[start_idx] == start_index:
                start_idx += 1
                if start_idx == len(start_sentence_indices):
                    break
            start_index = start_sentence_indices[start_idx]
    return all_slices

# Construct valid arguments
# The function processes text split into sentences with a sliding window approach
# input_ids_without_question: list of token IDs for the input text (without question)
# question_ids: list of token IDs for the question
# end_sentence_indices: list of indices marking the end of each sentence (before question subtraction)
# window_size: size of the sliding window

question_ids = [101, 2054, 102]  # Simple question token IDs

# Create input text with 4 sentences
input_ids_without_question = [2054, 2003, 1037, 2117, 1012, 2009, 2003, 2117, 1012, 
                              2054, 2003, 2054, 1012, 2062, 2054, 2003, 2062, 1012]

# end_sentence_indices mark where each sentence ends (before subtracting question length)
# These need to be after question_ids are prepended, so they're larger indices
end_sentence_indices = [8, 12, 16, 21]

window_size = 8

ARGS = {
    'input_ids_without_question': input_ids_without_question,
    'question_ids': question_ids,
    'end_sentence_indices': end_sentence_indices,
    'window_size': window_size
}
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 — a list 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
split_with_delimiters Ran
ran on a synthesized input
mambaretriever/mambaretriever/document_tokenization.py
code served (permissive licence) · get_code("70b8e7a47e924325")
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 split_with_delimiters(s: str) -> list:
    """
    split a string with delimiters
    input:
        s (str) - the input string
    output:
        ret (list) - a list of substrings
    """
    ret = re.split('(?<=,|;)', s)
    for i in range(len(ret) - 1):
        assert ret[i][-1] in [',', ';']
    return ret


ARGS = {
    "s": "hello,world;foo,bar;"
}
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
split_with_newlines Ran
ran on a synthesized input
mambaretriever/mambaretriever/document_tokenization.py
code served (permissive licence) · get_code("9eaabecc83c4afef")
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 split_with_newlines(s: str) -> list:
    """
    use a regular expression to split a string with newlines
    input:
        s (str) - the input string
    output:
        ret (list) - a list of substrings
    """
    ret = re.split('(?<=\\n)', s)
    for i in range(len(ret) - 1):
        assert ret[i][-1] in ['\n']
    return ret

# Construct a valid string argument with newlines
# The function splits on newlines but keeps them attached to the preceding substring
test_string = "hello\nworld\nfoo\nbar"

ARGS = {
    's': test_string
}
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
gpt_generation Not yet run
unverified (harvested, no recorded run)
mambaretriever/mambaretriever/generation/models/openai_related.py
code served (permissive licence) · get_code("7a55f9ed505e3d0d")
How it ran

no invocation recorded.

gpt_generation_multi_turn Not yet run
unverified (harvested, no recorded run)
mambaretriever/mambaretriever/generation/models/openai_related.py
code served (permissive licence) · get_code("892644ebbe17208f")
How it ran

no invocation recorded.

gpt_generation_with_image Not yet run
unverified (harvested, no recorded run)
mambaretriever/mambaretriever/generation/models/openai_related.py
code served (permissive licence) · get_code("15a7ccd3a037d3af")
How it ran

no invocation recorded.

Also present in other papers' code

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

FunctionAlso present inEarliest-datedOthers named
normalize_answer 133 other papers
105 dated earlier, 21 later, 6 same year, order not determinable, 1 undated · 1 only as an assembly brick
1508.06615 (2015-08)
Character-Aware Neural Language Models
1606.05250 (2016-06)
SQuAD: 100,000+ Questions for Machine Comprehension of Text
1608.07905 (2016-08)
Machine Comprehension Using Match-LSTM and Answer Pointer
and 130 more not named here
f1_score 3 other papers
3 dated earlier
2024.findings-emnlp.230 (2024 (year only))
CLongEval: A Chinese Benchmark for Evaluating Long-Context Large Language Models
2403.03514 (2024-03)
CLongEval: A Chinese Benchmark for Evaluating Long-Context Large Language Models
2404.16811 (2024-04)
Make Your LLM Fully Utilize the Context

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

Handling extremely large documents for question answering is challenging: chunk-based embedding methods often lose track of important global context, while full-context transformers can be prohibitively expensive for hundreds of thousands of tokens. We propose a single-pass document scanning approach that processes the entire text in linear time, preserving global coherence while deciding which sentences are most relevant to the query. On 41 QA benchmarks, our single-pass scanner consistently outperforms chunk-based embedding methods and competes with large language models at a fraction of the computational cost. By conditioning on the entire preceding context without chunk breaks, the method preserves global coherence, which is especially important for long documents. Overall, single-pass document scanning offers a simple solution for question answering over massive text. All code, datasets, and model checkpoints are available at https://github.com/MambaRetriever/MambaRetriever

For agents

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

get_harvested_code_for_paper("2504.03101")
get_code_for_paper("2504.03101")
have("2504.03101")

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

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

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

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

Connect an agent — have() is free.