Pith. sign in

REVIEW 2 cited by

In-Context Learning for Text Classification with Many Labels

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2309.10954 v2 pith:Q5BWL2UF submitted 2023-09-19 cs.CL cs.LG

classification cs.CLcs.LG
keywords examplesin-contextmodelclassificationlabelsperformanceanalyzecertain
verification ladder T0 review T1 audit T2 compute T3 formal

Signed reviews

No signed human review yet.

0 comments
read the original abstract

In-context learning (ICL) using large language models for tasks with many labels is challenging due to the limited context window, which makes it difficult to fit a sufficient number of examples in the prompt. In this paper, we use a pre-trained dense retrieval model to bypass this limitation, giving the model only a partial view of the full label space for each inference call. Testing with recent open-source LLMs (OPT, LLaMA), we set new state of the art performance in few-shot settings for three common intent classification datasets, with no finetuning. We also surpass fine-tuned performance on fine-grained sentiment classification in certain cases. We analyze the performance across number of in-context examples and different model scales, showing that larger models are necessary to effectively and consistently make use of larger context lengths for ICL. By running several ablations, we analyze the model's use of: a) the similarity of the in-context examples to the current input, b) the semantic content of the class names, and c) the correct correspondence between examples and labels. We demonstrate that all three are needed to varying degrees depending on the domain, contrary to certain recent works.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Dynamic Label Name Refinement for Few-Shot Dialogue Intent Classification

    cs.CL 2024-12 conditional novelty 6.0 of 10

    Dynamic, per-query rewriting of intent labels by an LLM improves few-shot dialogue intent classification accuracy compared to retrieval ICL with original labels.

  2. GenCLS++: Pushing the Boundaries of Generative Classification in LLMs Through Comprehensive SFT and RL Studies Across Diverse Datasets

    cs.CL 2025-04 conditional novelty 5.0 of 10

    SFT plus RL with post-hoc selection of the best training and inference prompts improves generative text classification accuracy by about 3.5% relative to a naive SFT baseline.

Pith tools