1. Introduction
Multimodal sentiment analysis (MSA) aims to infer sentiment polarity by jointly modeling heterogeneous signals from multiple modalities, such as textual content and visual information [
1,
2]. It has been widely studied in applications such as social media monitoring, opinion mining, and online product analysis, where sentiment understanding often depends on the interaction between linguistic expressions and visual contexts [
3,
4]. Compared with text-only sentiment analysis, MSA is more challenging because different modalities may provide complementary, ambiguous, or even conflicting affective cues. Sentiment representation can be studied from two complementary perspectives: categorical representations describe affect with discrete labels such as positive and negative, whereas dimensional representations use continuous affective dimensions such as valence and arousal to characterize sentiment intensity and affective ambiguity. This challenge becomes more pronounced in few-shot scenarios, where only a small number of labeled image-text pairs are available for training. Under such limited supervision, models often struggle to learn reliable cross-modal sentiment associations and generalize to diverse sentiment expressions.
Existing MSA studies have made substantial progress by designing cross-modal fusion mechanisms [
5], cross-modal attention and alignment models [
6,
7], and adaptive interaction mechanisms [
8]. These methods improve the integration of textual and visual information, but they typically rely on sufficient labeled data to learn stable multimodal correspondences. When annotations are scarce, limited training examples may fail to cover the diversity of sentiment expressions, lexical variations, and visual contexts. As a result, fusion-based models can easily overfit to sparse training samples and become sensitive to subtle changes in textual or visual cues. Therefore, few-shot MSA requires not only effective multimodal modeling, but also mechanisms that can expand the limited training space and improve the adaptability of model learning.
Prompt learning provides a promising direction for low-resource learning by reformulating downstream tasks as language modeling problems and exploiting knowledge encoded in pretrained language models [
9,
10]. Recent studies have introduced prompt-based methods into few-shot MSA to better utilize limited supervision and guide multimodal sentiment prediction. For example, Yu and Zhang proposed a prompt-based vision-aware language modeling method that incorporates visual information into prompt learning to enhance few-shot multimodal sentiment classification [
11]. Xiang et al. further proposed an adaptive multimodal prompt-tuning method that dynamically optimizes multimodal prompts to improve the utilization of scarce labeled samples [
12]. In addition, syntax-aware prompt modeling and hierarchical reasoning enhancement have also been explored to improve semantic modeling and sentiment discrimination under few-shot conditions [
13,
14]. These studies show that prompt learning can effectively activate task-relevant knowledge in pretrained models and provide an important technical pathway for few-shot MSA.
Despite these advances, existing few-shot MSA prompting methods still face two limitations. The first limitation is the insufficient expansion of the few-shot sentiment space. PVLM improves few-shot MSA through vision-aware prompt formulation [
11], HSAP enhances prompt learning with syntactic information and attention mechanisms [
13], and adaptive multimodal prompt tuning improves the use of scarce labeled samples through learnable prompt adaptation [
12]. However, these methods usually treat the available image-text pairs as fixed training resources, making it difficult to cover diverse sentiment expressions, lexical variations, and counterfactual decision boundaries under limited supervision. The second limitation is the weak coupling between prompt adaptation and task-specific feedback. Existing methods mainly advance prompt construction, visual prompt incorporation, or prompt tuning, but they do not explicitly connect prompt selection with feedback signals that reflect discriminative capability, semantic consistency, and cross-modal reliability. Therefore, few-shot MSA still requires a framework that can both expand the limited sentiment expression space and adaptively select prompts according to multimodal sentiment-related feedback.
To address these limitations, we propose LLM-Augmented Prompt Learning for MSA with Reward Adaptation (LAPM-RA), a unified framework for few-shot multimodal sentiment analysis. LAPM-RA advances few-shot MSA by organizing sentiment-aware augmentation, reward-adaptive prompt selection, and prompt-based verbalization into a task-specific learning framework. Specifically, the sentiment-aware augmentation module uses LLMs to generate sentiment-preserving and counterfactual textual variants, thereby expanding the few-shot sentiment expression space. The reward-adaptive prompt optimization module then selects effective prompt candidates using feedback signals that jointly consider discriminative capability, semantic consistency, and cross-modal reliability. Finally, prompt-based verbalization connects the selected prompts with sentiment labels in a semantically meaningful prediction space. By linking augmentation, prompt selection, and verbalized prediction, LAPM-RA enables these components to support each other under limited multimodal supervision.
Our main contributions are summarized as follows:
We propose LAPM-RA, a task-specific LLM-augmented prompt learning framework for few-shot MSA. Instead of treating LLM augmentation, prompt selection, and verbalizers as independent components, LAPM-RA couples them to expand the few-shot sentiment space and support adaptive prompt-based prediction.
We develop a sentiment-aware augmentation and reward-adaptive prompt learning strategy. It enriches the few-shot training space through sentiment-preserving and counterfactual variants, and adaptively selects multimodal prompts using reward signals derived from discriminative capability, semantic consistency, and cross-modal reliability.
We perform experiments on multiple benchmark datasets to evaluate the contribution of LLM-based augmentation, adaptive prompt selection, verbalizer construction, and multimodal fusion under few-shot MSA settings.
3. Methodology
3.3. LLM-Based Sentiment-Aware Augmentation
As the first component of LAPM-RA, we propose a sentiment-aware augmentation strategy powered by LLMs. This module is designed to enhance generalization and reduce overfitting to superficial lexical patterns. Unlike traditional augmentation techniques, such as synonym substitution or back-translation, which often introduce shallow variations without semantic control, LLMs enable the structured generation of diverse yet sentiment-consistent rewrites. We employ two complementary augmentation strategies:
Sentiment-Preserving Rewrites. These variants introduce lexical and syntactic diversity while keeping the sentiment unchanged. For each training instance , we instantiate a natural language prompt conditioned on both the input text and its sentiment label. A representative template is:
The following is a [positive/negative] review: “{xitext}". Please rewrite it using different wording while preserving its sentiment.
Conditioned on this prompt, the LLM generates a sentiment-consistent variant , which is paired with the original image and label to form .
Counterfactual Rewrites. In addition to sentiment-preserving paraphrases, we generate counterfactual samples that explicitly flip the sentiment label while keeping the overall semantics of the text largely intact. The goal is to expose the model to minimal perturbations that alter sentiment polarity, thereby encouraging it to focus on causal sentiment cues rather than spurious correlations. A representative prompt is:
Rewrite the following review into an opposite sentiment while retaining its core meaning: “{xitext}".
Conditioned on this prompt, the LLM produces a counterfactual variant with a new sentiment label . Each counterfactual instance is thus constructed as .
This process enables the model to learn fine-grained decision boundaries by contrasting original and counterfactual pairs, improving robustness against spurious lexical patterns and enhancing causal interpretability of sentiment prediction.
In this work, counterfactual augmentation is text-centered: the textual modality is intervened by rewriting sentiment-bearing expressions, while the visual modality is kept fixed as contextual evidence. Keeping the original image unchanged is a deliberate single-modality intervention rather than an attempt to synthesize a completely new image-text post. If both text and image were modified simultaneously, the label change would be confounded by textual variation, visual-content variation, and possible artifacts from image generation. By holding the visual context constant, the factual pair and its counterfactual counterpart form a controlled comparison that encourages the model to identify textual cues that causally alter sentiment polarity. The visual modality still participates in prediction through the multimodal fusion module, but it is not regenerated during counterfactual augmentation. To examine whether this text-centered counterfactual construction remains empirically valid, we provide a counterfactual validity and effectiveness analysis in the experimental section.
The final augmented dataset is constructed as:
where
denotes sentiment-preserving rewrites with the same label
, and
represents counterfactual rewrites paired with a flipped sentiment label
. This enriched corpus increases both intra-class diversity (via sentiment-preserving rewrites) and inter-class contrast (via counterfactuals rewrites), encouraging the model to focus on semantically grounded sentiment cues while improving its ability to distinguish fine-grained decision boundaries.
3.6. Prompt-Based Classification and Joint Training
We adopt a prompt-based classification framework in which sentiment prediction is performed through a pretrained language model (PLM), conditioned on a constructed verbalizer and multimodal fusion representation. All components are jointly optimized under a multi-objective training strategy to enhance predictive accuracy, robustness, and prompt adaptability.
Verbalizer Construction. For each sentiment label , we construct a verbalizer , where each is a semantically related token generated by GPT-4o-mini. Given a label seed , GPT-4o-mini first generates a candidate set of label-related words. We rank the candidates according to their semantic relevance to and retain the top- words after filtering. In our implementation, candidates are generated for each label seed and words are retained for the final verbalizer. Candidates with duplicated meanings, ambiguous polarity, or overlap between positive and negative verbalizers are removed. Because prediction is performed with a single masked token, candidates that are split into multiple subword tokens by the XLM-R tokenizer are also excluded. The final verbalizers use the same retained size for all datasets.
Prompt-Based Classification. Given a textual input and visual input , we obtain modality-specific features and , and compute a fused representation using the gating mechanism described above. The fused continuous vector is not converted into natural-language text. Instead, it is projected into a short sequence of continuous context embeddings and inserted into the prompt input of the language model. This representation is then embedded into a prompt template such as:
“[CONTEXT] The review is [MASK]."
Here,
denotes a sequence of soft prompt embeddings rather than readable text. Specifically, a trainable projection
maps the fused vector to
m continuous context embeddings:
Here,
m is the number of context embeddings and
is the hidden size of XLM-R. These context embeddings are concatenated with the token embeddings of the selected prompt template and then fed into XLM-R for masked-token prediction. The probability of predicting a token
v at the masked position is denoted as
. The probability of a label
y is then computed by summing over the token probabilities in its verbalizer:
Multi-Objective Joint Training. Our training objective combines three components:
First, the classification loss encourages the PLM to assign higher probability to tokens within the correct verbalizer set:
Here,
N is the number of training instances,
is the true sentiment label for the
i-th example,
is its verbalizer, and
is the corresponding fused representation.
Second, we introduce a counterfactual consistency loss to encourage robustness against lexical variations. Let
and
denote the fused representations of the original and counterfactually augmented inputs, respectively. Their distance is minimized via:
This term is used as a weak auxiliary regularizer rather than as a replacement for sentiment classification supervision. The original and counterfactual samples are still optimized with their corresponding sentiment labels through , while only encourages the shared non-sentiment context and fixed visual background to remain stable under controlled textual sentiment intervention.
Third, the prompt supervision loss ensures that the learned prompt selection policy
aligns with external reward signals. Given
K prompt candidates
, for each input
we minimize the deviation between the policy’s predicted probability
and the normalized supervised reward
for prompt
:
Final Objective. The overall learning objective unifies the main classification task with two auxiliary objectives:
Here,
and
are hyperparameters controlling the weight of auxiliary tasks. All components, including the PLM, fusion encoder, and prompt selector, are jointly optimized in an end-to-end fashion to achieve holistic representation learning. The algorithmic details provided in Algorithm 1.
| Algorithm 1 LAPM-RA Framework |
| Input: Training set ; prompt set ; validation set |
| Output: Model parameters and prompt policy |
| 1: Build augmented dataset via sentiment-preserving and counterfactual rewrites |
| 2: Initialize PLM, multimodal fusion module, and prompt policy |
| 3: for to T do |
| Sample minibatch |
| for each do |
| Sample prompt |
| Encode multimodal features
|
| Compute fused representation via gating mechanism |
| Estimate using prompt-based verbalization |
| end for |
| Compute , , and |
| Update and by minimizing |
| end for |
| 4: Refine prompt policy using validation reward |
| return
|
4. Experiments
4.3. Experiment Settings
In the few-shot setting, K denotes the number of labeled examples sampled from the training partition for each sentiment class. We set , i.e., 50 examples per class are sampled as the few-shot training data, and another 50 examples per class are sampled from the remaining training data to construct a class-balanced validation set. For prompt-based and few-shot methods, the same few-shot training split, validation split, and fixed test split are used under each random seed. Conventional neural network-based baselines that are not designed for few-shot learning are trained on the full training partition following their standard supervised setting.
The validation split is used to compute aggregate prompt-level reward scores and for hyperparameter selection. Validation samples are not mixed into the few-shot training mini-batches as additional supervised instances. The test set is kept fixed across all runs, used only for final evaluation, and never used for prompt reward computation, model selection, or parameter optimization. We repeat the few-shot sampling and evaluation with five random seeds, .
For hyperparameter fairness, all prompt-based methods use the same main training hyperparameters, including batch size, learning rate, optimizer, and training epochs. Other neural-network and vision-language baselines follow the recommended hyperparameter settings of their original models when available. For MER-CLIP and LLaVAC, we adapt the input interface to image-text pairs and replace the original task-specific prediction layer with a binary sentiment classifier for the evaluated datasets. Regarding implementation sources, the reported baseline results are obtained under our unified preprocessing, data split, and metric protocol. We follow the authors’ public repositories for LLaVAC settings and TumEmo/MVAN data, while BiLSTM, BiACNN, OSDA, HSAN, MultiSentiNet, Co-Memory, MVAN, PVLM, HSAP, MER-CLIP, and the LLaVAC classifier are implemented or adapted according to the corresponding papers.
For the main API-based generator, we interact with the model via its API in a prompt-driven conversational format to generate sentiment-consistent augmented samples and construct a prompt candidate pool. The augmented texts are then used for both training prompt-based classifiers and generating verbalizer tokens. To improve reproducibility, we further specify the LLM-based augmentation settings. The main API-based generator is GPT-4o-mini (gpt-4o-mini), which is used for sentiment-preserving rewrites, counterfactual rewrites, prompt candidates, and verbalizer candidates. The comparison generators are GPT-3.5 (gpt-3.5-turbo-0125), LLaMA3 (Meta-Llama-3-8B-Instruct), and GPT-2 (openai-community/gpt2), and they are evaluated with the same augmentation instructions when applicable. For each original training instance, we generate one sentiment-preserving rewrite and one counterfactual rewrite. For text augmentation, we set the sampling temperature to 0.7, the nucleus sampling probability p to 0.9, and the maximum output length to 128 tokens. For verbalizer generation, we set the sampling temperature to 0.3 and the maximum output length to 64 tokens. Empty outputs and exact duplicates are discarded before training.
The prompt settings are fixed across datasets. The sentiment-preserving prompt is: The following is a [positive/negative] review: “{text}”. Please rewrite it using different wording while preserving its sentiment. The counterfactual prompt is: Rewrite the following review into an opposite sentiment while retaining its core meaning: “{text}”. For prompt-pool construction, GPT-4o-mini is asked to generate concise sentiment-classification templates for image-text posts. We retain templates with a sentiment prediction slot and remove candidates with duplicated meanings, ambiguous label wording, or incomplete mask positions. The default prompt pool contains 10 templates and is shared across datasets. In the prompt-pool-size analysis, the 5-template setting uses a concise subset, while the 15-template setting adds valid templates with more diverse wording. For verbalizer generation, we use the label-specific instruction, e.g., List 10 words that are semantically similar to ‘positive’, such as ‘amazing’, ‘excellent’, etc., and replace the seed label for the negative class. For prompt-tuning and masked-token sentiment prediction, we use XLM-R as the pretrained language model. The same text backbone is used to obtain textual features for prompt selection and multimodal fusion. The training is conducted with a batch size of 32, a learning rate of , a dropout rate of 0.5, and runs for 15 epochs. We use the Adam optimizer with a weight decay of to prevent overfitting. For visual feature extraction, we use ImageNet-pretrained ResNet-50. The final classification layer is removed, and the standard 2048-dimensional global-average-pooled visual feature is linearly projected to the hidden dimension of XLM-R before gated fusion. The ResNet-50 backbone is frozen, while the visual projection layer, fusion module, prompt policy network, and prompt-based classifier are trainable.
All experiments are conducted on a server equipped with an NVIDIA RTX 4090 GPU, an Intel(R) Core(TM) i9-12900K CPU (3.20 GHz), and 128 GB of memory. The software environment includes Python 3.9 and PyTorch 1.12 to ensure efficient model training and evaluation. We report Accuracy and Macro-F1 as the evaluation metrics. Accuracy measures the proportion of correctly classified samples, while Macro-F1 computes the unweighted average of class-wise F1 scores and is less sensitive to class-frequency imbalance after preprocessing. The implementation code and configuration files are available at
https://github.com/ZZMix/LAPM-RA (accessed on 2 July 2026).