Sequential Recurrent Neural Networks for Language Modeling

Youssef Oualil, Clayton Greenberg, Mittul Singh, Dietrich KlakowarXiv 2017

Introduction

In the field of language modeling, researchers have long grappled with a fundamental trade-off between two primary architectures: Feedforward Neural Networks (FNNs) and Recurrent Neural Networks (RNNs). While FNNs excel at capturing short-range, position-dependent patterns through fixed windows of history, they remain "blind" to information outside that window. Conversely, RNNs utilize an evolving hidden state to maintain long-range dependencies but often suffer from the "blurring" of specific positional information over time. This paper introduces the Sequential Recurrent Neural Network (SRNN), a hybrid architecture designed to bridge this gap by injecting recurrent context directly into the word projection layer.

The Architectural Gap

The core challenge in language modeling is balancing local syntactic precision with global semantic context. As illustrated in Figure 1, standard FNNs and RNNs represent two different approaches to history. FNNs treat the previous $N$ words as discrete, independent inputs, whereas RNNs compress the entire history into a single vector. The SRNN seeks to maintain the explicit, sequential history of an FNN while gaining the expansive memory capacity of an RNN.

Standard FNN and RNN architectures.

The SRNN Architecture

The SRNN modifies the standard word embedding process by making the projection layer context-dependent. Rather than using static vectors, the representation of a word is updated based on the word that preceded it through a recurrence relation.

Key technical innovations include:

  • Sequential Connections: The projection layer uses a recurrence relation to enhance word embeddings with context before they reach the hidden layers.
  • Word-Dependent (WD) Weights: Unlike models that use a single global context weight, the SRNN can learn unique context weight vectors for every word in the vocabulary. This allows the model to differentiate how common words (like "the") and specific nouns (like "apple") should influence or be influenced by context.
  • Non-linear Activations: By applying functions like tanh at the projection level, the model better discriminates between word meanings across varying contexts.
  • BPTT Training: The architecture is trained using Back-Propagation Through Time to account for these sequential dependencies.

The "Position" Problem and Key Insights

A significant weakness of standard RNNs is their struggle with patterns requiring precise positional memory, such as "he [verb] he." Because RNNs compress history, the specific fact that a word appeared exactly two positions ago can be lost. The SRNN addresses this by keeping the FNN-style window but making the contents of that window recurrent, thereby preserving vital positional data.

Visualizing signal distribution across sequential positions t-4 to t-1.

As shown in Figure 2, the model tracks information across distinct time steps ($t-4$ to $t-1$), ensuring that the signal from specific prior positions remains distinct and actionable for the network.

Experimental Results

The researchers evaluated the SRNN on two benchmarks: the Penn Treebank (PTB) for limited-data scenarios and the Large Text Compression Benchmark (LTCB) for large-scale performance.

In terms of perplexity (where lower scores indicate better predictive performance), the SRNN consistently outperformed its predecessors:

  • Penn Treebank: The SRNN achieved a perplexity of ~106, significantly better than the standard FNN (~119) and the LSTM (~114).
  • LTCB: The improvement was even more pronounced, with the Word-Dependent SRNN reaching a perplexity of 72, compared to 114 for the FNN and 85 for the standard RNN.

While the SRNN is approximately twice as slow to train as a basic FNN due to the sequential calculations, it remains more computationally efficient than complex gated architectures like LSTMs.

Conclusion

The Sequential Recurrent Neural Network represents a successful hybridization of FNN and RNN strengths. By treating the projection layer as a dynamic transformation rather than a static lookup table, the SRNN achieves state-of-the-art results in language modeling. Future work may involve incorporating more sophisticated information control mechanisms, similar to LSTM gates, to further refine how the network manages long-range dependencies.

Summary updated

BibTeX
@misc{oualil2017sequential,
  author = {Youssef Oualil and Clayton Greenberg and Mittul Singh and Dietrich Klakow},
  title = {{Sequential Recurrent Neural Networks for Language Modeling}},
  year = {2017},
  eprint = {1703.08068},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1703.08068},
}
Figure