GithubHelp home page GithubHelp logo

dhananjayashok / congenbench Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 1.0 313 KB

A one stop shop for anyone interested in researching controllable generation and constrained decoding

License: MIT License

Shell 11.19% Python 88.81%

congenbench's Introduction

ConGenBench

Research on Controllable Text Generation has made significant progress over the past few years. This repository is an attempt to create a one-stop shop for researchers who want to benchmark their method on various tasks in Controllable Text Generation. This includes:

  1. Compilation of over 17 different generation tasks
  2. Compilation of over 10 different constraint functions/datasets for the training of constraint satisfaction classifiers
  3. A prompt-based LLM distillation method that produces a constraint satisfaction classifier for any natural language constraint
  4. Implementations of 5 different baselines

Supported Task and Constraint Datasets

ConGenBench

Constraints

Constraint Datasets

  1. Toxicity (Jigsaw Toxicity Classification Challenge)
  2. Sentiment (Yelp Polarity, SST2, SST5, IMDB Reviews)
  3. Topic (AGNews)
  4. Genre (StoryControl, TagMyBook)
  5. Clickbait (Clickbait News Detection, Stop Clickbait)
  6. Formality (Pavlick, GYAC must be downloaded from source)
  7. Spam (Spamassassin, SMS Spam)
  8. Urgency (Derived from CrisisNLP) Constraint Functions
  9. Numerical Structure Constraints (word/sentence/POS counts and ranges)

Implemented Baselines

  1. Score-based reranking
  2. Prompt Tuning
  3. ZeroShot Prompting
  4. FewShot Prompting
  5. LoRA

Available evaluation metrics

  1. Perspective API for Toxicity
  2. External classifier (using classifiers trained on held-out constraint datasets)
  3. ZeroShot / FewShot Prompt evaluation
  4. LM Objective/ Perplexity
  5. ROGUE
  6. BLEU

congenbench's People

Contributors

dhananjayashok avatar

Stargazers

Jonne Sälevä avatar  avatar Minbeom Kim avatar Yue Huang avatar TechxGenus avatar

Watchers

 avatar

Forkers

rabirajb

congenbench's Issues

presence of PromptModel class

Hello there seems to be an issue with the PromptModel in the following line in generate_prompt_data.py
from prompt_models import PromptModel
image

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.