Giter Site home page Giter Site logo

minnesotanlp / cobbler Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 1.0 4.01 MB

Code and data for Koo et al's ACL 2024 paper "Benchmarking Cognitive Biases in Large Language Models as Evaluators"

Home Page: https://minnesotanlp.github.io/cobbler-project-page/

Python 1.12% Jupyter Notebook 84.76% CSS 0.03% HTML 0.16% JavaScript 13.94%
bias evaluation llm nlp bias-detection llm-as-a-judge llm-as-evaluator llm-as-judge llm-evaluation llms

cobbler's Introduction

Benchmarking Cognitive Biases in Large Language Models as Evaluators

  1. Your directory structure should now look like this where both repositories should be on the same level
Working directory
└───competitive-llms
└───talkative-llms
  1. cd into competitive-llms now and install requirements
pip install -r requirements.txt
  1. In each file, there are various sys.append that you should specify your home directory to the path where competitive-llms is located.

Now everything should be runnable.

CoBBLEr: Cognitive Bias Benchmark for LLMs as Evaluators

To replicate the results you can utilize the provided aggregated responses in the n15_responses folder.

Adding your own model

To evaluate your own language model, you can add a config for your model in the configs folder under the competitive-llms directory.

To benchmark your model on each bias module:

  1. Add your model to evaluations/model_configs.py for the path to your models config file

  2. Add your models to the list of evaluators array in evaluate.py

  3. To run each script you can run the script from the competitive-llms directory as:

python3 evaluations/evaluate.py 1 order

which runs the first batch of the list of models defined on the order benchmark.

cobbler's People

Contributors

dykang avatar jong-inn avatar kooryan avatar mimn97 avatar vipulraheja avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

lubashima

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.