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: For distributed training

If you need distributed training:

conda install deepspeed mpi4py -c conda-forge

Optional: For customized datasets and metrics

You may install additional packages (e.g., pip install bigcodebench matplotlib) 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.8.tar.gz (29.0 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.8-py3-none-any.whl (34.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: collabllm-0.0.8.tar.gz
  • Upload date:
  • Size: 29.0 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.8.tar.gz
Algorithm Hash digest
SHA256 2caa900007d7dc83007ad9d3ce72418aeb81641af8ce95557c9c228b7b84e84f
MD5 eb9eccf5c503cc097b5fc7e1cc4a4cae
BLAKE2b-256 678af10395ef3f06599bedb3881a4ee8dc7afb71440b36ea180ba30b30ca30d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: collabllm-0.0.8-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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 7785eddb341e2fbaaef202e4549aefc257f34daab0eef5aed236f68526febe01
MD5 d3c89ab06d0f2cc700ac0db4418f4a28
BLAKE2b-256 a89dabd82e5646693392908ffc48480dcc3d3a3eed1877cd4fc881f76ebf7daf

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