Papers › Mitigating Boundary Ambiguity and Inherent Bias for Text Classification in the Era of...

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

11 Jun 2024arXiv:2406.07001archive 2025-07-28

Zhenyi Lu, Jie Tian, Wei Wei, Xiaoye Qu, Yu Cheng, Wenfeng Xie, Dangyang Chen

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}.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2406.07001")

Code

Syntology Ran 13 of 15 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 13 ran with no contract checked.

By repository: official repository: 15 samples from 1 repository, 13 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

chuge0335/pc-cot officialmentioned in papermentioned on GitHub report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 13 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

13ran
2unverified

Licence: 15 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from chuge0335/pc-cot. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

calculate_similarity chuge0335/pc-cot/prompter.py official repository ran fingerprinted no licence file found · pointer only · c0eb035295701366 · report
conver chuge0335/pc-cot/dataloader.py official repository ran no licence file found · pointer only · 4e62f2cae9acd638 · report
extract_format chuge0335/pc-cot/extract_answer.py official repository ran fingerprinted no licence file found · pointer only · a519bacd972c0be9 · report
extract_list chuge0335/pc-cot/extract_answer.py official repository ran no licence file found · pointer only · 7f6ef51c414f4f25 · report
find_least_similar_pair chuge0335/pc-cot/prompter.py official repository ran no licence file found · pointer only · 7b88d8c2a68c7e24 · report
get_parameters chuge0335/pc-cot/construct_prompt.py official repository ran fingerprinted no licence file found · pointer only · f7289b4621cb8dfe · report
infer chuge0335/pc-cot/openai_client.py official repository ran no licence file found · pointer only · a38d37839ce6f005 · report
most_common_elements chuge0335/pc-cot/label_select.py official repository ran no licence file found · pointer only · c09b5d14f51af2ba · report
pwd chuge0335/pc-cot/utils.py official repository ran fingerprinted no licence file found · pointer only · a3f1cee125771755 · report
sort_fun chuge0335/pc-cot/extract_answer.py official repository ran fingerprinted no licence file found · pointer only · 24dbe2252563041a · report
split_multi_round chuge0335/pc-cot/construct_prompt.py official repository ran fingerprinted no licence file found · pointer only · 6f92b5a5a9bc5643 · report
top_acc chuge0335/pc-cot/utils.py official repository ran no licence file found · pointer only · 4085c4d168961756 · report
valid chuge0335/pc-cot/metrics.py official repository ran no licence file found · pointer only · eda4f1b5a754ad75 · report
new_sample chuge0335/pc-cot/utils.py official repository unverified no licence file found · pointer only · ac470f6ea3fe003f · report
split_data chuge0335/pc-cot/openai_client.py official repository unverified no licence file found · pointer only · 130d80d6ceacd106 · report

Tasks

Text Classificationtext-classification

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections