Computing · AI-LLM

Erratum: Predicting How Transformers Attend §5.2 Theorem 5.2 — Heat capacity coefficient at γ=1

Carles Marín Muñoz

DOI 10.5281/zenodo.19986818Apache 2.0

Transformers & LLM How Transformers Attend

Abstract

SUPERSEDED (2026-05-20): The correction described in this erratum (C_V(gamma=1,N)=(log N)^2/12 in Thm. 7.1) has been incorporated directly into the corrected paper. See "Predicting How Transformers Attend", Version 3 (corrected), concept DOI 10.5281/zenodo.19826342. This standalone erratum is retained for the record but is no longer needed.

# Erratum — Predicting How Transformers Attend §5.2 Theorem 5.2   =========================================================
**Author**: Carles Marín — `[address removed]` **Date**: 2026-05-02 **Original paper**: [Marín 2026, Predicting How Transformers Attend (Zenodo 19826343)](https://doi.org/10.5281/zenodo.19826343) ==========================================================   ## TL;DR
§5.2 Theorem 5.2 of the paper states
> C_V(γ=1, N) = (log N)² / 4
and the correct asymptotic large-N coefficient is 1/12, not 1/4:
> C_V(γ=1, N) → (log N)² / 12 as N → ∞
The error is **a factor of three**. It originates in the truncation of the partition-function expansion at first order in (1−γ), missing a quadratic term that contributes the correction.
The qualitative conclusion of §5.2 (C_V finite at finite N, sharp in N → ∞) is **unaffected**. The TAF Agent diagnostic tool ([HF Space](https://huggingface.co/spaces/karlexmarin/taf-agent)) computes C_V via numerical derivative of U(γ), not via the analytic formula, and therefore returns the corrected value automatically.
## Where the proof goes wrong
The original proof retained only the linear term in (1−γ) of the Z expansion. Including the quadratic term:
Z(γ, N) ≈ log N [1 + ((1−γ)log N)/2 + ((1−γ)² (log N)²)/6]
gives, after taking log Z and differentiating:
U(γ) = (log N)/2 + (1−γ) ((log N)²)/12 + O((1−γ)²)
so that
C_V(γ=1, N) = −γ² dU/dγ|_(γ=1) = ((log N)²)/12.
## Independent confirmation
The same result follows immediately from the cumulant identity C_V(γ) = γ² Varₚ(log d) for p ∝ d^(−γ). At γ=1:
Var(log d) → ((log N)²)/3 − ((log N)²)/4 = ((log N)²)/12.
## Triple-system numerical verification
| System | Method | Result | |---|---|---| | Sócrates / NumPy | Direct discrete Varₚ(log d), N=10⁴ | C_V = 7.89 ; ratio to (log N)²/4 = 0.37 | | Sage docker | Exact rational arithmetic for N ∈ {10, 50, 100} | ratio/12 → 1 from above ; ratio/4 → 1/3 | | SymPy | Symbolic integration of cumulant identity | Var(log d) = (log N)²/12 exactly |
Three independent computer-algebra systems agree. The hand-derivation above produces the same coefficient.
## Impact
| Item | Affected? | |---|---| | §5.2 qualitative conclusion (crossover, not divergence) | No | | §5.2 numerical example N=2000 → 14.4 | Yes — corrected value ≈ 4.81 | | §5.3 Fisher–metric identity I = C_V/γ² | No | | §3.3 Padé formula for γ | No | | §4 MaxEnt power-law derivation | No | | §6 critical-layer formula | No | | §7 KV-compression theorems | No | | §8+ attention grammar / RLHF / fingerprinting | No | | TAF Agent (`heat_capacity_Cv`) | No (uses numerical derivative) |
The corrected value ∼ (log N)²/12 ≈ 4.81 at N=2000 is **closer to the empirical broad-peak measurement of 6.86** at γ ≈ 1.235 reported in the paper, removing the previously unexplained factor-3 discrepancy between theory and the paper's own measurement.
## How the error was caught
This erratum was generated by the **Sócrates Audit Framework**, a methodology for self-falsifying scientific claims, applied recursively to its own author's published work. The framework's three-stage algebraic / numerical / triangulation workflow flagged the §5.2 claim within minutes of being run on the paper. It is the framework's first published real-world impact.
The full audit log, the Sage script that triangulated the result, and the SymPy symbolic derivation are reproducible from the framework's repository.
------------------------------------------------------------------------------------------------------------
**Related fix**: TAF Agent v0.5.3 (KV-compression bug for Phase B models, simultaneous deploy) **Contact**: `[address removed]`

Full text

Read the PDF (277 kB)

Identical to the file erratum_paper1_cv_hagedorn_2026-05-02.pdf of the Zenodo record (same MD5 checksum).

Cite

Carles Marín Muñoz, Erratum: Predicting How Transformers Attend §5.2 Theorem 5.2 — Heat capacity coefficient at γ=1. Zenodo, 2026. doi:10.5281/zenodo.19986818

BibTeX
@misc{Carles2026erratum,
  author    = {Carles Marín Muñoz},
  title     = {Erratum: Predicting How Transformers Attend §5.2 Theorem 5.2 — Heat capacity coefficient at γ=1},
  year      = {2026},
  publisher = {Zenodo},
  doi       = {10.5281/zenodo.19986818},
  url       = {https://doi.org/10.5281/zenodo.19986818}
}