Giter Site home page Giter Site logo

declare-lab / msa-robustness Goto Github PK

View Code? Open in Web Editor NEW
31.0 3.0 5.0 3.52 MB

NAACL 2022 paper on Analyzing Modality Robustness in Multimodal Sentiment Analysis

License: Apache License 2.0

Shell 1.95% Python 59.41% CMake 2.53% C 2.86% C++ 12.42% Makefile 2.62% Cuda 18.22%
multimodal-deep-learning multimodal-sentiment-analysis robustness-analysis

msa-robustness's Introduction

MSA-Robustness

NAACL 2022 paper on Analyzing Modality Robustness in Multimodal Sentiment Analysis

Setup the environment

Configure the environment of different models respectively, configure the corresponding environment according to the requirements.txt in the model directory.

Data Download

Running the code

Take MISA as an example

  1. cd MISA
  2. cd src
  3. Set word_emb_path in config.py to glove file.
  4. Set sdk_dir to the path of CMU-MultimodalSDK.
  5. bash run.sh When doing robustness training, run the "TRAIN" section of run.sh, and when doing diagnostic tests, run the "TEST" section of run.sh.

    --train_method means the robustness training method, one of {missing, g_noise, hybird}, missing means set to zero noise, g_noise means set to Gaussian Noise, hybird means the data of train_changed_pct is set to zero_noise, and the data of train_changed_pct is set to Gaussian_Noise.

    --train_changed_modal means the modality of change during training, one of {language, video, audio}.

    --train_changed_pct means the percentage of change during training, can set between 0~1.

    --test_method means the diagnostic tests method, one of {missing, g_noise, hybird}, missing means set to zero noise, g_noise means set to Gaussian Noise, hybird means the data of test_changed_pct is set to zero_noise, and the data of test_changed_pct is set to Gaussian_Noise.

    --test_changed_modal means the modality of change during testing, one of {language, video, audio}.

    --train_changed_pct means the percentage of change during testing, can set between 0~1.

Citation

@article{hazarika2022analyzing,
  title={Analyzing Modality Robustness in Multimodal Sentiment Analysis},
  author={Hazarika, Devamanyu and Li, Yingting and Cheng, Bo and Zhao, Shuai and Zimmermann, Roger and Poria, Soujanya},
  publisher={NAACL},
  year={2022}
}

msa-robustness's People

Contributors

cindyting avatar dependabot[bot] avatar devamanyu avatar soujanyaporia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

msa-robustness's Issues

Obvious error

There are a lot of missing files in the code base

Hyperparameter Values for Experiments

It would be amazing if the hyperparameters (and other settings) were shared to enable easy reproduction of all the results. Take for example, BBFN, there's 47 different arguments to the program, a lot of which will have some impact on the resulting performance of the model.

While some hyperparameters are given in the paper there's definitely some missing, e.g. Batch Size, lambda_d for when using the discriminator, etc.

I am trying to reproduce some results(BBFN at the moment), and so far, I can get within a few per cent of the original paper and this paper, but there's surely some random toggle or parameter I am missing.

Please, just whatever the settings were which produced the results presented in the paper.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.