Deconvolutional Paragraph Representation Learning

Yizhe Zhang, Dinghan Shen, Guoyin Wang, Zhe Gan, Ricardo Henao, Lawrence Carin

This paper challenges the long-standing dominance of Recurrent Neural Networks (RNNs) in text representation. By ditching the sequential nature of LSTMs in favor of a purely convolutional and deconvolutional architecture, the authors demonstrate a faster, more robust way to encode long paragraphs into latent vectors.

Ultimately, the authors propose a purely convolutional/deconvolutional autoencoder for text that avoids the "exposure bias" and "teacher forcing" issues inherent in RNNs. Their framework is significantly faster to train and far more effective at reconstructing and classifying long paragraphs compared to state-of-the-art recurrent models.

The Problem with RNNs in NLP

In Natural Language Processing (NLP), the standard way to turn a sentence into a mathematical vector has historically been using an RNN (like an LSTM). However, RNNs suffer from three major bottlenecks when processing text:

  1. Vanishing Information: As a paragraph gets longer, the RNN struggles to compress the entire history into a single vector. Early context is often "forgotten" by the time the model reaches the end of a long sequence.
  2. Teacher Forcing & Exposure Bias: During training, RNN decoders are usually given the "ground truth" previous word to predict the next one (teacher forcing). This makes the encoder "lazy" because the decoder doesn't have to rely solely on the latent representation. At inference time, when the ground truth isn't available, small errors compound quickly (exposure bias).
  3. Computational Inefficiency: RNNs process words one by one sequentially, making them difficult to parallelize on modern GPUs.

The CNN-DCNN Architecture

To overcome these limitations, the authors introduce a Convolutional-Deconvolutional Neural Network (CNN-DCNN).

The Convolutional-Deconvolutional Neural Network (CNN-DCNN) architecture.
  • The Encoder: A multi-layer CNN uses strided convolutions to downsample a sequence of word embeddings into a fixed-length latent vector ($h$). Unlike standard CNNs that use max-pooling, this model learns its own spatial downsampling, preserving more structural information.
  • The Decoder: A "deconvolutional" (or transposed convolutional) network mirrors the encoder. It starts from the latent vector and progressively expands the spatial resolution to reconstruct the original word embedding matrix.
  • The Loss Function: Instead of predicting words one-by-one, the model uses a cosine-similarity cross-entropy loss. It aims to make the reconstructed embedding matrix as close as possible to the original input simultaneously across the sequence.
  • Semi-Supervised Learning: The model utilizes a joint training objective. It simultaneously learns to reconstruct unlabeled text (unsupervised) and perform a task like classification (supervised), using an annealing strategy to balance the two.

Key Insights

By shifting away from recurrent architectures, the CNN-DCNN introduces several structural advantages:

  • Breaking the Markov Chain: By using convolutions, the model isn't forced to generate text word-by-word. It looks at overlapping windows of text, allowing it to capture long-range dependencies in paragraphs that RNNs often miss.
  • Forcing "Self-Contained" Representations: Because the deconvolutional decoder has no access to "previous words" during reconstruction, the encoder is forced to pack every necessary detail into the latent vector $h$. This results in a much richer, more comprehensive representation of the text.
  • Efficiency via Parallelism: Because convolutions can be computed in parallel across the entire sequence, the CNN-DCNN is significantly faster than recurrent models.

Results and Performance

The model was evaluated across several diverse benchmarks, including Hotel Reviews (paragraph reconstruction), Yahoo! Answers (character-level denoising), ArXiv (text summarization), and DBPedia/Yelp (classification).

Bleu score vs Sentence length comparing CNN-DCNN against recurrent models.
  • Superior Reconstruction: On the Hotel Reviews dataset, the CNN-DCNN achieved a BLEU score of 94.2, dwarfing the 28.5 achieved by Hierarchical LSTMs. As sentence length increases, the CNN-DCNN maintains its high performance, whereas RNN-based models degrade rapidly.
  • Speed: The proposed model is roughly 3x faster than a CNN-LSTM hybrid and 5x faster than a pure LSTM-LSTM autoencoder on a single GPU.
  • Robust Denoising: In spelling correction tasks, the model proved far more stable. While RNNs saw errors accumulate as sentences got longer, the CNN-DCNN maintained a low Character Error Rate (CER) regardless of where the error occurred in the sentence.
  • Semi-Supervised Gains: The model consistently outperformed purely supervised CNNs, especially when labeled data was scarce (e.g., using only 0.1% of labels).

Limitations and Future Work

The authors note that while the deconvolutional decoder is excellent for representation learning and reconstruction, it produces text that is less coherent than an RNN for pure generation tasks. Because it lacks a strict sequential dependency, it can sometimes struggle with the exact positioning of text segments.

To address this, the authors suggest that a "best of both worlds" approach—using CNNs for structural encoding and RNNs for fine-grained linguistic generation—is a promising future direction.

Summary updated

BibTeX
@inproceedings{zhang2017deconvolutional,
  author = {Yizhe Zhang and Dinghan Shen and Guoyin Wang and Zhe Gan and Ricardo Henao and Lawrence Carin},
  title = {{Deconvolutional Paragraph Representation Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
}
Figure