Skip to content

AZYoung233/MSE-Adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

😊 The Official Implementation of MSE-Adapter

arXiv AAAI 2025

🎉🎉 We have been accepted at AAAI-2025!


This is the official code for the 《MSE-Adapter: A Lightweight Plugin Endowing LLMs with the Capability to Perform Multimodal Sentiment Analysis and Emotion Recognition》.

Overall

Fig1: The comprehensive framework integrating MSE-Adapter with LLM.


🚀 Get Started! (Take MSE-ChatGLM3-6B as an example.)

🔧 Step 1: Create the Environment

git clone https://github.com/AZYoung233/MSE-Adapter.git
cd MSE-Adapter
conda create --name MSE-Adapter python=3.10.13
conda activate MSE-Adapter
pip install -r requirements.txt

🚨 Critical Notice (2025/04/29 update): It is highly recommended to create a new virtual environment directly using requirements.txt. If that's not feasible, at least ensure that the transformers version matches exactly. Otherwise, the training loss may decrease as expected, but the evaluation metrics could be abnormal, severely impacting the model's performance.

📂 Step 2: Download the Dataset

  • You can download the dataset at the link below:
  • Place them under the same folder, and set root_dataset_dir in parse_args of run.py to the path where you store your dataset.

💾 Step 3: Download the Backbone LLM

  • Download backbone LLM from the THUDM/chatglm3-6b and set pretrain_LM in parse_args of run.py to the path where you store your LLM. If for any particular reason your download is too slow, try using Modelscope 🌐 or HF-mirrors 🌐.

▶️ Step 4: Run!

  • Once you have completed the basic setup as described above, you can run the code using the following steps. The code will run 5 random seeds and the results will be saved in results/result. The results presented in the paper are the average of 5 random seeds.
cd MSE-ChatGLM3-6B
python run.py

🙏 Acknowledgment

Our code is structurally referenced to SELF-MM. Thanks to their open-source spirit for saving us a lot of time. 💖

About

[AAAI-2025] The official Implement of MSE-Adapter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages