Papers › Markovian Transformers for Informative Language Modeling

Markovian Transformers for Informative Language Modeling

29 Apr 2024arXiv:2404.18988archive 2025-07-28

Scott Viteri, Max Lamparth, Peter Chatain, Clark Barrett

Chain-of-Thought (CoT) reasoning often fails to faithfully reflect a language model's underlying decision process. We address this by making CoT text causally essential in a "Markovian" language model, factoring next-token prediction through an intermediate CoT and training it to predict future tokens independently of the original prompt. We formalize this via an "informativeness" objective that quantifies how much a trained CoT improves next-token predictions over a baseline. Using policy gradient, we show that Llama 3.1 8B achieves a 33.2% absolute accuracy improvement on GSM8K. Perturbation tests confirm stronger reliance on the CoT, while cross-model transfers indicate these reasoning traces generalize across interpreters. Our approach enhances both accuracy and interpretability, potentially extending CoT reasoning to arbitrarily long contexts and diverse tasks.

PaperPDFCodeCode 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="2404.18988")

Code

Syntology Ran 15 of 16 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 1 ran · violated contract; 14 ran with no contract checked.

By repository: official repository: 16 samples from 1 repository, 15 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

scottviteri/markoviantraining officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. 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

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

1ran · violated contract
14ran
1unverified

Licence: 16 of the 16 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 scottviteri/markoviantraining. “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.

is_wiki_task scottviteri/markoviantraining/src/evaluation.py official repository ran · violated contract no licence file found · pointer only · 9fec8df5c30712a4 · report
compute_loss_balance_score scottviteri/MarkovianTraining/src/plot_training_metrics.py official repository ran fingerprinted no licence file found · pointer only · 589ec7d1d7e858cb · report
find_all_checkpoints scottviteri/MarkovianTraining/src/batch_calibrate_extractions.py official repository ran no licence file found · pointer only · b9d03cef4c0bd60b · report
find_best_run_for_task scottviteri/MarkovianTraining/src/perturbation_analysis.py official repository ran fingerprinted no licence file found · pointer only · 0208a40593703fe6 · report
find_crossing_point scottviteri/MarkovianTraining/src/analyze_base_logprobs.py official repository ran fingerprinted no licence file found · pointer only · 942512f0aa580026 · report
format_hyperparameters_text scottviteri/MarkovianTraining/src/plot_training_metrics.py official repository ran no licence file found · pointer only · 3d3a57146f3f5235 · report
get_nested_value scottviteri/MarkovianTraining/src/create_gp_smoothed_plot.py official repository ran no licence file found · pointer only · 928bfd50df4e893a · report
get_nested_value scottviteri/MarkovianTraining/src/plot_training_metrics.py official repository ran no licence file found · pointer only · 138168d2f06c61b3 · report
gp_smooth_with_confidence scottviteri/MarkovianTraining/src/create_gp_smoothed_plot.py official repository ran no licence file found · pointer only · 11bf31b09d63e7bc · report
import_log_file scottviteri/MarkovianTraining/src/plot_cot_answer_accuracy.py official repository ran no licence file found · pointer only · 938a4c0257fde174 · report
load_eval_data scottviteri/MarkovianTraining/src/plot_alignment_scatter.py official repository ran no licence file found · pointer only · 360a656c320a63f7 · report
load_evaluation_results scottviteri/MarkovianTraining/src/evaluate_cross_model.py official repository ran no licence file found · pointer only · 6e8b3ebc90354c85 · report
perturb_CoT scottviteri/MarkovianTraining/src/perturbation_analysis.py official repository ran no licence file found · pointer only · 314a37061a9a7a21 · report
save_evaluation_results scottviteri/MarkovianTraining/src/evaluate_cross_model.py official repository ran no licence file found · pointer only · 5c41114c9559ce55 · report
smooth_curve scottviteri/MarkovianTraining/src/analyze_base_logprobs.py official repository ran fingerprinted no licence file found · pointer only · 097f57d1b35cac5c · report
calculate_token_logprobs_with_context scottviteri/MarkovianTraining/src/analyze_base_logprobs.py official repository unverified no licence file found · pointer only · 0068a24e80b41d46 · report

Tasks

GSM8KInformativenessLanguage ModelingLanguage Modelling

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

LLaMA

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