SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.12370 · 2026

Context Convergence Improves Answering Inferential Questions

Adam Jatowt, Jamshid Mozafari, Bhawna Piryani

arXiv · PDF · Open in the Atlas

Code that ran

8 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; 5 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 2 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/2605.12370.json · badge: /api/ran/2605.12370.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
DataScienceUIBK/Context-Convergence-Inferential-QA canonical (classifier label)
classifier basis: census
8 ran · 2 no recorded run
FunctionStatusWhere it lives
compute_em Ran
ran, honoured the contract we drafted
DataScienceUIBK/Context-Convergence-Inferential-QA/experiments/convergence_vs_cosine.py
code served (permissive licence) · get_code("00cd605961e682c5")
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 int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

ARGS = {
    "predicted_answer": "Paris",
    "ground_truth": ["Paris is the capital of France", "The City of Light"]
}
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 int, ndim 0, dtype family int, 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
compute_final_similarities Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
DataScienceUIBK/Context-Convergence-Inferential-QA/dataset/compute_similarities.py
code served (permissive licence) · get_code("f3af4fee5d8f78eb")
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 statistics import mean

# Analyzing the function:
# - similarities: indexed by integer, so should be a list or array
# - subset: string that is reversed, indexed by character position, checked for '1' characters
# - The function finds indices where subset has '1', then gets corresponding values from similarities

# Create a small similarities list with numeric values
similarities = [0.9, 0.8, 0.7, 0.6, 0.5]

# Create a subset string with some '1' bits
# When reversed and indexed, positions with '1' will be used
# For example: "10110" reversed is "01101"
# '1' appears at indices 1, 2, 4 in reversed string
# So we'd get similarities[1], similarities[2], similarities[4]
subset = "10110"

ARGS = {
    "similarities": similarities,
    "subset": subset,
}
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
compute_hint_similarity Ran
ran, honoured the contract we drafted
DataScienceUIBK/Context-Convergence-Inferential-QA/dataset/compute_similarities.py
code served (permissive licence) · get_code("aebd1ca920951520")
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

torch.manual_seed(0)

# The function iterates over hints and accesses hint['convergence']
# Each hint is a dictionary with at least a 'convergence' key
hints = [
    {'convergence': 0.95},
    {'convergence': 0.87}
]

ARGS = {
    'hints': hints
}
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
compute_precision Ran
ran, honoured the contract we drafted
DataScienceUIBK/Context-Convergence-Inferential-QA/experiments/convergence_vs_cosine.py
code served (permissive licence) · get_code("3f7e8fc166782345")
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
from collections import Counter

torch_seed = 0

ARGS = {
    "predicted_answer": "The quick brown fox jumps over the lazy dog",
    "ground_truths": [
        "The quick brown fox",
        "quick fox jumps over 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
compute_recall Ran
ran, honoured the contract we drafted
DataScienceUIBK/Context-Convergence-Inferential-QA/experiments/convergence_vs_cosine.py
code served (permissive licence) · get_code("3c261861a268a2a0")
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
from collections import Counter

# Define ARGS dict with valid arguments for compute_recall
ARGS = {
    "predicted_answer": "The quick brown fox jumps over the lazy dog",
    "ground_truths": [
        "The quick brown fox jumps over the lazy dog",
        "A fast brown fox leaps over a sleepy dog",
        "The fox jumps"
    ]
}
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
convergence Ran
ran, honoured the contract we drafted
DataScienceUIBK/Context-Convergence-Inferential-QA/dataset/make_dataset.py
code served (permissive licence) · get_code("48dfcdcf1cc2ab16")
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

# Analyze the function:
# - candidates: a dict where values are integers (0 or 1)
# - Accesses candidates[can] for iteration
# - Accesses list(candidates.keys())[-1] to get last key
# - Checks if last value == 1
# - Returns a float based on sum of ones vs total length

# Create a valid candidates dict
candidates = {
    "model_1": 0,
    "model_2": 1,
    "model_3": 1,
    "model_4": 1
}

ARGS = {
    "candidates": candidates
}
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
generate_orders Ran
ran; our contract draft was wrong, not the code
DataScienceUIBK/Context-Convergence-Inferential-QA/dataset/make_dataset.py
code served (permissive licence) · get_code("6c2d1175b35dd57c")
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

torch.manual_seed(0)

# Construct hints parameter
hints = [
    {
        'convergence': 0.85,
        'hint': 'First hint about model training'
    },
    {
        'convergence': 0.92,
        'hint': 'Second hint with higher convergence'
    },
    {
        'convergence': 0.71,
        'hint': 'Third hint with lower convergence'
    },
    {
        'convergence': 0.78,
        'hint': 'Fourth hint with medium convergence'
    }
]

ARGS = {
    'hints': hints
}
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
make_dataset Ran
ran; our contract draft was wrong, not the code
DataScienceUIBK/Context-Convergence-Inferential-QA/dataset/make_dataset.py
code served (permissive licence) · get_code("88ebee314d0a5144")
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.

class Answer:
    def __init__(self, answer_text):
        self.answer = answer_text

class Question:
    def __init__(self, question_text, question_type, candidate_answers, metadata):
        self.question = question_text
        self.question_type = question_type
        self.metadata = metadata

class Hint:
    def __init__(self, hint_text, candidate_answers):
        self.hint = hint_text
        self.metrics = {
            'convergence-llm-llama-3-70b': type('obj', (object,), {
                'metadata': {'scores': candidate_answers}
            })()
        }

class QuestionItem:
    def __init__(self, question_text, question_type, answers, candidate_answers, hints):
        self.question = Question(question_text, question_type, candidate_answers, {
            'candidate_answers-llama-3-70b': candidate_answers
        })
        self.answers = [Answer(ans) for ans in answers]
        self.hints = hints

# Create candidate answers (11 unique answers with last one being correct)
candidate_answers = ["answer_" + str(i) for i in range(10)] + ["correct_answer"]

# Create hints with convergence scores
hints = []
for h_idx in range(2):
    scores = {candidate_answers[i]: (1 if i in [5, 10] else 0) for i in range(11)}
    hint = Hint(f"This is hint {h_idx}", scores)
    hints.append(hint)

# Create questions
questions = {
    "q1": QuestionItem(
        question_text="What is the answer?",
        question_type="multiple_choice",
        answers=["correct_answer"],
        candidate_answers=candidate_answers,
        hints=hints
    ),
    "q2": QuestionItem(
        question_text="Another question?",
        question_type="multiple_choice",
        answers=["correct_answer"],
        candidate_answers=candidate_answers,
        hints=hints
    )
}

ARGS = {
    "questions": questions
}
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
analyze Not yet run
unverified (harvested, no recorded run)
DataScienceUIBK/Context-Convergence-Inferential-QA/experiments/order.py
code served (permissive licence) · get_code("ccb09f79705369bd")
How it ran

no invocation recorded.

compute_cosine_similarity Not yet run
unverified (harvested, no recorded run)
DataScienceUIBK/Context-Convergence-Inferential-QA/dataset/compute_similarities.py
code served (permissive licence) · get_code("14faf83badd94cc4")
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

While Large Language Models (LLMs) are widely used in opendomain Question Answering (QA), their ability to handle inferential questions-where answers must be derived rather than directly retrieved-remains still underexplored. This study investigates how the structure and quality of passages influence LLM performance on such questions. We focus on convergence, a measure of how effectively sentences (hints) eliminate incorrect answers, as a criterion for constructing passages. Using subsets of the TriviaHG dataset, we form passages by combining sentences with varying convergence levels and evaluate six LLMs of different sizes and architectures. Our results show that passages built from higherconvergence sentences lead to substantially better answer accuracy than those selected by cosine similarity, indicating that convergence captures meaningful relevance for inferential reasoning. Additionally, ordering sentences by descending convergence slightly improves performance, suggesting that LLMs tend to prioritize earlier, information-rich cues. These findings highlight convergence as a practical signal for guiding passage construction and analyzing inferential reasoning behavior in LLMs. • Information systems → Retrieval models and ranking; Retrieval tasks and goals; Evaluation of retrieval results.

For agents

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

get_harvested_code_for_paper("2605.12370")
get_code_for_paper("2605.12370")
have("2605.12370")

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

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

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

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

Connect an agent — have() is free.