Token-Level Contrastive Learning with Modality-Aware Prompting for Multimodal Intent Recognition

Qianrui Zhou, Hua Xu, Hao Li, Hanlei Zhang, Xiaohan Zhang, Yifan Wang, Kai Gao

Introduction

Understanding human intent is a complex task that extends beyond mere text analysis, requiring the integration of verbal and non-verbal cues such as facial expressions and vocal tones. Multimodal Intent Recognition (MIR) aims to decode this multi-faceted communication. However, existing models often struggle to effectively harmonize non-verbal modalities (audio and video) with the primary text modality, leading to correlation gaps and difficulties in extracting high-level semantics from raw sensory data.

To address these challenges, researchers from Tsinghua University introduced TCL-MAP at AAAI-2024. This framework utilizes "modality-aware" prompts and a novel token-level contrastive learning strategy to set a new state-of-the-art in understanding user intent across multiple modalities.

Methodology

The TCL-MAP framework, short for Token-Level Contrastive Learning with Modality-Aware Prompting, consists of two primary stages designed to bridge the gap between disparate data types.

Figure 1: The TCL-MAP architecture, showcasing the Prompt-Based Augmentation and Representation Learning stages.

1. Modality-Aware Prompting (MAP)

Traditional MIR methods often rely on handcrafted, static text prompts (e.g., "The intent is [MASK]"). TCL-MAP replaces these with dynamic, modality-aware prompts. The process begins with robust feature extraction using BERT for text, Swin Transformer for video, and Wav2vec 2.0 for audio.

Before fusion, the model employs Similarity-Based Modality Alignment (SBMA). This step aligns video and audio features with learnable "prompt tokens" based on content similarity, effectively filtering out noise and reducing the discrepancy between modalities. These aligned features are then processed by a Cross-Modality Transformer to generate a dynamic prompt ($Z_{prompt}$), providing a rich semantic context tailored to the specific non-verbal cues present in the input.

2. Token-Level Contrastive Learning (TCL)

The second core innovation is treating intent labels as high-quality semantic anchors rather than simple numerical indices. The model constructs an Augmented Sample Pair: one version of the input ends with a [MASK] token, while the other ends with the actual Label token (e.g., "Praise").

Using NT-Xent loss, a standard contrastive learning objective, the model is trained to pull the representation of the [MASK] token closer to the Label token in the semantic space. This "token-level" approach allows the ground-truth label to act as a teacher, guiding the multimodal features toward more accurate intent representations.

Experiments and Results

The TCL-MAP model was rigorously evaluated on two major benchmarks: MIntRec, a fine-grained dataset with 20 intent categories, and MELD-DA, a large-scale dialogue act classification dataset.

Figure 5: Detailed performance metrics for TCL-MAP and baseline models across the 20 intent categories of the MIntRec dataset.

TCL-MAP consistently outperformed state-of-the-art baselines, including MAG-BERT, MISA, and MulT. On the MIntRec dataset, it achieved a state-of-the-art accuracy of 73.62%, representing a ~1% absolute improvement over previous methods. On MELD-DA, it reached 61.75% accuracy.

A significant finding was the model's performance in specific intent categories. For example, in the "Leave" category, TCL-MAP improved the F1-score by over 7%, suggesting a superior ability to capture intents that rely heavily on behavioral and non-verbal cues. Ablation studies further highlighted the importance of each component; removing the TCL module resulted in a significant accuracy drop of approximately 1.5%.

Discussion and Conclusion

The success of TCL-MAP lies in its ability to treat labels as semantic features and its use of dynamic prompting to capture the nuance of non-verbal communication. By aligning modalities before fusion and using contrastive learning to anchor representations to semantic labels, the model avoids common pitfalls like "modality collapse."

Despite these gains, the model still faces challenges in detecting highly nuanced intents such as "Joke" or "Taunt," which require deep cultural understanding and irony detection—areas where human performance still significantly leads. Additionally, the computational cost of utilizing three large pre-trained encoders remains a consideration for real-time applications. Future research may focus on more efficient architectures or instance-conditional prompts to further refine the model's sensitivity to diverse human behaviors.

In conclusion, TCL-MAP represents a significant step forward in Multimodal Intent Recognition, demonstrating that intelligent prompting and label-guided learning can effectively harmonize the complex symphony of human communication.

Summary updated

BibTeX
@inproceedings{zhou2024token,
  author = {Qianrui Zhou and Hua Xu and Hao Li and Hanlei Zhang and Xiaohan Zhang and Yifan Wang and Kai Gao},
  title = {{Token-Level Contrastive Learning with Modality-Aware Prompting for Multimodal Intent Recognition}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i15.29656},
}
Figure