[Paper Review] Syntactically Informed Text Compression with Recurrent Neural Networks
This paper proposes a recurrent neural network (RNN)-based text compression model that integrates syntactic information via part-of-speech (POS) tags to improve next-character prediction. By using separate RNNs for characters and POS tags, merging their outputs, and training on diverse texts, the model achieves a 5.33% average accuracy gain with POS input and shows promise for generalized, pre-trained language modeling in compression.
We present a self-contained system for constructing natural language models for use in text compression. Our system improves upon previous neural network based models by utilizing recent advances in syntactic parsing -- Google's SyntaxNet -- to augment character-level recurrent neural networks. RNNs have proven exceptional in modeling sequence data such as text, as their architecture allows for modeling of long-term contextual information.
Motivation & Objective
- To develop a neural network model that improves text compression by incorporating syntactic structure through part-of-speech tagging.
- To address the limitations of prior neural models in capturing long-term dependencies and syntactic relationships in natural language sequences.
- To explore the feasibility of a generalized, pre-trained language model for text compression, reducing the need for document-specific training.
- To evaluate the impact of syntactic information on modeling accuracy and generalization across diverse texts.
- To investigate the potential of composing neural networks for complex language modeling tasks, such as compression.
Proposed method
- Uses two parallel RNN streams: one processing character sequences and another processing part-of-speech (POS) tag sequences.
- Merges the hidden states of both RNN streams before passing them through a final recurrent layer and two fully connected layers.
- Employs arithmetic coding for lossless compression, using predicted probabilities from the model to encode sequences efficiently.
- Trains the model end-to-end using character and POS tag sequences, with gradient descent optimization on cross-entropy loss.
- Utilizes gated recurrent units (GRUs) to stabilize training and improve learning of long-range dependencies.
- Employs one-hot encoding for input representation and evaluates performance on multiple literary texts, including Pride and Prejudice and A Tale of Two Cities.
Experimental results
Research questions
- RQ1Can integrating syntactic information (POS tags) into an RNN-based language model improve next-character prediction accuracy for text compression?
- RQ2How does the inclusion of POS tags affect model generalization across diverse, unseen texts?
- RQ3To what extent can a single, generalized RNN model trained on diverse texts achieve competitive compression performance without document-specific fine-tuning?
- RQ4What are the computational and training stability challenges in scaling RNN models for generalized language modeling in compression?
- RQ5Can the composition of multiple domain-specific neural networks outperform a single monolithic model in complex language modeling tasks?
Key findings
- The addition of part-of-speech tags improved prediction accuracy by an average of 5.33% on the Pride and Prejudice model compared to the baseline without POS input.
- The model achieved high accuracy (93.91%) on its training document (Pride and Prejudice), but showed signs of overfitting on shorter documents (e.g., <167,500 characters).
- Gradient instability occurred after epoch 650 in the A Tale of Two Cities model, leading to a significant drop in accuracy, indicating challenges in long-term training stability.
- The model generalized reasonably well to other texts, achieving 59.04% accuracy on Holmes and 58.44% on Nietzsche, suggesting transferability across genres.
- Training a single document-specific model took approximately 48 hours on an Amazon g2.2xlarge instance, highlighting the computational cost of training per document.
- The results support the feasibility of a pre-trained, generalized language model for text compression, which could eliminate per-document training overhead.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.