Papers › Entropy- and Distance-Based Predictors From GPT-2 Attention Patterns Predict Reading...

Entropy- and Distance-Based Predictors From GPT-2 Attention Patterns Predict Reading Times Over and Above GPT-2 Surprisal

21 Dec 2022arXiv:2212.11185archive 2025-07-28

Byung-Doh Oh, William Schuler

Transformer-based large language models are trained to make predictions about the next word by aggregating representations of previous tokens through their self-attention mechanism. In the field of cognitive modeling, such attention patterns have recently been interpreted as embodying the process of cue-based retrieval, in which attention over multiple targets is taken to generate interference and latency during retrieval. Under this framework, this work first defines an entropy-based predictor that quantifies the diffuseness of self-attention, as well as distance-based predictors that capture the incremental change in attention patterns across timesteps. Moreover, following recent studies that question the informativeness of attention weights, we also experiment with alternative methods for incorporating vector norms into attention weights. Regression experiments using predictors calculated from the GPT-2 language model show that these predictors deliver a substantially better fit to held-out self-paced reading and eye-tracking data over a rigorous baseline including GPT-2 surprisal. Additionally, the distance-based predictors generally demonstrated higher predictive power, with effect sizes of up to 6.59 ms per standard deviation on self-paced reading times (compared to 2.82 ms for surprisal) and 1.05 ms per standard deviation on eye-gaze durations (compared to 3.81 ms for surprisal).

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="2212.11185")

Code

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

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

byungdoh/attn_dist officialmentioned in paperjaxApache-2.0 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

11 samples harvested; 3 ran; 0 honoured the contract we drafted; 8 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.

3ran
8unverified

Licence: 0 of the 11 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 byungdoh/attn_dist. “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.

check_number_comma byungdoh/attn_dist/huggingface/src/transformers/convert_slow_tokenizer.py official repository ran Apache-2.0 (permissive) · a727df5fd2f5599a · report
ensure_valid_input byungdoh/attn_dist/huggingface/src/transformers/convert_graph_to_onnx.py official repository ran Apache-2.0 (permissive) · d770e1dd1d799a47 · report
generate_identified_filename byungdoh/attn_dist/huggingface/src/transformers/convert_graph_to_onnx.py official repository ran Apache-2.0 (permissive) · 7efe3db5c9e2f94d · report
convert_slow_tokenizer byungdoh/attn_dist/huggingface/src/transformers/convert_slow_tokenizer.py official repository unverified Apache-2.0 (permissive) · 82e5a32c9b2414f3 · report
detect_overflow byungdoh/attn_dist/huggingface/src/transformers/debug_utils.py official repository unverified Apache-2.0 (permissive) · c551a79d5bb1b062 · report
gelu_fast byungdoh/attn_dist/huggingface/src/transformers/activations_tf.py official repository unverified Apache-2.0 (permissive) · 37a5eed2dbd663ca · report
get_abs_min_max byungdoh/attn_dist/huggingface/src/transformers/debug_utils.py official repository unverified Apache-2.0 (permissive) · b5db92a796ef38f1 · report
get_configuration_file byungdoh/attn_dist/huggingface/src/transformers/configuration_utils.py official repository unverified Apache-2.0 (permissive) · dd3166a87bc972ff · report
infer_shapes byungdoh/attn_dist/huggingface/src/transformers/convert_graph_to_onnx.py official repository unverified Apache-2.0 (permissive) · 0da835817b8a57bc · report
mish byungdoh/attn_dist/huggingface/src/transformers/activations_tf.py official repository unverified Apache-2.0 (permissive) · cc8c8c3ebf0c343f · report
quick_gelu byungdoh/attn_dist/huggingface/src/transformers/activations_tf.py official repository unverified Apache-2.0 (permissive) · e2d56cb91f999bef · report

Tasks

InformativenessLanguage ModellingRetrieval

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AdamAttentionAttention DropoutBPECosine AnnealingDense ConnectionsDiscriminative Fine-TuningDropoutGPT-2Layer NormalizationLinear LayerLinear Warmup With Cosine AnnealingMulti-Head AttentionResidual ConnectionSoftmaxWeight Decay

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