Multi-LCB
收藏资源简介:
Multi-LCB是一个扩展自LiveCodeBench的多编程语言代码生成评估基准,由GigaCode等机构联合创建。该数据集覆盖12种主流编程语言,通过将原始LCB的Python任务转换为统一STDIN/STDOUT格式实现跨语言评估,数据来源于LeetCode、AtCoder和Codeforces三大竞赛平台的时序筛选问题。数据集构建采用自动化转换管道,保留原始LCB的污染控制机制与评估协议,确保任务在不同语言间具有可比性。其核心应用在于系统评估大语言模型在多编程语言环境下的代码生成泛化能力,揭示模型存在的Python过拟合、语言特定污染及跨语言性能差异等关键问题。
Multi-LCB is a multi-programming-language code generation evaluation benchmark extended from LiveCodeBench, co-developed by GigaCode and other collaborating institutions. This dataset covers 12 mainstream programming languages, enabling cross-language evaluation by converting the original Python tasks from LCB into a unified STDIN/STDOUT format, with its data sourced from time-series filtered problems from three major competitive programming platforms: LeetCode, AtCoder, and Codeforces. The dataset is constructed via an automated transformation pipeline, retaining the original LCB's contamination control mechanisms and evaluation protocols to ensure task comparability across different languages. Its core application lies in systematically evaluating the code generation generalization capabilities of large language models (LLMs) in multi-programming-language environments, and revealing key issues of LLMs including Python overfitting, language-specific contamination, and cross-language performance discrepancies.
Multi-LiveCodeBench 数据集详情
数据集概述
Multi-LiveCodeBench 是一个基于竞技编程问题的严格 NLP PLP 代码基准测试,是 LiveCodeBench 的扩展版本,支持在 12 种编程语言上进行评估。
支持的语言
- c++
- c#
- python
- java
- rust
- go
- typescript
- javascript
- ruby
- kotlin
- scala
- php
相关资源
- 主页与排行榜:https://multi-lcb.github.io
- 数据下载:https://huggingface.co/livecodebench/
- 原始项目(LiveCodeBench):https://github.com/LiveCodeBench/LiveCodeBench
安装与运行
环境配置
- 使用 conda 创建 Python 3.11 环境
- 安装
requirements.txt中的依赖 - 可选:为 SGlang/VLLM 推理设置独立环境
支持硬件
- 系统:Ubuntu 22.04.5
- conda 版本:25.7.0
- GPU:NVIDIA H100 80Gb
推理与评估流程
- 启动 SGlang/VLLM 服务器作为独立进程
- 使用异步 sglang/vllm 客户端运行 Multi-LCB 评估
主要参数
cot_code_execution:开启推理过程batch_size:客户端异步队列深度continue_existing/continue_existing_eval:继续已有生成或评估num_process_evaluate:评估并行进程数eval_restarts:因超时失败时重复评估次数plangs:指定评估的语言列表(或使用"all")
后评估统计
支持根据日期和平台(如 LeetCode)对已生成的评估结果进行过滤统计。

- 1Multi-LCB: Extending LiveCodeBench to Multiple Programming LanguagesGigaCode; 应用人工智能研究所·Yandex数据分析学院 · 2026年



