[Paper Review] The Devil is the Classifier: Investigating Long Tail Relation Classification with Decoupling Analysis
This paper proposes Attentive Relation Routing (ARR), a novel classifier decoupled from representation learning to address long-tailed relation classification. By dynamically assigning soft attention weights to relations, ARR improves tail performance without degrading head performance, achieving state-of-the-art results on FewRel-LT (+5% macro F1) and TACRED (+3% micro F1), demonstrating that classifier design is more critical than representation learning for long-tailed NLP tasks.
Long-tailed relation classification is a challenging problem as the head classes may dominate the training phase, thereby leading to the deterioration of the tail performance. Existing solutions usually address this issue via class-balancing strategies, e.g., data re-sampling and loss re-weighting, but all these methods adhere to the schema of entangling learning of the representation and classifier. In this study, we conduct an in-depth empirical investigation into the long-tailed problem and found that pre-trained models with instance-balanced sampling already capture the well-learned representations for all classes; moreover, it is possible to achieve better long-tailed classification ability at low cost by only adjusting the classifier. Inspired by this observation, we propose a robust classifier with attentive relation routing, which assigns soft weights by automatically aggregating the relations. Extensive experiments on two datasets demonstrate the effectiveness of our proposed approach. Code and datasets are available in https://github.com/zjunlp/deepke.
Motivation & Objective
- To investigate whether representation learning or classifier design is more critical for long-tailed relation classification.
- To decouple classifier learning from representation learning to better understand the mechanisms behind long-tailed performance.
- To improve tail relation classification without degrading head performance through a robust, adaptive classifier.
- To develop a soft-weighting mechanism that dynamically routes attention across relations for better discriminability.
Proposed method
- The authors conduct a two-stage decoupling analysis: first training a fixed BERT encoder with instance-balanced sampling, then evaluating different classifier training strategies.
- They propose Attentive Relation Routing (ARR), a soft-weighting mechanism inspired by dynamic routing in capsule networks, which assigns attention-based weights to relations during classification.
- ARR uses a routing mechanism that aggregates relation representations through attention, enabling the classifier to adaptively focus on informative relations.
- The method is trained end-to-end with a cross-entropy loss, where routing weights are updated via backpropagation to improve discriminability.
- The approach is evaluated on FewRel-LT (a long-tailed variant of FewRel) and TACRED, using macro F1 and micro F1 as metrics.
- The authors release code and a long-tailed RC testbed to support reproducibility and future benchmarking.
Experimental results
Research questions
- RQ1Is representation learning or classifier learning more important for long-tailed relation classification?
- RQ2Can a well-trained classifier compensate for imbalanced data without retraining the representation encoder?
- RQ3Does a soft-weighting mechanism like attention-based routing outperform hard-weighting or fixed classifiers in long-tailed settings?
- RQ4Can a decoupled classifier improve tail performance without harming head performance?
Key findings
- With a fixed BERT encoder, classifier re-weighting (e.g., RWL, FCL, DSL) and re-sampling (e.g., PBS) significantly improve performance, indicating that classifier design is more impactful than representation learning.
- Data re-sampling and loss re-weighting methods improve tail performance but degrade head performance, suggesting a trade-off in existing approaches.
- The proposed Attentive Relation Routing (ARR) achieves 75.30 macro F1 on FewRel-LT and 68.8 micro F1 on TACRED, outperforming all baselines including BBN and τ-norm.
- ARR improves tail F1 without reducing head performance, demonstrating that soft attention routing enhances discriminability across all classes.
- The ablation study confirms that ARR’s dynamic routing mechanism is key to balancing head and tail performance, especially in long-tailed distributions.
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.