Skip to content

Implements the code the paper Problem-Solving in Language Model Networks, presented at ALIFE 2024.

Notifications You must be signed in to change notification settings

tsukuba-websci/PSiLMN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🕸️ Problem Solving in Language Model Networks

This repository contains the code for the paper "Problem Solving in Language Model Networks" which was accepted at the 2024 Conference on Artificial Life.

Running the Experiment

Prerequisites

  • Install Poetry for managing python packages.
  • Create an OpenAI API key for using GPT-3.5-Turbo.
  • Create a Hugging Face token for downloading MMLU dataset from Hugging Face.

Setup

Create a .env file in the root directory and add your OpenAI API key and Hugging Face token:

OPENAI_API_KEY=<YOUR_OPENAI_API_KEY>
HF_TOKEN=<YOUR_HF_TOEN>

Install the required Python packages with

poetry install

Navigate to the experiment directory and run the run.sh script.

./run.sh

The run.sh script runs the experiment pipeline which contains three main steps:

  1. Genrating the networks to use in the agent problem solving (generate_networks.py).
  2. Running the agent problem solving and communication (main.py).
  3. Analysing the results and generating figures (analysis.py).

Data Availability

The specific scale-free and random networks, as well as the agents responses in each round of debate are available here.

About

Implements the code the paper Problem-Solving in Language Model Networks, presented at ALIFE 2024.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •