Coder Social home page Coder Social logo

renll / c-pmi Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 40 KB

[ACL 2023 DialDoc] C-PMI: Conditional Pointwise Mutual Information for Turn-level Dialogue Evaluation

Home Page: https://arxiv.org/abs/2306.15245

License: Apache License 2.0

Jupyter Notebook 100.00%

c-pmi's Introduction

C-PMI: Conditional Pointwise Mutual Information for Turn-level Dialogue Evaluation

University of Illinois at Urbana-Champaign

arXiv slides

Updates

  1. [Aug. 28th] Fixed an issue on incomplete context and achieved better average scores! Details in the following table:
Metrics Interesting Fluent Engaging Specific Relevant Correct Appro. Und. Avg.
FED + C-PMI-SYM 48.4 16.6 36.9 28.0 10.5 14.8 17.9 10.7 23.0
FED + C-PMI 48.2 17.6 37.0 28.7 12.8 17.6 18.1 11.1 23.9

Abstract

We propose a novel model-agnostic approach that leverages Conditional Pointwise Mutual Information (C-PMI) to measure the turn-level interaction between the system and the user based on a given evaluation dimension. Experimental results on the widely used FED dialogue evaluation dataset demonstrate that our approach significantly improves the correlation with human judgment compared with existing evaluation systems. By replacing the negative loglikelihood-based scorer with our proposed CPMI scorer, we achieve a relative 60.5% higher Spearman correlation on average for the FED evaluation metric.

Code Structure

The implementation of C-PMI is quite simple and only needs a few lines of code. Running the jupyter notebook, c-pmi.ipynb, will reproduce the experiment results in our paper. Our C-PMI and C-PMI-SYM scorer are defined as the function MI_score_turn_pmi and the function MI_score_turn_sympmi respectively in the notebook.

Citation

If you find our work useful, please consider citing:

@article{ren2023cpmi,
  title   = {C-PMI: Conditional Pointwise Mutual Information for Turn-level Dialogue Evaluation},
  author  = {Liliang Ren and Mankeerat Sidhu and Qi Zeng and Revanth Gangi Reddy and Heng Ji and ChengXiang Zhai},
  year    = {2023},
  journal = {arXiv preprint arXiv: 2306.15245}
}

Contact

Liliang Ren ([email protected])

c-pmi's People

Contributors

renll avatar

Watchers

 avatar  avatar

c-pmi's Issues

The first turn is not in the context

in function MI_score_turn

  lpx = - get_avg_nll(text + sep + m)
  response = text.split(sep)[-1]
  context = sep.join(text.split(sep)[1:-1])   # hree

the text starts with "<|endoftext|> " (without leading space)
the split function will return ["<|endoftext|> turn0...", "turn1", ...]
so the first turn will not be in the context

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.