TL;DR
This paper introduces "reverse probing" to evaluate how knowledge from simpler NLP tasks transfers to a complex task like coreference resolution. They found that combining embeddings from multiple simpler tasks, especially those focused on semantic similarity, significantly boosts performance, and that intermediate layers of models often hold more transferable knowledge than final layers.
What Problem Does This Paper Address?
Traditionally, "probing" in NLP involves training simple classifiers on top of frozen representations from a complex, pre-trained model to understand what linguistic knowledge it has learned. This paper flips this paradigm, asking the inverse: can embeddings from simpler tasks, when fine-tuned, be effectively transferred and combined to solve a complex task like coreference resolution? This "reverse probing" approach aims to understand how knowledge is encoded in simpler models and how it can be reused for more challenging NLP problems, potentially leading to more efficient deep learning by leveraging existing representations. Coreference resolution is chosen as the target task due to its inherent complexity, requiring deep contextual understanding.
Methods
The core of the methodology involves:
- Reverse Probing Framework: Instead of probing a complex model on simple tasks, they fine-tune simpler source task models (e.g., paraphrase detection, NER) and then extract their embeddings.
- Embedding Extraction: Embeddings are extracted from various layers of these fine-tuned source models. They explore using single layers or truncating models to intermediate layers. L2 normalization is also applied in some experiments.
- Embedding Aggregation: Embeddings from different source tasks and layers are combined using two main strategies:
- Mean Aggregation: A simple average of the token embeddings.
- Attention Aggregation: A more sophisticated mechanism that learns to weigh the importance of different source embeddings.
- Target Task: The aggregated embeddings are then fed into a trainable "task head" for coreference resolution.
Datasets
- Target Task Dataset: OntoNotes CoNLL 2012 corpus for coreference resolution.
- Source Task Datasets:
- Microsoft Research Paraphrase Corpus (MRPC) for paraphrase identification.
- CoNLL 2012 dataset for Named Entity Recognition (NER).
- TACRED dataset for Relation Extraction (RE).
- SQuAD 2.0 dataset for Extractive Question Answering (QA).
- Vanilla BERT (pre-trained on BookCorpus and English Wikipedia) was also used as a baseline.
Key Insights and Ideas
- Semantic Similarity is Key: Embeddings from tasks like paraphrase detection (MRPC), which focus on semantic similarity, proved most beneficial for coreference resolution. This suggests that understanding meaning equivalence is a crucial building block for resolving coreferences.
- Intermediate Layers Shine: Surprisingly, embeddings from intermediate layers of fine-tuned models often outperformed those from the final layers. This indicates that final layers might become too specialized for their specific source task, losing generalizable knowledge.
- Combination is Powerful: Combining embeddings from multiple source tasks consistently improved performance on the target task, especially when using attention-based aggregation. This highlights the benefit of a multi-faceted understanding.
- Attention Outperforms Mean: The attention-based aggregation method generally yielded better results than simple mean aggregation, demonstrating its ability to effectively learn how to combine diverse knowledge sources.
- Task-Specific vs. General Knowledge: While some source tasks (like NER) had embeddings that were less similar to the target task embeddings (in terms of cosine similarity), they could still achieve competitive performance, suggesting that direct similarity isn't always the best predictor of transferability.
Key Results
- Single Model Performance: MRPC and vanilla BERT embeddings achieved the highest F1 scores (around 64%) when used individually for coreference resolution. NER performed the worst (around 36% F1).
- Aggregation Gains: Attention aggregation consistently improved performance over mean aggregation, with gains of up to +19.7% for NER and +9% for QA in single-model scenarios.
- Truncation Benefits: Truncating models to their "best" intermediate layer (e.g., layer 9 for MRPC/RE, layer 8 for QA, layer 6 for NER) significantly boosted performance, with NER seeing an improvement of up to +26.2%.
- Combinations Excel: Pairs of models, especially when using attention aggregation, generally outperformed single models. For example, NER+MRPC with attention aggregation achieved +13.23% improvement.
- Layer Context: Combining embeddings from the last 4 or 6 hidden layers (concatenation) often improved performance over using just the final layer, with NER benefiting the most.
Limitations and Future Work
- BERT-Centric: The study exclusively used BERT-based models, limiting generalizability to other architectures like GPT or T5. Future work should explore a broader range of models.
- Limited Source Tasks: The selection of source tasks was not exhaustive. Other tasks like sentiment analysis or syntactic parsing could offer valuable insights. Some chosen tasks (like QA) are not strictly "simpler" than coreference resolution.
- Computational Overhead: Combining embeddings from multiple layers and tasks introduces computational cost.
- Future Directions: The authors suggest exploring more embedding manipulation techniques (e.g., combining truncation and normalization), investigating attention aggregation with hidden layer concatenations for multiple models, and replicating experiments on larger models and different tasks (e.g., semantic role labeling).
Summary updated