Abstract
Generating fixed-size sentence embeddings is a cornerstone of modern NLP, yet standard Recurrent Neural Network (RNN) and Transformer architectures often impose significant computational overhead. This paper introduces a refined, purely convolutional architecture that optimizes the Byte-Level Recursive Convolutional Auto-Encoder (BRCA). By streamlining the network structure and introducing novel padding techniques, the authors achieve a 70% reduction in parameters and a 10x training speedup, while simultaneously improving performance on downstream tasks.
Introduction
Modern conversational agents and NLP systems rely on sentence embeddings—fixed-size vectors representing semantic meaning. While effective, the sequential nature of RNNs and the high complexity of Transformers can be prohibitive for real-time deployment on resource-constrained mobile devices.
This research addresses the limitations of the previous BRCA model, which suffered from high parameter counts and training instability. The proposed model seeks to establish convolutional text encoding as a high-performance, low-resource alternative that processes entire sequences in parallel by recursing over depth rather than length.
Methodology
The authors propose several critical architectural refinements to the original BRCA framework to improve both efficiency and convergence.
Streamlined Architecture
The original BRCA included unnecessary linear layers in its prefix and postfix groups. The authors found that removing these layers not only reduced the parameter count from 23.4 million to 6.67 million but also improved reconstruction accuracy. Furthermore, Batch Normalization (BN) was integrated after every layer. For the recursive components, using separate BN statistics for each recursive step proved essential for model convergence.
Balanced Padding
A significant innovation is the shift from standard right-side padding to Balanced Padding. By distributing padding tokens evenly across the fixed-size input vector, the model centers the informative tokens. This prevents convolutional filters from needing to "shift" information across the vector, allowing them to focus immediately on local feature extraction regardless of the original sentence length.
Experimental Setup
The model was evaluated using a diverse set of benchmarks to test both raw capacity and transferability:
- Unsupervised Learning: 11 million sentences from English Wikipedia were used for auto-encoding training.
- Supervised Learning: The Stanford Natural Language Inference (SNLI) dataset was used for word-level encoder training using pre-trained GloVe embeddings.
- Transfer Tasks: The SentEval benchmark (including MR, TREC, SICK, and STS) tested the generalizability of the embeddings across sentiment analysis and semantic similarity tasks.
Key Results
The proposed refinements led to substantial improvements across all metrics:
- Efficiency: A 70% reduction in total parameters (from 23.4M to 6.67M).
- Speed: Training was an order of magnitude (10x) faster than the original BRCA due to the parallel nature of the convolutional layers.
- Accuracy: The model achieved a low 1.5% test error on reconstruction tasks and reached 83.1% accuracy on SNLI, outperforming standard Bag-of-Words (BoW) baselines.
Discussion and Conclusion
The results demonstrate that purely convolutional models can be highly effective for text encoding when properly regularized and structured. The "Balanced Padding" technique and the removal of redundant linear layers were key to these gains.
However, a primary limitation remains: generalization to length. The model's performance degrades when processing sequences significantly longer than those seen during training. Unlike LSTMs, which handle variable lengths through their hidden state, this convolutional model is somewhat constrained by its fixed-size vector window. Future work will explore integrating attention mechanisms to address long-range dependencies while maintaining the speed of the convolutional approach.
Summary updated