SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.05612 · 2024

Unfamiliar Finetuning Examples Control How Language Models Hallucinate

arXiv · PDF · Open in the Atlas

Code that ran

5 of 7 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, 1 violated it and 0 have no contract verdict; 4 failures of our instrument; 2 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/2403.05612.json · badge: /api/ran/2403.05612.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
katiekang1998/llm_hallucinations canonical (classifier label)
classifier basis: census
5 ran · 2 no recorded run
FunctionStatusWhere it lives
get_param_space Ran
ran; our contract draft was wrong, not the code
katiekang1998/llm_hallucinations/trlx/sweep.py
pointer only (licence: NONE) · get_code("d552ae8566ea9d61")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, katiekang1998/llm_hallucinations when it was checked. 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.

get_scheduler Ran
ran; our contract draft was wrong, not the code
katiekang1998/llm_hallucinations/trlx/sweep.py
pointer only (licence: NONE) · get_code("8fae271bba35cd50")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, katiekang1998/llm_hallucinations when it was checked. 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.

make_head Ran
ran; our contract draft was wrong, not the code
katiekang1998/llm_hallucinations/trlx/utils/modeling.py
pointer only (licence: NONE) · get_code("2ab02dee00149590")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, katiekang1998/llm_hallucinations when it was checked. 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.

rhasattr Ran
ran, violated the contract we drafted
katiekang1998/llm_hallucinations/trlx/utils/modeling.py
pointer only (licence: NONE) · get_code("ace162af010af5d8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, katiekang1998/llm_hallucinations when it was checked. 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.

topk_mask Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
katiekang1998/llm_hallucinations/trlx/models/modeling_ilql.py
pointer only (licence: NONE) · get_code("3bfb7deb629cb756")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, katiekang1998/llm_hallucinations when it was checked. 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.

get_search_alg Not yet run
unverified (harvested, no recorded run)
katiekang1998/llm_hallucinations/trlx/sweep.py
pointer only (licence: NONE) · get_code("690d90daad365060")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, katiekang1998/llm_hallucinations when it was checked. 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. No invocation recorded.

rgetattr Not yet run
unverified (harvested, no recorded run)
katiekang1998/llm_hallucinations/trlx/utils/modeling.py
pointer only (licence: NONE) · get_code("fc2499cfa7162602")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, katiekang1998/llm_hallucinations when it was checked. 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. No invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 7 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 7 later) and 0 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
make_head 4 other papers
2 dated earlier, 2 later
2306.02231 (2023-06)
Fine-Tuning Language Models with Advantage-Induced Policy Alignment
2309.17179 (2023-09)
Alphazero-like Tree-Search can Guide Large Language Model Decoding and Training
2409.12822 (2024-09)
Language Models Learn to Mislead Humans via RLHF
and 1 more not named here
rgetattr 4 other papers
2 dated earlier, 2 later
2306.02231 (2023-06)
Fine-Tuning Language Models with Advantage-Induced Policy Alignment
2309.17179 (2023-09)
Alphazero-like Tree-Search can Guide Large Language Model Decoding and Training
2409.12822 (2024-09)
Language Models Learn to Mislead Humans via RLHF
and 1 more not named here
rhasattr 4 other papers
2 dated earlier, 2 later
2306.02231 (2023-06)
Fine-Tuning Language Models with Advantage-Induced Policy Alignment
2309.17179 (2023-09)
Alphazero-like Tree-Search can Guide Large Language Model Decoding and Training
2409.12822 (2024-09)
Language Models Learn to Mislead Humans via RLHF
and 1 more not named here
topk_mask 2 other papers
1 dated earlier, 1 later
2306.02231 (2023-06)
Fine-Tuning Language Models with Advantage-Induced Policy Alignment
2025.findings-acl.229 (2025 (year only))
System Prompt Hijacking via Permutation Triggers in LLM Supply Chains
get_param_space 1 other paper
1 later
2025.findings-acl.229 (2025 (year only))
System Prompt Hijacking via Permutation Triggers in LLM Supply Chains
get_scheduler 1 other paper
1 later
2025.findings-acl.229 (2025 (year only))
System Prompt Hijacking via Permutation Triggers in LLM Supply Chains
get_search_alg 1 other paper
1 later
2025.findings-acl.229 (2025 (year only))
System Prompt Hijacking via Permutation Triggers in LLM Supply Chains

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

Large language models are known to hallucinate when faced with unfamiliar queries, but the underlying mechanism that govern how models hallucinate are not yet fully understood. In this work, we find that unfamiliar examples in the models' finetuning data -- those that introduce concepts beyond the base model's scope of knowledge -- are crucial in shaping these errors. In particular, we find that an LLM's hallucinated predictions tend to mirror the responses associated with its unfamiliar finetuning examples. This suggests that by modifying how unfamiliar finetuning examples are supervised, we can influence a model's responses to unfamiliar queries (e.g., say ``I don't know''). We empirically validate this observation in a series of controlled experiments involving SFT, RL, and reward model finetuning on TriviaQA and MMLU. Our work further investigates RL finetuning strategies for improving the factuality of long-form model generations. We find that, while hallucinations from the reward model can significantly undermine the effectiveness of RL factuality finetuning, strategically controlling how reward models hallucinate can minimize these negative effects. Leveraging our previous observations on controlling hallucinations, we propose an approach for learning more reliable reward models, and show that they improve the efficacy of RL factuality finetuning in long-form biography and book/movie plot generation tasks.

For agents

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

get_harvested_code_for_paper("2403.05612")
get_code_for_paper("2403.05612")
have("2403.05612")

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

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

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

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

Connect an agent — have() is free.