Analysis of Short Term Memories for Neural Networks

José Carlos Príncipe, Hui-Huang Hsu, Jyh-Ming KuoNeurIPS 1993

Traditional neural networks excel at static pattern recognition—such as identifying an object in a single, fixed image. However, they often struggle with dynamic, time-varying signals like speech, sonar, or financial time series. To process these continuous streams of data, a system requires a "window" into the past, effectively a form of short-term memory.

This paper provides a theoretical framework for understanding how neural networks can remember and process these time-varying signals. By treating short-term memory as a linear projection into a "memory space," the authors demonstrate how different network architectures trade off memory depth (how far back in time they look) against memory resolution (how much fine-grained detail they retain).

The Challenge of Time in Neural Networks

Integrating historical data to make current decisions introduces two primary challenges:

  1. The Window Problem: How large should the input window be? This defines the memory depth.
  2. The Mapping Problem: How do we effectively combine that historical data to make an accurate decision?

While fully recurrent neural networks (RNNs) offer a generalized solution to these problems, they are notoriously difficult to train due to issues like vanishing gradients. This paper explores a practical middle ground: using specialized, linear feedforward structures to handle the "representation" of time, which are then fed into standard non-linear networks for "decision making."

Memory as Projection

Instead of treating memory merely as a buffer of stored data points, the authors propose a unified geometric view. They frame memory as a linear manifold where a high-dimensional temporal input signal is projected into a fixed-size state vector.

Memory as a projection from an N-dimensional space to a decision space

In this framework, the goal of learning is to rotate and optimize this linear "memory space" to capture the most relevant historical information for the specific task at hand, before passing it through a nonlinear mapping to the final decision space.

Architectures and the Depth-Resolution Trade-off

The paper's most critical takeaway is the inherent trade-off between memory depth and resolution. A network can have a highly detailed view of the immediate past (high resolution, low depth) or a "blurry" summary of a long history (low resolution, high depth). The authors analyze several generalized feedforward structures that navigate this trade-off:

  • Tap Delay Line: The standard approach where memory is simply a sequence of previous discrete inputs. It offers perfect resolution (every step is kept) but is rigid; to look further back in time, you must increase the number of taps, which linearly increases the dimensionality and computational cost.
  • Gamma Memory: A more flexible, recursive model that introduces a parameter ($\mu$). By adjusting $\mu$, the network can "stretch" its memory to look further back in time without adding more neurons.
Context Unit of a Gamma Memory illustrating the depth and resolution parameters

As shown in the Gamma memory context unit, the delay operator utilizes $\mu$ to dictate both the memory depth ($1/\mu$) and the memory resolution ($\mu$). While it allows for deeper memory without extra parameters, it loses some fine-grained resolution in the process. Because stability is tied to this parameter, it is easy to enforce (e.g., keeping $\mu$ between 0 and 2 ensures a stable system).

  • Laguerre Memory: An orthogonalized version of the Gamma memory. By reducing the correlation between memory taps, it significantly speeds up the learning process.
  • Gamma II Memory: The novel contribution of this paper. The authors introduce a version of the Gamma memory that supports complex poles. This advancement allows the memory to better capture signals with periodic structures or "window" specific intervals in time where information is concentrated in bursts, making it highly effective for signals corrupted by periodic noise.

Key Results and Applications

While primarily a theoretical analysis of the mathematical properties and geometry of memory spaces, the paper highlights several practical advantages of these structures:

  • Parsimony in Echo Cancellation: The Gamma memory proved to be more efficient than standard filters for echo cancellation tasks, achieving comparable results with significantly fewer parameters.
  • Improved Speech Word Spotting: Preliminary results indicate that word spotting in speech recognition improves when the network is allowed to adapt its memory resolution (using $\mu \neq 1$), rather than being forced to rely on a rigid standard tap delay line.
  • Broad Generalization: The Gamma II model is shown to be the most general form of the memories reviewed, uniquely capable of modeling both the poles and zeros of the system that originally generated the input signal.

Limitations and Future Directions

Despite the advantages of adaptive memory structures, the authors note a few ongoing challenges:

  • Local Minima: Because the memory parameters (like $\mu$) are adapted via gradient descent, the training process becomes non-linear and is susceptible to getting stuck in local minima.
  • Order Selection: While the network can adaptively stretch the depth of its memory, it cannot automatically determine the optimal order (the number of taps or context units) required for a given application.
  • Refining the Definition of Depth: The current mathematical definition of "memory depth" struggles to fully capture the behavior of complex structures like the Gamma II kernel. The authors suggest that future work should explore new metrics, such as the "center of mass of the envelope," to better quantify memory depth in these advanced models.

Summary updated

BibTeX
@inproceedings{principe1993analysis,
  author = {José Carlos Príncipe and Hui-Huang Hsu and Jyh-Ming Kuo},
  title = {{Analysis of Short Term Memories for Neural Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {1993},
}
Figure