In-Context Learning for Extreme Multi-Label Classification
Not on the map. Why?
Abstract (arXiv)
Multi-label classification problems with thousands of classes are hard to solve with in-context learning alone, as language models (LMs) might lack prior knowledge about the precise classes or how to assign them, and it is generally infeasible to demonstrate every class in a prompt. We propose a general program, textttInfer--Retrieve--Rank, that defines multi-step interactions between LMs and retrievers to efficiently tackle such problems. We implement this program using the textttDSPy programming model, which specifies in-context systems in a declarative manner, and use textttDSPy optimizers to tune it towards specific datasets by bootstrapping only tens of few-shot examples. Our primary extreme classification program, optimized separately for each task, attains state-of-the-art results across three benchmarks (HOUSE, TECH, TECHWOLF). We apply the same program to a benchmark with vastly different characteristics and attain competitive performance as well (BioDEX). Unlike prior work, our proposed solution requires no finetuning, is easily applicable to new tasks, alleviates prompt engineering, and requires only tens of labeled examples. Our code is public at https://github.com/KarelDO/xmc.dspy.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 10 of its 17 references that are in the map. First posted on arXiv 22 Jan 2024.
Builds on
10 of 17 references.
References · 10
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
- 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 803
- 2022SkillSpan: Hard and Soft Skill Extraction from English Job Postingscited by 41
- 2023IDAS: Intent Discovery with Abstractive Summarizationcited by 22
- 2022BioLORD: Learning Ontological Representations from Definitions (for Biomedical Concepts and their Textual Descriptions)cited by 20
- 2022Design of Negative Sampling Strategies for Distantly Supervised Skill Extractioncited by 16
- 2023Large Language Models as Batteries-Included Zero-Shot ESCO Skills Matcherscited by 14
- 2023BioDEX: Large-Scale Biomedical Adverse Drug Event Extraction for Real-World Pharmacovigilancecited by 10
Built on by
Citing papers per year: 2024: 1; 2025: 2; 2026: 1.
4 papers.
- 2025Efficient Text Encoders for Labor Market Analysiscited by 5
- 2024Dr. SoW: Density Ratio of Strong-over-weak LLMs for Reducing the Cost of Human Annotation in Preference Tuningcited by 1
- 2025A Multi-Stage Framework with Taxonomy-Guided Reasoning for Occupation Classification Using Large Language Modelscited by 1
- 2026Privacy Vulnerabilities of Attention Layers in Tabular Foundation Models and Protection of High-Risk Queriescited by 0
- 2026Privacy Vulnerabilities of Attention Layers in Tabular Foundation Models and Protection of High-Risk Queries24 Jun 2026
- 2025Efficient Text Encoders for Labor Market Analysis30 May 2025
- 2025A Multi-Stage Framework with Taxonomy-Guided Reasoning for Occupation Classification Using Large Language Models17 Mar 2025
- 2024Dr. SoW: Density Ratio of Strong-over-weak LLMs for Reducing the Cost of Human Annotation in Preference Tuning4 Nov 2024