Same Word, Different Sentence: Twin Encoders That Isolate Context-Driven Word Difficulty

A word can be easy in one sentence and hard in another. Current lexical complexity predictors, which are systems that score how hard a word in a sentence is for readers, cannot show that they have learned this. The top systems fine-tune subword language models, which read text as statistically chosen word fragments, and regress a single difficulty score per word occurrence. Such a score mixes three things: how rare the word is, how the sentence around it helps or hinders, and how many fragments the tokenizer happened to cut it into. We propose to separate these factors with a twin ("Siamese") encoder, meaning two copies of one network with shared weights. The twin compares the same word in two different sentences and is trained to say which occurrence readers found harder. Because both inputs contain the same word, everything that depends only on the word cancels out of the comparison, including its frequency and its tokenization. The only thing left for the model to explain is the context.

This matters for two reasons. First, the lexical complexity literature argues that difficulty depends on context: static frequency fails on polysemy (A Comparison of Techniques to Automatically Identify Complex Words; UOW-SHEF: SimpLex), and per-word reading times shift with the surrounding sentence (Effects of Lexical Properties on Viewing Time per Word). Yet no benchmark number isolates the context-driven part. Second, tokenization is known to create false "difficulty": Inconsistent Tokenizations Cause Language Models to be Perplexed by Japanese Grammar shows a 28-fold perplexity spike caused only by byte fallback, where the tokenizer drops to raw bytes for pieces it has no entry for. Winning complexity systems such as JUST-BLUE never test whether their scores carry the same kind of artifact. A design that cancels the word by construction answers both questions at once.

Core Claim

We decompose a predicted difficulty score into a word-type term and a context term. For a target word $w$ in sentence $c$, the model outputs

$$s(w,c) = t(w) + g(w,c),$$

where $t(w)$ is a type-level prior that depends only on the word's form, and $g(w,c)$ is a context shift computed from both directions of the sentence. A shared-weight twin scores two occurrences, and the probability that occurrence $A$ is harder than occurrence $B$ is

$$P(A \succ B) = \sigma\big(s(A) - s(B)\big),$$

with $\sigma$ the logistic function. This form has two useful properties. It is antisymmetric, so $P(A \succ B) = 1 - P(B \succ A)$. That resolves the tension noted in the file between symmetric Siamese similarity and the directional question "is A harder than B" that BETS had to handle. And when $A$ and $B$ share the same word $w$, the term $t(w)$ cancels exactly. Same-type pairs therefore train and test only $g$.

The empirical claim has three parts. Standard fine-tuned subword regressors get most of their benchmark correlation from type-level information. On the within-type part of the signal they are much weaker than their overall Pearson correlation suggests. And a twin trained on same-type pairs recovers that within-type signal better, without giving up overall accuracy once it is combined with a type prior.

Research Program

The first step is measurement. On CompLex 2.0 from SemEval-2021 Task 1, we count target word types that occur in more than one sentence and compute three quantities. The first is the "type-mean" baseline, which predicts each occurrence by the average training score of its word. The second is the within-type correlation of each model: its correlation with human scores after subtracting each type's mean from both predictions and labels. The third is the partial correlation between each model's residual errors and subword fertility (the number of fragments per word), controlling for word length and corpus frequency. Length and frequency are the human-relevant correlates that fertility tracks, so controlling for them is necessary before treating a fertility effect as an artifact.

CompLex labels are averaged crowd scores, and differences between two such averages are noisy, as the task paper itself notes. We therefore also collect a supplementary set of direct pairwise judgments of the form "in which sentence is this word harder?" for roughly 2,000 same-word pairs drawn from CompLex's three genres. We choose pairwise judgments because they avoid the scale drift that affects absolute Likert ratings. We will report inter-annotator agreement on these pairs, and that agreement sets the ceiling for any within-type result.

The second step is the model. The context term $g$ comes from a bidirectional encoder over the sentence. Bidirectional matters here because the scaffolding and "bleeding" effects of neighbouring words described by Kriz et al. and Yeung and Lee come from the right context as well as the left. The type prior $t$ is computed in two interchangeable ways. The subword version is a pooled RoBERTa representation of the isolated word. The character version is a bidirectional character GRU over the word's letters, in the spirit of the character encoders in UNBNLP and the hierarchical character-to-word design of Ataman et al.. Pairing a twin with a bidirectional recurrent branch has worked before outside language, in Siamese CNN-BiLSTM for 3D shapes. We reuse that structure, not its domain.

Training mixes three objectives on the same shared network. Same-type pairs train $g$ alone. Cross-type pairs train $t + g$ jointly. A pointwise regression anchor keeps scores on the CompLex 0–1 scale so that we can report the standard metrics.

The third step is transfer to a setting where fragmentation is severe. BengaliLCP provides Bengali complexity labels, and multilingual subword vocabularies fragment Bengali heavily (The Token Tax). This is where the character and subword type priors should diverge most, and where the fertility–residual correlation should be largest if tokenization artifacts are real.

Baselines

The naive reference point is the type-mean lookup: predict each occurrence by the training mean of its word type, backing off to a frequency-and-length regressor for unseen types. It is the right floor because it contains no context at all. Any model whose overall Pearson correlation is close to it has learned little about context, whatever its leaderboard rank. We found no reported result on Lacuna for a type-mean baseline on CompLex, so we will compute it on the official splits.

The strongest existing method is JUST-BLUE (JUST-BLUE at SemEval-2021 Task 1). It is an ensemble of fine-tuned BERT and RoBERTa token-level and sentence-level regressors, weighted 80/20, and it reports Pearson 0.7886, MAE 0.0609, Spearman 0.7369 and $R^2$ 0.6172 on Sub-task 1. We will reimplement it with the same pretrained checkpoints, the same training data as our model, and the same number of hyperparameter trials, and confirm we reproduce roughly its reported Pearson before comparing. On multi-word expressions the strongest reference is UNBNLP. Its summary in the file gives no exact numbers, but the task's top multi-word Pearson is 0.8612 (SemEval-2021 Task 1), and we treat that as the target. We also run the RoBERTa regressor with fertility added as an explicit input feature, a baseline aimed specifically at our tokenization claim.

Four ablations isolate the key ingredient. The first trains the same twin on randomly paired rather than same-type pairs, which tests whether cancelling the word is what helps. The second replaces the bidirectional context encoder with a left-to-right one. The third swaps the character type prior for the subword one. The fourth trains only the pointwise head with no pairwise loss.

What counts as beating the baselines is defined on the measure the proposal is about. The twin must clearly exceed JUST-BLUE on within-type correlation, both on CompLex and on the collected pairwise judgments, and the gain must be significant under a paired bootstrap over word types. Its overall Pearson must stay within noise of 0.7886. Beating JUST-BLUE's overall Pearson is not required and would not be claimed as the main result.

Why not just…?

Why not just fine-tune RoBERTa with a regression head, since it already wins? This is the main threat, and the proposal is built to test it rather than assume it fails. If the within-type correlation of the fine-tuned regressor is already close to the pairwise-annotator ceiling, the context-isolation idea is unnecessary, and we will report that as a finding about the benchmark. The file gives reason to doubt that outcome. RS_GV (Sense Relative Lexical Complexity Prediction) reports that neural regressors fail at the extremes of the scale, which is where type-level rarity dominates. Nothing in the file shows that any system has been scored on within-type variation.

Why not just add fertility as a covariate, or partial it out afterwards? That addresses the aggregate tokenization confound, and we include it as a baseline. But it only removes one known artifact from the type term. It does not show that the model has learned how context changes difficulty. The same-type design removes every word-level factor at once, including ones nobody has named. If the fertility-augmented regressor matches the twin on within-type correlation, the twin's advantage is not real and we will say so.

Why not just train a pairwise ranking loss on RoBERTa and skip the character encoder? This could plausibly work as well for the context term, because the word's tokenization is shared inside a same-type pair and largely cancels regardless of the encoder. That is why the subword-versus-character type prior is an explicit ablation rather than a fixed design choice. We expect the character prior to matter mainly for the type term and for the high-fertility Bengali transfer, not for within-type English pairs. If it does not help there either, we drop it.

Why not just use static frequency lists? Frequency is exactly the component that cancels in a same-type pair, so it has zero within-type predictive power by construction. The literature cited above already shows it fails on polysemy. Frequency survives in this proposal only as the backoff inside the type-mean baseline.

Proposed Experiments and Decisive Checks

The first decisive check is the gap between overall and within-type correlation for JUST-BLUE and the type-mean baseline on CompLex Sub-task 1. A large overall score with weak within-type correlation confirms that the benchmark rewards type memory.

The second check is the same-type versus random-pair ablation. The claimed mechanism requires that same-type pairing, not pairwise training in general, produces the within-type gain.

The third check is the bidirectional versus left-only context comparison on the collected pairs. We will additionally stratify pairs by whether the two sentences differ mainly after the target word; a right-context effect should appear in exactly that stratum.

The fourth check is the fertility–residual partial correlation, run on CompLex and BengaliLCP for the subword regressor and the character-prior twin. The prediction is a nonzero correlation for the subword model that grows in Bengali and shrinks under the character prior. If it is near zero even in Bengali, the tokenization-artifact worry does not apply to lexical complexity prediction, and that negative result is worth reporting given how often the file's papers assume otherwise. All metrics are Pearson, Spearman and MAE on official splits, pairwise accuracy on collected judgments, and bootstrap confidence intervals resampled over word types.