Introduction
In Natural Language Processing (NLP), representing the semantic meaning of a sentence as a dense vector is a fundamental challenge. Traditional models, such as Siamese CBOW (SCBOW) or Paragram-Phrase (PP), typically treat all words within a sentence as equally significant, often employing simple averaging of word embeddings. However, this approach contradicts human cognitive processes. Psycholinguistic research into eye-tracking reveals that humans utilize selective attention, lingering on information-dense content words (fixations) while skipping common function words (saccades). This paper explores whether mimicking these human reading patterns can improve machine understanding of sentence semantics.
Methodology: Human-Inspired Attention Mechanisms
The researchers propose two primary attention mechanisms designed to be integrated into existing sentence representation models:
- ATT-SUR (Attention with Surprisal): This mechanism calculates "surprisal"—the negative log probability of a word given its context. Words that are difficult to predict are considered more informative and are assigned higher weights.
- ATT-POS / ATT-CCG (Attention with Grammatical Tags): These models assign learnable vectors to Part-of-Speech (POS) tags or fine-grained Combinatory Categorial Grammar (CCG) supertags. The attention weight is derived from the dot product between a word's embedding and its corresponding tag vector.
Instead of a simple average, the final sentence representation is a weighted sum of word embeddings based on these attention scores.
As shown in the figure above, the models successfully learn to prioritize informative categories. For instance, nouns (NN) and verbs (VBG) receive high weights, while determiners (DT) and prepositions (IN) are down-weighted, aligning with human linguistic priorities.
Experimental Results
Semantic Textual Similarity (STS)
The models were evaluated across 24 SemEval datasets (2012–2016) focusing on Semantic Textual Similarity. The results demonstrate that attention-guided models consistently outperform standard baselines.
Notably, the ATT-CCG model, which utilizes fine-grained syntactic information, generally provided the best performance. For the 2014 Average STS task, the ATT-CCG (PP) model achieved a correlation of 0.746, a significant improvement over the 0.729 baseline. These gains were robust across various domains, including news articles, image captions, and social media posts.
Cognitive Correlation
To validate the "human-like" nature of these models, the authors compared the generated attention weights against eye-tracking data from the Dundee Corpus. The machine-generated weights showed a high Pearson correlation (up to 0.43) with human metrics such as "First-pass time" and "Go-past time," confirming that the models are capturing cognitive signals relevant to human reading behavior.
Conclusion and Future Work
Grounding NLP models in human cognitive processes yields measurable engineering gains. By learning to focus on informative content words and down-weighting function words, the proposed attention mechanisms significantly enhance sentence representations. While the current weighted additive approach is effective, future research may explore integrating these human-inspired weights into more complex architectures like Transformers or combining them with other frequency-based weighting techniques to further refine semantic accuracy.
Summary updated