[Paper Review] TRANS-BLSTM: Transformer with Bidirectional LSTM for Language Understanding
This paper proposes TRANS-BLSTM, a hybrid architecture that integrates bidirectional LSTM (BLSTM) layers into each transformer block of BERT, combining the long-range attention of transformers with the sequential modeling strength of BLSTM. The model achieves state-of-the-art performance on SQuAD 1.1 (F1: 94.01%) and consistently improves accuracy over BERT baselines on GLUE benchmarks, demonstrating that architectural fusion enhances representation learning beyond scaling model size.
Bidirectional Encoder Representations from Transformers (BERT) has recently achieved state-of-the-art performance on a broad range of NLP tasks including sentence classification, machine translation, and question answering. The BERT model architecture is derived primarily from the transformer. Prior to the transformer era, bidirectional Long Short-Term Memory (BLSTM) has been the dominant modeling architecture for neural machine translation and question answering. In this paper, we investigate how these two modeling techniques can be combined to create a more powerful model architecture. We propose a new architecture denoted as Transformer with BLSTM (TRANS-BLSTM) which has a BLSTM layer integrated to each transformer block, leading to a joint modeling framework for transformer and BLSTM. We show that TRANS-BLSTM models consistently lead to improvements in accuracy compared to BERT baselines in GLUE and SQuAD 1.1 experiments. Our TRANS-BLSTM model obtains an F1 score of 94.01% on the SQuAD 1.1 development dataset, which is comparable to the state-of-the-art result.
Motivation & Objective
- To investigate whether combining transformer and bidirectional LSTM (BLSTM) architectures can improve language representation beyond scaling model size.
- To address the limitation of BERT's masked language modeling pretraining objective by integrating sequential modeling via BLSTM.
- To develop a joint modeling framework that leverages the strengths of both transformers (long-range dependencies) and BLSTM (contextual sequence modeling).
- To evaluate whether the hybrid architecture outperforms pure BERT and standalone BLSTM models on standard NLP benchmarks.
- To explore whether architectural enhancement, rather than just increasing model size, leads to consistent accuracy gains in transfer learning.
Proposed method
- The proposed TRANS-BLSTM architecture inserts a BLSTM layer after each multi-head self-attention block in the transformer encoder.
- Each transformer block processes input through multi-head self-attention, followed by a feedforward network and residual connection, with an additional BLSTM layer applied to the residual output.
- The model uses whole-word masking during pretraining, which improves performance over BERT’s partial word masking.
- The architecture is fine-tuned on downstream tasks using standard BERT-style fine-tuning with learning rate search and multiple random restarts for stability.
- The method is evaluated on SQuAD 1.1 and GLUE benchmarks, comparing against BERT-base, BERT-large, and BERT-xlarge models.
- The model is trained with standard BERT hyperparameters, including batch size 32 and 3 epochs for fine-tuning on GLUE tasks.
Experimental results
Research questions
- RQ1Can integrating BLSTM layers into each transformer block improve performance on NLP benchmarks compared to standard BERT?
- RQ2Does the joint modeling of transformers and BLSTM mitigate the pretrain-finetune discrepancy seen in BERT?
- RQ3Is the performance gain due to architectural fusion or simply due to increased model capacity?
- RQ4How does the hybrid model compare to standalone BLSTM and BERT models in terms of accuracy and training stability?
- RQ5Does architectural enhancement outperform mere model scaling in terms of accuracy gains?
Key findings
- The TRANS-BLSTM model achieves an F1 score of 94.01% on the SQuAD 1.1 development set, matching the state-of-the-art result.
- On SQuAD 1.1, the large TRANS-BLSTM model improves the base BERT model’s F1 from 90.05% to 94.01%, demonstrating consistent gains.
- On GLUE, the TRANS-BLSTM base model improves the average score from 84.63% (TRANS/BERT) to 85.35%, and the large model from 85.59% to 86.50%.
- The model with 48 layers (TRANS/BERT-48) shows no accuracy gain over the 24-layer BERT-large model, indicating diminishing returns from depth.
- Simply doubling the hidden size of BERT-large (to 2048) results in a drop to 86.3% F1 on SQuAD 1.1, showing that increased size alone harms performance.
- The model outperforms both standalone BLSTM and BERT-base, confirming that the fusion architecture is more effective than either component alone.
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.