Representation Learning for Sequence Data with Deep Autoencoding Predictive Components

Junwen Bai, Weiran Wang, Yingbo Zhou, Caiming Xiong

This paper introduces Deep Autoencoding Predictive Components (DAPC), a self-supervised framework designed to learn robust representations of sequence data. By combining the strengths of predictive information theory and masked autoencoding, DAPC provides a method that recovers underlying dynamics more effectively than traditional contrastive learning approaches.

The Challenge with Contrastive Learning

In self-supervised learning for sequences, the goal is to transform raw, unlabeled data into representations that capture the "essence" of the signal—its underlying dynamics and context.

The current dominant paradigm is Contrastive Predictive Coding (CPC), which learns by trying to distinguish a "true" future sample from a set of "negative" (distractor) samples. However, contrastive learning has two major drawbacks:

  1. Negative Sampling: Choosing good negative samples is an art form and often requires massive batch sizes or memory banks.
  2. Loose Bounds: These methods optimize a lower bound of Mutual Information (MI), which can be loose and may not truly reflect the predictive structure of the data.

The authors aim to create a more direct, "negative-free" way to maximize the information flow across time.

The DAPC Approach

DAPC rests on two main pillars: Predictive Information (PI) Maximization and Masked Reconstruction (MR) Regularization.

The DAPC architecture combining Masked Reconstruction (MR) and Predictive Information (PI) maximization.
  1. Predictive Information (PI) Maximization: PI is defined as the mutual information between a "past" window and a "future" window in the latent space. The authors make a Gaussian assumption about these latent windows. While this sounds restrictive, it allows them to use a closed-form, exact, and differentiable formula for MI based on the log-determinants of covariance matrices. This encourages the latent space to have a "simple," predictable temporal structure.
  2. Masked Reconstruction (MR) Regularization: Simply maximizing PI can lead to "degeneration," where the encoder ignores the input and creates a trivial, perfectly predictable latent sequence. To prevent this, DAPC forces the model to reconstruct parts of the original input that have been masked out (similar to BERT or masked autoencoders).

Key Innovations: * Shifted Variation: Instead of just reconstructing the current frame, the model predicts a future frame from the current latent state, forcing the model to learn more global, long-term context. * Multi-scale PI: PI is calculated at different time resolutions (e.g., windows of size $T$, $T/2$) to capture both fine-grained and coarse temporal dynamics. * Orthonormality Penalty: A penalty term ensures that different dimensions of the latent representation are linearly independent and have unit scale.

Key Insights

  • Exact Beats Bound: In many cases, an exact MI estimate under a "wrong" assumption (Gaussianity) performs better than a loose bound on the "true" MI. The Gaussian-based PI proved to be a powerful proxy for capturing temporal structure.
  • Synergy is Key: PI and MR are complementary. PI focuses on the relationship between time steps, while MR ensures the representation remains faithful to the input. Without MR, the latent space collapses; without PI, the dynamics are noisy and lack predictive power.
  • Negative-Free Efficiency: By avoiding negative sampling, DAPC simplifies the training pipeline and avoids the computational overhead of maintaining large contrastive buffers.

Experimental Results

The authors evaluated DAPC across three distinct domains: synthetic dynamics, real-world forecasting, and speech recognition.

Manifold Recovery

On the Noisy Lorenz Attractor (a chaotic dynamical system), DAPC significantly outperformed CPC and other baselines in recovering the 3D structure from a noisy 30D lifted signal.

Manifold recovery of the Noisy Lorenz Attractor across different Signal-to-Noise Ratios (SNR). DAPC successfully recovers the underlying dynamics even at high noise levels.

As seen above, DAPC successfully reconstructs the "butterfly" shape, especially in high-noise environments (SNR=0.3), achieving an $R^2$ score of 0.865 compared to CPC's 0.676.

Forecasting and Speech Recognition

  • Forecasting: Across three real-world datasets (multi-city temperature, rat dorsal hippocampus activity, and monkey motor cortex activity), DAPC consistently showed the highest $R^2$ improvements over PCA, proving its representations are highly predictive of future states.
  • Speech Recognition (ASR): On the LibriSpeech dataset, DAPC achieved a Word Error Rate (WER) of 4.70% on the test-clean set. This outperformed the "no pretraining" baseline (5.11%) and pure masked reconstruction (5.02%), showing state-of-the-art performance for its model size (~30M parameters).

Limitations and Future Work

While the Gaussian assumption works well in practice, it is a simplification. Future work could explore more flexible, non-parametric density estimators. Additionally, scaling DAPC to the size of massive transformers (300M+ parameters) used in modern NLP and Speech tasks could yield even better results. The authors also note potential applications in Natural Language Processing, where the "sequence" is text, opening up exciting avenues for negative-free representation learning.

Summary updated

BibTeX
@inproceedings{bai2021representation,
  author = {Junwen Bai and Weiran Wang and Yingbo Zhou and Caiming Xiong},
  title = {{Representation Learning for Sequence Data with Deep Autoencoding Predictive Components}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=MVlqf4SzUDT},
}
Figure