[Paper Review] Same Representation, Different Attentions: Shareable Sentence Representation Learning from Multiple Tasks
This paper proposes a multi-task learning framework where all tasks share a single, generic sentence representation, using task-specific attention mechanisms to dynamically select relevant features. Experiments on 16 text classification tasks show that this approach improves performance, enables faster convergence, and enhances transferability, especially when auxiliary tasks like POS tagging and chunking are included.
Distributed representation plays an important role in deep learning based natural language processing. However, the representation of a sentence often varies in different tasks, which is usually learned from scratch and suffers from the limited amounts of training data. In this paper, we claim that a good sentence representation should be invariant and can benefit the various subsequent tasks. To achieve this purpose, we propose a new scheme of information sharing for multi-task learning. More specifically, all tasks share the same sentence representation and each task can select the task-specific information from the shared sentence representation with attention mechanism. The query vector of each task's attention could be either static parameters or generated dynamically. We conduct extensive experiments on 16 different text classification tasks, which demonstrate the benefits of our architecture.
Motivation & Objective
- To address the lack of a generic, transferable sentence representation suitable for multiple NLP tasks.
- To overcome the limitations of task-specific representations trained from scratch, which require large labeled datasets.
- To improve model efficiency and performance by sharing a single sentence representation across tasks while allowing task-specific feature selection.
- To enhance transferability and generalization by incorporating auxiliary sequence labeling tasks (e.g., POS tagging, chunking) into the multi-task learning framework.
Proposed method
- All tasks share a single, shared sentence representation learned via a shared encoder (e.g., BiLSTM), eliminating task-specific representation layers.
- Each task uses a learnable or dynamically generated query vector to attend to task-relevant parts of the shared representation via an attention mechanism.
- The attention mechanism computes a weighted sum over the shared hidden states, allowing each task to focus on different semantic aspects of the same sentence.
- Auxiliary tasks such as POS tagging and chunking are jointly trained with primary classification tasks, sharing the same sentence encoding layer.
- The model is trained end-to-end with cross-entropy loss for classification and sequence labeling, with shared parameters across tasks.
- The architecture enables visualization of attention distributions, revealing which words or phrases are emphasized per task.
Experimental results
Research questions
- RQ1Can a single, shared sentence representation be effectively used across multiple NLP tasks while still capturing task-specific nuances?
- RQ2How does attention-based feature selection from a shared representation compare to traditional private-shared architectures in multi-task learning?
- RQ3To what extent can auxiliary sequence labeling tasks improve the quality of the shared sentence representation for downstream classification tasks?
- RQ4Does the proposed model achieve faster convergence and better generalization compared to existing multi-task learning baselines?
Key findings
- The proposed SA-MTL model achieves state-of-the-art performance on 16 sentiment classification tasks, outperforming both SSP-MTL and PSP-MTL baselines.
- Incorporating auxiliary tasks like chunking and POS tagging leads to significant performance gains, with DA-MTL achieving 89.04% average precision on the CoNLL-2000 dataset.
- The model converges faster and is more parameter-efficient than existing multi-task learning architectures due to the shared representation and attention-based selection.
- Visualization shows that the model correctly identifies sentiment-relevant phrases (e.g., 'easy to use') in sentiment tasks and domain-relevant terms (e.g., 'infantile cart') in domain classification, even when trained jointly.
- Models trained with auxiliary tasks (e.g., chunking) demonstrate improved robustness, correctly distinguishing between prepositional phrases and verb phrases, leading to correct sentiment predictions in ambiguous cases.
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.