A decoder-only transformer generates text by predicting the next token from the preceding context. Unlike a classifier limited to predefined intents, it can produce specific, personalized responses and can be instructed to perform tasks such as classification, question answering, and summarization. section 4.1.4
From intent labels to useful responses
A traditional model might map a user message to one predefined intent. A decoder-only model instead continues the input with a likely text completion, allowing a conversational system to address the request directly and with context. section 4.1.4
Figure 4.4 Traditional classification models use supervised learning to predict one of several predefined classifications. They look for the intent, or meaning, of a user input. Generative models use decoding transformers to create a text completion. They predict the next sequence of tokens (loosely, words or characters) that are most likely to occur after the user input.
Compare supervised classification, which selects among predefined categories, with generative decoding, which predicts the next sequence of tokens. section 4.1.4







