Search papers, labs, and topics across Lattice.
This paper addresses the challenge of text classification in large language models (LLMs) when faced with semantically similar labels that are domain-specific. The proposed framework enhances label retrieval by identifying confusable label pairs, expanding the candidate set, and generating targeted differentiation rules without requiring fine-tuning. The results show significant improvements in Macro F1 scores, with gains of up to 10.0 percentage points on various benchmarks, particularly benefiting smaller models through cross-model transfer.
Confusion-aware retrieval can boost text classification performance by up to 10 percentage points, even for smaller models.
Large language models (LLMs) struggle to classify text into taxonomies with many semantically similar labels, as the distinctions are domain-specific and not captured by pre-training. To handle large label spaces, a common approach retrieves top-$K$ candidate labels by embedding similarity and prompt the LLM to choose among them. However, top-$K$ retrieval reduces the number of candidates but does not help the model tell similar ones apart. When two similar labels both appear as candidates, the model lacks the signal to choose correctly between them. We propose a framework that (1) identifies which label pairs the model struggles to distinguish, (2) expands the candidate set to include confusable labels, and (3) generates targeted rules to differentiate between similar candidates. The framework requires no fine-tuning, and the generated rules transfer to smaller, cheaper models. On three benchmarks (WOS, Flipkart, LEDGAR), our approach improves Macro F1 by up to 10.0pp over retrieval baselines, with smaller models (2B--20B) gaining up to 11.5pp via cross-model transfer.