Skip to main content

(Oral @ ICML 2025) CollabLLM: From Passive Responders to Active Collaborators

Project description

CollabLLM: From Passive Responders to Active Collaborators

License: MIT

📢 Oral @ ICML 2025 (1% out of all submissions)

Overview

CollabLLM transforms traditional language models from passive responders to active collaborators in multi-turn conversations. This repository provides the complete framework for computing multiturn-aware rewards and training collaborative language models.


Installation

To get started, create a new environment and install collabllm via pip:

conda create -n collabllm python=3.10
conda activate collabllm
pip install collabllm

Optional: You may install additional packages (e.g., bigcodebench) for task-specific metrics or evaluation.

Quick Start

  • Lightweight usage: Compute Multiturn-aware Rewards (MRs) for any model responses and construct datasets following notebook_tutorials/.
  • Synthetic data generation: Generating high-quality synthetic conversational data following scripts/engine/build_dataset.py.
  • Train CollabLLM: Conduct SFT/DPO/PPO models training to maximize MRs following examples under scripts/train/*.py.

Add Your Own Task

To apply CollabLLM to a new task:

  1. Add a Dataset:
    Place your single-turn dataset in examples/single_turn_ds/ and register it in __init__.py.

  2. (Optional) Add Metrics:
    Add new metrics to examples/metrics/ and register them in __init__.py.

You can now run data generation, reward computation, and model training using your customized setup.

Citation

If you find our work useful in your research, please cite the following:

@inproceedings{collabllm2025,
    title={CollabLLM: From Passive Responders to Active Collaborators},
    author={Shirley Wu and Michel Galley and Baolin Peng and Hao Cheng and 
            Gavin Li and Yao Dou and Weixin Cai and James Zou and 
            Jure Leskovec and Jianfeng Gao},
    booktitle={International Conference on Machine Learning (ICML)},
    year={2025}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

collabllm-0.0.7.tar.gz (28.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

collabllm-0.0.7-py3-none-any.whl (34.1 kB view details)

Uploaded Python 3

File details

Details for the file collabllm-0.0.7.tar.gz.

File metadata

  • Download URL: collabllm-0.0.7.tar.gz
  • Upload date:
  • Size: 28.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for collabllm-0.0.7.tar.gz
Algorithm Hash digest
SHA256 bb9117aca000ce52fb25d4a507390d2d173f1e829aef813fd87a594dc163932e
MD5 f5dc666b1419d41c6842df7c0eaa2a29
BLAKE2b-256 bfa50a452dcdf91da9d9bd250ca792c40958708a4e597980fbe1850854b61b58

See more details on using hashes here.

File details

Details for the file collabllm-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: collabllm-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 34.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for collabllm-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a91697f80e4a763fd3aef3132d6d581504497bf1976688b923bb8f43ceab55fb
MD5 62fcb67ddfbbc1069a51f101ff038a50
BLAKE2b-256 dac1d763e5cec0f71eb83984b5831325a905ea68c1dfd6c07c7862778af3dd1b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page