Abstract
Traditional Gated Recurrent Units (GRUs) utilize soft gates that process every token in a sequence, often leading to noise interference and reduced interpretability. We present the Binary Input Gated Recurrent Unit (BIGRU), which employs hard binary gates to selectively "skim" input text. By filtering out redundant words like articles and conjunctions, the BIGRU achieves superior performance in text classification and language modeling while significantly reducing the amount of processed data.
Introduction
Standard Recurrent Neural Networks (RNNs) are designed to process sequential data by maintaining a hidden state updated at each time step. However, the use of sigmoid-based "soft" gates means the model assigns some weight to every input, including redundant "stop words." This "fuzzy" gating mechanism complicates interpretability—as intermediate values like 0.65 lack clear semantic meaning—and introduces noise that can hinder performance. Inspired by human selective reading, the BIGRU architecture proposes a hard gating mechanism to focus exclusively on informative tokens.
The BIGRU Architecture
The core innovation of the BIGRU is the replacement of the standard reset gate with a binary input gate ($i_t$). Unlike traditional gates that output a continuous range between 0 and 1, this gate produces a discrete binary signal.
Key technical components include:
- Binary Input Gate: A hard switch that determines whether the current input $x_t$ should influence the hidden state update.
- Stochastic Training: To explore the discrete state space, gate values are sampled from a Bernoulli distribution during training.
- Straight-Through Estimator (STE): To overcome the non-differentiability of the binary step function, the STE is used during backpropagation, treating the gate as an identity function for gradient flow.
This separation of concerns allows the binary gate to decide what to read, while the update gate manages how to integrate that information into long-term memory.
Experimental Evaluation
The BIGRU was evaluated on document classification (SST, IMDb, AGNews, DBPedia) and language modeling (PTB, WikiText-2) datasets.
Key Findings
- Efficiency and Accuracy: In classification tasks, the BIGRU outperformed standard GRUs by approximately 2 percentage points while ignoring 57% to 65% of the input text. On the IMDb dataset, the model achieved peak accuracy while reading only 37% of the words.
- Emergent Stop-Word Discovery: The model naturally learned to skip conjunctions and articles without explicit supervision, focusing instead on high-entropy nouns and verbs.
- Improved Convergence: In language modeling, the BIGRU demonstrated faster convergence and lower final perplexity compared to the baseline.
Conclusion and Future Work
The BIGRU demonstrates that "less is more" in sequence modeling. By adopting a hard binary gating mechanism, the model achieves better generalization and robustness. Future research will explore applying binary gating to Long Short-Term Memory (LSTM) networks and optimizing the architecture for specialized hardware like FPGAs to leverage the computational efficiency of binary operations.
Summary updated