GithubHelp home page GithubHelp logo

sayontang / fantom Goto Github PK

View Code? Open in Web Editor NEW

This project forked from skywalker023/fantom

0.0 0.0 0.0 1.68 MB

๐Ÿ‘ป Code and benchmark for our EMNLP 2023 paper - "FANToM: A Benchmark for Stress-testing Machine Theory of Mind in Interactions"

Home Page: https://aclanthology.org/2023.emnlp-main.890/

License: MIT License

Python 100.00%

fantom's Introduction

๐Ÿ‘ป FANToM

This is the official repository of our paper:
FANToM: A Benchmark for Stress-testing Machine Theory of Mind in Interactions

fantom example

Please cite our work if you found the resources in this repository useful:

@inproceedings{kim2023fantom,
    title={FANToM: A Benchmark for Stress-testing Machine Theory of Mind in Interactions},
    author={Hyunwoo Kim and Melanie Sclar and Xuhui Zhou and Ronan Le Bras and Gunhee Kim and Yejin Choi and Maarten Sap},
    booktitle={EMNLP},
    year=2023
}

For a brief summary of our paper, please see this webpage.

๐Ÿ’ป Running evaluation on FANToM

โ€‹ First, create the conda environment by running:

conda env create -f environment.yml

โ€‹ and then activate it:

conda activate fantom

You can run the evaluation by running the following example command:

python eval_fantom.py --model gpt-4-0613

This will automatically download the new FANToM benchmark in data. All evaluation results will be saved under data/results.

Adding your own agent

All you need to do is create an agent class with the method interact() or batch_interact().

๐Ÿ“Š Latest Results

These are results on the short conversation inputs. Scores will be worse on the full conversation inputs.

Model All* All BeliefQ [Choice] BeliefQ [Dist.] BeliefQ token-F1 All AnswerabilityQ AnswerabilityQ [List] AnswerabilityQ [Y/N] All Info-AccessQ Info-AccessQ [List] Info-AccessQ [Y/N] FactQ token-F1
Human 87.5 93.8 90.6 90.6 90.6 90.6
GPT-4-1106-preview 0.0 0.2 51.9 20.3 33.7 6.6 28.5 50.6 4.7 8.7 77.8 46.2
GPT-3.5-turbo-1106 0.2 0.2 9.6 15.7 41.7 3.4 44.6 62.4 0.3 26.2 59.8 54.3
Zephyr 7B beta 0.0 0.2 41.5 33.2 41.1 0.6 13.6 56.0 0.9 6.1 56.0 37.1

โš ๏ธ Intended Use of Data

The samples in FANToM should only be used for evaluation purposes.

๐Ÿ’ก Disclaimer

  1. We are not claiming that machines have minds. They do not have minds, emotions, or intentions. However, they do need social reasoning capabilities to better understand information.
  2. These multi-party conversations were generated by GPT-4 and they were validated by humans. The conversations do not necessarily reflect the views and opinions of the authors and their associated affiliations.

fantom's People

Contributors

skywalker023 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.