Abstract
While Transformer architectures have revolutionized natural language processing, their internal activation flows are typically static compared to the dynamic regulation found in biological neural systems. This paper introduces the Neuromodulation Gated Transformer (NGT), an architecture that incorporates a biologically inspired multiplicative gating mechanism. By allowing the network to contextually "gate" its own activations, NGT achieves superior average performance on the SuperGLUE benchmark compared to standard BERT-large baselines. Our results indicate that multiplicative regulation of high-level representations provides a more effective means of increasing model capacity than simply adding layers.
Introduction
In biological systems, neuromodulation is the process by which chemical signals—such as dopamine, serotonin, or acetylcholine—dynamically alter the intrinsic properties of neurons and synapses based on environmental context. This allows the brain to be highly flexible, reconfiguring its processing logic on the fly. In contrast, standard artificial neural networks, including Transformers, rely on fixed weights and additive residual connections that offer limited contextual regulation of internal signal flow.
This research explores whether mimicking biological regulation can improve a Transformer's ability to learn complex linguistic patterns. The authors propose the Neuromodulation Gated Transformer (NGT), which utilizes a multiplicative gating effect to suppress or enhance activations based on the data currently being processed.
The NGT Architecture
The core innovation of the NGT is the Gating Block (GB). Rather than simply increasing the depth of the model through standard layers, the GB introduces a regulatory loop into a pre-trained BERT-large backbone.
The Gating Mechanism
Unlike standard residual connections, which are additive ($x + f(x)$), the GB employs a multiplicative (Hadamard product) interaction. The process functions as follows:
- Input: The GB receives the output activations ($x_{k-1}$) from a specific layer (e.g., Layer 21).
- Processing: These activations are passed through three internal transformer layers that act as a "modulator."
- Sigmoid Activation: The output of these layers is passed through a sigmoid function, mapping the values to a range between 0 and 1.
- Regulation: These values are multiplied element-wise with the original activations. A value of 0.5 acts as a neutral gate, while values approaching 1 enhance the signal and values near 0 dampen it.
This mechanism allows the model to use the "context" of the current layer's latent variables to act as a filter for its own subsequent processing.
Experimental Setup
The NGT was evaluated using the SuperGLUE benchmark, a rigorous suite of eight diverse natural language understanding tasks designed to test reasoning, reading comprehension, and word-in-context disambiguation. The tasks include BoolQ, CB, COPA, MultiRC, ReCoRD, RTE, WiC, and WSC.
To isolate the effect of the gating mechanism, the authors compared three primary configurations:
- BERT-large: The standard baseline without any additional blocks.
- NGT (Neuromodulated-Gating): BERT-large with the multiplicative gating block inserted.
- Non-Neuromodulated Baseline: A control model where the gating block was replaced with three standard transformer layers (additive), ensuring the parameter count remained identical to the NGT.
Results and Key Insights
The NGT demonstrated a clear performance advantage over both the standard baseline and the depth-matched control.
Performance Gains
NGT achieved an average SuperGLUE score of 68.64, outperforming the standard BERT-large (68.27). Notably, the non-neuromodulated baseline—which added the same number of parameters but used standard additive layers—performed the worst, with an average score of 66.06. This suggests that simply increasing model depth can be detrimental if not handled through an effective architectural interaction; the multiplicative structure of the NGT was essential for the performance boost.
Task-Specific Success
The NGT achieved its highest relative gains on specific reasoning tasks, reaching 78.36% on BoolQ and 74.67% on COPA.
Importance of Placement
Experimental ablation studies regarding the placement of the Gating Block revealed a significant trend: late-stage modulation is superior. Placing the GB at Layer 21 was far more effective than placing it at Layer 3. This suggests that neuromodulation is most beneficial when applied to high-level, abstract representations rather than low-level syntactic or lexical features.
Discussion and Future Work
While the NGT shows promise, the authors acknowledge several limitations. The performance improvements, though consistent on average, did not reach the threshold of statistical significance ($p > 0.05$), and results varied across the individual datasets within SuperGLUE.
Furthermore, the "surgical" insertion of a randomly initialized gating block into a pre-trained model may be sub-optimal. The authors hypothesize that the full potential of this biological inspiration will likely be realized through pre-training from scratch. By allowing the model to learn how to utilize the gating mechanism during its initial training phase, the regulatory blocks may develop more sophisticated filtering strategies for complex language understanding.
Summary updated