Training-Free versus Training-Based Intent Classification in LLMs: Accuracy, Robustness, and Failure Modes
Nan Chen, Zhouhao Yang, Soufiane Hayou
cs.CL
Submitted: 2026-08-03
Comments: Accepted at the Conference on Language Modeling (COLM 2026)
Code: https://github.com/Zhouhao-Yang/Training-Free-versus-Training-Based-Intent-Classification-in-LLMs
License: http://creativecommons.org/licenses/by/4.0/
The gist: Intent classification in Large Language Models (LLMs) involves categorizing user prompts into predefined classes.
Terminology
Abstract
Intent classification in Large Language Models (LLMs) involves categorizing user prompts into predefined classes. For instance, given a user prompt, the system must determine whether it primarily concerns mathematics, coding, or general text processing. Such classification enables routing prompts to specialized models optimized for specific domains, improving both accuracy and computational efficiency. In this work, we conduct a systematic study comparing training-free vs training-based approaches for intent classification. For this purpose, we consider two lightweight, training-free methods based on statistics of internal representations and compare them against MLP classifiers and linear probes. Our comprehensive empirical evaluation reveals that 1) Both training-free and training-based methods saturate easy benchmarks (mathematics vs. coding vs. natural language), 2) Training-based classifiers have an advantage on harder classification tasks (e.g. Java vs Python), and 3) Training-free methods are generally more robust to mixed-intent and adversarial prompts.
Sources
- AutoMix: Automatically Mixing Language Models
- GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints
- Understanding intermediate layers using linear classifier probes
- Intent Detection in the Age of LLMs
- A Multitask, Multilingual, Multimodal Evaluation of ChatGPT on Reasoning, Hallucination, and Interactivity
- LLM2Vec: Large Language Models Are Secretly Powerful Text Encoders
- Rasa: Open Source Language Understanding and Dialogue Management
- DIET: Lightweight Language Understanding for Dialogue Systems
- Efficient Intent Detection with Dual Sentence Encoders
- Palu: Compressing KV-Cache with Low-Rank Projection
- FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performance
- BERT for Joint Intent Classification and Slot Filling
- Training Verifiers to Solve Math Word Problems
- A Unified Approach to Routing and Cascading for LLMs
- Toy Models of Superposition
- GraphRouter: A Graph-based Router for LLM Selections
- DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligence
- Tryage: Real-time, intelligent Routing of User Prompts to Large Language Models
- PLoP: Precise LoRA Placement for Efficient Finetuning of Large Models
- Measuring Mathematical Problem Solving With the MATH Dataset
Related papers
- Exploring Solution Divergence and Its Effect on Large Language Model Problem Solving
- Ishigaki-IDS-Bench: A Benchmark for Generating Information Delivery Specification from BIM Information Requirements
- Subliminal Steering: Stronger Encoding of Hidden Signals
- MedStruct-S: A Benchmark for Key Discovery, Key-Conditioned QA and Semi-Structured Extraction from OCR Clinical Reports
- The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
- Untangling the Mechanisms of Misleading Context in Medical Question Answering