[Paper Review] Distinguishability Calibration to In-Context Learning
This paper proposes a distinguishability calibration method for in-context learning that enhances embedding discriminability through orthogonal transformation and ratio balancing, combined with hyperbolic metric learning for hierarchical class structures. The approach improves F1 scores by an average of 5.86% across three datasets, with significant gains in 100-shot settings, demonstrating more balanced singular value distributions and reduced cosine similarity between output embeddings.
Recent years have witnessed increasing interests in prompt-based learning in which models can be trained on only a few annotated instances, making them suitable in low-resource settings. When using prompt-based learning for text classification, the goal is to use a pre-trained language model (PLM) to predict a missing token in a pre-defined template given an input text, which can be mapped to a class label. However, PLMs built on the transformer architecture tend to generate similar output embeddings, making it difficult to discriminate between different class labels. The problem is further exacerbated when dealing with classification tasks involving many fine-grained class labels. In this work, we alleviate this information diffusion issue, i.e., different tokens share a large proportion of similar information after going through stacked multiple self-attention layers in a transformer, by proposing a calibration method built on feature transformations through rotation and scaling to map a PLM-encoded embedding into a new metric space to guarantee the distinguishability of the resulting embeddings. Furthermore, we take the advantage of hyperbolic embeddings to capture the hierarchical relations among fine-grained class-associated token embedding by a coarse-to-fine metric learning strategy to enhance the distinguishability of the learned output embeddings. Extensive experiments on the three datasets under various settings demonstrate the effectiveness of our approach. Our code can be found at https://github.com/donttal/TARA.
Motivation & Objective
- To address the information diffusion problem in pre-trained language models (PLMs), where output embeddings for different class labels become overly similar due to shared representations across self-attention layers.
- To improve the distinguishability of output embeddings in few-shot in-context learning by transforming them into a new metric space through rotation and ratio balancing.
- To capture hierarchical relationships among fine-grained class labels using hyperbolic embeddings to guide metric learning and enhance feature discrimination.
- To reduce the distribution mismatch between pre-training and in-context learning by ensuring more isotropic and uncorrelated output representations.
- To provide a plug-in solution compatible with existing prompt-based few-shot learning frameworks that improves performance without fine-tuning the PLM.
Proposed method
- Apply a learnable weight matrix with orthogonal and scaling constraints to transform PLM-encoded output embeddings into a new metric space, ensuring stable and discriminative features under low-data regimes.
- Introduce a ratio balancing mechanism that normalizes the singular values of the transformation matrix to promote uniformity across embedding dimensions and reduce skewness.
- Use hyperbolic space to model hierarchical class relationships, enabling coarse-to-fine metric learning that enhances discrimination among fine-grained labels.
- Formulate a distinguishability loss combining orthogonal regularization, ratio balancing, and L2 regularization to optimize the transformation matrix and improve embedding separability.
- Integrate the method into existing prompt-based few-shot learning pipelines without updating the PLM parameters, maintaining compatibility with in-context learning.
- Leverage singular value decomposition (SVD) to analyze and visualize the distribution of output embeddings, confirming improved isotropy and reduced overlap.
![Figure 1: (a) : The mapping results of 1,500 [MASK] tokens randomly sampled from the GoEmotions dataset. Each red dot is the output representations derived from prompt-based learning for the [MASK] token of an input example, which will be used to predict the masked token in the corresponding positio](https://ar5iv.labs.arxiv.org/html/2302.06198/assets/x1.png)
Experimental results
Research questions
- RQ1Can feature transformation via rotation and ratio balancing improve the distinguishability of output embeddings in in-context learning?
- RQ2Does the use of hyperbolic embeddings enhance the discrimination of fine-grained class labels in few-shot text classification?
- RQ3To what extent does the proposed method reduce information diffusion in PLMs, as measured by cosine similarity between [MASK] token representations?
- RQ4How does the proposed method compare to strong baselines in terms of F1-score across multiple few-shot settings?
- RQ5What is the contribution of each component in the distinguishability loss (orthogonal, ratio, L2) to the overall performance gain?
Key findings
- The proposed method achieves an average 5.86% improvement in F1-score across three multi-class classification datasets under 100-shot learning, with gains of 9.60%, 5.11%, and 2.87% on Emotion, WOS, and GoEmotions respectively.
- The median singular value of output embeddings increased from 0.0028 (baseline) to 0.0145 (ours) on the Emotion dataset, indicating a more balanced distribution and reduced skewness.
- Average cosine similarity between [MASK] token pairs dropped from 0.898 (baseline) to 0.256 (ours) on the Emotion dataset, confirming reduced embedding overlap and improved distinguishability.
- Ablation studies show that removing the ratio balancing loss ($\mathcal{L}_t$) causes the largest performance drop, indicating its critical role in maintaining balanced feature dimensions.
- Visualization via T-SNE confirms that the proposed method projects embeddings into a less overlapping, more isotropic distribution compared to the baseline.
- The method outperforms strong baselines including prompt-tuning and verbalizer-optimized models, especially in low-resource and fine-grained classification scenarios.

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.