Baselines¶
A method that spectral-trust offers as a baseline is ported from its authors' released code and checked numerically against that code, in a committed test. It is not reimplemented from a paper's text. This page lists the state of each baseline. Status as of 15 November 2026.
Geometry of Reason (reference features)¶
features.geometry_of_reason(attentions, hidden_states) returns the five
per-layer features of Noël (arXiv 2601.00791): fiedler_value, energy,
smoothness, entropy and hfer, on the symmetric normalised Laplacian of
symmetrised, head-averaged attention.
- Check. The computation is the paper's released code
(vcnoel/geometry-of-reason,
scripts/core/run_experiment.py), frozen: on four stored cases it is bit-identical to the original (tests/test_gor_reference.py). - Options.
normalization="rw"reproduces the first released run, andnormalization="none", eigen_solver="dense", hfer_cutoff_ratio=0.5gives the combinatorial variant.arpack_seedfixes the solver's start vector above 50 tokens.
LapEigvals¶
Binkowski, Janiak, Sawczyn, Gabrys and Kajdanowicz, EMNLP 2025 (arXiv 2502.17598).
- Official code.
graphml-lab-pwr/lapeigvals
(commit
74f885c). - Status. Not included yet. spectral-trust ports baselines only from the authors' released code with their agreement and a numerical check against it, and that is in progress.
- What it computes. Per layer and head, the diagonal of
L = D − AwithD_jj = (Σ_i A_ij)/(T − j), the mean attention that token j receives (hallucinations/features/attention_weights.py).Lis lower-triangular, so this diagonal is its spectrum. The values are sorted in decreasing order and the top k (5 to 100) are fed to a probe: PCA to 512 dimensions, then logistic regression on a stratified 80/20 split.
SinkProbe¶
Binkowski, Adamczewski and Kajdanowicz, ICML 2026 (arXiv 2604.10697).
- Official code.
graphml-lab-pwr/sink-probe
(commit
8108351). - Status. Not included yet, for the same reason as LapEigvals.
- What it computes. Per layer and head, the sink score of each token j
is
(Σ_i A_ij)/(T − j)(hallucinations/features/sink_scores.py). The scores are sorted, and the top k (1 to 100) are fed to a logistic regression under stratified 5-fold cross-validation. The released feature code applies no value-norm weighting; the paper's value-norm result is an analysis of the probe. - Relation to LapEigvals. The SinkProbe score of token j is the
LapEigvals value plus
A_jj.
spectral-trust's features.sink_mass is the mean attention to one token from
the queries after it, without that token's own row. value_weighted_sink
multiplies it by ‖W_O^h v^h_sink‖. Neither is a SinkProbe feature. To
compare with LapEigvals or SinkProbe, run their pipelines unmodified from
their repositories, on the same model outputs.