waHAHJIAHAO/Nano-EmoX
关于
[CVPR 2026] The official implementation of Nano-EmoX
人工智能与机器学习实测星标增长
- 24小时
- -4
- 7天
- -4
- 15天
- -7
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文⭐ If our project helps you, please give us a star on GitHub to support us!
News
[2026.08.06] We release model, code, dataset, paper of our new work "OneEmo".
Todo
- release paper
- release project codes
- training and evaluation scripts
- model weights
Unified Emotion Intelligence
our model is first compact (2.2B) emotion intelligence Multimodel Langugage Model. It integrates a pretrained LLM with modality-specific encoders and experts-based fusion encoder to handle a broad spectrum of affective tasks in one model.
Nano-EmoX supports six core tasks within one model: 1), Multimodal Sentiment Analysis. 2), Multimodal Emotion Recognition. 3), Open-Vocabulary Multimodal Emotion Recognition. 4), Multimodal Intention Recognition. 5), Emotion Reason Inference. 6), Empathic Response Generation

- Visual Encoder: a visual encoder (CLIP-Large) produces frame-level representations, followed by Q-Former, then a projection to the LLM hidden space.
- Audio Encoder: an acoustic encoder (HuBERT-Large) is paired with an Q-Former and projected into the LLM hidden space.
- Facial Encoder: a facial encoder (FaceXFormer encoder only + temporal modeling) extracts face–aware features and maps them into the LLM space.
- Fusion Encoder: It consists of three independent fusion experts and a gating network. Fusion encoder fuses video and audio features before injecting them into the LLM.
- LLM backbone: a frozen causal samll scale LM (Qwen-2.5-1.5B) is adapted with lightweight LoRA layers for efficient fine-tuning.
- Unified prompt injection: modality tokens are replaced by learned embeddings so that all modalities align in the LLM embedding space.
P2E training framework (Three Phase)
We train Nano-EmoX with a three-phase curriculum that gradually increases emotional intelligence:

This staged curriculum progressively strengthens the model’s perception, fusion, and reasoning over multimodal affective cues.
Performance

Quick Start
Environment Installation
conda env create -f environment.yml
conda activate nanoemox
Model Weights
Download the original weights of these models to the "models" folder.
| Model Name | Model Type |
|---|---|
| clip-vit-large-patch14 | Visual Encoder |
| chinese-hubert-large | Audio Encoder |
| faceformer | Facial Encoder |
| Qwen2.5-1.5B-Instruct | LLM |
| Qwen2.5-7B-Instruct | LLM |
Datasets
For training:
- MER-Caption+: Large-scale descriptive emotion dataset caption from MER2025
- CREMA-D: Crowd-sourced emotional multimodal actors dataset with 7,442 clips (IEEE TAC 2014)
- M3ED: Multi-modal multi-scene multi-label emotional dialogue dataset in Chinese (ACL 2022)
- CAER: Context-aware emotion recognition dataset with 13K+ annotated videos (ICCV 2019)
- FERV39k: Large-scale multi-scene dataset for dynamic facial expression recognition in videos (CVPR 2022)
- MIntRec: Multimodal intent recognition dataset (ACM MM 2022)
- MIntRec2.0: Large-scale multimodal intent dataset with 15K samples and 30 intent classes (ICLR 2024)
- AvaMERG: Avatar-based multimodal empathetic response generation dataset (WWW 2025)
Place training data under
data/directory, And modify the path of the data in the configuration fileconfig.py.For evaluation: Benchmarks from MER-UniBench, including:
- MER2023, MER2024, MELD, IEMOCAP, CMU-MOSI, CMU-MOSEI, SIMS, SIMSv2 (emotion recognition & sentiment analysis), data is available at https://pan.baidu.com/s/1kbfs5pG_hAri0QwvQl-Ecg?pwd=b9vn
- MIntRec, MIntRec2.0 (multimodal intention recognition)
- AvaMERG (multimodal empathetic response generation)
After downloading the data, remember to modify the config.py file to ensure the path is correct.
Training
- Phase 1: Modality alignment, these two steps are independent and can be trained simultaneously
CUDA_VISIBLE_DEVICES=0 python -u train.py --cfg-path=configs/phase1_1.yaml CUDA_VISIBLE_DEVICES=0 python -u train.py --cfg-path=configs/phase1_2.yaml - Phase 2: Train fusion encoder and adapters. Tip: before this phase training, you need to load phase1 checkpoints, set the ckpts path in the phase2.yaml.
CUDA_VISIBLE_DEVICES=0 python -u train.py --cfg-path=configs/phase2.yaml - Phase 3: End-to-end fine-tuning llm, adapters and fusion encoder. Please set the phase2 ckpts path in the phase3.yaml before this phase training.
CUDA_VISIBLE_DEVICES=0 python -u train.py --cfg-path=configs/phase3.yaml
Inference
- Inference on emotion recognition task with emotion analysis&recognition:
CUDA_VISIBLE_DEVICES=0 python -u inference_hybird.py \ --zeroshot --dataset='merunibench' \ --cfg-path=configs/phase3.yaml \ --options "inference.test_epochs=40-60" \ --outside_face_or_frame multiface_audio_face_frame_text \ --emotion_reason_inference - Inference on emotion reason inference task with emotion reason inference:
CUDA_VISIBLE_DEVICES=0 python -u inference_hybird.py \ --zeroshot --dataset='emer' \ --cfg-path=configs/phase3.yaml \ --options "inference.test_epochs=55-60" \ --outside_face_or_frame multiface_audio_face_frame_text \ --emotion_reason_inference- Inference on intention recognition task with intent recognition:
CUDA_VISIBLE_DEVICES=0 python -u inference_hybird.py \ --zeroshot --dataset='mintrec' \ --cfg-path=configs/phase3.yaml \ --options "inference.test_epochs=55-60" \ --outside_face_or_frame multiface_audio_face_frame_text \ --emotion_reason_inference - Inference on empathic response task:
CUDA_VISIBLE_DEVICES=1 python -u inference_hybird.py \ --zeroshot --dataset='avamerg' \ --cfg-path=configs/phase3.yaml \ --options "inference.test_epochs=30-60" "inference.skip_epoch=5" \ --outside_face_or_frame
Evaluation
Specify the config file in evaluation-scoreonly.py to select the model for evaluation. It will automatically evaluate the inference results with the latest timestamp.
CUDA_VISIBLE_DEVICES=0 python -u evaluation-scoreonly.py
To evaluate the emotional reason inference task, we need an API from OpenAI to call an external model for assessing the quality of the reasoning.
python eval_ovmerd.py --data_root output/ov-merd-eval/model_output_path --openai_key sk-************
License
This project is licensed under the MIT License - see the LICENSE file for details.
Citation
If this work has been helpful or inspiring to your research, please consider cite our article:
@InProceedings{Huang_2026_CVPR,
author = {Huang, Jiahao and Lin, Fengyan and Yang, Xuechao and Feng, Chen and Zhu, Kexin and Yang, Xu and Chen, Zhide},
title = {Nano-EmoX: Unifying Multimodal Emotional Intelligence from Perception to Empathy},
booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
month = {June},
year = {2026},
pages = {22986-22997}
}
探索相关项目
加载中…