Deep Learning for Joint Source-Channel Coding of Text

Nariman Farsad, Milind Rao, Andrea Goldsmith

TL;DR

This paper introduces a deep learning approach to joint source-channel coding for text, aiming to preserve sentence meaning over noisy channels even when the exact sentence cannot be recovered. By training an end-to-end encoder-decoder system, they demonstrate improved performance over traditional separate source and channel coding methods, especially under tight bit constraints.

What Problem Does This Paper Address?

In digital communication, data is typically compressed (source coding) and then protected against errors (channel coding). The established "separation theorem" suggests these can be optimized independently for infinite block lengths. However, in real-world scenarios with finite data and strict latency/complexity constraints, this separation might not be optimal. This paper tackles the challenge of transmitting text over noisy channels where preserving the semantic meaning of a sentence is more critical than recovering the exact sequence of words. This is particularly relevant for applications like covert messaging or systems where minor variations in wording are acceptable as long as the core message is understood. They focus on an erasure channel, which models situations where data bits are lost but detected, not corrupted.

Methods

The authors propose a deep learning architecture consisting of an encoder, a channel model, and a decoder, trained end-to-end.

  • Encoder: This component takes a sentence as input and outputs a fixed-length binary vector representing the compressed and encoded message. It uses:
  • Word Embeddings: Words are first converted into dense vector representations using pre-trained GloVe embeddings.
  • Bidirectional LSTMs (BLSTMs): Stacked BLSTMs process the sequence of word embeddings to capture contextual information.
  • Binarization: The final hidden states from the BLSTMs are transformed into binary values ({-1, 1}) using a stochastic binarization function during training (allowing gradients to flow) and a deterministic version during testing.
  • Channel: To enable end-to-end training, the channel is modeled as a layer that can be differentiated. For this work, they use a dropout layer to simulate an erasure channel, where each bit has a probability of being dropped (represented as 0).
  • Decoder: This component receives the potentially corrupted output from the channel and reconstructs a sentence. It also uses:
  • LSTMs: Stacked LSTMs process the received bits.
  • Initial State: The initial states of the decoder LSTMs are derived from the received bits.
  • Word Prediction: The decoder predicts words sequentially, using the embedding of the previously predicted word as input for the next step. During training, they gradually transition from using the correct word to the predicted word to aid learning. For inference, they employ a beam search algorithm to find the most likely sentence.

Datasets

The primary dataset used is the proceedings of the European Parliament [27]. This is a large parallel corpus containing approximately 2.2 million English sentences and 53 million words. The authors pre-process this corpus to select sentences of lengths 4-30 with less than 20% unknown words, creating a training set of over 1.2 million sentences and a test set of over 200,000 sentences.

Key Insights and Ideas

  • Semantic Preservation over Exact Recovery: The core idea is that for text, meaning is often more important than verbatim accuracy. The deep learning model can learn to encode and decode sentences such that the recovered sentence conveys the same meaning, even if it uses different words or has a different length.
  • End-to-End Training Advantage: Training the encoder and decoder jointly allows the system to learn an optimal mapping for the specific channel and task, which is difficult to achieve with separate, independently optimized source and channel coding schemes.
  • Effectiveness Under Bit Constraints: The deep learning approach shows significant advantages when the available bit budget per sentence is low. Traditional methods struggle to maintain meaning with limited bits, whereas the neural network can learn a more efficient semantic representation.
  • Learned Semantic Space: The paper demonstrates that the learned embeddings for semantically similar sentences are closer in the embedding space, visualized using multidimensional scaling. This is a key differentiator from information-theoretic methods that treat text as raw symbols.

Key Results

  • Word Error Rate (WER): The deep learning approach achieves lower word error rates compared to traditional baselines (gzip, Huffman coding, fixed-length character encoding) when the bit budget per sentence is limited.
  • Performance with Bit Budget: Figure 2a shows that as the bit budget increases, the WER for all methods decreases. The deep learning approach is most competitive at lower bit budgets.
  • Performance with Bit Drop Rate: Figure 2b illustrates that at a fixed bit budget (400 bits), the deep learning approach also outperforms baselines under higher bit drop rates.
  • Sentence Length Impact: Figure 2c highlights that the deep learning approach performs particularly well for longer sentences when using a fixed bit budget, outperforming baselines.
  • Qualitative Improvements: Table 1 provides examples of transmitted and received sentences, showcasing instances where the meaning is preserved despite rephrasing, punctuation errors, or minor word substitutions.

Limitations and Future Work

  • Fixed Bit Length: A significant limitation is the use of a fixed bit length for encoding sentences of varying lengths. This can be inefficient for short sentences (excessive bits) or insufficient for long ones.
  • Future Work:
    • Investigate methods to resolve the fixed bit length issue, potentially by varying the encoding length based on sentence length.
  • Explore deep learning-based summarization for scenarios with severe bit restrictions.
  • Extend the joint source-channel coding approach to other forms of structured data like images, audio, and video.

Summary updated

BibTeX
@inproceedings{farsad2018deep,
  author = {Nariman Farsad and Milind Rao and Andrea Goldsmith},
  title = {{Deep Learning for Joint Source-Channel Coding of Text}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2018},
  doi = {10.1109/icassp.2018.8461983},
}
Figure