Manuscript Offprint

arXiv:2610.17040

Beyond Model Bias: Cross-Entropy Based Rankings in Literary and Academic Texts Remain Stable across Small Language Models

Ankit Bhattacharjee, Indrasabarna Hari, Krityapriya Bhaumik, Arka Das, Piyush Sarangi

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 ( ρ>0.90\rho > 0.90) 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 ∼\sim 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.

References (26)

  • Qwen Technical Report
  • Association for Computational Linguistics
  • GLU Variants Improve Transformer
  • Peiyuan Zhang, Guangtao Zeng, Tianduo Wang, and Wei Lu. 2024. TinyLlama: An open-source small language model. arXiv preprint arXiv:2401.02385. (opens arXiv in a new tab)
  • The chunking algorithm adheres to the following rules:
  • 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 extraction follows these parameters:
  • All chunks extracted from a single research manuscript are binned into a dedicated frequency histogram
  • Let $h_{i,j} = H^{(M_k)}(c_{i,j})$ denote the cross-entropy of the j-th chunk from source i under language model $M_k$
  • For any pair of rank vectors $R^{(M_k)}$ and $R^{(M_l)}$, Kendall’s $\tau$ is defined as:
  • The intervals quantify uncertainty in the estimated cross-model rank correlations
  • Mean BPC exhibits consistently high rank agreement across models
  • Primed variants (deflate, LZMA) compress a neutral English reference text $R$ concatenated with the chunk, and the chunk’s cost is the size of $R$+chunk minus the size of $R$ alone
  • $\dagger$ : interval contains zero
  • Because these models span distinct generational architectures and training domains, their convergence on stylometric rankings is not an obvious consequence of shared design principles
  • It utilizes a SentencePiece-based tokenizer with a compressed vocabulary of 32,000 tokens
  • Unlike the other English-centric models, Qwen was pre-trained on a diverse, massive-scale multilingual web corpus
  • The project-specific Python code handled reading-order reconstruction, paragraph and stanza identification, heading and caption filters, and source-level chunk manifests
  • Chunk text was passed unchanged in case and with tokenizer-added special tokens disabled
  • The following public checkpoint identifiers were used in the primary four-model comparison
  • Models were loaded with remote-code execution disabled
  • The compressor settings used in the code are summarized in Table 6
  • The text was retrieved with requests, saved to the notebook's working directory, and encoded as UTF-8 before compression
  • 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
  • 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
  • Where the notebooks did not capture an exact installed version, it is identified as unrecorded rather than inferred from a different environment