Giter VIP home page Giter VIP logo

llm-discussion's Introduction

LLM Discussion:

Official Implementation of LLM Discussion: Enhancing the Creativity of Large Language Models via Discussion Framework and Role-Play

Authors : Li-Chun Lu*, Shou-Jen Chen*, Tsung-Min Pai, Chan-Hung Yu & Hung-yi Lee, Shao-Hua Sun

Introduction

This repository contains the implementation of the "LLM Discussion" framework, as presented in our COLM 2024 paper. The framework aims to enhance the creativity of large language models (LLMs) through a three-phase discussion process and role-playing techniques. By emulating the human process of collective creativity, LLMs can produce more original and innovative responses.

Abstract

Large language models (LLMs) have shown exceptional proficiency in natural language processing but often fall short of generating creative and original responses to open-ended questions. To enhance LLM creativity, our key insight is to emulate the human process of inducing collective creativity through engaging discussions with participants from diverse backgrounds and perspectives. To this end, we propose LLM Discussion, a three-phase discussion framework that facilitates vigorous and diverging idea exchanges and ensures convergence to creative answers. Moreover, we adopt a role-playing technique by assigning distinct roles to LLMs to combat the homogeneity of LLMs. We evaluate the efficacy of the proposed framework with the Alternative Uses Test, Similarities Test, Instances Test, and Scientific Creativity Test through both LLM evaluation and human study. Our proposed framework outperforms single-LLM approaches and existing multi-LLM frameworks across various creativity metrics.

Framework Overview

The LLM Discussion framework is divided into three phases:

  1. Initiation Phase: LLMs are introduced to the discussion topic and objectives.
  2. Discussion Phase: Multiple rounds of idea exchanges among LLMs, encouraging active listening and idea building.
  3. Convergence Phase: Summarization and convergence of the discussed ideas to produce a collective conclusion.

image

Additionally, LLMs are assigned distinct roles to simulate diverse perspectives and reduce homogeneity in their responses.

Installation

To install the required dependencies, run:

pip install -r requirements.txt

Author

  • Note: Li-Chun Lu and Shou-Jen Chen are both the first authors.

Citation

@article{lu2024llm,
  title={LLM Discussion: Enhancing the Creativity of Large Language Models via Discussion Framework and Role-Play},
  author={Lu, Li-Chun and Chen, Shou-Jen and Pai, Tsung-Min and Yu, Chan-Hung and Lee, Hung-yi and Sun, Shao-Hua},
  journal={arXiv preprint arXiv:2405.06373},
  year={2024}
}

llm-discussion's People

Contributors

lawraa avatar bai1026 avatar lichun-19 avatar

Watchers

 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.