GithubHelp home page GithubHelp logo

nlee-208 / emnlp2023-llm-disagreement Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xfactlab/emnlp2023-llm-disagreement

0.0 0.0 0.0 1 KB

[EMNLP 2023] Can Large Language Models Capture Dissenting Human Voices?

License: MIT License

Python 100.00%

emnlp2023-llm-disagreement's Introduction

Can Large Language Models Capture Dissenting Human Voices? (EMNLP 2023)

Authors: Noah Lee* Na Min An* James Thorne

  • We test generative LLMs jointly on the performance and human disagreement on NLI.
  • We suggest two probability distribution estimation techniques for LLMs to represent disagreement and perform empirical evaluations to with respect to the human disagreement distribution.
  • LLMs do not excel as expected on NLI tasks and fail to align with human disagreement levels.


Environment Setting

conda create -n humllm
conda activate humllm
pip install -r requirements.txt

Datasets

The datasets used for the research are as the following:


Usage

  • All the script examples can be found in ./scripts/

Preprocess & Sample

Sample random 100 samples & hardest 100 samples

bash ./scripts/sample.sh

Generate

Generation of a LLM output can be done by bash ./scripts/generate.sh or either:

python generate.py --data_dir <input data directory> \
                    --data_type <input data type> \
                    --model <model name> \
                    --file_name <output file name> \
                    --out_dir <output directory> \
                    --max_length <maximum token lengths> \
                    --gen_type <generation type> \
                    --num_iter <iteration number> \ 
                    --num_samples <sample number> # num_iter x num_samples = total sample size \
                    --prompt_variations <use prompt variations> \
                    --few_shot <few shot number>

Evaluate

Evaluation of generated distribution is available by bash ./scripts/evaluate.sh or either:

python evaluate.py --data_dir <input data directory> \
                    --data_type <input data type> \
                    --gen_type <generation type>

Citation

Please consider citing our work if you find this work helpful for your research.

@misc{lee2023large,
      title={Can Large Language Models Capture Dissenting Human Voices?}, 
      author={Noah Lee and Na Min An and James Thorne},
      year={2023},
      eprint={2305.13788},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

Contact

emnlp2023-llm-disagreement's People

Contributors

nlee-208 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.