[Paper Review] Jointly Trained Sequential Labeling and Classification by Sparse Attention Neural Networks
This paper proposes a jointly trained LSTM-based model with sparse attention for simultaneous sentence classification and sequential labeling, leveraging long-term dependencies and semantic relevance to improve performance. The method achieves state-of-the-art results on ATIS and TREC datasets, with a 2-point F1 improvement in slot filling and reduced error rates in sentence classification through targeted attention mechanisms.
Sentence-level classification and sequential labeling are two fundamental tasks in language understanding. While these two tasks are usually modeled separately, in reality, they are often correlated, for example in intent classification and slot filling, or in topic classification and named-entity recognition. In order to utilize the potential benefits from their correlations, we propose a jointly trained model for learning the two tasks simultaneously via Long Short-Term Memory (LSTM) networks. This model predicts the sentence-level category and the word-level label sequence from the stepwise output hidden representations of LSTM. We also introduce a novel mechanism of "sparse attention" to weigh words differently based on their semantic relevance to sentence-level classification. The proposed method outperforms baseline models on ATIS and TREC datasets.
Motivation & Objective
- To address the limitations of separate modeling of sentence-level classification and sequential labeling tasks.
- To improve generalization and capture long-term dependencies by using LSTM for joint learning of both tasks.
- To enhance sentence representation by introducing a sparse attention mechanism that highlights semantically relevant words.
- To enable zero-shot or weakly supervised learning by treating word-level labels as latent variables.
- To overcome the shortcomings of CRF-based and CNN-based models in capturing long-range context and nonlinear representations.
Proposed method
- The model uses a convolutional layer to extract local features before feeding them into an LSTM network for sequence modeling.
- Word-level labels are predicted greedily from the LSTM hidden state at each time step using a softmax layer over label space.
- Sentence-level classification is performed by pooling the LSTM hidden representations across all time steps.
- A novel sparse attention mechanism assigns higher weights to semantically relevant words, with sparsity controlled by hyperparameters ρ and β.
- The attention function is defined as a differentiable, non-softmax mechanism that allows non-uniform, sparse attention weights without requiring sum-to-one constraints.
- A latent variable version of the model is introduced, enabling training on sentence classification alone by marginalizing over unobserved word-level labels.
Experimental results
Research questions
- RQ1Can joint training of sentence classification and sequential labeling improve performance compared to independent modeling?
- RQ2Can sparse attention mechanisms enhance model performance by focusing on semantically relevant words in a sentence?
- RQ3Does the proposed model generalize better than existing CRF- or CNN-based joint models on unseen data?
- RQ4How does the model perform when word-level labels are treated as latent variables during inference?
- RQ5Can the sparse attention mechanism reduce the negative impact of semantically vacuous words on sentence classification?
Key findings
- The jointly trained model achieves a 2-point F1 improvement in slot filling compared to baseline models on the ATIS dataset.
- With sparse attention, the model reduces the error rate in sentence classification on ATIS, outperforming both non-sparse and non-joint models.
- The latent variable version of the model maintains strong performance even when word-level labels are not observed, showing robustness and generalization.
- Visualization shows that sparse attention correctly identifies key terms like 'currency' over 'Luxembourg', while softmax-based attention often misassigns attention due to flat distributions.
- In single-sentence attention, sparse attention outperforms softmax-based attention by avoiding cross-influence between unrelated words, especially in cases like 'run' being misaligned.
- The model outperforms RecNN-based and other neural joint models, demonstrating the effectiveness of combining LSTM with sparse attention for joint learning.
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.