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

View at publisher
Authors: Jixiao Yang, Sebastian Sun, Yang Wang, Yutong Wang, Xikai Yang, Chi Zhang
Cited by: 11
References: 23

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.

Fields of Study & Subjects

Topic Modeling Text and Document Classification Technologies Computational and Text Analysis Methods

Publication details

Journal / source
2026 International Conference on Embedded Systems, Mobile Communication and Computing (EMC²)
Publisher
IEEE
Pages
317–322
Publication date
12 January 2026