Related Experiment Video
Updated: Oct 1, 2026

Experimental Paradigm for Measuring the Effect of Induced Emotion on Grammar Learning
Published on: January 29, 2020
The role of grammar in transformer encoders: Does it really matter for language understanding process?
Fanyu Wang1, Chetan Arora2, Zhenping Xie3
1School of Artificial Intelligence and Computer Science, Jiangnan University, Wuxi 214000, Jiangsu, China; Faculty of Information Technology, Monash University, Melbourne 3800, Victoria, Australia.
Abstract:
Transformer-based methods achieve strong performance on language understanding tasks, yet the role of grammar in encoder representations remains insufficiently explained. While decoder-only models implicitly learn language structure through next-token prediction, encoder-only models still dominate many classification and matching tasks, where grammatical relations can affect the decision boundary. We therefore ask two research questions: (1) how are grammatical structures represented within transformer-based encoders, and (2) how can grammatical regulation improve language understanding in these encoders? We first design an interpretable analysis showing that grammar is weakly present in standard encoders but is not explicitly organised without regulation. We then propose a Semantics-Grammar Coupled Space (SGCS), a low-dimensional space in which token positions encode semantic information and spatial relations encode grammatical dependencies. SGCS is trained through sentiment-based spatial regulation and attention-grammar distribution alignment, and it is mapped back to the encoder representation through an invertible mapping network. Experiments on 12 language understanding datasets with BERT and RoBERTa backbones show that SGCS raises syntactic tree similarity from 23.84% to 80.10% and improves downstream performance on most evaluated tasks, with especially consistent gains on sentiment-oriented and grammar-sensitive benchmarks.
Related Concept Videos
Language and Cognition
Components of Language
Types Of Transformers
If the ratio of the number of turns in the secondary winding to that of the primary winding is greater than one, then the transformer is said to be a step-up transformer. In a step-up transformer, the voltage at the secondary winding is greater than the voltage applied at the primary winding.
However, if this ratio is less than one, the transformer is said to be a step-down...
Encoding
Automatic processing involves the encoding of details like time, space, frequency, and the meaning of words, usually done without conscious...
Language Development
The critical period for language acquisition suggests that the ability to acquire language is at its peak early in life. As people age, this proficiency decreases. Language development begins very...
Language Development II: Nativist Perspective