Coder Social home page Coder Social logo

wangjs9 / muffin Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 0.0 104.14 MB

Codes for Mitigating Unhelpfulness in Emotional Support Conversations with Multifaceted AI Feedback (ACL 2024 Findings)

Home Page: https://arxiv.org/pdf/2401.05928

Shell 0.31% Python 99.69%

muffin's Introduction

Mitigating Unhelpfulness in Emotional Support Conversations with Multifaceted AI Feedback

License: MIT

This is the PyTorch implementation of the paper:

Mitigating Unhelpfulness in Emotional Support Conversations with Multifaceted AI Feedback.

Jiashuo WANG, Chunpu Xu, Chak Tou Leong, Wenjie LI, Jing Li, ACL 2024

If you use our codes or your research is related to our work, please kindly cite our paper:

@inproceedings{wang2024mitigating,
  title={Mitigating Unhelpfulness in Emotional Support Conversations with Multifaceted AI Feedback},
  author={Wang, Jiashuo and Xu, Chunpu and Leong, Chak Tou and Li, Wenjie and Li, Jing},
  booktitle={Findings of the Association for Computational Linguistics: EMNLP 2022},
  year={2024}
}

Abstract

Emotional support conversation systems are designed to alleviate users’ emotional distress and assist them in overcoming their challenges. While previous studies have made progress, their models occasionally generate unhelpful responses, which are intended to be supportive but instead have counterproductive effects. Since unhelpful responses can hinder the effectiveness of emotional support, it is crucial to mitigate them within conversations. Our solution is motivated by two principal considerations: (1) multiple facets of emotional support are expected to be considered when developing emotional support conversation models, and (2) directly reducing the probability of generating unhelpful responses can effectively mitigate their occurrence. Accordingly, we introduce a novel model-agnostic framework named Mitigating unhelpfulness with multifaceted AI feedback for emotional support (Muffin). It first employs a multifaceted AI feedback module designed to assess the helpfulness model responses across various facets of emotional support. Leveraging contrastive learning, Muffin then reduces the unhelpful responses’ likelihoods. To validate the effectiveness of our proposed framework, we apply Muffin to various previous emotional support generation models, including the state-ofthe-art. Experimental results demonstrate that Muffin can significantly mitigate unhelpful response generation while enhancing response fluency and relevance

Model Architecture:

Preparing Environment

conda env create -f env.yml -n muffin
conda activate muffin

Experiments

AI feedback model training

Refer to the reward_model folder for more details.

Calibration

We tested Muffin on five different models.

For Vanilla and Joint, refer to ESConv folder, KEMI folder for KEMI, MultiESC folder for MultiESC, and TransESC folder for TransESC.

muffin's People

Contributors

wangjs9 avatar

Stargazers

Hanlin Wang avatar CooperLeong avatar yangxiao avatar Jian Wang avatar cpaaax avatar Kaishuai Xu avatar Ethan, Wenjun Hou avatar Heming Xia avatar  avatar

Watchers

 avatar

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.