arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.23753cs.CL
收藏

通过潜在空间语义对齐的结构化提示优化实现少样本文本分类

Structured Prompt Optimization for Few-Shot Text Classification via Semantic Alignment in Latent Space

Northwestern University(西北大学);Syracuse University(雪城大学);University of Toronto(多伦多大学);University of Wisconsin-Madison(威斯康星大学麦迪逊分校);Purdue University(普渡大学)

Jiasen Zheng, Zijun Zhou, Huajun Zhang, Junjiang Lin, Jingyun Jia, Qi Wang

AI总结:

本文提出通过潜在空间语义对齐的结构化提示优化方法,解决少样本文本分类中的语义冲突和标签模糊问题,提升分类性能和跨任务适用性。

摘要:

本研究针对少样本文本分类中语义纠缠、标签结构不明确和特征表示不足的问题,提出了一种基于结构化提示的优化框架,以在低资源条件下增强语义理解和任务适应性。该框架首先使用预训练语言模型对输入文本进行编码,获取基本的语义表示。然后引入由多维语义因素组成的结构化提示,并通过可学习的组合机制将其与文本特征相结合,从而在潜在空间中形成具有明确边界的任务相关表示。为进一步加强文本表示与标签语义之间的一致性,该方法构建了结构化标签嵌入矩阵,并采用跨空间对齐机制,确保文本特征与标签属性之间的稳定匹配。此外,模型应用提示正交约束和联合优化目标,以维持提示中不同语义因素之间的独立性,使结构化提示能够为分类决策提供透明且可控的指导。设计了三种敏感性实验,包括学习率敏感性、提示长度敏感性和数据规模敏感性,以评估框架在不同条件下的稳定性和鲁棒性。实验结果表明,所提出的结构化提示优化框架有效缓解了少样本文本分类中的语义冲突和标签模糊性。它显著提高了准确率、精确率、召回率和AUC的性能,并展示了强大的跨任务适用性。

英文摘要:

This study addresses the issues of semantic entanglement, unclear label structure, and insufficient feature representation in few-shot text classification, and proposes an optimization framework based on structured prompts to enhance semantic understanding and task adaptation under low-resource conditions. The framework first uses a pretrained language model to encode the input text and obtain basic semantic representations. It then introduces structured prompts composed of multi-dimensional semantic factors and integrates them with text features through a learnable combination mechanism, which forms task-related representations with clear boundaries in the latent space. To further strengthen the consistency between text representations and label semantics, the method constructs a structured label embedding matrix and employs a cross-space alignment mechanism to ensure stable matching between textual features and label attributes. In addition, the model applies prompt orthogonality constraints and a joint optimization objective to maintain independence across different semantic factors in the prompts, allowing the structured prompts to provide transparent and controllable guidance for classification decisions. Three types of sensitivity experiments, including learning rate sensitivity, prompt length sensitivity, and data scale sensitivity, are designed to evaluate the stability and robustness of the framework under different conditions. Experimental results show that the proposed structured prompt optimization framework effectively alleviates semantic conflicts and label ambiguity in few-shot text classification. It significantly improves performance on accuracy, precision, recall, and AUC, and demonstrates strong cross-task applicability.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑