Solo-Performance-Prompting  by MikeWangWZHL

Research paper repo for multi-persona self-collaboration agent

created 2 years ago
342 stars

Top 81.9% on sourcepulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

This repository provides the official code for the "Solo Performance Prompting" (SPP) paper, enabling Large Language Models (LLMs) to achieve enhanced task-solving capabilities through multi-persona self-collaboration. It is designed for researchers and practitioners interested in advanced LLM agent architectures and cognitive synergy.

How It Works

SPP implements a novel self-collaboration framework where an LLM adopts multiple personas to iteratively refine its problem-solving approach. This multi-persona strategy aims to mimic human cognitive processes, allowing the model to explore diverse perspectives and generate more robust solutions compared to single-prompt methods. The approach is demonstrated across creative writing, collaborative games, and logic puzzles.

Quick Start & Requirements

  • Install dependencies: pip install -r requirements.txt
  • Configure OpenAI API keys via config_template.sh (Azure API used in experiments).
  • Run tasks using provided bash scripts:
    • Trivia Creative Writing: bash scripts/trivia_creative_writing.sh
    • Codenames Collaborative: bash scripts/codenames_collaborative.sh
    • Logic Grid Puzzle: bash scripts/logic_grid_puzzle.sh
  • Prompts, datasets, and experimental results are available in respective folders (prompts/, data/, logs/).

Highlighted Details

  • Code and results for GPT-3.5 and Llama2 inference, demonstrating emergent cognitive synergy.
  • Accepted as a main conference paper at NAACL2024.
  • Detailed log file formats include evaluation metrics, API call details, parsing success flags, and token usage.

Maintenance & Community

  • The project is associated with authors Zhenhailong Wang, Shaoguang Mao, Wenshan Wu, Tao Ge, Furu Wei, and Heng Ji.
  • The codebase structure references the Tree-of-thought official repo.

Licensing & Compatibility

  • The repository does not explicitly state a license. Users should verify licensing for commercial or closed-source use.

Limitations & Caveats

The project primarily focuses on demonstrating the SPP methodology with OpenAI's API and Llama2, and may require adaptation for other LLM providers or models. Specific configurations for hyperparameter tuning are based on GPT-4 experiments.

Health Check
Last commit

1 year ago

Responsiveness

1 week

Pull Requests (30d)
0
Issues (30d)
0
Star History
13 stars in the last 90 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), John Yang John Yang(Author of SWE-bench, SWE-agent), and
7 more.

tree-of-thought-llm by princeton-nlp

0.3%
5k
Research paper implementation for Tree of Thoughts (ToT) prompting
created 2 years ago
updated 6 months ago
Feedback? Help us improve.