Manuscript Offprint
arXiv:2610.17040Beyond Model Bias: Cross-Entropy Based Rankings in Literary and Academic Texts Remain Stable across Small Language Models
Abstract
While language models provide powerful mechanisms for evaluating textual predictability, it remains unclear whether the relative extents of LM surprisal remain stable across models. This study presents empirical evidence of the invariance of ranking based on cross-entropy related measures (e.g. mean, variance of each data-point), across four distinct small scale transformer-based models, for a given dataset of text sources. We consider two stylistic environments: a corpus of contemporary poetry and a corpus of academic research papers. We demonstrate that mean and variance of cross-entropy maintain robust cross-model rank correlation ( ) across both regimes. To test whether this agreement merely reflects generic differences in textual complexity, we compare it against six parameter-free compression baselines. The extent of agreement among language models is found to be substantially higher than that among model-baselines, for most of the measures. Geometric analysis of the structurally constrained academic regime reveals that higher-order moments are sensitive to specific models, although strong agreement persists. The findings suggest that relative extents of textual unpredictability may be independent of the language model they are computed against.
1 Introduction
Quantitative stylometry and computational text analysis rely on statistical representations to capture variations in style, register, and structural complexity across human writing (Holmes, 1985; Evert et al., 2017). Language model cross-entropy (or token surprisal) has emerged as an information-theoretic lens for quantifying textual unpredictability, capturing how unexpected a text sequence is under a learned probability distribution (Hale, 2001; Levy, 2008; Sarfati et al., 2025). However, raw surprisal values are tied to an evaluation model's specific vocabulary size, tokenizer granularity, and pre-training corpus. This architectural dependency creates a fundamental ambiguity in computational linguistics: does the relative order of language model cross-entropy metrics remain stable across models, or are they artifacts of the specific model?
To resolve this ambiguity, we investigate the variance of ranks of moments of cross-entropy across four architecturally distinct language models — GPT-2 (Radford et al., 2019), Pythia (Biderman et al., 2023), TinyLlama (Zhang et al., 2024), and Qwen (Bai et al., 2023). We contrast two structural bounds of language: an unconstrained regime of contemporary poetry (28 poets) and a constrained regime of academic prose (29 research papers). Combined, the two datasets comprise 3,000 total chunks of texts (the mechanism of chunking is given in appendix A), which include 1,597 poetries of the contemporary period and 29 recently published research papers across various disciplines, for which cross-entropies are computed. Given the drastic differences in subword tokenization boundaries, vocabulary capacities, and pre-training corpora among these models, source-level (a source is a poet, or a paper, depending on which corpus is being referred to) surprisal rankings are theoretically vulnerable to variability. However, we empirically demonstrate that the relative statistical moments of textual unpredictability—mean, variance, skewness, and kurtosis—remain highly stable. These findings suggest that the extent of language model surprisal is not a model-specific artifact, but a model-independent feature of human text registers.
To summarize, main contributions of this study are as follows:
• Empirical Evidence of Rank-Invariance across Models: We demonstrate that, for liter-ary and academic texts, the ranks of statistical moments of language model surprisal (mean, variance, skewness, and kurtosis) are almost invariant across some distinct Transformer architectures, surviving massive disparities in vocabulary size and pre-training distributions of different language models. To demonstrate robustness, we conduct the study with multiple poets and multiple research papers across different disciplines.
• Contrastive Regime Analysis: We evaluate this stability across two structural extremes — an unconstrained creative regime (28 contemporary poets) and an academically constrained regime (29 research papers) — proving that relative stylometric signal is robust across two different genres.
• Potentially Invariant Stylometric Features: Our findings therefore indicate that, though cross-entropy moments across models differ in their absolute values, they can be treated as objective, model-agnostic features for computational stylometry, through methods like relative ordering. This offers a robust, model-independent metric for downstream tasks such as genre classification and authorship attribution, though these remain outside the scope of the current study. The absolute values of cross-entropy do differ across different models, however the relative statistical measures, especially mean and variance of source-level cross-entropy remain largely invariant and maintain robust rank correlations across distinct language model architectures.
Computational Stylometry: Stylometry quantifies these structural variations to classify text genre, register, and authorship. Traditional stylometric models rely on surface-level frequency distributions, such as syntactic dependencies, character n-grams, and Burrows' Delta (Holmes, 1985; Evert et al., 2017). As large language models (LLMs) have advanced, research has increasingly adopted deep contextual representations and next-token probabilities to map stylistic signatures (Sarfati et al., 2025). However, deploying language model surprisal as a feature for stylometry introduces a fundamental architectural bias.
Model Bias & Dependency: The absolute magnitude of cross-entropy is strictly bound to a model's specific vocabulary capacity, tokenization granularity (e.g., BPE vs. SentencePiece), and pre-training distribution (Radford et al., 2019; Biderman et al., 2023). Because a single word may be split into drastically different subword sequences depending on the model, standard evaluation methodologies dictate that raw surprisal and perplexity cannot be directly compared across different tokenizer families without byte-level normalization (Meister et al., 2026).
Our Contribution and Novelty: Our work breaks from the assumption that structural unpredictability is a model-bound artifact. While absolute cross-entropy values are undeniably tied to specific models, we establish that the ranks of statistical moments (mean, variance, skewness, kurtosis) of source-level cross-entropies are stable across distinct language model architectures. By tracking these rank correlations across both an unconstrained poetic regime and a tightly constrained academic regime, we empirically demonstrate that the extent of language model surprisal for a text, survives model biases, particularly for small language models. Our core novelty is demonstrating that when properly normalized to character-level information density (BPC), the multi-model rank correlation ( ) of cross-entropy moments remains stable across distinct model architectures.
3 Methodology
In this section, we formalize the empirical framework used to evaluate the model-based stability of textual unpredictability extents across distinct language model architectures. We rigorously define chunk-level cross-entropy as an empirical random variable, detail the extraction of its four statistical moments, and outline the non-parametric rank correlation metrics used to test structural stability across the constrained and unconstrained text regimes.
3.1 Corpus Segmentation
Let denote the complete set of textual sources, partitioned into two structurally distinct regimes: the poetic corpus and the academic corpus .
In each of the two cases, each source is segmented into a set of contiguous text chunks. We define the chunk set for source i as:
where represents the total number of chunks extracted from source i. This chunking is done so that for each source (i.e., for a poet in the first case and a paper in the second case), we obtain a frequency distribution of entropy for the source to ensure consistent evaluation across language models with finite context windows. The construction of a chunk for a given paper or a collection of poems written by a particular poet, is given in appendix A.
Because language models process discrete tokens rather than raw text, evaluation is strictly bound to a model’s subword vocabulary. Let represent the set of evaluated language models, where . For any given model , we define a distinct tokenization function . Applying this function to a raw text chunk yields an ordered sequence of discrete tokens:
where the sequence length m varies depending on the specific granularity and vocabulary size of model .
3.2 Distribution of Cross-Entropy
For a given language model , the probability of generating a specific token is conditioned on the preceding context . The model's internal representation of textual unpredictability is quantified by the token-level surprisal, defined as the negative log-likelihood of the observed token (Bengio et al., 2003).
We extend this to the chunk level by defining the cross-entropy of a chunk in Bits Per Character (BPC). To ensure standardized evaluation across different subword vocabularies, we normalize the total negative log-likelihood of the chunk by its character length:
where is the total number of characters in the raw text chunk c. It is to be noted that the individual tokens are not normalized by their character counts, instead the normalization is performed after computing the summation.
Instead of reducing a source’s entire corpus to a single scalar value, we evaluate the cross-entropy for every chunk in the set . This yields a discrete set of values . We treat them as an empirical frequency distribution of textual unpredictability for source . This frequency-based framing allows us to directly compute the structural volatility and statistical moments of the text for a given source (poet / paper).
3.3 Moments and Their Rankings across Models
To capture the complete stylistic fingerprint of a source, we extract the first four statistical moments from its empirical frequency distribution of cross-entropies: the mean ( ), variance ( ), skewness ( ), and kurtosis ( ). We then test whether the relative ordering of sources, based on these four measures, remains stable across the set of language models M. The agreement between two sets of ranked data is evaluated by computing Spearman's rank correlation coefficient ( ) between pairs of models. The complete mathematical formulations are detailed in appendix B.
A correlation of indicates that the language models, despite utilizing entirely different tokenization functions and pre-training distributions, extract the exact same relative stylistic ranking. This would indicate that cross-entropy based ranking may surpass the effect of model bias.
Conversely, a result of implies no correlation among the rankings of the models. That would indicate that textual unpredictability, when it is measured by language model cross entropy, is largely dependent on the specific model M used to compute the cross entropy.
4 Experimental Setup
Now, we formally describe the experiment performed to obtain the results that are described in the section 5.
4.1 Language Models
To rigorously test the architectural independence of ranking based on moments of cross-entropy, we evaluate four distinct autoregressive language models. These models were selected specifically to maximize variance across model paradigms, vocabulary capacities, and pre-training distributions:
• GPT-2 (Radford et al., 2019)
• Pythia (Biderman et al., 2023)
• TinyLlama (Zhang et al., 2024)
• Qwen (Bai et al., 2023)
The models differ massively in both architecture and training corpora. The disparities are discussed thoroughly in appendix E.
4.2 Datasets
We benchmark the stability of stylistic ranks across two extreme structural bounds:
• Poetic Regime ( ): A corpus of contemporary poetry authored by 28 distinct poets. This dataset represents high stylistic volatility, where semantic and syntactic rules are frequently and intentionally subverted to achieve creative impact.
• Academic Regime ( ): A corpus of 29 published academic research papers. This dataset enforces strict structural homogeneity, shared technical terminology, and standardized formatting, severely compressing the baseline variance of textual unpredictability. The papers were deliberately chosen such that they contain minimum amount of mathematical equations and expressions. However we picked these papers from different disciplines.
4.3 Implementation
All cross-entropy computations were performed using teacher forcing, without autoregressive generation. For each chunk , the token sequence was processed by the corresponding language model , and to ensure a standardized evaluation across different subword vocabularies, we normalize the total negative log-likelihood of the chunk by its character length, yielding the Bits Per Character (BPC) used in all subsequent moment calculations. Chunks exceeding the model's context window were processed using sliding windows, ensuring that each scoreable next token was evaluated once.
5 Results & Discussion
Now, we present the results and our findings across the two corpora that we experimented on.
5.1 The Poetic Regime
We first evaluate the stability within the poetic regime ( ), a dataset characterized by high stylistic volatility and creative freedom. Despite the fundamental differences in vocabulary capacities and tokenization boundaries across GPT-2, Pythia, TinyLlama, and Qwen, the models exhibit near-perfect agreement on the relative ranking of the 28 poets.
For the baseline textual unpredictability, quantified by the mean cross-entropy ( ), the pairwise Spearman rank correlation ( ) across all model combinations ranges from 0.968 to 0.994. The structural volatility, captured by the variance ( ), demonstrates similarly robust invariance, with bounded strictly between 0.896 and 0.988. These near-ceiling correlations prove that the core stylistic fingerprint of a poet translates almost flawlessly across distinct model architectures. The confidence intervals are given in appendix C.1.
The stricter Kendall’s rank correlation ( ) corroborates this finding, maintaining values of for the mean and for the variance across all model pairs.
As expected from statistical theory (Kendall and Stuart, 1977), the higher-order moments — skewness ( ) and kurtosis ( ) — exhibit slightly wider variance ( for skewness and for kurtosis). Because these moments are mathematically hypersensitive to extreme outliers in the chunk frequency distributions, minor subword segmentation differences at the model level naturally introduce localized noise. However, the correlations remain strongly positive.
These results establish our baseline: when human writing exhibits broad stylistic diversity, the relative statistical moments of language model surprisal are largely model-independent. This demonstrates that when utilizing character-normalized surprisal, the underlying stylistic ranking is not

(a) Mean ( )

(b) Variance ( )

(c) Skewness ( )

(d) Excess Kurtosis ( )
Figure 1: Pairwise Spearman’s rank correlation ( ) of cross-entropy moments across the four evaluated language models for the poetic regime. The near-perfect agreement for mean and variance demonstrates the invariance of the metric, demonstrating that the metric survives across different model paradigms.
disrupted by the disparate tokenization boundaries of the models.
5.2 The Academic Regime
We next evaluate the results within the academic regime ( ). Unlike contemporary poetry, published research papers adhere to rigid institutional formatting, standardized technical terminologies, and homogenous syntactic structures. This extreme structural constraint compresses the baseline stylistic variance across the corpus, narrowing the margins of difference between authors.
Despite this intense compression, the multimodel rank correlation remains remarkably robust. For the mean cross-entropy ( ), the pairwise Spearman correlation ( ) across GPT-2, Pythia, TinyLlama, and Qwen remains tightly bounded between 0.922 and 0.978. The structural volatility, measured by variance ( ), exhibits similarly high stability, with . Kendall's corroborates this strong monotonic relationship, maintaining values between 0.759 and 0.897 for the first two moments.
Because the stylistic distances between academic papers are microscopically thin compared to poetry, we observe a wider fluctuation in the higher-order moments. Skewness ( ) yields , while excess kurtosis ( ) ranges from 0.692 to 0.934. When attempting to rank highly clustered data points, the inherent noise of model-specific segmentation (e.g., how differently Pythia and Qwen split LATEXmath symbols or citations) naturally causes minor rank swapping in the extreme tails of the frequency distribution.
However, the fact that the mean and variance correlations comfortably exceed 0.90 under such constrained conditions is highly significant (confidence intervals are given in appendix C.2). It implies that the extent of stylometric fingerprint of a text survives even when institutional rules force authors into a highly constrained structural space.
Localized Surprisal Spikes in GPT-2: A notable pattern emerges in the higher-order moments: GPT-2 acts as a distinct outlier relative to the other three architectures. While Pythia, Qwen, and TinyLlama exhibit strong mutual rank agreement for both skewness ( ) and excess kurtosis ( ), GPT-2's correlation with these modern models degrades substantially.

(a) Mean ( )

(b) Variance ( )

(c) Skewness ( )

(d) Excess Kurtosis ( )
Figure 2: Pairwise Spearman’s rank correlation ( ) of cross-entropy moments across the four evaluated language models for the academic regime. Despite the extreme stylistic variance compression enforced by institutional formatting, first two moments (mean and variance) maintain robust invariance.
for skewness and for excess kurtosis). This disparity is significant and it suggests that GPT-2 experiences localized surprisal spikes during subword fragmentation, causing systematic rank shifts in skewness and kurtosis that are likely absent in the rest of the LLMs.
Mechanistically, this disparity is likely driven by GPT-2's older, limited tokenizer and its informal pre-training corpus (detailed in appendix E). When processing dense academic artifacts such as mathematical equations and inline citations, GPT-2 is prone to fragment them into highly unpredictable subword sequences, creating localized surprisal spikes. Because higher-order moments are mathematically hypersensitive to extreme outliers, these tokenizer failures disproportionately distort GPT-2's skewness and kurtosis rankings within the tightly compressed academic regime.
5.3 Compression Baseline
To test whether high cross-model agreement merely reflects large differences in intrinsic complexity between sources, we replace the language models with model-free compression baselines. For each chunk, we compute compressed size in bits per character, using deflate, LZMA, bzip2, and zstd (plain), as well as deflate and LZMA primed with a neutral English reference text disjoint from both corpora (primed). Chunking and source-level moments are identical to those used for the language models. We compare the mean Spearman correlation among language-model pairs with the mean correlation between each compressor and the language models, and estimate their difference with a paired bootstrap over sources (full results in appendix D.1).
The results of this comparison indicate that the language models agree with each other in several of the rankings where there is no concrete agreement between the baselines and the models. This suggests that all four models, despite their differences, simultaneously capture extents of randomness which are broader than generic textual differences captured by the baselines. However the gap is narrowed for rankings based on the third and fourth moments.
5.3.1 Poetic Regime
Plain compressors agree with the language models far less than the language models agree with each other on all four moments, so we focus on the primed variants. For the mean, primed compressors remain clearly below language-model agreement. For the variance, the gap is smaller: primed LZMA nearly matches the language models on some cases, suggesting that variance rankings may reflect properties of the texts that a compressor, though unreliable, may reproduce. For skewness and excess kurtosis, primed compressors are in most cases statistically indistinguishable from the language models, so we find no evidence that these moments carry language-model-specific signal.
5.3.2 Academic Regime
The pattern differs from that in poetry. Plain compressors again agree with the language models far less than the language models agree with each other, and the primed variants are closer but still clearly below on every moment. For the mean, the best primed compressor (LZMA, ) remains well below language-model agreement ( ), and no compressor reaches the threshold fixed beforehand. For the variance, the gap is substantially larger than in the poetic corpus, so here the stability of variance rankings is not reproduced by a model-free measure. Unlike in poetry, skewness and excess kurtosis also separate clearly: primed compressors reach only , against roughly 0.9 among the language models, and every bootstrap interval for the difference excludes zero. One possible reading is that language models agree with each other, and compressors do not, precisely where inter-source differences are small. Because the primed reference is neutral English rather than technical text, the baseline may understate what a compressor adapted to academic prose could achieve (full results in Appendix D.2).
5.4 The Geometry of Stability
We now use GPT-2 cross-entropy values to analyze the geometrical positions of the poets and the papers in the mean-variance phase space.
5.4.1 Spatial Dispersion in the Poetic Regime
To understand the mechanical origin of this cross-model rank stability, we project the textual predictability of each corpus into a two-dimensional moment phase space defined by the mean ( ) and variance ( ) of the cross-entropy.
Evaluating the poetic regime ( ) under GPT-2 reveals a massive spatial footprint. Because poets intentionally manipulate syntax, rhythmic density, vocabulary and other stylistic measures, their individual surprisal signatures occupy more or less distinct, separated regions of the moment space, as shown in figure 3. Across the 28 evaluated poets, the mean unpredictability spans a wide domain ( ), while the variance spans several orders of magnitude ( ).
This wide dispersion may have been the mathematical driver of the near-perfect rank correlation observed in Section 5.1. When the inter-author distances ( , ) are vast relative to the minor perturbations introduced by different tokenization paradigms ( ), the relative rank ordering becomes virtually immune to architectural noise. The separation of coordinates in the unconstrained regime guarantees that model-specific biases cannot shift an author's statistical fingerprint enough to alter their macroscopic rank within the corpus. However, some of the points in this plot are close as well, and these prevent a correlation of exactly unity.
5.4.2 Compression and Clustered Noise in the Academic Regime
Conversely, evaluating the academic corpus ( ) reveals a severe geometric contraction in the moment phase space, as shown in figure 4. Driven by institutional formatting, standardized technical vocabularies, and rigid syntactic structures, the 29 research papers collapse into a highly dense, localized cluster. Under GPT-2, the baseline unpredictability for the academic texts drops significantly ( ), with the vast majority of the corpus (75th percentile) falling below 1.12. More strikingly, the stylistic volatility is almost entirely eliminated, with variance heavily compressed ( ) and a median variance of just 0.013.
This macroscopic compression mechanically explains the behavior of the rank correlations observed in Section 5.2. In this densely packed regime, the underlying stylistic differences between papers may become microscopically small ( ). When data points are clustered this tightly, localized tokenization artifacts—such as how a specific model segments LATEXmathematical equations, embedded citations, or compound technical nouns—become large enough relative to the inter-author distances to perturb the local rank ordering.

Figure 3: Mean and variance of source-level GPT-2 cross-entropy for the poetry corpus.
Because higher-order moments ( , ) are mathematically hypersensitive to sudden, isolated surprisal spikes, these minor tokenization variations cause localized rank-swapping in the distribution tails. However, the foundational statistical mass remains stable enough that the lower-order moments ( , ) absorb the noise, preserving their > 0.90 rank correlations. This contrast indicates that the stylometric fingerprint remains model-agnostic even in the case of strict structural bottlenecks.
5.4.3 Correlation between Mean and Variance of Cross-Entropy
There is also another interesting result that should be looked into closely. There is a highly positive correlation between the means and variances of the cross-entropy of the 28 poets, in the corpus of the poetries. We observe that Pearson’s correlation coefficient, , which is found to be statistically significant ( ). This means that poets whose writings were more unpredictable on average, were also more widespread across their values of cross-entropy of their chunks. This means that different chunks of their poetries surprised the model to different degrees, leading to a wide range of cross-entropy.
However, for the set of research papers, there was no meaningful correlation and Pearson’s correlation coefficient was calculated to be , and this is found to be statistically insignificant ( ). This is also visible in figure 4, as the cluster formed by most of the points, is smooth. This indicates that mean and variance were almost orthogonal to each other, i.e., there was no meaningful correlation.

Figure 4: Mean and variance of source-level GPT-2 cross-entropy for the research-paper corpus.
6 Conclusion
In this work, we showed an empirical evidence that cross-entropy measures of literary and academic works are largely independent of the language model it is computed with respect to. One way of showing this would have been to simply choose some textual chunks and rank the cross-entropy measures of different models of those random chunks. In our work, we show that the rankings of these measures are stable even when the measures are considered across different poets and different published articles. Therefore, the phenomenon is shown to be robust across completely different sources (poets / research articles) of two different genres of writing. Further, the fact that the chosen language models differ inherently, indicates that this is not an obvious outcome. As evident from our findings, relative extents of textual unpredictability, when they are measured by the cross-entropy with respect to a language model, may be independent of the language model. This means that, for a given dataset, the rank of its elements based on cross-entropy measures may be completely independent of the model used.
Limitations
While this study establishes the robust cross-model rank correlation of relative cross-entropy measures, its scope is bounded by three primary constraints:
• Model Scale: The evaluation is restricted to four relatively small-scale language models. Future work has to evaluate massive-scale architectures to determine if increased parameter counts further smooth the localized sur-prisal spikes observed in higher-order statistical moments.
• Stylistic Extremes: By analyzing only two highly contrasting genres — unconstrained contemporary poetry and rigidly structured academic articles — the results leave open the behavior of intermediate text types, such as narrative fiction or journalistic prose.
• Monolingual Focus: The current corpora are entirely English-language. Broadening this scope to encompass multilingual datasets is necessary to understand how distinct morphological structures alter tokenization dynamics.
Ethics Statement
This research analyzes contemporary poetry and published academic manuscripts that may be subject to copyright. Their analysis within this study was conducted strictly under fair use provisions for non-commercial academic research. The details of the poets and papers analyzed in this work, and the entire codebase are available on the GitHub repository of the project, linked on the first page.
References
Joshua Ainslie, James Lee-Thorp, Michiel de Jong, Yury Zemlyanskiy, Federico Lebron, and Sumit Sanghai. 2023. GQA: Training generalized multi-query transformer models from multi-head checkpoints. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 4895–4901. Association for Computational Linguistics.
Jinze Bai, Shuai Bai, Yunfan Chu, Zeyu Cui, Kai Dang, Xiaodong Deng, Yang Fan, Wenbin Ge, Yu Han, Fei Huang, and 1 others. 2023. Qwen technical report. arXiv preprint arXiv:2309.16609.
Yoshua Bengio, Réjean Ducharme, Pascal Vincent, and Christian Jauvin. 2003. A neural probabilistic language model. Journal of Machine Learning Research, 3(Feb):1137–1155.
Stella Biderman, Hailey Schoelkopf, Quentin Anthony, Herbie Bradley, Kyle O'Brien, Eric Hallahan, Mohammad Aflah Khan, Shivanshu Purohit, USVSN Sai Prashanth, Edward Raff, and 1 others. 2023. Pythia: A suite for analyzing large language models across training and scaling. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pages 2397–2430. PMLR.
Rotem Dror, Gili Baumer, Segev Shlomov, and Roi Reichart. 2018. The hitchhiker's guide to testing statistical significance in natural language processing.
In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1383–1392. Association for Computational Linguistics.
Stefan Evert, Thomas Proisl, Fotis Jannidis, Isabella Reger, Steffen Pielström, Christof Schöch, and Thorsten Vitt. 2017. Understanding and explaining delta measures for authorship attribution. Digital Scholarship in the Humanities, 32(suppl_2):ii4–ii16.
David Freedman and Persi Diaconis. 1981. On the histogram as a density estimator: theory. Zeitschrift für Wahrscheinlichkeitstheorie und Verwandte Gebiete, 57:453–476.
John Hale. 2001. A probabilistic earley parser as a psycholinguistic model. In Proceedings of the Second Meeting of the North American Chapter of the Association for Computational Linguistics on Language Technologies, pages 1–8.
David I. Holmes. 1985. The analysis of literary style—a review. Journal of the Royal Statistical Society: Series A (General), 148(4):328–341.
T. Florian Jaeger. 2010. Redundancy and reduction: Speakers manage syntactic information density. Cognitive Psychology, 61(1):23–62.
Maurice G. Kendall and Alan Stuart. 1977. The Advanced Theory of Statistics, Volume 1: Distribution Theory, 4 edition. Macmillan.
Roger Levy. 2008. Expectation-based syntactic comprehension. Cognition, 106(3):1126–1177.
Clara Meister, Tiago Pimentel, Patrick Haller, Lena Jäger, Ryan Cotterell, and Roger Levy. 2021. Re-visiting the uniform information density hypothesis. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 963–980. Association for Computational Linguistics.
Clara Meister, Ahmetcan Yavuz, Pietro Lesci, and Tiago Pimentel. 2026. What language is this? Ask your tokenizer. In Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research, pages 87477–87493. PMLR.
Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. 2019. Language models are unsupervised multitask learners. OpenAI Blog, 1(8):9.
Raphaël Sarfati, Haley Moller, Toni J. B. Liu, Nicolas Boullé, and Christopher J. Earls. 2025. What's in a prompt? language models encode literary style in prompt embeddings. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 24059–24068. Association for Computational Linguistics.
Noam Shazeer. 2020. Glu variants improve transformer. arXiv preprint arXiv:2002.05202.
Jianlin Su, Murtadha Ahmed, Yu Lu, Shengfeng Pan, Wen Bo, and Yunfeng Liu. 2024. Roformer: Enhanced transformer with rotary position embedding. Neurocomputing, 568:127063.
Peiyuan Zhang, Guangtao Zeng, Tianduo Wang, and Wei Lu. 2024. TinyLlama: An open-source small language model. arXiv preprint arXiv:2401.02385.
A Construction of a Chunk
The chunk construction mechanism is similar for both corpora. However, in the corpus of poets, we consider the set of all available poems written by the poet. In the corpus of research papers, we consider the content of the whole paper except some specific parts. The chunk construction for both cases are described in the two following subsections.
A.1 Chunking Methodology for the Poetic Corpus
For the unconstrained poetic regime, text segmentation is strictly stanza-preserving to respect the structural intent of the author. The chunking algorithm adheres to the following rules:
• A chunk accumulates complete, contiguous stanzas until it reaches a minimum threshold of 200 words, i.e., it has N number of stanzas such that the total word count of N - 1 stanzas is less than 200 but that of N stanzas is not less than 200.
• Stanzas are never mathematically or textually split across multiple chunks.
• If an entire poem contains fewer than 200 words, it is retained intact as a single chunk.
• For longer poems, if the final accumulated chunk falls below the 200-word threshold, it is merged into the preceding chunk to avoid anomalous undersized remainders.
Crucially, the empirical frequency distribution of cross-entropies is constructed at the poet-level, not the poem-level. All valid chunks extracted across a specific poet's entire evaluated collection are binned into a single, unified frequency histogram (using Freedman–Diaconis binning (Freedman and Diaconis, 1981) capped between 8 and 30 bins). The statistical moments (mean, variance, skewness, kurtosis) are derived from this aggregate poet-level distribution.
A.2 Chunking Methodology for the Academic Corpus
For the constrained academic regime, segmentation respects logical manuscript boundaries by being strictly subsection-local and paragraph-preserving. The extraction follows these parameters:
• Complete paragraphs are accumulated sequentially until the chunk reaches a minimum of 200 words, i.e., it has N number of paragraphs such that the total word count of N - 1 paragraphs is less than 200 but that of N paragraphs is not less than 200.
• Paragraphs are never split, and chunks are strictly forbidden from crossing subsection boundaries.
• If a discrete subsection contains fewer than 200 words in its entirety, it is isolated as a single unified chunk.
• If the final paragraphs of a subsection form a remainder below the 200-word threshold, they are appended to the immediately preceding chunk within that same subsection.
Unlike the poetic corpus, the empirical frequency distribution for this regime is constructed at the paper-level. All chunks extracted from a single research manuscript are binned into a dedicated frequency histogram. The structural moments are then computed from this paper-specific distribution to represent the stylometric fingerprint of the individual manuscript.
B Mathematical Formulations of Moments and Rank Correlation
This section details the formal mathematical extraction of the statistical moments and the rank correlation metric discussed in Section 3. Let denote the cross-entropy of the j-th chunk from source i under language model .
The Mean establishes the baseline textual unpredictability of the source:
The Variance ( ) measures the structural volatility, quantifying how widely the stylistic com-plexity fluctuates across the text:
The Skewness ( ) evaluates the asymmetry of the distribution, identifying whether a source leans toward infrequent bursts of highly unexpected text or prolonged spans of highly predictable text:
The Kurtosis ( ) measures the presence of extreme structural deviations, capturing the frequency of highly anomalous chunks relative to the author's baseline style:
To quantify the ranking-agreement between any pair of models , we compute Spearman's rank correlation coefficient:
where is the difference in the assigned ranks for source , and is the total number of sources in the respective corpus ( or ).
In addition to Spearman’s rank correlation, we compute Kendall’s rank correlation coefficient ( ) to further validate the monotonic agreement between the models. For any pair of rank vectors and , Kendall’s is defined as:
where represents the number of concordant pairs, represents the number of discordant pairs, and the denominator denotes the total number of possible pair combinations among the sources.
C Bootstrap Confidence Intervals for Cross-Model Rank Correlations
We estimate 95% confidence intervals for Spearman’s rank correlation coefficients using 5,000 paired-bootstrap resamples (Dror et al., 2018) of the sources. The intervals quantify uncertainty in the estimated cross-model rank correlations.
C.1 Poetic Corpus
Table 1 reports the pairwise correlations and confidence intervals for the poetic corpus. Mean BPC exhibits consistently high rank agreement across models. Variance also shows strong agreement, although some confidence intervals are relatively wide. Skewness and excess kurtosis exhibit greater variability in both their correlations and confidence intervals, which indicate that these are not as robust as those for mean and variance. All intervals remain above zero, indicating positive rank associations across the evaluated model pairs.
C.2 Academic Corpus
Table 2 presents the corresponding results for the academic corpus. Mean BPC and variance show consistently strong rank agreement across the evaluated models. In comparison, similar to the poetic corpus, skewness and excess kurtosis exhibit weaker correlations for some model pairs and wider confidence intervals. Nevertheless, all confidence intervals remain above zero, indicating positive cross-model rank associations across the four measures.
D Compression Baseline
Here we discuss the numerical results obtained during the comparative study with the baseline.
D.1 Results in Poetic Regime
Setup: Plain variants compress each chunk independently (deflate, LZMA, bzip2, zstd). Primed variants (deflate, LZMA) compress a neutral English reference text concatenated with the chunk, and the chunk’s cost is the size of +chunk minus the size of alone. Bits per character use character length, as for the language models. For each moment we report (i) , the mean Spearman correlation over the six language-model pairs; (ii) , the mean correlation between the compressor and the four language models; and (iii) with a 95% paired-bootstrap interval (5,000 resamples of sources; all resamples valid). Intervals containing zero are marked with . The correlation coefficients and confidence intervals for this dataset are given in table 3.
D.2 Results in Academic Regime
The setup is identical to appendix D.1. We report moments computed from the binned chunk-
| Model pair | Mean BPC | Variance | Skewness | Excess kurtosis |
|---|---|---|---|---|
| GPT-2-Pythia | [0.919, 0.995] | [0.814, 0.996] | [0.778, 0.985] | [0.775, 0.959] |
| GPT-2-Qwen | [0.914, 0.993] | [0.787, 0.993] | [0.464, 0.947] | [0.588, 0.926] |
| GPT-2-TinyLlama | [0.898, 0.992] | [0.923, 0.994] | [0.832, 0.992] | [0.646, 0.948] |
| Pythia-Qwen | [0.974, 0.999] | [0.945, 0.998] | [0.663, 0.970] | [0.762, 0.975] |
| Pythia-TinyLlama | [0.922, 0.999] | [0.684, 0.996] | [0.691, 0.968] | [0.641, 0.951] |
| Qwen-TinyLlama | [0.897, 1.000] | [0.655, 0.997] | [0.318, 0.913] | [0.458, 0.935] |
Table 1: 95% paired-bootstrap confidence intervals for Spearman's rank correlation coefficients across the four measures in the poetic corpus ( poets).
| Model pair | Mean BPC | Variance | Skewness | Excess kurtosis |
|---|---|---|---|---|
| GPT-2-Pythia | [0.803, 0.989] | [0.812, 0.982] | [0.460, 0.914] | [0.407, 0.855] |
| GPT-2-Qwen | [0.772, 0.986] | [0.776, 0.969] | [0.234, 0.916] | [0.462, 0.857] |
| GPT-2-TinyLlama | [0.846, 0.984] | [0.765, 0.963] | [0.349, 0.906] | [0.528, 0.888] |
| Pythia-Qwen | [0.882, 0.991] | [0.784, 0.974] | [0.696, 0.947] | [0.664, 0.945] |
| Pythia-TinyLlama | [0.880, 0.989] | [0.824, 0.973] | [0.791, 0.977] | [0.790, 0.962] |
| Qwen-TinyLlama | [0.927, 0.994] | [0.934, 0.993] | [0.803, 0.978] | [0.820, 0.976] |
Table 2: 95% paired-bootstrap confidence intervals for Spearman's rank correlation coefficients across the four measures in the academic corpus ( papers).
| Moment | Compressor | Δ | 95% CI of Δ | |
|---|---|---|---|---|
| Mean () | ||||
| plain deflate | 0.505 | 0.458 | [0.156, 0.806] | |
| plain LZMA | 0.520 | 0.443 | [0.166, 0.781] | |
| plain bzip2 | 0.580 | 0.383 | [0.184, 0.661] | |
| plain zstd | 0.579 | 0.384 | [0.170, 0.677] | |
| primed deflate | 0.768 | 0.195 | [0.056, 0.431] | |
| primed LZMA | 0.805 | 0.158 | [0.047, 0.371] | |
| Variance () | ||||
| plain deflate | 0.803 | 0.154 | [0.060, 0.330] | |
| plain LZMA | 0.811 | 0.146 | [0.063, 0.304] | |
| plain bzip2 | 0.759 | 0.198 | [0.087, 0.401] | |
| plain zstd | 0.786 | 0.171 | [0.072, 0.355] | |
| primed deflate | 0.887 | 0.070 | [0.016, 0.196] | |
| primed LZMA | 0.918 | 0.039 | [0.008, 0.109] | |
| Skewness () | ||||
| plain deflate | 0.589 | 0.258 | [0.047, 0.529] | |
| plain LZMA | 0.534 | 0.314 | [0.101, 0.598] | |
| plain bzip2 | 0.468 | 0.380 | [0.122, 0.711] | |
| plain zstd | 0.550 | 0.298 | [0.068, 0.604] | |
| primed deflate | 0.712 | 0.136 | ||
| primed LZMA | 0.764 | 0.083 | ||
| Excess kurtosis () | ||||
| plain deflate | 0.549 | 0.302 | [0.113, 0.548] | |
| plain LZMA | 0.413 | 0.438 | [0.148, 0.798] | |
| plain bzip2 | 0.480 | 0.371 | [0.107, 0.691] | |
| plain zstd | 0.492 | 0.360 | [0.095, 0.706] | |
| primed deflate | 0.736 | 0.115 | [0.004, 0.258] | |
| primed LZMA | 0.756 | 0.095 | ||
Table 3: Compressor baselines versus language models, poetic corpus. : interval contains zero.
level distribution, over papers for all four moments. is the mean Spearman correlation over the six language-model pairs, is the mean correlation between the compressor and the four language models, and is reported with a paired-bootstrap interval (5,000 resamples of papers, all valid). All intervals exclude zero. It is to be noted that, specifically for this set, for an apples-to-apples comparison with the baseline, we slightly modified the processing of the papers. Due to that, the values of may not match exactly with the values re- ported in section 5, although the remain close. The correlation coefficients and confidence intervals for this dataset are given in table 4.
| Moment | Compressor | Δ | 95% CI of Δ | |
|---|---|---|---|---|
| Mean () | ||||
| plain deflate | 0.463 | 0.512 | [0.194, 0.908] | |
| plain LZMA | 0.379 | 0.596 | [0.200, 1.019] | |
| plain bzip2 | 0.355 | 0.620 | [0.269, 1.026] | |
| plain zstd | 0.363 | 0.612 | [0.260, 1.014] | |
| primed deflate | 0.700 | 0.275 | [0.130, 0.508] | |
| primed LZMA | 0.779 | 0.196 | [0.084, 0.395] | |
| Variance () | ||||
| plain deflate | 0.553 | 0.408 | [0.153, 0.735] | |
| plain LZMA | 0.454 | 0.507 | [0.207, 0.884] | |
| plain bzip2 | 0.415 | 0.545 | [0.240, 0.934] | |
| plain zstd | 0.553 | 0.408 | [0.148, 0.739] | |
| primed deflate | 0.725 | 0.236 | [0.066, 0.485] | |
| primed LZMA | 0.704 | 0.257 | [0.073, 0.506] | |
| Skewness () | ||||
| plain deflate | 0.321 | 0.588 | [0.270, 0.956] | |
| plain LZMA | 0.213 | 0.696 | [0.380, 1.061] | |
| plain bzip2 | 0.261 | 0.647 | [0.321, 1.028] | |
| plain zstd | 0.237 | 0.671 | [0.339, 1.057] | |
| primed deflate | 0.473 | 0.436 | [0.195, 0.754] | |
| primed LZMA | 0.397 | 0.512 | [0.231, 0.846] | |
| Excess kurtosis () | ||||
| plain deflate | 0.211 | 0.685 | [0.358, 1.037] | |
| plain LZMA | 0.274 | 0.623 | [0.294, 0.985] | |
| plain bzip2 | 0.285 | 0.612 | [0.282, 0.975] | |
| plain zstd | 0.278 | 0.619 | [0.277, 0.988] | |
| primed deflate | 0.333 | 0.564 | [0.265, 0.945] | |
| primed LZMA | 0.300 | 0.597 | [0.267, 0.988] | |
Table 4: Compressor baselines versus language models, academic corpus.
E Architectural and Training Disparities of Studied Models
To provide context for the rank correlation results presented in Section 5, we outline the structural and training differences of the four language models evaluated. Because these models span distinct generational architectures and training domains, their convergence on stylometric rankings is not an obvious consequence of shared design principles.
GPT-2: GPT-2 represents an early autoregressive Transformer decoder utilizing absolute positional embeddings. It employs a standard Byte-Pair Encoding (BPE) tokenizer with a vocabulary size of 50,257 subword units. The model was pre-trained on WebText, an uncurated dataset constructed from outbound Reddit links, which primarily consists of conversational internet English.
Pythia: This model is based on the GPT-NeoX architecture. It incorporates Rotary Positional Embeddings (RoPE) (Su et al., 2024) and computes attention and multilayer perceptron (MLP) blocks in parallel. It uses the NeoX BPE tokenizer with 50,304 subword units. Pythia was trained on The Pile, a highly curated dataset that includes a high density of academic text, biomedical literature, and formal prose.
TinyLlama: TinyLlama adopts the Llama-2 architectural framework, featuring Grouped-Query Attention (GQA) (Ainslie et al., 2023), SwiGLU (Shazeer, 2020) activation functions, and RMS Normalization. It utilizes a SentencePiece-based tokenizer with a compressed vocabulary of 32,000 tokens. The model was pre-trained on a combination of SlimPajama (deduplicated web data) and StarCoder (source code).
Qwen: This one utilizes a modern Transformer architecture that also features RoPE, SwiGLU, and RMSNorm, but is distinguished by its byte-fallback BPE tokenizer with a vocabulary of 151,643 tokens. Unlike the other English-centric models, Qwen was pre-trained on a diverse, massive-scale multilingual web corpus.
F Implementation Details for Reproducibility
F.1 Execution Platform and Hardware
All experiments were run in Kaggle notebooks using a runtime provisioned with two NVIDIA Tesla T4 GPUs (16 GiB VRAM per GPU). The main scoring notebooks checked CUDA availability at runtime and selected the GPU when available; GPU inference used FP16 model weights, with FP32 specified as the CPU fallback. The primary four-model pipeline loaded and evaluated one checkpoint at a time, then released the model and cleared the CUDA cache before loading the next checkpoint. It used inference-only execution and did not fine-tune model weights. Although the allocated runtime had two T4 GPUs, the primary four-model scoring code moved each model to the default CUDA device rather than explicitly sharding these models across both GPUs. Internet access was enabled in Kaggle for retrieving public Hugging Face checkpoints and the compression reference text when they were not already cached.
F.2 PDF Processing and Data Handling
PyMuPDF (imported as fitz) was used to extract text, page counts, layout blocks, and document metadata from the poetry and academic PDF collections. The project-specific Python code handled reading-order reconstruction, paragraph and stanza identification, heading and caption filters, and source-level chunk manifests. The academic-paper pipeline used SHA-256 hashes to identify exact duplicate PDFs and recorded input validation results before scoring. NumPy and pandas were used to maintain the chunk-level records, source-level summaries, and tabular manifests.
The main cross-model runs used 28 poets and 29 academic papers. Chunk text was passed unchanged in case and with tokenizer-added special tokens disabled. The saved run records include source and chunk identifiers, token and character counts, scoring status, context length, and the model revision when provided by the Hugging Face configuration. The paper-analysis notebook expected exactly 29 unique readable PDFs and stopped if the validated count differed.
F.3 Language-Model Inference
The language-model interface was provided by Hugging Face Transformers through AutoTokenizer and AutoModelForCausalLM; PyTorch performed the forward passes and loss calculations. The following public checkpoint identifiers were used in the primary four-model comparison.
| Model | Checkpoint identifier |
|---|---|
| GPT-2 | gpt2 |
| Pythia-410M | EleutherAI/pythia-410m |
| Qwen2.5-0.5B | Qwen/Qwen2.5-0.5B |
| TinyLlama-1.1B | TinyLlama/TinyLlama-1.1B-Chat-v1.0 |
Table 5: Language-model checkpoints used in the experiments. All models were used for language model scoring purpose.
The scoring code used PyTorch inference mode and a stride of 512 tokens, with the usable context length inferred from the tokenizer and model configuration. Models were loaded with remote-code execution disabled. The scorer emitted bits per character (BPC), bits per token, token counts, and character counts for each chunk; the source-level output also retained the scoring status and contextual metadata needed for auditing. No autoregressive text generation was used for the primary scores.
F.4 Compression-Based Baselines
The supplemental compression-baseline notebooks used the Python standard-library implementations of DEFLATE, LZMA, and bzip2, together with the third-party zstandard package for Zstandard compression. The compressor settings used in the code are summarized in Table 6.
| Baseline | Implementation setting |
|---|---|
| Plain DEFLATE | zlib; raw DEFLATE stream, level 9 |
| Plain LZMA | lzma; raw LZMA2 stream, preset 9 with the extreme preset |
| Plain bzip2 | bz2; compression level 9 |
| Plain Zstandard | zstandard; compressor level 19 |
| Primed DEFLATE | Difference between compressed reference-plus-chunk size and compressed reference size, using raw DEFLATE level 9 |
| Primed LZMA | The analogous size difference using raw LZMA2, preset 9 with the extreme preset |
Table 6: Compression implementations and settings used as non-neural baselines.
The primed baselines used an 80,000-character prefix taken from the body of The Adventures of Sherlock Holmes, Project Gutenberg eBook 1661. The text was retrieved with requests, saved to the notebook's working directory, and encoded as UTF-8 before compression. Compressed byte lengths were converted to bits and normalized by the number of text characters, rather than by the number of UTF-8 bytes. The compression runs reused the four language-model checkpoint identifiers listed in Table 5 to provide a common set of source chunks for the two types of baseline.
F.5 Numerical Analysis, Correlations, and Outputs
NumPy was used for histogram construction and numerical moment calculations; the Freedman–Diaconis rule was requested through numpy.histogram_bin_edges. For the binned source-level summaries, the proposed bin count was capped to the range 8–30, and the saved outputs retained the nonempty bin centres and their frequencies. Pandas was used to reshape and export the resulting tables. SciPy's statistical functions supplied the pairwise Spearman rank correlations, Kendall and Pearson correlations. Matplotlib was used for figures.
The compression-baseline notebook calculated both raw-chunk and binned-distribution moments. Its comparison of average language-model-language-model correlations against compressor-language-model correlations used 5,000 source-level bootstrap resamples, configured with random seed 20261012, to form percentile intervals for the difference between the averages. The notebook also exported the pairwise correlations and diagnostic tables for the source-level associations involving mean BPC, variance, and chunk length.
F.6 Library and Runtime Versions
Table 7 records the software versions available from the saved notebook metadata and printed run output. Where the notebooks did not capture an exact installed version, it is identified as unrecorded rather than inferred from a different environment.
| Component | Version |
|---|---|
| Python (analysis / compression) | 3.13.15 / 3.10.0 |
| PyTorch | 2.11.0+cu128 |
| PyMuPDF | 1.28.2 |
| Transformers | (constraint) |
| NumPy, pandas, SciPy | Not recorded |
| Matplotlib, Accelerate | Not recorded |
| Zstandard, requests | Not recorded |
Table 7: Software versions recorded in the notebooks.
The saved notebooks do not pin every dependency or record a complete pip freeze for each Kaggle session. Consequently, the exact versions of the unrecorded packages, as well as the NVIDIA driver version, cannot be established reliably from the available run artifacts.