# CL-bench
**Repository Path**: dadibao/CL-bench
## Basic Information
- **Project Name**: CL-bench
- **Description**: 腾讯混元团队推出的CL-Bench Life基准测试,聚焦AI对日常生活场景的上下文理解能力,揭示了当前大模型在碎片化、高噪声现实场景中的核心短板。核心内容如下:
一、技术突破与设计理念
1. 场景创新
• 覆盖405个真实任务,分为三大类:
◦ 社交沟通(群聊共识/私聊情感分析)
◦ 碎片信息(零散笔记重组/修订历史追踪)
……
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2026-05-01
- **Last Updated**: 2026-05-01
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# CL-bench family: A series of benchmarks for Context Learning
[](https://www.clbench.com)
## 🔥 News
- **2026.04**: 🎉 [CL-bench Life](#cl-bench-life) released — 405 real-life context learning tasks (group chats, personal notes, game logs, etc.) with 5,348 rubrics. [[Paper]](https://arxiv.org/abs/2604.27043) [[Data]](https://huggingface.co/datasets/tencent/CL-bench-Life)[[Blog]](https://hy.tencent.com/research/100039?langVersion=en)
- **2026.02**: 🎉 [CL-bench](#cl-bench-1) released — 1,899 professional & domain-specific context learning tasks. [[Paper]](https://arxiv.org/abs/2602.03587) [[Data]](https://huggingface.co/datasets/tencent/CL-bench) [[Blog]](https://hy.tencent.com/research/100025?langVersion=en)
## 📋 Contents
- [CL-bench](#cl-bench-1) — Professional & domain-specific context learning
- [CL-bench Life](#cl-bench-life) — Real-life context learning
- [Quick Start](#-quick-start)
- [Submit Results](#-submit-results)
- [Citation](#-citation)
- [Contact](#-contact)
## 📄 CL-bench
[](https://arxiv.org/abs/2602.03587)
[](https://huggingface.co/datasets/tencent/CL-bench)
[](https://hy.tencent.com/research/100025?langVersion=en)
[](https://www.clbench.com)
CL-bench evaluates whether language models can learn new knowledge from context at inference time. Tasks require models to learn from domain-specific knowledge, rule systems, complex procedures, and empirical laws.
*Mismatch between how language models are commonly optimized in practice and the capabilities required by real-world tasks.*
*Each instance in CL-bench comprises a system prompt, a task, the context containing new knowledge necessary for solving the task, and rubrics to assess the solution. All instances are annotated by experienced domain experts.*
**Stats**: 1,899 tasks · 4 categories · 18 sub-categories · avg. 63.2 rubrics per context · avg. 20 hours expert effort per context
**Context Categories**:
- **Domain Knowledge Reasoning** — specialized domain knowledge requiring understanding and application
- **Rule System Application** — formal rule systems that must be learned and correctly applied
- **Procedural Task Execution** — complex multi-step procedures to follow
- **Empirical Discovery & Simulation** — patterns and laws derived from empirical data
## 📄 CL-bench Life
[](https://arxiv.org/abs/2604.27043)
[](https://huggingface.co/datasets/tencent/CL-bench-Life)
[](https://hy.tencent.com/research/100039?langVersion=en)
[](https://www.clbench.com)
CL-bench Life extends context learning evaluation to real-life scenarios. Contexts are messy, fragmented, and grounded in everyday experience — the kind of data people actually deal with daily.
**Stats**: 405 context-task pairs · 5,348 rubrics (avg. 10.7 per task) · 3 categories · 9 sub-categories
**Context Categories**:
- **Communication & Social Interactions** — group chats, meeting transcripts, private conversations, community threads...
- **Fragmented Information & Revisions** — personal notes, news feeds, document edit histories, version logs...
- **Behavioral Records & Activity Trails** — game logs, browsing histories, transactions, fitness/health tracking...
## 🚀 Quick Start
Both benchmarks share the same evaluation pipeline — just point to different input files.
```bash
pip install openai tqdm
```
Download datasets from HuggingFace:
- [tencent/CL-bench](https://huggingface.co/datasets/tencent/CL-bench) → `CL-bench.jsonl`
- [tencent/CL-bench-Life](https://huggingface.co/datasets/tencent/CL-bench-Life) → `CL-bench-Life.jsonl`
### Inference
```bash
export OPENAI_API_KEY="your_api_key"
# CL-bench
python infer.py --model --input CL-bench.jsonl --workers 20
# CL-bench Life
python infer.py --model --input CL-bench-Life.jsonl --workers 20
# For non-OpenAI models, specify base URL and API key
python infer.py --model \
--base-url \
--api-key \
--input CL-bench.jsonl
```
### Evaluation
CL-bench uses GPT-5.1 (low reasoning effort) as the default judge; CL-bench Life uses GPT-5.1 (high reasoning effort).
```bash
# CL-bench (low reasoning effort)
python eval.py --input outputs/.jsonl --judge-model gpt-5.1 --reasoning-effort low
# CL-bench Life (high reasoning effort)
python eval.py --input outputs/.jsonl --judge-model gpt-5.1 --reasoning-effort high
```
Evaluation is binary: a task is solved only if the model's response passes **all** associated rubrics. For reasoning models, only the final solution is evaluated; thinking traces are excluded.
### Data Structure
Both datasets use the same JSONL format:
```json
{
"messages": [
{"role": "system", "content": "..."},
{"role": "user", "content": "..."},
{"role": "assistant", "content": "..."}
],
"rubrics": ["Rubric 1", "Rubric 2", "..."],
"metadata": {
"task_id": "unique-task-identifier",
"context_category": "..."
}
}
```
## 📮 Submit Results
Want to add your model to the leaderboard? Run inference and evaluation using the scripts above, then submit a PR to this repo with your graded result file (`*_graded.jsonl`). We will verify the results and update the leaderboard.
## 📝 Citation
```bibtex
@misc{dou2026clbenchbenchmarkcontextlearning,
title={CL-bench: A Benchmark for Context Learning},
author={Shihan Dou and Ming Zhang and Zhangyue Yin and Chenhao Huang and Yujiong Shen and Junzhe Wang and Jiayi Chen and Yuchen Ni and Junjie Ye and Cheng Zhang and Huaibing Xie and Jianglu Hu and Shaolei Wang and Weichao Wang and Yanling Xiao and Yiting Liu and Zenan Xu and Zhen Guo and Pluto Zhou and Tao Gui and Zuxuan Wu and Xipeng Qiu and Qi Zhang and Xuanjing Huang and Yu-Gang Jiang and Di Wang and Shunyu Yao},
year={2026},
eprint={2602.03587},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2602.03587},
}
@misc{dou2026clbenchlifelanguagemodels,
title={CL-bench Life: Can Language Models Learn from Real-Life Context?},
author={Shihan Dou and Yujiong Shen and Chenhao Huang and Junjie Ye and Jiayi Chen and Junzhe Wang and Qianyu He and Shichun Liu and Changze Lv and Jiahang Lin and Jiazheng Zhang and Ming Zhang and Shaofan Liu and Tao Ji and Zhangyue Yin and Cheng Zhang and Huaibing Xie and Jianglu Hu and Jingcheng Deng and Lincheng Li and Minda Hu and Shaolei Wang and Syrus Zhao and Weichao Wang and Yan Lei and Yang Liu and Yanling Xiao and Yiting Liu and Zenan Xu and Zhen Guo and Ziliang Zhao and Pluto Zhou and Tao Gui and Qi Zhang and Xuanjing Huang and Yu-Gang Jiang and Di Wang and Shunyu Yao},
year={2026},
eprint={2604.27043},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2604.27043},
}
```
Copyright © 2025-2026 Tencent Hunyuan Team & Fudan NLP Group. All rights reserved.