coexp-iros24
May 7, 2026 ยท View on GitHub
This repository contains code & data for the paper Multimodal Coherent Explanation Generation of Robot Failures, IROS 2024.

Setup
Use the requirements.txt file to install the dependencies.
Experiments
Please follow these steps to make the train-validation-test splits and fine-tune the NLI models for coherence classification.
- Run
make_splits.pyto reproduce the splits from combining the RoboFail and the CounterFactual datasets, as explained in the paper. - To run evaluation on only-NLI baselines, run
eval_RoBERTa-large-MNLI.pyandeval_DeBERTa-v3-base-NLI.pyinside eval_scripts. - Use the script under 'training_scripts' to run fine-tuning experiments. Load the checkpoint with the highest macro F1 on the validation set and run evaluation.
[Counterfactual-generation Code]
If you need the code for generating counterfactual examples, please contact me by email or create an issue on GitHub, and I'll try to resolve this as soon as possible.