Abstract
Feedforward Sequential Memory Networks (FSMN) provide a mechanism to capture long-term dependencies in time-series data without the computational overhead of recurrent feedback. By integrating learnable memory blocks—analogous to Finite Impulse Response (FIR) filters—into standard feedforward architectures, FSMNs achieve competitive performance in speech recognition and language modeling while offering superior training speed and stability compared to LSTMs.
Introduction
Modeling sequential data, such as speech or text, necessitates capturing long-term dependencies where historical context informs current predictions. Traditionally, Recurrent Neural Networks (RNNs) and Long Short-Term Memory (LSTM) networks have dominated this domain. However, these models incur a "recurrent tax": they require Backpropagation Through Time (BPTT), which is computationally intensive and susceptible to vanishing or exploding gradients. Furthermore, their sequential nature hinders parallelization on modern hardware. This paper introduces the Feedforward Sequential Memory Network (FSMN), designed to combine the memory capabilities of RNNs with the training efficiency of Feedforward Neural Networks (FNNs).
The FSMN Architecture
The core innovation of the FSMN is the integration of "memory blocks" into the hidden layers of a deep neural network. Unlike RNNs, which utilize feedback loops, FSMNs employ a tapped-delay line structure. Each memory block aggregates a fixed-size window of past (and potentially future) hidden layer activations using learnable weights.
In signal processing terms, an RNN behaves like an Infinite Impulse Response (IIR) filter, which can be unstable and difficult to train. Conversely, an FSMN functions as a high-order Finite Impulse Response (FIR) filter. The authors posit that a sufficiently high-order FIR filter can approximate any IIR filter, making FSMNs a robust alternative to recurrent structures.
Several architectural variants were explored:
- sFSMN (Scalar): Employs a single learnable weight per delay step.
- vFSMN (Vectorized): Uses a vector of weights, allowing individual hidden units to maintain unique memory profiles.
- Bidirectional FSMN: Incorporates both "lookback" (past) and "lookahead" (future) windows.
- Attention-based FSMN: Dynamically calculates context-dependent weights for the memory window.
Experimental Evaluation
The FSMN was evaluated on two benchmark tasks:
- Speech Recognition: Using the Switchboard (SWB) corpus for conversational speech.
- Language Modeling: Using the Penn Treebank (PTB) and the larger English wiki9 dataset (153M words).
Key Results and Discussion
The FSMN demonstrated significant advantages in both accuracy and efficiency:
- Superior Accuracy: On the Switchboard task, the vFSMN achieved a Word Error Rate (WER) of 13.2%, outperforming state-of-the-art Bidirectional LSTMs (13.5%) and standard DNNs (14.6%).
- Efficiency and Speed: The vFSMN trained over three times faster than Bidirectional LSTMs. For instance, one training epoch required approximately 7 hours for vFSMN compared to 22 hours for the BLSTM. This efficiency stems from formulating memory block operations as matrix multiplications, which are highly optimized for GPUs.
- Language Modeling: On the wiki9 dataset, the FSMN-based model reached a perplexity of 90, a marked improvement over standard RNN-LMs (112).
- Controllable Latency: Unlike Bidirectional LSTMs that require the entire future sequence, Bidirectional FSMNs use a fixed lookahead window, making them suitable for real-time, low-latency applications.
Conclusion and Future Work
FSMNs offer a powerful, recurrence-free alternative for sequence modeling. While the vectorized FSMN (vFSMN) proved highly effective, the attention-based variant showed less robustness in speech tasks, suggesting that fixed filters may be preferable for certain acoustic contexts. Future research will explore more complex memory encoding coefficients and extend the FSMN architecture to other sequence-to-sequence tasks such as machine translation and question answering.
Summary updated