rosslazer / halie

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

An Interactive Evaluation Framework for Human-Language Model Interaction

Overview

This repository contains the code for HALIE (Human-AI Language-based Interaction Evaluation), a new framework for evaluating human-LM interaction. It is designed to be flexible and extensible to support a variety of interactive tasks beyond the five tasks we considered in our paper: social dialogue, question answering, crossword puzzles, text summarization, and metaphor generation. All the code for the five tasks are included in this repository.

  • Paper: Evaluating Human-Language Model Interaction (Mina Lee, Megha Srivastava, Amelia Hardy, John Thickstun, Esin Durmus, Ashwin Paranjape, Ines Gerard-Ursin, Xiang Lisa Li, Faisal Ladhak, Frieda Rong, Rose E. Wang, Minae Kwon, Joon Sung Park, Hancheng Cao, Tony Lee, Rishi Bommasani, Michael Bernstein, Percy Liang, 2022)

If you have any questions, please reach out to Mina Lee at minalee@stanford.edu. For scenario-specific questions or feedback (e.g. task design, data issues), please include the following authors:


Contents


Data

See README for a more comprehensieve overview of data in HALIE.

Standardized data. If you simply want to take a look at our data or use it to perform your own analysis, you can find the standardized data for the five tasks in ./data/std.

Raw data. On the other hand, if you want to standardize data from raw data we collected (./data/raw), you can follow the steps below to convert the raw data.

First, install the required packages:

pip3 install -r requirements.txt

Then, run the following command to standardize the logs (e.g., for question answering):

python3 ./src/run_question.py

The above command reads the raw data at ./data/raw/question and saves the standardized data at ./data/std/question. For the other four tasks, replace question with the name of the task you want to standardize in the path as well as command.

Visualizations. Static and dynamic visualizations of our data, which allows for an easier way for looking at raw interaction traces, is included at ./data/visualizations.

Your data. If you are interested in extending HALIE to support a new task, please create a PR or contact Mina Lee at minalee@stanford.edu.


Analysis

We provide Jupyter Notebook files for analyzing the data collected for HALIE. The files are stored in ./notebook.


Interfaces

Code for interfaces used to collected interaction traces for tasks in HALIE is located in ./interfaces.

About

License:Apache License 2.0


Languages

Language:HTML 97.8%Language:JavaScript 1.4%Language:Jupyter Notebook 0.4%Language:Python 0.2%Language:TypeScript 0.2%Language:CSS 0.1%Language:Shell 0.0%Language:Makefile 0.0%