Learn Before
Concept

Label Mapping for LLM-based Classification

Large Language Models (LLMs) inherently handle classification tasks as text generation problems because their primary design is to produce text, not to assign discrete labels. This approach means that instead of outputting a simple label like 'negative', an LLM generates a descriptive sentence, such as 'The polarity of the text can be classified as negative'. Consequently, a separate process known as 'label mapping' is required to parse this textual output and convert it into a predefined class label.

0

1

Updated 2026-04-29

Contributors are:

Who are from:

Tags

Ch.3 Prompting - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences

Learn After