Mitigating Boundary Ambiguity and Inherent Bias for Text Classification in the Era of Large Language Models

Zhenyi Lu, Jie Tian, Wei Wei, Xiaoye Qu, Yu Cheng +2 more
6/11/2024
cs.CLcs.AI

Official code: Chuge0335/PC-CoT (4 stars, last commit 2024-10-27).

Abstract

Text classification is a crucial task encountered frequently in practical scenarios, yet it is still under-explored in the era of large language models (LLMs). This study shows that LLMs are vulnerable to changes in the number and arrangement of options in text classification. Our extensive empirical analyses reveal that the key bottleneck arises from ambiguous decision boundaries and inherent biases towards specific tokens and positions. To mitigate these issues, we make the first attempt and propose a novel two-stage classification framework for LLMs. Our approach is grounded in the empirical observation that pairwise comparisons can effectively alleviate boundary ambiguity and inherent bias. Specifically, we begin with a self-reduction technique to efficiently narrow down numerous options, which contributes to reduced decision space and a faster comparison process. Subsequently, pairwise contrastive comparisons are employed in a chain-of-thought manner to draw out nuances and distinguish confusable options, thus refining the ambiguous decision boundary. Extensive experiments on four datasets (Banking77, HWU64, LIU54, and Clinic150) verify the effectiveness of our framework. Furthermore, benefitting from our framework, various LLMs can achieve consistent improvements. Our code and data are available in \url{https://github.com/Chuge0335/PC-CoT}.

View on arXivView PDF

Code Implementations(1)

Chuge0335/PC-CoTOfficial100%

This is the official code repository for our paper submitted to ACL Findings 2024, titled "Mitigating Boundary Ambiguity and Inherent Bias for Text Classification in the Era of Large Language Models".

43Shell, PythonJun 2, 20241 years ago

Similar Papers

Cite this paper

@article{lu2024mitigating,
  title  = {Mitigating Boundary Ambiguity and Inherent Bias for Text Classification in the Era of Large Language Models},
  author = {Zhenyi Lu and Jie Tian and Wei Wei and Xiaoye Qu and Yu Cheng and Wenfeng xie and Dangyang Chen},
  year   = {2024},
  eprint = {2406.07001},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.07001v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.07001.svg)](https://codeofpaper.com/paper/2406.07001)

Discussion