Quantifying Meaning with SCAPE-T: Semantic Complexity from Encoder-Only Transformer Attention
Organizations: EECS, Queen Mary University of London, London, United Kingdom
Abstract
Automated semantic complexity estimation remains underexplored in NLP, despite important applications in linguistics and interpretability. This paper defines semantic complexity as the code length required to uniquely specify a text's semantic meaning, and operationalises it via SCAPE-T, an attention-derived metric based on encoder-only transformers. Existing measures either model reader effort (readability, lexical difficulty), which correlates with surface features (word length, syntax), or quantify surface features directly (type-token ratio, word frequency). SCAPE-T targets semantic integration directly by combining three submetrics: (i) inverse-weighted self-focus (token-to-self), (ii) CLS focus (token-to-CLS), and (iii) inter-head redundancy (cosine similarity across heads), using layer-weighted aggregation; data-driven learning is confined to hyperparameter tuning for calibration. Development uses philosophical prose vs. MCTest stories; evaluation is on children's stories vs. technical Wikipedia articles, with pairwise accuracy on contrasts as the primary criterion. Baselines include readability, syntactic/lexical, and LLM-derived measures. SCAPE-T substantially outperforms all tested baselines under word-length control, with a pairwise accuracy of 78.5% (95% bootstrap CI: 76.1-80.4, N=10k pairwise comparisons; +12.7 percentage points over the strongest baseline); without that control, readability heuristics overtake, consistent with their reliance on surface features. On a short-terms abstractness dataset, SCAPE-T also leads. Ablations show each submetric contributes materially. Overall, the results show SCAPE-T isolates conceptual structure from lexical/syntactic confounds better than existing methods, and generalises across two held-out domains.
Figures & tables
| Name | Role |
|---|---|
| Exponent on redundancy in ( 7 ) | |
| Exponent on CLS focus in ( 7 ) | |
| Exponent on in ( 6 ) | |
| Exponent on in ( 6 ) | |
| Length normalisation exponent in ( 7 ) | |
| Inverse-weighting scale in ( 8 ) |
| Metric | WLC Test | Test | Abstractness |
|---|---|---|---|
| SCAPE-T | 78.5 | 85.1 | 82.3 |
| Lexicon complexity | 65.8 | 94.3 | 74.4 |
| Flesch–Kincaid | 59.5 | 93.1 | 78.9 |
| Type–Token ratio | 56.4 | 61.7 | 50.0 |
| MDL (bits/byte) | 52.0 | 34.1 | 26.7 |
| Zipf frequency | 47.9 | 85.4 | 54.6 |
| Ablation | Pairwise Acc. (%) | from base (pp) |
|---|---|---|
| Baseline | 88.80 | |
| No head redundancy ( ) | 88.76 | |
| No self-focus penalty ( ) | 84.20 | |
| Uniform layer weights ( ) | 58.62 | |
| No CLS focus ( ) | 57.42 |
| Ablation | Pairwise Acc. (%) | from base (pp) |
|---|---|---|
| Baseline | 82.32 | |
| No self-focus penalty ( ) | 81.04 | |
| No head redundancy ( ) | 80.25 | |
| Uniform layer weights ( ) | 76.29 | |
| No CLS focus ( ) | 64.60 |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Abbrev. | Meaning |
|---|---|
| NLP | Natural Language Processing |
| [CLS] | BERT classification token |
| [SEP] | BERT separator token |
| LLM | Large Language Model |
| MDL | Minimum Description Length |
| LSA | Latent Semantic Analysis |
| Parameter | Search range |
|---|---|
| 0.03.0 | |
| 0.03.0 | |
| 0.03.0 | |
| 0.03.0 | |
| 0.01.0 | |
| 0.15.0 |