Papers › Domain Adaptation and Reasoning Frameworks in Language Models: A Controlled Experiment...

Domain Adaptation and Reasoning Frameworks in Language Models: A Controlled Experiment with Historical Cosmology

28 May 2026arXiv:2605.30415added by Syntology

Francesco De Bernardis

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

We investigate how domain adaptation reshapes explanatory behavior in language models using historical cosmology as a controlled setting. In Phase 1, we train a small language model from scratch on a pre-Copernican corpus from which explicit heliocentric references were removed, and evaluate whether Earth-motion or heliocentric continuations nevertheless emerge. In Phase 2, we fine-tune a larger pretrained model using QLoRA on the same corpus in order to study how adaptation modifies explanatory framing and cosmological stance. Model outputs are evaluated using an LLM-as-judge framework that labels both cosmological stance (geocentric, heliocentric, or ambiguous) and explanatory frame (premodern versus modern). In the constrained setting of Phase 1, the smaller models occasionally generate local Earth-motion continuations, but these remain globally unstable and insufficient to support coherent cosmological reasoning. In Phase 2, fine-tuning induces a large and statistically significant shift toward premodern explanatory framing, while the conditional cosmological stance distributions remain comparatively stable within those frames. As a result, increases in geocentric outputs arise primarily from redistribution over explanatory regimes rather than from direct modification of stance. These results suggest that domain adaptation may primarily reshape the linguistic frameworks from which continuations are generated, with changes in stance emerging secondarily from those shifts.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2605.30415")

Code

Syntology Ran 22 of 27 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 22 ran with no contract checked.

By repository: found in paper text by Syntology: 27 samples from 1 repository, 22 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

fdeberna/chat-ptolemaic found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

27 samples harvested; 22 ran; 0 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

22ran
5unverified

Licence: 27 of the 27 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from fdeberna/chat-ptolemaic. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

apply_overrides fdeberna/chat-ptolemaic/pipeline/config_utils.py found in paper text by Syntology ran no licence file found · pointer only · a8685c36310c970c · report
apply_repetition_penalty fdeberna/chat-ptolemaic/pipeline/model.py found in paper text by Syntology ran no licence file found · pointer only · 6d9ed8d69f584611 · report
build_user_prompt fdeberna/chat-ptolemaic/judge/judge_eval.py found in paper text by Syntology ran no licence file found · pointer only · 0d42b9d7998bd299 · report
category_key fdeberna/chat-ptolemaic/evaluation/summarize_eval.py found in paper text by Syntology ran no licence file found · pointer only · 10de1588f2490205 · report
clean_prompt_line fdeberna/chat-ptolemaic/evaluation/generate_eval.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · 4ef67d6db8cbccf1 · report
ensure_output_mode fdeberna/chat-ptolemaic/judge/judge_qwen_eval.py found in paper text by Syntology ran no licence file found · pointer only · 3f0150bc77a1f7b1 · report
get_banned_tokens_ngram fdeberna/chat-ptolemaic/pipeline/model.py found in paper text by Syntology ran no licence file found · pointer only · e534c33b50004b25 · report
load_completed_identities fdeberna/chat-ptolemaic/judge/judge_qwen_eval.py found in paper text by Syntology ran no licence file found · pointer only · 1ae7bdf68d4e0be6 · report
load_json_config fdeberna/chat-ptolemaic/pipeline/config_utils.py found in paper text by Syntology ran no licence file found · pointer only · c4aeb8a9c13aaf88 · report
load_prompts fdeberna/chat-ptolemaic/evaluation/generate_eval.py found in paper text by Syntology ran no licence file found · pointer only · 4027d245a8e4b2a5 · report
model_key fdeberna/chat-ptolemaic/evaluation/summarize_eval.py found in paper text by Syntology ran no licence file found · pointer only · e7665179852ea548 · report
parse_override fdeberna/chat-ptolemaic/pipeline/config_utils.py found in paper text by Syntology ran no licence file found · pointer only · 36cf0e5e4724b513 · report
prepare_single_token_stream fdeberna/chat-ptolemaic/pipeline/dataset.py found in paper text by Syntology ran no licence file found · pointer only · dd021d2eef206194 · report
record_identity fdeberna/chat-ptolemaic/judge/judge_eval.py found in paper text by Syntology ran no licence file found · pointer only · b3aa40f75f347540 · report
record_identity fdeberna/chat-ptolemaic/judge/judge_qwen_eval.py found in paper text by Syntology ran no licence file found · pointer only · b19cd4e1c3bcca57 · report
repo_relative_label fdeberna/chat-ptolemaic/evaluation/generate_eval.py found in paper text by Syntology ran no licence file found · pointer only · 4b9bd4b8482a1658 · report
resolve_split_cache_name fdeberna/chat-ptolemaic/pipeline/train_finetune.py found in paper text by Syntology ran no licence file found · pointer only · 3e55b13d845a4a72 · report
safe_div fdeberna/chat-ptolemaic/evaluation/summarize_eval.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · 83443ae8f887fd48 · report
safe_div fdeberna/chat-ptolemaic/evaluation/summarize_qwen_judgments.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · d161ea6d061fc352 · report
safe_rate_or_none fdeberna/chat-ptolemaic/evaluation/summarize_qwen_judgments.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · 3721c8a1f9d1012c · report
top_p_filtering fdeberna/chat-ptolemaic/pipeline/model.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · db58f58479dd1ee5 · report
wilson_ci fdeberna/chat-ptolemaic/evaluation/summarize_qwen_judgments.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · 226793ee23a4ce7b · report
list_text_files fdeberna/chat-ptolemaic/pipeline/dataset.py found in paper text by Syntology unverified no licence file found · pointer only · c85e17e07142ae98 · report
load_checkpoint fdeberna/chat-ptolemaic/pipeline/train_finetune.py found in paper text by Syntology unverified no licence file found · pointer only · f40932735133d20e · report
load_completed_identities fdeberna/chat-ptolemaic/judge/judge_eval.py found in paper text by Syntology unverified no licence file found · pointer only · 0a52edd0b656ef67 · report
nested_get fdeberna/chat-ptolemaic/pipeline/train_finetune.py found in paper text by Syntology unverified no licence file found · pointer only · 360f46e6694d2e28 · report
prepare_token_streams fdeberna/chat-ptolemaic/pipeline/dataset.py found in paper text by Syntology unverified no licence file found · pointer only · 1957a652762deb1a · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2605.30415, was issued in May 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections