SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.17809 · 2026

Whether LLMs Can Navigate Beliefs and Facts Depends on How You Phrase It

Nguyen, Minh Quang, Luis Salim

arXiv · PDF · Open in the Atlas

Code that ran

10 of 16 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, 0 violated it and 0 have no contract verdict; 9 failures of our instrument; 6 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/2608.17809.json · badge: /api/ran/2608.17809.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
ngqm/belief-fact-phrasing canonical (classifier label)
classifier basis: census
10 ran · 6 no recorded run
FunctionStatusWhere it lives
build_token_mask Ran
ran; our contract draft was wrong, not the code
ngqm/belief-fact-phrasing/src/suppression/attention_suppress_decode.py
code served (permissive licence) · get_code("d1c16397076be972")
How it ran

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

import numpy as np

class MockTokenizer:
    """Stand-in tokenizer that mimics HuggingFace tokenizer behavior."""
    def __call__(self, text, return_offsets_mapping=False, add_special_tokens=False):
        # Simple whitespace tokenization for testing
        tokens = text.split()
        input_ids = [100 + i for i in range(len(tokens))]
        
        # Build offset mapping: character positions for each token
        offset_mapping = []
        pos = 0
        for token in tokens:
            start = text.find(token, pos)
            end = start + len(token)
            offset_mapping.append((start, end))
            pos = end
        
        return {
            'input_ids': input_ids,
            'offset_mapping': offset_mapping
        }

prompt_text = "hello world hello there"
raw_sentence = "hello"
tok = MockTokenizer()

ARGS = {
    'prompt_text': prompt_text,
    'raw_sentence': raw_sentence,
    'tok': tok
}
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 tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
correct_vec Ran
ran; our contract draft was wrong, not the code
ngqm/belief-fact-phrasing/src/suppression/common.py
code served (permissive licence) · get_code("53cdbecf68a280c4")
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 numpy as np

# Construct the arguments for correct_vec function
d = {
    'results': [
        {
            'alpha': 0.1,
            'items': [
                {'answer': 'A'},
                {'answer': 'B'},
                {'answer': 'A'},
                {'answer': 'A'},
                {'answer': 'B'},
            ]
        },
        {
            'alpha': 0.5,
            'items': [
                {'answer': 'A'},
                {'answer': 'A'},
                {'answer': 'B'},
                {'answer': 'A'},
                {'answer': 'B'},
            ]
        },
        {
            'alpha': 0.9,
            'items': [
                {'answer': 'B'},
                {'answer': 'A'},
                {'answer': 'A'},
                {'answer': 'B'},
                {'answer': 'A'},
            ]
        },
    ]
}

gold = 'A'
lo = 1
hi = 4

ARGS = {
    'd': d,
    'gold': gold,
    'lo': lo,
    'hi': hi,
}
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 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
existing_indices Ran
ran; our contract draft was wrong, not the code
ngqm/belief-fact-phrasing/src/eval/run_verb_eval_batched.py
code served (permissive licence) · get_code("f7efc26e8373b3ed")
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 set. 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
import shutil

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

# Add some .json files with numeric names
open(os.path.join(temp_dir, "0.json"), "w").close()
open(os.path.join(temp_dir, "5.json"), "w").close()
open(os.path.join(temp_dir, "10.json"), "w").close()
open(os.path.join(temp_dir, "readme.txt"), "w").close()  # Non-.json file

ARGS = {
    "out_dir": temp_dir
}
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 set — a set output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a set 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_answer Ran
ran; our contract draft was wrong, not the code
ngqm/belief-fact-phrasing/src/eval/instruction_effect_table.py
code served (permissive licence) · get_code("520d0858be37dec1")
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 re

ANS_RE = re.compile('\\(([ABCabc])\\)')

def extract_answer(text):
    """Find the last (A|B|C) in text, matching main.py's parser."""
    matches = ANS_RE.findall(text or '')
    return matches[-1].upper() if matches else None

ARGS = {
    'text': 'The answer is (A) correct. Also consider (B) and (C).'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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_kable Ran
ran; our contract draft was wrong, not the code
ngqm/belief-fact-phrasing/src/eval/run_verb_eval_batched.py
code served (permissive licence) · get_code("850f7ae5482a76f1")
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 JSONL file with sample data
temp_dir = tempfile.mkdtemp()
dataset_file = os.path.join(temp_dir, "test_dataset.jsonl")

# Write sample JSONL data
sample_data = [
    {"id": 1, "text": "hello world", "label": 0},
    {"id": 2, "text": "foo bar", "label": 1},
    {"id": 3, "text": "test data", "label": 0}
]

with open(dataset_file, 'w') as f:
    for item in sample_data:
        f.write(json.dumps(item) + '\n')

ARGS = {
    "dataset_file": dataset_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
parse_gold Ran
ran; our contract draft was wrong, not the code
ngqm/belief-fact-phrasing/src/eval/instruction_effect_table.py
code served (permissive licence) · get_code("4dcf69b5b832cb41")
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 re

ANS_RE = re.compile('\\(([ABCabc])\\)')

def parse_gold(gt):
    """Normalize a stored ground_truth ('(A)' or 'A') to a bare letter."""
    m = ANS_RE.search(gt or '')
    return m.group(1).upper() if m else gt.strip() if gt else None

ARGS = {
    'gt': '(A)'
}
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
per_alpha Ran
ran; our contract draft was wrong, not the code
ngqm/belief-fact-phrasing/src/suppression/held_out_alpha_split.py
code served (permissive licence) · get_code("b31a5849466b2920")
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

def create_mock_item(answer):
    """Create a mock item dict with an answer field."""
    return {'answer': answer}

# Create mock results with different alpha values
result_1 = {
    'alpha': 0.1,
    'items': [
        create_mock_item('A'),
        create_mock_item('B'),
        create_mock_item('A'),
        create_mock_item('A'),
        create_mock_item('C'),
    ]
}

result_2 = {
    'alpha': 0.5,
    'items': [
        create_mock_item('A'),
        create_mock_item('A'),
        create_mock_item('B'),
        create_mock_item('A'),
        create_mock_item('D'),
    ]
}

result_3 = {
    'alpha': 0.9,
    'items': [
        create_mock_item('A'),
        create_mock_item('A'),
        create_mock_item('A'),
        create_mock_item('A'),
        create_mock_item('A'),
    ]
}

# Construct the loaded result dict
d = {
    'results': [result_1, result_2, result_3]
}

# Define arguments for per_alpha function
ARGS = {
    'd': d,
    'gold': 'A',
    'lo': 1,
    'hi': 4
}
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 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
permute Ran
ran; our contract draft was wrong, not the code
ngqm/belief-fact-phrasing/src/controls/option_permute_control.py
code served (permissive licence) · get_code("306ce30c9724e57b")
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

ORIG_BLOCK = '(A) Yes\n(B) No\n(C) Undeterminable'

def permute(query, perm_block):
    """Replace the original option block in a query with a permuted block."""
    return query.replace(ORIG_BLOCK, perm_block)

ARGS = {
    'query': 'What is the answer? ' + ORIG_BLOCK + ' Please choose.',
    'perm_block': '(C) Undeterminable\n(A) Yes\n(B) No'
}
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
permute Ran
ran; our contract draft was wrong, not the code
ngqm/belief-fact-phrasing/src/controls/option_permute_control_or.py
code served (permissive licence) · get_code("47ba2725ada1113c")
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

ORIG_BLOCK = '(A) Yes\n(B) No\n(C) Undeterminable'

# Construct a query string that contains the original block
query = "What is the answer to this question?\n" + ORIG_BLOCK + "\nPlease select one."

# Create a permuted version of the block
permuted_block = '(A) No\n(B) Yes\n(C) Undeterminable'

ARGS = {
    'query': query,
    'block': permuted_block
}
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
split_acc Ran
ran, honoured the contract we drafted
ngqm/belief-fact-phrasing/src/suppression/held_out_alpha_split.py
code served (permissive licence) · get_code("7c1c23e549521f1d")
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

# Construct items list with dictionaries that have 'answer' keys
items = [
    {'answer': 'A', 'text': 'result 1'},
    {'answer': 'B', 'text': 'result 2'},
    {'answer': 'A', 'text': 'result 3'},
    {'answer': 'A', 'text': 'result 4'},
    {'answer': 'C', 'text': 'result 5'},
]

gold = 'A'
lo = 0
hi = 3

ARGS = {
    'items': items,
    'gold': gold,
    'lo': lo,
    'hi': hi,
}
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
bootstrap_se Not yet run
unverified (harvested, no recorded run)
ngqm/belief-fact-phrasing/src/suppression/bootstrap_held_out.py
code served (permissive licence) · get_code("e8e5fb6f521ff3ac")
How it ran

no invocation recorded.

load Not yet run
unverified (harvested, no recorded run)
ngqm/belief-fact-phrasing/src/suppression/common.py
code served (permissive licence) · get_code("b06489cc8261924f")
How it ran

no invocation recorded.

load_cell Not yet run
unverified (harvested, no recorded run)
ngqm/belief-fact-phrasing/src/eval/instruction_effect_table.py
code served (permissive licence) · get_code("6b01c9b8d9c9ceab")
How it ran

no invocation recorded.

load_confirm Not yet run
unverified (harvested, no recorded run)
ngqm/belief-fact-phrasing/src/controls/option_permute_control_or.py
code served (permissive licence) · get_code("f61607da45fc18ee")
How it ran

no invocation recorded.

load_system_prompt Not yet run
unverified (harvested, no recorded run)
ngqm/belief-fact-phrasing/src/eval/run_verb_eval_batched.py
code served (permissive licence) · get_code("5f8cfc94998b1389")
How it ran

no invocation recorded.

select_alpha_star Not yet run
unverified (harvested, no recorded run)
ngqm/belief-fact-phrasing/src/suppression/common.py
code served (permissive licence) · get_code("8b0eacea3da996d7")
How it ran

no invocation recorded.

Also present in other papers' code

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

Humans naturally form and express beliefs in daily communication, e.g., "I think the answer is 3" or "I suppose that's right." Such beliefs inevitably intertwine with fact and knowledge, making the ability to handle them in tandem desirable for large language models (LLMs), as they are increasingly deployed in user-facing settings. Prior work showed that even capable LLMs exhibit a systemic weakness in acknowledging user beliefs grounded in incorrect information. We extend this evaluation to 10 LLMs across 18 epistemic expressions and find that the size and direction of the weakness depend on the verb used to express the belief, with the accuracy gap between factual and false information ranging from +50% on "I vaguely remember" to -14% on "I seriously doubt". We further show that the phenomenon stems from task confusion: models default to fact-checking the underlying claim, overriding the user's stated belief; chains of thought that explicitly fact-check show lower accuracy on false information than those that do not; and a single instruction can reverse the failure across verb families. Mechanistically, models attend more to false beliefs they fail to confirm, but suppressing this attention at decoding time recovers accuracy only partially and only in some models, calling for future work on intervention methods. Our findings clarify prior results and show how fact-checking, a generally desirable behavior, can interfere with belief tracking in LLMs. Our code is available at https:// github.com/ngqm/belief-fact-phrasing.

For agents

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

get_harvested_code_for_paper("2608.17809")
get_code_for_paper("2608.17809")
have("2608.17809")

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

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

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

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

Connect an agent — have() is free.