Litcius/Paper detail

Semantic Alignment and Output Constrained Generation for Reliable LLM-based Classification

Jixiao Yang, Sebastian Sun, Yang Wang, Yutong Wang, Xikai Yang, Chi Zhang

20268 citationsDOI

Abstract

To address the limited controllability, unstable output consistency, and weakly constrained decision processes of large language models in text classification tasks, this work proposes a controllable prompt-driven text classification method that establishes an end-to-end unified modeling framework from instruction alignment to constrained decoding. Text classification is reformulated as an instruction-conditioned generative discriminative problem. Input texts and task instructions are jointly encoded to form a unified internal representation that integrates textual semantics with classification constraints. On this basis, a category semantic alignment mechanism is introduced to ensure that the model explicitly follows category boundaries and decision criteria defined by the instructions, thereby reducing classification inconsistency caused by prompt variation or implicit bias. To further improve output reliability, a structured constrained decoding strategy is designed to restrict the generation space to a predefined set of valid categories, preventing redundant text or invalid outputs from interfering with classification results. Comparative analysis under unified data and evaluation settings demonstrates that the proposed method achieves more consistent advantages in classification accuracy, discriminative stability, and overall separability. These findings indicate that deeply integrating instruction understanding and output control into the decision process of large language models effectively transforms their generative capacity into stable, interpretable, and controllable text classification capability, providing a systematic solution for building reliable intelligent text analysis systems.

Topics & Concepts

Discriminative modelComputer scienceSemantics (computer science)Artificial intelligenceSet (abstract data type)Generative grammarRepresentation (politics)Process (computing)Generative modelTask (project management)Machine learningNatural language processingLanguage modelVariation (astronomy)Class (philosophy)Key (lock)Unified ModelEncoding (memory)Task analysisComponent (thermodynamics)Decoding methodsFrame (networking)Space (punctuation)Control (management)Data miningPattern recognition (psychology)Construct (python library)Topic ModelingText and Document Classification TechnologiesComputational and Text Analysis Methods