Higher-order Comparisons of Sentence Encoder Representations
Paper · 2019 · Mostafa Abdou, Artur Kulmizev, Felix Hill et al.
Summary
A sentence can be difficult for a person to read and difficult for a language encoder to represent consistently. But how could researchers compare those difficulties when the evidence looks so different? An eye tracker records reading behavior, while an encoder produces numerical representations. “Higher-order Comparisons of Sentence Encoder Representations” approaches this problem by comparing relationships among sentences rather than trying to align the original measurements directly. Its central question is whether sentences that demand more reading effort also occupy less consistent positions across an encoder’s layers or across different encoders.
The method is Representational Similarity Analysis, usually abbreviated RSA. Each representation source first describes how dissimilar every sentence is from every other sentence. Researchers then compare these patterns of dissimilarity. Two sources can therefore agree about the organization of a sentence collection even when their original measurements have different dimensions and meanings. The paper extends this comparison into a sentence-level analysis: it measures how consistently different layers place each sentence relative to the rest of the collection, then relates that consistency to human fixation durations. This makes RSA a tool for interpretability that complements tests of what information a trained classifier can recover.
The experiments use the English Dundee eye-tracking corpus, containing measurements from 10 native readers processing 2,368 sentences drawn from 20 newspaper articles. The authors examine pretrained BERT-large and ELMo, obtaining a sentence representation from each layer by averaging its word representations. They compare the resulting sentence relationships within BERT and between BERT and ELMo. Human reading difficulty is represented through average total fixation duration and average first-pass duration. Additional measurements describe word frequency, lexical ambiguity, and syntactic complexity.
The strongest reported associations are substantial. For BERT layers B11–B12, the correlation between representational agreement and total fixation duration is -0.88; its correlation with first-pass duration is -0.87. For the cross-encoder pairing E2–B23, the corresponding values are -0.66 and -0.67. The negative signs matter: the reported quantity measures agreement, so longer fixations accompany lower agreement. Syntactic complexity, measured through Yngve scores, also has a strong relationship with fixation duration, while average word frequency has a weaker relationship and average dictionary sense counts have almost none. Comparisons across BERT layer groups give modest support to the view that intermediate layers are especially sensitive to syntax.
The contribution is an observational comparison, not a new reading predictor or a demonstration that an encoder processes language as a person does. The authors show that representational instability and human reading difficulty vary together in this setting, although the encoders were not trained to reproduce eye movements. RSA supplies a common language for studying that correspondence. It does not establish that disagreement causes reading difficulty, that every difficult sentence has a damaged representation, or that a strong correlation identifies the same underlying computation in people and encoders.
Interesting ideas
Compare relationships before aligning coordinates. Different measurement systems may have no meaningful feature-by-feature correspondence. Their relationships among shared observations can still be comparable. RSA works by moving the comparison to that relational level: each source describes which sentences resemble one another, and those descriptions become the objects of analysis. This is useful whenever researchers want to compare heterogeneous representations, including symbolic structures, behavioral measurements, and numerical encodings, without pretending that their individual components mean the same thing.
Keep local disagreement visible. A single similarity score for an entire representation space can conceal the observations responsible for agreement or divergence. The paper instead compares corresponding rows of dissimilarity matrices, preserving a separate value for each sentence. That makes it possible to ask whether particular kinds of sentences produce unstable relationships. The same idea applies to parser comparisons, retrieval diagnostics, and dataset auditing: retain an observation-level profile before reducing everything to an aggregate.
Use an independent behavioral reference. Agreement between computational systems may reveal a shared tendency, but its significance becomes clearer when related to a separately measured phenomenon. Here, eye movements provide an external reference that was not the encoders’ training target. This does not turn correlation into explanation, but it helps distinguish an internally interesting pattern from one associated with human behavior. Elsewhere, the reference might be an independently collected judgment or another outcome whose connection to the representation is explicitly investigated.
Separate information recovery from representational organization. A classifier can establish that a representation supports a distinction without showing how strongly that distinction structures the surrounding space. Perfect classification can also hide differences between separations that are easy and those that are even easier. RSA asks a different question about relative geometry. Evaluations benefit from keeping these questions apart: whether information can be extracted, how observations are arranged, and whether that arrangement corresponds to another source of evidence.
Test a proposed explanation through competing features. The authors do not stop after finding a relationship between fixation duration and layer agreement. They also examine frequency, sense counts, and syntactic complexity, allowing their original intuition to meet more specific evidence. The result is uneven: syntax appears informative, while the particular ambiguity measure does not. This is reusable in error analysis and evaluation design, where a plausible verbal explanation should be broken into measurable alternatives rather than treated as confirmed by an overall association.
Check the structure of the comparison itself. Layer groups differ in their positions and in whether their members are adjacent. The paper examines these factors separately instead of assuming that an apparent middle-layer effect must concern syntax alone. This is a general lesson for comparative analysis: a result about one property may partly reflect how comparisons were selected. Explicitly testing a plausible competing factor makes the interpretation more precise, even when the analysis does not settle every possible explanation.
Deep dive: Higher-order Comparisons of Sentence Encoder Representations
How representational similarity analysis connects sentence encoder disagreement with human reading difficulty, and what the correlations establish. · about 36 minutes to read
How Mova uses it
Mova is a small, transparent language system written in Rust. Its native language path builds dependency trees, reads them into frames, and maintains a world from which it answers questions. Its preference for explicit rules and statistics makes the paper relevant primarily as a source of evaluation methods. RSA does not require Mova to adopt a neural language core. It suggests ways to compare what different representations preserve, where they diverge, and whether those differences matter for reading and answering.
The status marks below are proposals checked against documented mechanisms. They do not record a measured application of this paper. In particular, the available evidence does not establish that Mova already implements RSA, sentence-level relational agreement, or an eye-tracking comparison.
Idea: Compare representations through shared sentence relationships. Where: “Representational Similarity Analysis,” pages 2–3. Area: evaluation and mathematics. Mova: нове. Mova could construct separate dissimilarity descriptions for dependency trees, pragmatic frames, and retained world observations, then compare those descriptions over the same sentences. The distances would need explicit definitions appropriate to each representation; the paper supplies the comparison framework rather than those definitions. Why Mova: this could reveal whether different native stages preserve compatible distinctions without forcing their internal structures into a common vector format.
Idea: Retain a relational consistency value for each sentence. Where: “RDMs,” page 4. Area: evaluation and diagnostics. Mova: нове. Rather than reporting only an overall agreement score between representations, a Mova experiment could preserve a sentence-level comparison of its relationships to the rest of a fixed collection. This would identify examples whose treatment changes substantially between a tree-based view and a frame-based view. Why Mova: local diagnostics could direct investigation toward specific representation failures rather than leaving an aggregate discrepancy unexplained.
Idea: Use behavioral measurements as an independent comparison target. Where: “Eye-tracking data,” pages 3–4. Area: evaluation and psycholinguistics. Mova: нове. A research experiment could compare Mova’s documented difficulties with separately licensed human reading measurements on matching text. The paper does not show that fixation durations predict Mova’s failures, and no such result is established in the current evidence. Why Mova: an external reference could test whether native difficulty indicators correspond to a meaningful property beyond agreement among Mova’s own components.
Idea: Distinguish recoverable information from representational structure. Where: “Understanding and analysing language encoders,” page 2. Area: evaluation. Mova: частково є (school assessment and the fast-reader analysis). Mova already evaluates answers and examines representation-related misses. A complementary relational analysis could ask how sentences are organized even when their final answers are correct. Why Mova: correct outputs can conceal changes in internal distinctions, while an incorrect answer alone may not identify which stage lost the relevant information.
Idea: Break an intuitive explanation into separate measurable features. Where: “Syntactic complexity, word frequency, and lexical ambiguity,” page 4. Area: statistics and error analysis. Mova: частково є (fast-reader miss classification and rule-specific audits). Mova could test whether disagreement varies with explicit syntactic properties, source-indexed frequency, or reviewed sense distinctions instead of assigning a broad label such as difficult language. Why Mova: this would turn an attractive explanation into competing hypotheses and make negative findings useful rather than treating them as missing detail.
Idea: Separate a comparison factor from a plausible confound. Where: “Discussion,” pages 4–5. Area: statistics. Mova: частково є (held-out comparisons and negative controls described in the assessment principles). The paper’s layer-group and adjacency analysis suggests checking whether an apparent effect of a rule family instead follows from comparison selection or another shared condition. The appropriate factors would depend on the Mova experiment. Why Mova: explicit competing explanations would make a claimed improvement or diagnostic pattern easier to assess.
Idea: Keep representation comparison separate from witness admission. Where: the contrast between RSA and diagnostic classification, pages 2–3. Area: annotation and evidence management. Mova: частково є (treeagree and its UD validation gates). Mova’s agreement tooling already records parser evidence and admits edits through structural checks. An RSA experiment could describe broader similarities among witnesses, but it should not replace the rules deciding whether a particular edit is admissible. Why Mova: relational resemblance may help diagnose witnesses while remaining a different kind of evidence from a justified token-level correction.
Idea: Compare symbolic and numerical observations without claiming equivalence. Where: the discussion of earlier RSA applications, page 2. Area: mathematical modeling and interpretability. Mova: частково є (source-bound groupants and typed correspondence tooling). Mova could document a relational comparison as a bounded observation with an explicit distance definition and domain. A finite match would remain evidence about that comparison, not proof that the underlying systems are interchangeable. Why Mova: this fits the existing requirement that correspondences state what they compare and what their evidence establishes.
Idea: Treat the reference collection as part of the measurement. Where: the explanation of sentence-specific layer disagreement, page 3. Area: data and evaluation. Mova: нове. A sentence’s relational profile depends on the other sentences against which it is compared. A Mova diagnostic should therefore identify the exact reference collection and keep it fixed when comparing revisions. Why Mova: otherwise a changed consistency score could reflect a changed collection rather than a changed parser, frame reader, or world representation.
Idea: Make aggregation choices explicit. Where: “Eye-tracking data” and “Pretrained encoders,” pages 3–4. Area: data processing. Mova: частково є (source fingerprints and versioned corpus handling). The paper averages reader measurements and word representations before analysis. An analogous Mova comparison should record which observations are pooled, which are excluded, and what information the aggregation discards. Why Mova: reproducible summaries require more than preserving input text; they also require preserving the procedure that turns detailed observations into comparable units.
Idea: Preserve early and later behavioral measurements separately. Where: “Eye-tracking data,” pages 3–4, and Table 1. Area: evaluation design. Mova: нове. The paper keeps total fixation and first-pass duration distinct. Mova could similarly report initial extraction and later checked interpretation as separate observations when a workflow revisits a sentence. This is an analogy, not a claim that Mova stages correspond to human reading phases. Why Mova: combining initial and revised behavior could hide whether a method succeeds immediately or only after another explicit processing step.
Idea: Normalize sentence-level summaries deliberately. Where: the sentence aggregation procedure, page 4. Area: data and statistics. Mova: нове. A diagnostic based on counts of unknown concepts, unresolved links, or parser disagreements could report both the original count and a length-sensitive summary, with the exact choice declared. The paper’s averaging procedure motivates attention to the unit of measurement but does not validate a particular Mova normalization. Why Mova: longer input naturally offers more opportunities for events to occur, so an unexplained aggregate may confuse amount of text with processing difficulty.
Idea: Audit what correlation distance removes. Where: the correlation-distance equation, page 3. Area: mathematics. Mova: нове. If Mova uses correlation distance on numerical observation profiles, the experiment should explain why removing differences in average level and scale is appropriate. For some native indicators, absolute amounts may carry essential meaning. Why Mova: adopting a distance because it enables comparison is insufficient unless the invariances it introduces fit the question being asked.
Idea: Use rank comparisons where relative organization is the target. Where: “RDMs” and “Third-order analysis,” page 4. Area: statistics. Mova: нове. Kendall’s τA and Spearman’s ρ offer possible tools for comparing relative patterns when coordinate equality is irrelevant. Mova would still need to specify ties, valid observations, and the interpretation of the resulting coefficient. Why Mova: rank-based comparisons could connect heterogeneous native diagnostics while avoiding an unsupported assumption that their raw scales are directly comparable.
Idea: Distinguish agreement from disagreement in stored results. Where: “Discussion,” page 4, and the captions of Figures 2–3. Area: statistics and reporting. Mova: частково є (typed observations and explicit failure outcomes). A Mova analysis should give separate names to similarity and its complement, retaining the sign convention alongside every result. Why Mova: the paper’s notation shows how easily a verbal claim about disagreement can become confused with a negative coefficient computed from agreement.
Idea: Avoid treating representational instability as a verified failure label. Where: “Fixation Duration and Encoder Disagreement,” page 3. Area: evaluation. Mova: частково є (native failures, consultant outputs, and admitted knowledge have separate boundaries). Mova could use a low consistency value to select an item for inspection, but not automatically call the item misunderstood. Why Mova: a representation can legitimately change between stages, and a diagnostic signal needs independent evidence before becoming an error judgment.
Idea: Inspect both within-system and between-system differences. Where: the hypotheses in the Introduction and the comparisons in Table 1. Area: architecture analysis. Mova: частково є (multiple parsing witnesses and native pipeline stages). Mova could compare revisions of one reader separately from comparisons between different readers. These answer different questions and should not be merged into one agreement score. Why Mova: divergence within a processing path may indicate a different problem from divergence between independent implementations.
Idea: Compare several processing stages rather than only neighboring ones. Where: Figure 2 and the all-layer analysis, pages 4–5. Area: evaluation design. Mova: нове. A native experiment could examine relationships across the tree, frame, and world stages as well as between successive revisions within a stage. Each comparison would need a compatible observation definition. Why Mova: an effect concentrated in one transition could disappear inside an end-to-end average, while a broad pattern might point to shared upstream evidence.
Idea: Treat selected best comparisons as exploratory findings. Where: the description of Table 1’s selected BERT pairs, page 4. Area: evaluation and selection bias. Mova: частково є (held-out gates and separately managed assessment data). Mova could use a development collection to discover promising diagnostic pairings and reserve another collection to evaluate them. Why Mova: the strongest comparison found by searching many alternatives is useful for hypothesis generation, but its value as a general diagnostic needs a separate test.
Idea: Correct inferential claims for multiple comparisons. Where: Table 1’s significance note, page 5. Area: statistics. Mova: частково є (paired testing and regression gates are documented, but this RSA analysis is not). A Mova study involving many representation pairs should declare its comparison family and correction procedure. Why Mova: extensive searching can produce apparently convincing associations, so the reporting should distinguish a descriptive pattern from a supported significance claim.
Idea: Keep effect magnitude separate from significance. Where: Table 1 and the layer-group analysis, page 5. Area: statistics and reporting. Mova: частково є (measured changes are reported alongside evaluation conditions). Mova could report the size and direction of a relational effect separately from whether a statistical threshold is met. Why Mova: a result can be statistically detectable while remaining too small, too unstable, or too narrowly scoped to justify an operational decision.
Idea: Retain a negative result about an appealing feature. Where: “Lexical Ambiguity and Word Frequency,” page 5. Area: lexical semantics and evaluation. Mova: частково є (the self-study journal retains unsuccessful experiments). The paper’s nearly absent sense-count association is a useful pattern for reporting rejected explanations. A Mova study should preserve an unsuccessful ambiguity measure rather than silently replacing it with a favorable one. Why Mova: failed operationalizations help distinguish what was tested from the broader linguistic concept a researcher hoped to measure.
Idea: Separate dictionary sense inventory from contextual ambiguity. Where: the WordNet feature definition, page 4, and its results, page 5. Area: dictionary design and lexical semantics. Mova: частково є (global sense selection and reviewed dictionary occurrence labels). Mova could compare a word’s available senses with the distinctions actually supported by its sentence context, keeping those observations separate. Why Mova: the number of recorded meanings is not itself evidence that a particular use leaves several meanings unresolved.
Idea: Use frequency as a diagnostic without promoting it into meaning. Where: the frequency feature and its discussion, pages 4–5. Area: lexicography and statistics. Mova: частково є (dictindex frequency counts and statistical proposals). Corpus frequency could help stratify relational disagreements or prioritize review, but it would remain occurrence evidence instead of an admitted definition or inference rule. Why Mova: this would extend the existing index’s diagnostic value while preserving the boundary between statistical patterns and reviewed lexical knowledge.
Idea: Seek converging measurements without calling them causal proof. Where: the joint interpretation of syntax, disagreement, and fixation, page 5. Area: reasoning and evaluation. Mova: частково є (explicit justifications and bounded correspondence claims). A Mova report could identify a shared pattern across structural complexity, native uncertainty, and answer failures while stating that their associations do not establish a causal chain. Why Mova: converging evidence can guide investigation without overstating which mechanism produced the outcome.
Idea: Keep exploratory diagnostics outside assessment answers and training gold. Where: the pretrained-encoder experiment and the distinction from explicitly predicting reading behavior, page 4. Area: data governance and evaluation. Mova: вже є (teacher-separated school assessment and reviewed training admission). An RSA-style analysis could inspect frozen outputs after inference while leaving assessment labels outside training. Why Mova: the comparison is most informative when the reference signal has not been allowed to shape the answers whose relationship to it is being measured.
Idea: Make the computational scope explicit before scaling the comparison. Where: the sentence-by-sentence RDM construction, page 4. Area: data engineering. Mova: частково є (bounded jobs, explicit budgets, and recorded worker outcomes). A proposed Mova implementation should record the sentence collection, representation sources, distance procedure, and resource budget before building relational matrices. Why Mova: a bounded diagnostic can be useful without implying that the same procedure has been demonstrated over every indexed corpus or deployed worker.
Idea: Preserve complementary evaluation methods. Where: the Introduction and Conclusion. Area: evaluation architecture. Mova: частково є (answer benchmarks, parser audits, controls, and explanation traces). Relational analysis should sit beside those measurements instead of replacing them. Why Mova: a representation can resemble another system’s geometry while answering poorly, and it can answer correctly while organizing irrelevant material differently; these outcomes require distinct evidence.
The problem and its context
The paper addresses a gap between asking what a representation contains and asking how it is organized. These sound like neighboring questions, but they lead to different experiments. A diagnostic classifier might recover a grammatical property from a sentence representation. A downstream benchmark might show that the same representation helps answer questions. Neither result directly describes which sentences the representation treats as similar or whether another representation draws comparable distinctions.
This matters when the comparison extends beyond one computational architecture. A hidden layer produces an activation pattern. A bag-of-words representation records a different kind of information. An eye tracker measures behavior. There is no obvious reason to align an activation coordinate with a word weight or a fixation measurement. Yet all these sources can respond to the same sentences. The authors want to exploit that common experimental basis without requiring the original measurements to share their format.
Their argument belongs to the broader effort to understand natural language understanding through interpretable evidence. They describe earlier research as asking which linguistic properties an encoder captures and whether its behavior reflects established linguistic distinctions. Much of this research, in their account, examines one encoder or one phenomenon at a time. The paper seeks a comparison that can cross encoders and measurement modalities while preserving something about their internal organization.
What earlier evaluations reveal
The authors distinguish several established strategies. One evaluates sentence representations through tasks performed with them. Their examples include supervised sentence representation learning, GLUE, and the Natural Language Decathlon. Such evaluations establish practical usefulness under the conditions of a task. Their results are valuable, but they do not directly align the geometry of different representation spaces.
Another strategy examines predictions on carefully designed linguistic material. The paper places work on syntax-sensitive dependencies, hierarchical generalization, and compositional generalization in this family. Here the researcher controls a phenomenon and asks whether the system responds appropriately. The target is behavior on a distinction, rather than the overall arrangement of observations.
A further strategy trains an auxiliary classifier on a representation. The authors cite fine-grained auxiliary prediction tasks and layerwise tagging analysis among this work. If the classifier succeeds under suitable assumptions, it indicates that the representation supports recovering the target property. This is a question about accessible information, and the authors regard it as complementary to their own question.
The paper’s criticism is therefore limited and specific. It does not argue that task evaluations, controlled tests, or diagnostic classifiers are useless. It argues that success on these tests is not a direct comparison of representational structure. Even a classifier that separates two categories perfectly leaves unresolved how that separation compares with another separation elsewhere in the representation space.
Why a ceiling can hide structure
Classification accuracy compresses a complex geometry into an outcome. Once a distinction is classified correctly at 100%, further changes in separation may leave that score unchanged. Two pairs of phenomena can therefore be equally distinguishable by the metric while occupying very different relationships in the representation. The authors also identify discretization as a limitation of such summaries.
RSA offers another level of observation. Instead of asking only whether sentences can be assigned to the correct categories, it asks how their pairwise dissimilarities compare. This preserves graded relationships that a decision boundary may conceal. A useful distinction remains: RSA is not a more accurate classifier. It is a different instrument for a different question.
The framework itself comes from neuroscience. The paper credits earlier work that sought to compare measurements such as brain activity and behavior in spite of differences in their original form. It also describes prior applications within language research, including comparisons across speech, text, and images; comparisons involving visual representations; and comparisons between sentence encodings and symbolic syntax.
These precedents establish that the authors are applying and extending a general comparison framework instead of inventing representational similarity analysis. Their specific contribution is to connect sentence-level representational consistency with reading difficulty and linguistic properties. The higher-order design makes that connection possible.
Why reading difficulty is the target
The motivating intuition is that unusual linguistic material may challenge both readers and encoders. The authors mention infrequent words, ambiguous vocabulary, and complicated syntax as possible sources. For a person, these properties may accompany longer fixations. For an encoder, they may accompany less stable relationships between a sentence and its surrounding collection.
That proposal is more specific than a general claim that people and machines both find language difficult. It predicts an observable relationship between a sentence’s behavioral measurements and the consistency of its relational representation. The experiment then asks whether the proposed relationship appears and whether the candidate linguistic features help explain its pattern.
The paper’s context is therefore both methodological and linguistic. It introduces a way to compare unlike representations, then uses that method to investigate whether their differences connect with a human processing measure. Neither part can be reduced to the other: the method has applications beyond eye tracking, while the behavioral finding depends on the particular data and representation choices used here.
The method, step by step
The analysis moves through several levels. It starts with sentence representations, converts them into pairwise dissimilarities, compares those dissimilarities across layers, and finally relates the comparison values to reading behavior. Keeping these levels separate is essential. A correlation inside a sentence representation is not the same object as a correlation between sentences, and neither is the final correlation with fixation duration.
From sentence representations to reading correlations
The steps in order.
Establish a shared collection of sentences
Every representation source must describe the same experimental conditions. In this study, those conditions are sentences from the English Dundee corpus. This shared collection supplies the basis for comparison. An encoder layer and an eye-tracking measurement need not have matching internal features, but their observations must refer to the same sentence units.
The authors rely on measurements collected as 10 native participants read a total of 2,368 sentences drawn from 20 newspaper articles. For the behavioral part of the analysis, they retain total fixation duration and first-pass duration as separate features. They do not combine these into a single general difficulty label.
For each feature, measurements are first averaged across participants at the word level. The authors then aggregate the word measurements for a sentence and divide by sentence length. This produces a sentence-level average instead of a total that simply accumulates over all its words. The result is a vector for each behavioral feature, with an entry corresponding to every sentence.
The order of aggregation is part of the procedure. Participant averaging produces a shared behavioral observation for each word, and sentence averaging changes the unit to the sentence. The final comparison is therefore between sentence-level summaries, not between the temporal sequence of a reader’s individual eye movements and the sequence of an encoder’s internal calculations.
Extract representations from encoder layers
The computational representations come from pretrained BERT-large and ELMo. The experiment examines their existing layers; it does not train a new encoder to reproduce the Dundee reading measurements. This distinction matters because the observed behavioral correspondence emerges without reading behavior serving as the training target.
At a particular layer, the encoder supplies representations associated with the sentence’s words. The authors average these word-level representations to obtain a sentence vector. This operation is mean pooling. It yields a common sentence-sized unit even when the original sentence contains a different number of words from its neighbors.
The procedure is simple, but its implications should remain visible. The analysis concerns the geometry of these pooled vectors. It does not separately test every word representation, and it does not establish that another pooling method would yield the same results. Mean pooling is the bridge chosen to move from contextual word representations to sentence-level comparison.
Layer names are abbreviated throughout the paper. E1 denotes ELMo’s lowest layer, while a name such as B11 identifies BERT’s corresponding numbered layer. These labels identify representation sources; they do not name separately trained reading predictors. Different layers provide different views of the same sentence collection.
Build a dissimilarity matrix for each layer
A representational dissimilarity matrix, or RDM, describes how far apart the experimental conditions are according to one representation source. For each pair of sentences, the authors compute a dissimilarity between their pooled vectors. The matrix collects all these pairwise values.
The paper uses N for the collection of experimental conditions and M for the representation methods. Its explanatory figure also uses H for the number of components in an activity pattern, meaning its dimensionality. These symbols separate the number of observations from the number of sources and from the size of an individual representation.
An RDM is symmetric when the dissimilarity measure treats a pair identically in either direction. Its diagonal contains zeros because each sentence is compared with itself. The paper describes an N × N structure; in the experiment, each layer’s matrix covers the full Dundee sentence collection.
The selected distance is correlation distance. Written with the grouping made explicit, the equation is:
d(nᵢ, nⱼ) = 1 − ((nᵢ − n̄ᵢ) · (nⱼ − n̄ⱼ)) / (‖nᵢ − n̄ᵢ‖₂ ‖nⱼ − n̄ⱼ‖₂)
Here nᵢ and nⱼ are the activity patterns representing the sentences being compared. The barred quantities n̄ᵢ and n̄ⱼ are their respective elementwise means, subtracted from each component of the associated vector. The dot denotes a dot product, and the double bars with subscript ₂ denote the Euclidean norm. The function d is the resulting dissimilarity.
The fraction measures correlation between the centered patterns. Subtracting that correlation from 1 turns a similarity into a distance-like quantity. The authors prefer this measure because the comparison normalizes differences in mean and variance. They identify Euclidean and Mahalanobis distances as alternatives, but do not report a controlled comparison of these choices in this experiment.
The normalization determines what the analysis emphasizes. It concerns similarity in the pattern across components rather than equality of their absolute levels. That is useful for comparing activity patterns, but it is still a substantive measurement decision. RSA supplies a framework; the choice of distance determines the relational structure entered into it.
Understand what an RDM row means
A row of the matrix describes a sentence in relation to the entire collection. It records that sentence’s dissimilarity to each other sentence under one layer’s representation. The row therefore acts as a relational profile.
This is the crucial abstraction. A sentence vector describes the sentence in the coordinates of one layer. Its RDM row describes the sentence through relationships to shared reference observations. Another layer may have different coordinates or dimensionality, but it can produce a row referring to those same sentences.
The reference collection is consequently part of the measurement. A sentence’s relational profile is not defined independently of its comparison set. The paper studies consistency within the Dundee collection, and its sentence-level agreement values should be understood on that basis.
A stable profile across layers means that the layers organize the sentence’s relationships similarly. An unstable profile means that the sentence changes its relational position. It does not necessarily mean that every component of its original vector changes greatly, nor does it directly establish an incorrect downstream answer.
Compare corresponding rows across layers
The next stage compares RDMs. In the general RSA account, similarities between dissimilarity matrices can be collected into a representational similarity matrix, or RSM. This is a second-order comparison because it compares relationships instead of the original activity patterns.
For the sentence-level experiment, the authors compare corresponding rows from a pair of layers’ RDMs. They use Kendall’s τA, following the methodological recommendation they cite. This is a rank correlation: it assesses correspondence in relational ordering instead of demanding identical raw distances.
Each sentence receives an agreement value for the layer pair. Collecting these values produces the vector written as V Corr Li−Lj in the paper. The subscripts identify the compared layers. Every entry describes how consistently those layers relate one sentence to the rest of the collection.
This preserves local variation that a single whole-matrix coefficient would hide. A layer pair can organize some sentences consistently and others inconsistently. The authors need that variation because their hypothesis concerns which sentences are difficult for humans, not merely whether two layers resemble one another overall.
The same procedure works within an encoder and across encoders. Within BERT, the two rows come from different BERT layers. In a BERT–ELMo comparison, they come from different systems. The common sentence collection makes both comparisons possible without direct coordinate alignment.
Keep agreement and disagreement separate
The paper defines layer disagreement as the complement of the agreement vector:
D(Lᵢ, Lⱼ) = 1 − V Corr Li−Lj
D(Lᵢ, Lⱼ) denotes sentence-level disagreement between layers Lᵢ and Lⱼ. V Corr Li−Lj is their sentence-level relational agreement vector, and the subtraction applies to each entry. Higher agreement therefore corresponds to lower disagreement.
This distinction is especially important when interpreting the reported coefficients. Table 1 states that it correlates fixation measurements with V Corr Li−Lj. A negative coefficient means that longer fixations accompany lower relational agreement. Expressed verbally through disagreement, the same finding says that more difficult reading accompanies greater divergence.
The paper sometimes uses the language of disagreement while retaining agreement notation. Its discussion and figure descriptions are not entirely consistent about this distinction. The most reliable interpretation keeps track of the defined quantity at each stage and reads the negative fixation coefficients as correlations with agreement.
Construct the candidate linguistic explanations
The authors also build sentence-level vectors for linguistic properties. These provide more specific tests of their motivating intuition. They are not used to retrain the encoders or to generate the fixation measurements.
The frequency feature is average word log frequency, obtained from the British National Corpus. Its purpose is to investigate whether sentences containing less familiar vocabulary contribute to the observed pattern. Averaging again makes the feature a sentence-level summary.
The ambiguity feature is the average number of senses per word, using WordNet. This is an inventory-based measure. It counts available lexical senses rather than directly determining which meanings are active or unresolved in each sentence.
The syntax feature is a Yngve score, which the authors describe as a syntactic-complexity measure motivated by cognitive load. The paper invokes this established measure but does not give a complete derivation or computational recipe. Its role in the experiment is to supply a structural complexity value for comparison with fixation and representational consistency.
These features operationalize separate possibilities. They do not exhaust everything that makes reading difficult. Their importance is that they make parts of the initial hypothesis testable without assuming that every plausible source of difficulty will behave alike.
Perform the higher-order behavioral comparison
The final stage uses Spearman’s ρ to correlate the sentence-level agreement vector with the behavioral vectors. The authors also correlate the linguistic feature vectors with fixation duration. This is their third-order analysis: relationships among representations have themselves become measurements whose relationships with behavior can be studied.
Kendall’s τA and Spearman’s ρ serve different stages. Kendall’s coefficient compares relational profiles between layers. Spearman’s coefficient then asks whether the resulting sentence ordering corresponds to the ordering supplied by fixation or a linguistic feature. Keeping their roles distinct prevents the final result from being mistaken for a direct correlation between encoder coordinates and eye movements.
Table 1 reports selected comparisons, while the heatmaps examine broader layer-pair patterns. The selection includes displayed cross-encoder pairs and BERT pairs chosen for strong fixation associations. The all-layer view is important because a selected maximum alone cannot show whether the pattern is widespread or concentrated.
The method finishes with statistical and interpretive analysis. It does not produce a new task-solving system, an optimized pooling mechanism, or a learned reading-time predictor. Its output is evidence about correspondences between sentence relationships and observed processing difficulty.
Experiments and results
The experimental resource is the English portion of Dundee. Its 2,368 sentences come from 20 newspaper articles, with eye movements collected from 10 native participants. The reported behavioral results concern sentence-level averages derived from those measurements. The paper does not describe a supervised train–development–test split for learning a reading predictor, because that is not the experiment being conducted.
The computational comparison uses pretrained BERT-large and ELMo, with mean-pooled sentence representations from their layers. There is no newly proposed encoder competing against a task baseline. Different layer pairs are the settings under comparison, and the principal outcome is Spearman’s ρ between a sentence-level relational agreement vector and a behavioral measurement.
Agreement across encoders and reading duration
The displayed BERT–ELMo comparisons all have negative fixation correlations. This means that the relationship patterns are less consistent for sentences associated with longer reading fixations. The strengths vary substantially across layer pairings, so the finding should not be compressed into one undifferentiated statement about cross-encoder similarity.
Dundee cross-encoder agreement versus total fixation duration
The displayed middle ELMo pairing has the strongest negative association.
The numbers
| System or setting | Spearman’s ρ between relational agreement and total fixation |
|---|---|
| E1–B22 | -0.46 |
| E2–B23 (this paper) | -0.66 |
| E3–B24 | -0.22 |
The star identifies the strongest negative association among the displayed settings. “Lower” here refers to the direction predicted by the hypothesis; it does not mean that negative correlation is a general-purpose quality score for an encoder.
For first-pass duration, E1–B22 has a coefficient of -0.46, E2–B23 has -0.67, and E3–B24 has -0.23. The first-pass pattern therefore supports the same qualitative interpretation as total fixation duration. It is not restricted to the measurement that includes the broader total fixation summary.
These results connect representational relationships across independently pretrained encoders with a human behavioral measure. They do not show that the encoders have identical representations or that either one reproduces the readers’ processing mechanism. The comparison concerns which sentences become relationally less consistent across the paired layers.
Strong associations within BERT
The selected BERT comparisons produce stronger negative coefficients. The authors identify these as the layer pairs with the strongest fixation relationships in their analysis. They should therefore be read as selected findings from a broader comparison space, rather than as independently validated settings for a reading predictor.
Dundee selected BERT agreement versus total fixation duration
The selected BERT pairs all show strong negative associations.
The numbers
| System or setting | Spearman’s ρ between relational agreement and total fixation |
|---|---|
| B11–B12 (this paper) | -0.88 |
| B12–B13 | -0.87 |
| B10–B21 | -0.87 |
For first-pass duration, the corresponding coefficients are -0.87 for B11–B12, -0.85 for B12–B13, and -0.86 for B10–B21. The similarity of the qualitative pattern across the behavioral summaries supports the authors’ claim that the relationship is not peculiar to only one fixation feature.
The B10–B21 pairing also matters conceptually. The reported association is not confined to neighboring layers. The broader heatmap analysis considers all combinations across BERT’s 24 layers, allowing the authors to inspect how the relationship changes with layer position and separation.
Linguistic features and fixation
The candidate linguistic features yield a more differentiated result than the original intuition alone would suggest.
| Sentence-level feature | Total fixation: Spearman’s ρ | First-pass duration: Spearman’s ρ |
|---|---|---|
| Average log word frequency | -0.20 | -0.19 |
| Average senses per word | -0.007 | -0.004 |
| Yngve score | 0.66 | 0.66 |
Higher average word frequency accompanies shorter fixations, but the association is weaker than the strongest reported layer-agreement associations. Yngve scores show a positive relationship with both behavioral measurements: greater measured syntactic complexity accompanies longer fixation durations.
The average number of senses per word is almost unrelated to fixation in this setup. Table 1 marks these sense-count coefficients as exceptions to its significance statement. The other reported table correlations meet p < 0.0001 after Bonferroni correction.
The result does not establish that ambiguity is irrelevant to reading. It shows that this particular sentence-level average of dictionary sense counts provides little association in the analysis. That distinction matters because the motivating concept and its operational measurement are not interchangeable.
The appendix supplies additional heatmaps for first-pass duration, sense counts, and log frequency. These complement the total-fixation and Yngve views in the main text. They broaden inspection across layer pairs, although they do not introduce a separate predictive evaluation or a new intervention.
What the ablations show
The paper does not report a conventional component-removal ablation; instead, it offers controlled comparisons across layer pairings, behavioral measurements, linguistic features, and layer-group factors.
These analyses are informative because the claim concerns a relationship rather than the performance of a newly assembled architecture. There is no proposed module whose removal would naturally define the main ablation. The central questions are whether the association persists under related measurements, where it is concentrated, and which candidate explanations fit it.
Layer position versus adjacency
The authors investigate whether the syntax-related pattern depends on where layers sit in BERT. They define low, middle, and high groups using the ranges [1, 8], [9, 16], and [17, 24]. They also define an out-of-group category through |i − j| > 7. This separates comparisons within broad regions from comparisons spanning more distant positions.
A plausible alternative explanation is adjacency. Neighboring layers may have a different relationship simply because they are close in the architecture, regardless of whether they belong to a syntactically informative region. The analysis therefore distinguishes adjacent from non-adjacent comparisons as another factor.
The reported analysis of variance finds a group effect at F(3, 275) = 78.47, with p < 0.0001. The group summaries are low, μ = 0.65 and σ = 0.08; middle, μ = 0.84 and σ = 0.03; high, μ = 0.80 and σ = 0.05; and out, μ = 0.80 and σ = 0.05. Neither adjacency nor its interaction with group is significant.
These are the group summaries as reported. Because the surrounding discussion sometimes switches between agreement notation and disagreement language, they should not be used to reconstruct an unreported signed coefficient for every category. The clear inferential result is that the authors detect a group effect while not detecting the proposed adjacency effect.
The authors interpret the middle-layer pattern as modest evidence that intermediate representations are especially sensitive to syntax. They connect this with Deep RNNs Encode Soft Hierarchical Syntax and BERT Rediscovers the Classical NLP Pipeline. The qualifier matters: the experiment observes a complexity-related pattern, rather than directly measuring every syntactic property encoded by each layer.
Separate fixation summaries
Keeping total fixation and first-pass duration apart is another useful comparison. If the relationship appeared only in the broader total measure, its interpretation could be narrower. Instead, the displayed layer pairs show negative associations with both.
This supports a repeated qualitative observation, but it does not establish complete independence between the behavioral measures. Both are derived from the same reading corpus. Agreement between their results therefore adds interpretive consistency without functioning as a replication on new participants or new material.
Different linguistic explanations
The feature comparisons resist a convenient but unsupported conclusion that all forms of linguistic difficulty explain encoder disagreement equally well. Syntax has a clear association with fixation in the reported measurements. Frequency has a weaker association. Average sense count contributes almost no corresponding pattern.
The authors also describe a moderate relationship between frequency and layer disagreement, while sense counts are nearly unrelated to both disagreement and fixation. The appendix provides the corresponding visual analyses. These findings refine the motivation: the broad intuition receives support, but its proposed ingredients do not receive uniform support.
The study does not remove syntactic complexity from the representation, manipulate lexical frequency while holding other properties fixed, or replace the ambiguity measure with competing contextual measures. Its analyses narrow the interpretation through comparisons, while leaving a causal explanation unresolved.
Limitations
The paper’s strongest conclusion is a correspondence under a particular measurement design. Several limits concern what the authors explicitly acknowledge or qualify. Others follow from the experimental setup and should be identified as a careful reader’s interpretation rather than attributed to the authors as stated reservations.
Limits the authors explicitly indicate
The authors present RSA as complementary to probing and decoding-based analysis. This is an important boundary. Their method is not offered as a universal replacement for evaluating whether information can be recovered, whether a system answers correctly, or whether a particular linguistic distinction is respected.
They also qualify the middle-layer syntax interpretation as modest support for earlier findings. A correlation with Yngve scores does not by itself identify the full grammatical content of a layer. The paper’s own wording leaves room between sensitivity to a complexity measure and a comprehensive account of syntactic representation.
The motivating explanation is likewise tentative. The authors suggest that shared linguistic factors may influence human processing demands and representational disagreement. Their evidence does not isolate one factor as the mechanism producing the entire relationship.
The lexical ambiguity result imposes another explicit boundary. The sense-count measure is nearly uncorrelated with the outcomes under discussion. The paper therefore does not support a uniform claim that its candidate features all explain the correspondence. Its negative result should remain part of the conclusion.
Correlation does not identify a processing mechanism
A careful reader should distinguish shared variation from shared computation. A sentence can lead to longer human fixations and lower encoder agreement without people and encoders performing the same operations. The study does not observe a direct mapping between the temporal stages of reading and the transformations inside a layer.
The fact that the encoders were not trained to predict reading behavior makes the correspondence interesting. It does not establish that the shared pattern has a single cause. Similarity can emerge when different processes respond to overlapping properties of the same material.
The experiment also does not intervene on disagreement. It cannot show that reducing disagreement would make a representation better, nor that increasing it would make a sentence harder for a person. These would require a different experimental design.
Disagreement is not an independently verified error label
The authors describe unstable similarity relationships as an indication of degraded representation. That is their interpretive proposal. The reported correlations do not independently verify degradation through sentence-level correctness judgments.
Layers may transform information for legitimate reasons. A sentence can change its relationships as different properties become emphasized. Without an external task-specific criterion, divergence alone cannot determine whether that transformation is harmful.
The behavioral association makes the diagnostic more meaningful, but it still does not turn every low-agreement sentence into a demonstrated failure. A useful next question would concern whether those sentences also produce errors on an independently defined task. The paper does not report that evaluation.
The relational profile depends on its comparison set
An RDM row describes a sentence relative to the other sentences in the corpus. Its interpretation is therefore collection-dependent. The same sentence compared against a different set could have a different relational profile.
The experiment establishes its findings within Dundee’s newspaper material. It does not demonstrate that the strongest pairings, coefficient sizes, or layer-group pattern will remain unchanged for another genre, language, or sentence collection. The paper’s methodological portability should not be mistaken for already measured portability of its numerical results.
This also affects the meaning of sentence difficulty. The agreement score is not an intrinsic sentence label detached from the representation source and reference corpus. It is a result of comparing a particular sentence under a particular relational setup.
Aggregation discards potentially important detail
Mean pooling reduces a sequence of word representations to one sentence vector. This makes the analysis manageable and matches the sentence-level behavioral summaries, but it removes distinctions in how individual words contribute over the sentence.
The fixation procedure similarly averages across participants and words. It does not preserve each reader’s full behavioral sequence in the final vector. The reported correspondence therefore concerns aggregated observations, not individual reading trajectories.
The paper does not compare pooling alternatives or report whether participant-specific analyses yield the same effects. These are limits of the demonstrated scope, not evidence that the chosen procedure is inappropriate.
Candidate features are incomplete operationalizations
Average dictionary sense count is a particularly clear example. It measures how many senses an inventory associates with words. It does not directly measure which senses the sentence activates or whether the reader experiences uncertainty among them.
As a consequence, a weak sense-count correlation cannot settle the broader question of contextual ambiguity. It may indicate that the phenomenon has little effect in this setup, that the aggregation loses relevant distinctions, or that the chosen measurement does not capture the relevant difficulty. The paper does not resolve among these possibilities.
Frequency and Yngve scores also summarize particular properties rather than exhausting reading difficulty. The reported associations identify useful patterns, but they do not form a complete explanatory account of why a person fixates longer on a sentence.
Selection and statistical significance have different roles
The strongest BERT pairs are selected from a larger comparison space. Their coefficients are valuable descriptions of what the analysis finds, but the paper does not report an independent held-out procedure establishing those pairs as general-purpose diagnostic settings.
Bonferroni correction addresses multiple-comparison significance as reported in Table 1. It does not turn selected associations into out-of-sample predictive performance. Nor does a small p-value identify a causal explanation.
The paper reports strong coefficients and significant group differences, but not a deployed reading predictor with separately evaluated generalization. Readers should preserve that distinction when comparing the work with studies whose primary objective is prediction.
Some reporting details require care
The text shifts between agreement and disagreement terminology while continuing to use the agreement-vector notation. This can reverse the apparent meaning of a sign if read casually. Table 1 is clearest when interpreted as correlating fixation with relational agreement: negative values indicate lower agreement for longer fixations.
The authors’ Earth Mover’s Distance comparison is also an intuition about comparing relationships between distances. Their actual procedure uses correlation distance and rank correlations. The analogy should not be read as evidence that the experiment computes an Earth Mover’s Distance optimization.
These reporting issues do not erase the central result. They do require a precise account of the quantities being compared, especially if the method is transferred into another evaluation setting.
What came after
Two later citing works place this paper’s questions in continuing lines of research: how representations change under adaptation, and how computational language processing relates to human cognition. The available descriptions identify their titles and citation relationship, but do not establish which RSA procedure they adopted or whether they reproduced the Dundee findings.
What Happens To BERT Embeddings During Fine-tuning? appeared in 2020. Its subject connects naturally with the methodological question developed here: how can researchers compare representations before and after a consequential change without relying only on downstream accuracy? Abdou and colleagues offer a relational way to formulate such comparisons. The citation record establishes that the later work cites this paper; it does not establish that its experiments use the same rowwise correlations, fixation measurements, or layer-pair selection.
Do Large Language Models Mirror Cognitive Language Processing? appeared in 2025. Its title returns to the broader question of correspondence between computational representations and human processing. The earlier paper supplies a concrete example of how that question can be made measurable through shared sentence relationships and behavioral observations. However, the available account does not specify the later study’s cognitive measurements, comparison method, or conclusions, so a stronger claim about direct methodological inheritance would be unwarranted.
These citations indicate continued relevance without establishing a chain of confirmed results. The lasting methodological question is precise: when two systems cannot be compared coordinate by coordinate, can their relationships among common observations reveal a meaningful correspondence? This paper answers that question with an empirical case, while leaving the interpretation of the correspondence open to further measurement.
Cite
Cite as Mostafa Abdou, Artur Kulmizev, Felix Hill, Daniel M. Low and Anders Søgaard. 2019. Higher-order Comparisons of Sentence Encoder Representations. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP).
@inproceedings{abdou2019higher,
title = {{Higher-order Comparisons of Sentence Encoder Representations}},
author = {Mostafa Abdou, Artur Kulmizev, Felix Hill, Daniel M. Low and Anders Søgaard},
booktitle = {Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP)},
year = {2019},
doi = {10.18653/v1/d19-1593},
url = {https://doi.org/10.18653/v1/d19-1593}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/abdou-2019-higher-order-comparisons-sentence-encoder/