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

arXiv: https://arxiv.org/abs/2602.23753 · HTML: https://mlsanity.com/paper/2602.23753/

## Key facts

- No citing papers in the map yet (data through 14 Oct 2026).
- Builds on 10 of its 24 references that are in the map.
- First posted on arXiv 27 Feb 2026.

## Builds on (most cited first, 10 of 10)

- [NSP-BERT: A Prompt-based Few-Shot Learner Through an Original Pre-training Task--Next Sentence Prediction](https://mlsanity.com/paper/2109.03564/) (2021)
- [Towards Unified Prompt Tuning for Few-shot Text Classification](https://mlsanity.com/paper/2205.05313/) (2022)
- [Trustworthy Summarization via Uncertainty Quantification and Risk Awareness in Large Language Models](https://mlsanity.com/paper/2510.01231/) (2025)
- [Dynamic Prompt Fusion for Multi-Task and Cross-Domain Adaptation in LLMs](https://mlsanity.com/paper/2509.18113/) (2025)
- [TextConvoNet:A Convolutional Neural Network based Architecture for Text Classification](https://mlsanity.com/paper/2203.05173/) (2022)
- [Parameter-Efficient Fine-Tuning with Differential Privacy for Robust Instruction Adaptation in Large Language Models](https://mlsanity.com/paper/2512.06711/) (2025)
- [Knowledge-Augmented Large Language Model Agents for Explainable Financial Decision-Making](https://mlsanity.com/paper/2512.09440/) (2025)
- [Structure-Aware Decoding Mechanisms for Complex Entity Extraction with Large-Scale Language Models](https://mlsanity.com/paper/2512.13980/) (2025)
- [Predictive-LoRA: A Proactive and Fragmentation-Aware Serverless Inference System for LLMs](https://mlsanity.com/paper/2512.20210/) (2025)
- [Enhancing Black-Box Few-Shot Text Classification with Prompt-Based Data Augmentation](https://mlsanity.com/paper/2305.13785/) (2023)

## Abstract (arXiv)

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.
