├── .gitignore ├── LICENSE ├── README.md ├── README_zh-CN.md ├── download_data.sh └── overview.png /.gitignore: -------------------------------------------------------------------------------- 1 | # Byte-compiled / optimized / DLL files 2 | __pycache__/ 3 | *.py[cod] 4 | *$py.class 5 | 6 | # C extensions 7 | *.so 8 | 9 | # Distribution / packaging 10 | .Python 11 | build/ 12 | develop-eggs/ 13 | dist/ 14 | downloads/ 15 | eggs/ 16 | .eggs/ 17 | lib/ 18 | lib64/ 19 | parts/ 20 | sdist/ 21 | var/ 22 | wheels/ 23 | share/python-wheels/ 24 | *.egg-info/ 25 | .installed.cfg 26 | *.egg 27 | MANIFEST 28 | 29 | # PyInstaller 30 | # Usually these files are written by a python script from a template 31 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 32 | *.manifest 33 | *.spec 34 | 35 | # Installer logs 36 | pip-log.txt 37 | pip-delete-this-directory.txt 38 | 39 | # Unit test / coverage reports 40 | htmlcov/ 41 | .tox/ 42 | .nox/ 43 | .coverage 44 | .coverage.* 45 | .cache 46 | nosetests.xml 47 | coverage.xml 48 | *.cover 49 | *.py,cover 50 | .hypothesis/ 51 | .pytest_cache/ 52 | cover/ 53 | 54 | # Translations 55 | *.mo 56 | *.pot 57 | 58 | # Django stuff: 59 | *.log 60 | local_settings.py 61 | db.sqlite3 62 | db.sqlite3-journal 63 | 64 | # Flask stuff: 65 | instance/ 66 | .webassets-cache 67 | 68 | # Scrapy stuff: 69 | .scrapy 70 | 71 | # Sphinx documentation 72 | docs/_build/ 73 | 74 | # PyBuilder 75 | .pybuilder/ 76 | target/ 77 | 78 | # Jupyter Notebook 79 | .ipynb_checkpoints 80 | 81 | # IPython 82 | profile_default/ 83 | ipython_config.py 84 | 85 | # pyenv 86 | # For a library or package, you might want to ignore these files since the code is 87 | # intended to run in multiple environments; otherwise, check them in: 88 | # .python-version 89 | 90 | # pipenv 91 | # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. 92 | # However, in case of collaboration, if having platform-specific dependencies or dependencies 93 | # having no cross-platform support, pipenv may install dependencies that don't work, or not 94 | # install all needed dependencies. 95 | #Pipfile.lock 96 | 97 | # poetry 98 | # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. 99 | # This is especially recommended for binary packages to ensure reproducibility, and is more 100 | # commonly ignored for libraries. 101 | # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control 102 | #poetry.lock 103 | 104 | # pdm 105 | # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. 106 | #pdm.lock 107 | # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it 108 | # in version control. 109 | # https://pdm.fming.dev/#use-with-ide 110 | .pdm.toml 111 | 112 | # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm 113 | __pypackages__/ 114 | 115 | # Celery stuff 116 | celerybeat-schedule 117 | celerybeat.pid 118 | 119 | # SageMath parsed files 120 | *.sage.py 121 | 122 | # Environments 123 | .env 124 | .venv 125 | env/ 126 | venv/ 127 | ENV/ 128 | env.bak/ 129 | venv.bak/ 130 | 131 | # Spyder project settings 132 | .spyderproject 133 | .spyproject 134 | 135 | # Rope project settings 136 | .ropeproject 137 | 138 | # mkdocs documentation 139 | /site 140 | 141 | # mypy 142 | .mypy_cache/ 143 | .dmypy.json 144 | dmypy.json 145 | 146 | # Pyre type checker 147 | .pyre/ 148 | 149 | # pytype static type analyzer 150 | .pytype/ 151 | 152 | # Cython debug symbols 153 | cython_debug/ 154 | 155 | # PyCharm 156 | # JetBrains specific template is maintained in a separate JetBrains.gitignore that can 157 | # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore 158 | # and can be added to the global gitignore or merged into this file. For a more nuclear 159 | # option (not recommended) you can uncomment the following to ignore the entire idea folder. 160 | #.idea/ 161 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Attribution-NonCommercial-NoDerivatives 4.0 International 2 | 3 | ======================================================================= 4 | 5 | Creative Commons Corporation ("Creative Commons") is not a law firm and 6 | does not provide legal services or legal advice. Distribution of 7 | Creative Commons public licenses does not create a lawyer-client or 8 | other relationship. Creative Commons makes its licenses and related 9 | information available on an "as-is" basis. Creative Commons gives no 10 | warranties regarding its licenses, any material licensed under their 11 | terms and conditions, or any related information. Creative Commons 12 | disclaims all liability for damages resulting from their use to the 13 | fullest extent possible. 14 | 15 | Using Creative Commons Public Licenses 16 | 17 | Creative Commons public licenses provide a standard set of terms and 18 | conditions that creators and other rights holders may use to share 19 | original works of authorship and other material subject to copyright 20 | and certain other rights specified in the public license below. The 21 | following considerations are for informational purposes only, are not 22 | exhaustive, and do not form part of our licenses. 23 | 24 | Considerations for licensors: Our public licenses are 25 | intended for use by those authorized to give the public 26 | permission to use material in ways otherwise restricted by 27 | copyright and certain other rights. Our licenses are 28 | irrevocable. Licensors should read and understand the terms 29 | and conditions of the license they choose before applying it. 30 | Licensors should also secure all rights necessary before 31 | applying our licenses so that the public can reuse the 32 | material as expected. Licensors should clearly mark any 33 | material not subject to the license. This includes other CC- 34 | licensed material, or material used under an exception or 35 | limitation to copyright. More considerations for licensors: 36 | wiki.creativecommons.org/Considerations_for_licensors 37 | 38 | Considerations for the public: By using one of our public 39 | licenses, a licensor grants the public permission to use the 40 | licensed material under specified terms and conditions. If 41 | the licensor's permission is not necessary for any reason--for 42 | example, because of any applicable exception or limitation to 43 | copyright--then that use is not regulated by the license. Our 44 | licenses grant only permissions under copyright and certain 45 | other rights that a licensor has authority to grant. Use of 46 | the licensed material may still be restricted for other 47 | reasons, including because others have copyright or other 48 | rights in the material. A licensor may make special requests, 49 | such as asking that all changes be marked or described. 50 | Although not required by our licenses, you are encouraged to 51 | respect those requests where reasonable. More considerations 52 | for the public: 53 | wiki.creativecommons.org/Considerations_for_licensees 54 | 55 | ======================================================================= 56 | 57 | Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 58 | International Public License 59 | 60 | By exercising the Licensed Rights (defined below), You accept and agree 61 | to be bound by the terms and conditions of this Creative Commons 62 | Attribution-NonCommercial-NoDerivatives 4.0 International Public 63 | License ("Public License"). To the extent this Public License may be 64 | interpreted as a contract, You are granted the Licensed Rights in 65 | consideration of Your acceptance of these terms and conditions, and the 66 | Licensor grants You such rights in consideration of benefits the 67 | Licensor receives from making the Licensed Material available under 68 | these terms and conditions. 69 | 70 | 71 | Section 1 -- Definitions. 72 | 73 | a. Adapted Material means material subject to Copyright and Similar 74 | Rights that is derived from or based upon the Licensed Material 75 | and in which the Licensed Material is translated, altered, 76 | arranged, transformed, or otherwise modified in a manner requiring 77 | permission under the Copyright and Similar Rights held by the 78 | Licensor. For purposes of this Public License, where the Licensed 79 | Material is a musical work, performance, or sound recording, 80 | Adapted Material is always produced where the Licensed Material is 81 | synched in timed relation with a moving image. 82 | 83 | b. Copyright and Similar Rights means copyright and/or similar rights 84 | closely related to copyright including, without limitation, 85 | performance, broadcast, sound recording, and Sui Generis Database 86 | Rights, without regard to how the rights are labeled or 87 | categorized. For purposes of this Public License, the rights 88 | specified in Section 2(b)(1)-(2) are not Copyright and Similar 89 | Rights. 90 | 91 | c. Effective Technological Measures means those measures that, in the 92 | absence of proper authority, may not be circumvented under laws 93 | fulfilling obligations under Article 11 of the WIPO Copyright 94 | Treaty adopted on December 20, 1996, and/or similar international 95 | agreements. 96 | 97 | d. Exceptions and Limitations means fair use, fair dealing, and/or 98 | any other exception or limitation to Copyright and Similar Rights 99 | that applies to Your use of the Licensed Material. 100 | 101 | e. Licensed Material means the artistic or literary work, database, 102 | or other material to which the Licensor applied this Public 103 | License. 104 | 105 | f. Licensed Rights means the rights granted to You subject to the 106 | terms and conditions of this Public License, which are limited to 107 | all Copyright and Similar Rights that apply to Your use of the 108 | Licensed Material and that the Licensor has authority to license. 109 | 110 | g. Licensor means the individual(s) or entity(ies) granting rights 111 | under this Public License. 112 | 113 | h. NonCommercial means not primarily intended for or directed towards 114 | commercial advantage or monetary compensation. For purposes of 115 | this Public License, the exchange of the Licensed Material for 116 | other material subject to Copyright and Similar Rights by digital 117 | file-sharing or similar means is NonCommercial provided there is 118 | no payment of monetary compensation in connection with the 119 | exchange. 120 | 121 | i. Share means to provide material to the public by any means or 122 | process that requires permission under the Licensed Rights, such 123 | as reproduction, public display, public performance, distribution, 124 | dissemination, communication, or importation, and to make material 125 | available to the public including in ways that members of the 126 | public may access the material from a place and at a time 127 | individually chosen by them. 128 | 129 | j. Sui Generis Database Rights means rights other than copyright 130 | resulting from Directive 96/9/EC of the European Parliament and of 131 | the Council of 11 March 1996 on the legal protection of databases, 132 | as amended and/or succeeded, as well as other essentially 133 | equivalent rights anywhere in the world. 134 | 135 | k. You means the individual or entity exercising the Licensed Rights 136 | under this Public License. Your has a corresponding meaning. 137 | 138 | 139 | Section 2 -- Scope. 140 | 141 | a. License grant. 142 | 143 | 1. Subject to the terms and conditions of this Public License, 144 | the Licensor hereby grants You a worldwide, royalty-free, 145 | non-sublicensable, non-exclusive, irrevocable license to 146 | exercise the Licensed Rights in the Licensed Material to: 147 | 148 | a. reproduce and Share the Licensed Material, in whole or 149 | in part, for NonCommercial purposes only; and 150 | 151 | b. produce and reproduce, but not Share, Adapted Material 152 | for NonCommercial purposes only. 153 | 154 | 2. Exceptions and Limitations. For the avoidance of doubt, where 155 | Exceptions and Limitations apply to Your use, this Public 156 | License does not apply, and You do not need to comply with 157 | its terms and conditions. 158 | 159 | 3. Term. The term of this Public License is specified in Section 160 | 6(a). 161 | 162 | 4. Media and formats; technical modifications allowed. The 163 | Licensor authorizes You to exercise the Licensed Rights in 164 | all media and formats whether now known or hereafter created, 165 | and to make technical modifications necessary to do so. The 166 | Licensor waives and/or agrees not to assert any right or 167 | authority to forbid You from making technical modifications 168 | necessary to exercise the Licensed Rights, including 169 | technical modifications necessary to circumvent Effective 170 | Technological Measures. For purposes of this Public License, 171 | simply making modifications authorized by this Section 2(a) 172 | (4) never produces Adapted Material. 173 | 174 | 5. Downstream recipients. 175 | 176 | a. Offer from the Licensor -- Licensed Material. Every 177 | recipient of the Licensed Material automatically 178 | receives an offer from the Licensor to exercise the 179 | Licensed Rights under the terms and conditions of this 180 | Public License. 181 | 182 | b. No downstream restrictions. You may not offer or impose 183 | any additional or different terms or conditions on, or 184 | apply any Effective Technological Measures to, the 185 | Licensed Material if doing so restricts exercise of the 186 | Licensed Rights by any recipient of the Licensed 187 | Material. 188 | 189 | 6. No endorsement. Nothing in this Public License constitutes or 190 | may be construed as permission to assert or imply that You 191 | are, or that Your use of the Licensed Material is, connected 192 | with, or sponsored, endorsed, or granted official status by, 193 | the Licensor or others designated to receive attribution as 194 | provided in Section 3(a)(1)(A)(i). 195 | 196 | b. Other rights. 197 | 198 | 1. Moral rights, such as the right of integrity, are not 199 | licensed under this Public License, nor are publicity, 200 | privacy, and/or other similar personality rights; however, to 201 | the extent possible, the Licensor waives and/or agrees not to 202 | assert any such rights held by the Licensor to the limited 203 | extent necessary to allow You to exercise the Licensed 204 | Rights, but not otherwise. 205 | 206 | 2. Patent and trademark rights are not licensed under this 207 | Public License. 208 | 209 | 3. To the extent possible, the Licensor waives any right to 210 | collect royalties from You for the exercise of the Licensed 211 | Rights, whether directly or through a collecting society 212 | under any voluntary or waivable statutory or compulsory 213 | licensing scheme. In all other cases the Licensor expressly 214 | reserves any right to collect such royalties, including when 215 | the Licensed Material is used other than for NonCommercial 216 | purposes. 217 | 218 | 219 | Section 3 -- License Conditions. 220 | 221 | Your exercise of the Licensed Rights is expressly made subject to the 222 | following conditions. 223 | 224 | a. Attribution. 225 | 226 | 1. If You Share the Licensed Material, You must: 227 | 228 | a. retain the following if it is supplied by the Licensor 229 | with the Licensed Material: 230 | 231 | i. identification of the creator(s) of the Licensed 232 | Material and any others designated to receive 233 | attribution, in any reasonable manner requested by 234 | the Licensor (including by pseudonym if 235 | designated); 236 | 237 | ii. a copyright notice; 238 | 239 | iii. a notice that refers to this Public License; 240 | 241 | iv. a notice that refers to the disclaimer of 242 | warranties; 243 | 244 | v. a URI or hyperlink to the Licensed Material to the 245 | extent reasonably practicable; 246 | 247 | b. indicate if You modified the Licensed Material and 248 | retain an indication of any previous modifications; and 249 | 250 | c. indicate the Licensed Material is licensed under this 251 | Public License, and include the text of, or the URI or 252 | hyperlink to, this Public License. 253 | 254 | For the avoidance of doubt, You do not have permission under 255 | this Public License to Share Adapted Material. 256 | 257 | 2. You may satisfy the conditions in Section 3(a)(1) in any 258 | reasonable manner based on the medium, means, and context in 259 | which You Share the Licensed Material. For example, it may be 260 | reasonable to satisfy the conditions by providing a URI or 261 | hyperlink to a resource that includes the required 262 | information. 263 | 264 | 3. If requested by the Licensor, You must remove any of the 265 | information required by Section 3(a)(1)(A) to the extent 266 | reasonably practicable. 267 | 268 | 269 | Section 4 -- Sui Generis Database Rights. 270 | 271 | Where the Licensed Rights include Sui Generis Database Rights that 272 | apply to Your use of the Licensed Material: 273 | 274 | a. for the avoidance of doubt, Section 2(a)(1) grants You the right 275 | to extract, reuse, reproduce, and Share all or a substantial 276 | portion of the contents of the database for NonCommercial purposes 277 | only and provided You do not Share Adapted Material; 278 | 279 | b. if You include all or a substantial portion of the database 280 | contents in a database in which You have Sui Generis Database 281 | Rights, then the database in which You have Sui Generis Database 282 | Rights (but not its individual contents) is Adapted Material; and 283 | 284 | c. You must comply with the conditions in Section 3(a) if You Share 285 | all or a substantial portion of the contents of the database. 286 | 287 | For the avoidance of doubt, this Section 4 supplements and does not 288 | replace Your obligations under this Public License where the Licensed 289 | Rights include other Copyright and Similar Rights. 290 | 291 | 292 | Section 5 -- Disclaimer of Warranties and Limitation of Liability. 293 | 294 | a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE 295 | EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS 296 | AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF 297 | ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, 298 | IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, 299 | WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR 300 | PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, 301 | ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT 302 | KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT 303 | ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. 304 | 305 | b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE 306 | TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, 307 | NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, 308 | INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, 309 | COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR 310 | USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN 311 | ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR 312 | DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR 313 | IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. 314 | 315 | c. The disclaimer of warranties and limitation of liability provided 316 | above shall be interpreted in a manner that, to the extent 317 | possible, most closely approximates an absolute disclaimer and 318 | waiver of all liability. 319 | 320 | 321 | Section 6 -- Term and Termination. 322 | 323 | a. This Public License applies for the term of the Copyright and 324 | Similar Rights licensed here. However, if You fail to comply with 325 | this Public License, then Your rights under this Public License 326 | terminate automatically. 327 | 328 | b. Where Your right to use the Licensed Material has terminated under 329 | Section 6(a), it reinstates: 330 | 331 | 1. automatically as of the date the violation is cured, provided 332 | it is cured within 30 days of Your discovery of the 333 | violation; or 334 | 335 | 2. upon express reinstatement by the Licensor. 336 | 337 | For the avoidance of doubt, this Section 6(b) does not affect any 338 | right the Licensor may have to seek remedies for Your violations 339 | of this Public License. 340 | 341 | c. For the avoidance of doubt, the Licensor may also offer the 342 | Licensed Material under separate terms or conditions or stop 343 | distributing the Licensed Material at any time; however, doing so 344 | will not terminate this Public License. 345 | 346 | d. Sections 1, 5, 6, 7, and 8 survive termination of this Public 347 | License. 348 | 349 | 350 | Section 7 -- Other Terms and Conditions. 351 | 352 | a. The Licensor shall not be bound by any additional or different 353 | terms or conditions communicated by You unless expressly agreed. 354 | 355 | b. Any arrangements, understandings, or agreements regarding the 356 | Licensed Material not stated herein are separate from and 357 | independent of the terms and conditions of this Public License. 358 | 359 | 360 | Section 8 -- Interpretation. 361 | 362 | a. For the avoidance of doubt, this Public License does not, and 363 | shall not be interpreted to, reduce, limit, restrict, or impose 364 | conditions on any use of the Licensed Material that could lawfully 365 | be made without permission under this Public License. 366 | 367 | b. To the extent possible, if any provision of this Public License is 368 | deemed unenforceable, it shall be automatically reformed to the 369 | minimum extent necessary to make it enforceable. If the provision 370 | cannot be reformed, it shall be severed from this Public License 371 | without affecting the enforceability of the remaining terms and 372 | conditions. 373 | 374 | c. No term or condition of this Public License will be waived and no 375 | failure to comply consented to unless expressly agreed to by the 376 | Licensor. 377 | 378 | d. Nothing in this Public License constitutes or may be interpreted 379 | as a limitation upon, or waiver of, any privileges and immunities 380 | that apply to the Licensor or You, including from the legal 381 | processes of any jurisdiction or authority. 382 | 383 | ======================================================================= 384 | 385 | Creative Commons is not a party to its public 386 | licenses. Notwithstanding, Creative Commons may elect to apply one of 387 | its public licenses to material it publishes and in those instances 388 | will be considered the �𦚵icensor.�� The text of the Creative Commons 389 | public licenses is dedicated to the public domain under the CC0 Public 390 | Domain Dedication. Except for the limited purpose of indicating that 391 | material is shared under a Creative Commons public license or as 392 | otherwise permitted by the Creative Commons policies published at 393 | creativecommons.org/policies, Creative Commons does not authorize the 394 | use of the trademark "Creative Commons" or any other trademark or logo 395 | of Creative Commons without its prior written consent including, 396 | without limitation, in connection with any unauthorized modifications 397 | to any of its public licenses or any other arrangements, 398 | understandings, or agreements concerning use of licensed material. For 399 | the avoidance of doubt, this paragraph does not form part of the 400 | public licenses. 401 | 402 | Creative Commons may be contacted at creativecommons.org. 403 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | #

CLEVA: Chinese Language Models EVAluation Platform

2 |
3 | 4 | [![GitHub Repo stars](https://img.shields.io/github/stars/Lavi-Lab/CLEVA)](https://github.com/Lavi-Lab/CLEVA/stargazers) 5 | [![License: CC BY-NC-ND 4.0](https://img.shields.io/badge/License-CC_BY--NC--ND_4.0-blue.svg)](https://creativecommons.org/licenses/by-nc-nd/4.0/) 6 | [![Ask me anything](https://img.shields.io/badge/Ask%20me-anything-blue.svg)](https://github.com/LaVi-Lab/CLEVA/issues/new) 7 | 8 | [🌐Website](http://www.lavicleva.com/) 9 | •[📜Paper \[EMNLP 2023 Demo\]](https://arxiv.org/abs/2308.04813) 10 | •[📌Instructions](#instructions) 11 | •✉️Email 12 | 13 | English | [简体中文](README_zh-CN.md) 14 | 15 |
16 | 17 | ## 🎯 Introduction 18 | 19 | [CLEVA](https://arxiv.org/abs/2308.04813) is a Chinese Language Models EVAluation Platform developed by CUHK [LaVi Lab](https://lwwangcse.github.io/). CLEVA would like to thank Shanghai AI Lab for the great collaboration in the process. The main features of CLEVA include: 20 | - A comprehensive **Chinese Benchmark**, featuring 31 tasks (11 application assessments + 20 ability evaluation tasks), with a total of 370K Chinese test samples (33.98% are newly collected, mitigating *data contamination* issues); 21 | - A standardized **Prompt-Based Evaluation Methodology**, incorporating unified pre-processing for all data and using *a consistent set* of Chinese prompt templates for evaluation. 22 | - A trustworthy **Leaderboard**, as CLEVA uses a significant amount of new data to minimize data contamination and regularly organizes evaluations. 23 | 24 | The leaderboard is evaluated and maintained by CLEVA using new test data. Past leaderboard data (processed test samples, annotated prompt templates, etc.) are made available to users for local evaluation runs. 25 | 26 | ![Overview](overview.png) 27 | 28 | ## 🔥 News 29 | 30 | - **\[2025.05.16\]** C2LEVA has been accepted to [Findings of ACL 2025](https://2025.aclweb.org/). 🔥🔥🔥 31 | - **\[2024.12.06\]** We are thrilled to announce C2LEVA, an effort toward building a comprehensive bilingual benchmark with systematic contamination prevention. 32 | - **\[2023.11.02\]** Thanks for the support of Stanford CRFM HELM team! CLEVA has now been integrated into the [latest release](https://github.com/stanford-crfm/helm/releases/tag/v0.3.0) of HELM. You can use CLEVA to evaluate your own models locally via HELM. 33 | - **\[2023.09.30\]** CLEVA has been accepted to [EMNLP 2023 System Demonstrations](https://2023.emnlp.org/calls/demos/)! 34 | - **\[2023.08.09\]** Our [paper](https://arxiv.org/abs/2308.04813) for CLEVA is out! 35 | 36 | 37 | ## 📌 Instructions 38 | 39 | [CLEVA](https://arxiv.org/abs/2308.04813) has been integrated into [HELM](https://github.com/stanford-crfm/helm). CLEVA would like to thank Stanford CRFM HELM team for the support. Users can employ CLEVA's datasets, prompt templates, perturbations, and Chinese automatic metrics for local evaluations via HELM. 40 | 41 | > [!NOTE] 42 | > If you want to evaluate your models on CLEVA online, please contact us via for authentication and check out [📘Documentation](http://www.lavicleva.com/#/homepage/createautotask) for API development. 43 | 44 | ### 🛠️ Installation 45 | 46 | Users can refer to the [installation guide](https://crfm-helm.readthedocs.io/en/latest/installation/) of HELM for setting up the Python environment and dependencies (`Python>=3.8`). 47 | 48 |
49 | Installation Using Anaconda 50 | 51 | Here is an example for installation using [Anaconda](https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html): 52 | 53 | Create the environment first: 54 | ```sh 55 | # Create virtual environment 56 | # Only need to run once 57 | conda create -n cleva python=3.8 pip 58 | 59 | # Activate the virtual environment 60 | conda activate cleva 61 | ``` 62 | 63 | Then install the dependencies: 64 | 65 | ```sh 66 | pip install crfm-helm 67 | ``` 68 |
69 | 70 | ### ⚖️ Evaluation 71 | 72 | Example command to evaluate `gpt-3.5-turbo-0613` on CLEVA's Chinese-to-English translation task using HELM: 73 | 74 | ```sh 75 | helm-run \ 76 | -r "cleva:model=openai/gpt-3.5-turbo-0613,task=translation,subtask=zh2en,prompt_id=0,version=v1,data_augmentation=cleva" \ 77 | --num-train-trials \ 78 | --max-eval-instances \ 79 | --suite 80 | ``` 81 | 82 | Explanation of parameters in `-r` (run configuration): 83 | 84 | - `task` represents one of the 31 tasks included in CLEVA; 85 | - `subtask` specifies the subcategory under each CLEVA task; 86 | - `prompt_id` is the index of CLEVA's annotated prompt templates (starting from 0); 87 | - `version` is the version number of the CLEVA dataset (currently only the `v1` dataset used in the paper is provided); 88 | - `data_augmentation` specifies the data augmentation strategy, where values like `cleva_robustness`, `cleva_fairness`, and `cleva` are unique to CLEVA for evaluating Chinese language robustness, fairness and both respectively. 89 | 90 | For other parameters, please refer to HELM's [tutorial](https://crfm-helm.readthedocs.io/en/latest/tutorial/). 91 | 92 | The full list of available `task`, `subtask`, and `prompt_id` of CLEVA (`version=v1`) can be found in HELM's [.conf](https://github.com/stanford-crfm/helm/blob/main/src/helm/benchmark/presentation/run_specs_cleva_v1.conf) file. Users can run the entire CLEVA evaluation suite using the following command (the running time for reproducing CLEVA results can be found in the [paper](https://arxiv.org/abs/2308.04813)): 93 | 94 | ```sh 95 | helm-run \ 96 | -c src/helm/benchmark/presentation/run_specs_cleva_v1.conf \ 97 | --num-train-trials \ 98 | --max-eval-instances \ 99 | --suite 100 | ``` 101 | Generally, setting `--max-eval-instances` to over 5000 ensures all CLEVA task data are used for evaluation. 102 | 103 | ### 📊 Reference Results 104 | 105 | Comparison between the results obtained using HELM for evaluating `gpt-3.5-turbo-0613` on selected CLEVA tasks (`version=v1`) and those from the CLEVA platform: 106 | 107 | | Scenario | Metric | Reproduced in HELM | Evaluated by CLEVA | 108 | | ---- | ----------------- | ---------------- | ----------- | 109 | | task=summarization,subtask=dialogue_summarization | ROUGE-2 | 0.3045 | 0.3065 | 110 | | task=translation,subtask=en2zh | SacreBLEU | 60.48 | 59.23 | 111 | | task=fact_checking | Exact Match | 0.4595 | 0.4528 | 112 | | task=bias,subtask=dialogue_region_bias | Micro F1 | 0.5656 | 0.5589 | 113 | 114 | > [!NOTE] 115 | > The difference is mainly due to different random seeds resulting in different in-context demonstrations, and the ChatGPT versions used by CLEVA and HELM are not completely aligned. 116 | 117 | ## ⏬ Download Data 118 | 119 | If you want to use CLEVA data for evaluation with your own code, you can download the data by: 120 | ```sh 121 | bash download_data.sh 122 | ``` 123 | After a successful run, a folder named with the data version will be generated in the current directory, which contains the data of each task of CLEVA. You can specify the data version by passing arguments to `download_data.sh`. It is `v1` by default. 124 | 125 | ## 🛂 License 126 | 127 | CLEVA is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. 128 | 129 | You should have received a copy of the license along with this work. If not, see . 130 | 131 | ## 🖊️ Citation 132 | 133 | Please cite our paper if you use CLEVA in your work: 134 | ```bib 135 | @misc{li2024c2leva, 136 | title={C$^2$LEVA: Toward Comprehensive and Contamination-Free Language Model Evaluation}, 137 | author={Yanyang Li and Tin Long Wong and Cheung To Hung and Jianqiao Zhao and Duo Zheng and Ka Wai Liu and Michael R. Lyu and Liwei Wang}, 138 | year={2024}, 139 | eprint={2412.04947}, 140 | archivePrefix={arXiv}, 141 | primaryClass={cs.CL}, 142 | url={https://arxiv.org/abs/2412.04947}, 143 | } 144 | 145 | @misc{li2023cleva, 146 | title={CLEVA: Chinese Language Models EVAluation Platform}, 147 | author={Yanyang Li and Jianqiao Zhao and Duo Zheng and Zi-Yuan Hu and Zhi Chen and Xiaohui Su and Yongfeng Huang and Shijia Huang and Dahua Lin and Michael R. Lyu and Liwei Wang}, 148 | year={2023}, 149 | eprint={2308.04813}, 150 | archivePrefix={arXiv}, 151 | primaryClass={cs.CL} 152 | } 153 | ``` 154 | -------------------------------------------------------------------------------- /README_zh-CN.md: -------------------------------------------------------------------------------- 1 | #

CLEVA: Chinese Language Models EVAluation Platform

2 |
3 | 4 | [![GitHub Repo stars](https://img.shields.io/github/stars/Lavi-Lab/CLEVA)](https://github.com/Lavi-Lab/CLEVA/stargazers) 5 | [![License: CC BY-NC-ND 4.0](https://img.shields.io/badge/License-CC_BY--NC--ND_4.0-blue.svg)](https://creativecommons.org/licenses/by-nc-nd/4.0/) 6 | [![Ask me anything](https://img.shields.io/badge/Ask%20me-anything-blue.svg)](https://github.com/LaVi-Lab/CLEVA/issues/new) 7 | 8 | [🌐网站](http://www.lavicleva.com/) 9 | •[📜论文 \[EMNLP 2023 Demo\]](https://arxiv.org/abs/2308.04813) 10 | •[📌教程](#instructions) 11 | •✉️邮箱 12 | 13 | [English](README.md) | 简体中文 14 | 15 |
16 | 17 | ## 🎯 引言 18 | 19 | CLEVA的主要亮点包括 20 | - 一个全面的**中文评测基准**,包括31个任务(11个应用评估+20个能力评测任务),共370K中文测试样本(33.98%为全新构造,*缓解数据泄露*的问题); 21 | - 一个标准的**中文评测流程**,其中包括所有数据进行统一的预处理,所有模型使用同样*一组中文提示模板*进行评测等。 22 | - 一个可信的**中文模型排行榜**,因为CLEVA使用了大量新数据来缓解数据泄露,并定期组织评测。 23 | 24 | 其中排行榜由CLEVA使用全新的测试数据进行评测和维护。往期排行榜使用到的评测数据(处理好的测试样本、标注的提示模板等)将开放给用户,用户可自行在本地运行评测任务使用。 25 | 26 | ![总览](overview.png) 27 | 28 | ## 🔥 新闻 29 | 30 | - **\[2023.11.02\]** 感谢斯坦福CRFM HELM团队的支持!CLEVA现在已经被整合到HELM的[最新版本](https://github.com/stanford-crfm/helm/releases/tag/v0.3.0)。用户可以通过HELM来使用CLEVA的数据进行线下评测了。 31 | - **\[2023.09.30\]** CLEVA被[EMNLP 2023 System Demonstrations](https://2023.emnlp.org/calls/demos/)接收! 32 | - **\[2023.08.09\]** CLEVA的[论文](https://arxiv.org/abs/2308.04813)在ArXiv放出! 33 | 34 | 35 | ## 📌 教程 36 | 37 | [CLEVA](https://arxiv.org/abs/2308.04813)目前已经整合到[HELM](https://github.com/stanford-crfm/helm)中。CLEVA感谢斯坦福CRFM HELM团队的支持。用户可以通过HELM来使用CLEVA提供的数据集、标注提示模板、数据增强策略和中文自动指标来进行本地的评测。 38 | 39 | > **注意**
40 | > 如果您想使用CLEVA线上评测您的模型,请通过获取授权并查阅[📘文档](http://www.lavicleva.com/#/homepage/createautotask)进行API开发. 41 | 42 | ### 🛠️ 安装 43 | 44 | 用户可以参考HELM的[安装教程](https://crfm-helm.readthedocs.io/en/latest/installation/)进行Python环境以及依赖项的安装(`Python>=3.8`)。 45 | 46 |
47 | 通过Anaconda进行安装 48 | 49 | 其中使用[Anaconda](https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html)进行安装的例子如下: 50 | 51 | 首先创建环境: 52 | ```sh 53 | # 创建虚拟环境 54 | # 只需要运行一次 55 | conda create -n cleva python=3.8 pip 56 | 57 | # 激活虚拟环境 58 | conda activate cleva 59 | ``` 60 | 61 | 然后安装依赖项: 62 | ```sh 63 | pip install crfm-helm 64 | ``` 65 |
66 | 67 | ### ⚖️ 评测 68 | 69 | 使用HELM评测`gpt-3.5-turbo-0613`在CLEVA中到英翻译任务的结果例子如下: 70 | ```sh 71 | helm-run \ 72 | -r "cleva:model=openai/gpt-3.5-turbo-0613,task=translation,subtask=zh2en,prompt_id=0,version=v1,data_augmentation=cleva" \ 73 | --num-train-trials \ 74 | --max-eval-instances \ 75 | --suite 76 | ``` 77 | 其中`-r`是运行配置,里面每项参数解释如下: 78 | - `task`是CLEVA囊括的31个任务; 79 | - `subtask`是每个CLEVA任务下更细分的子任务类别; 80 | - `prompt_id`是CLEVA提供的标注提示模板索引(从0开始); 81 | - `version`是CLEVA数据集版本号(目前仅提供论文使用的`v1`版本数据集); 82 | - `data_augmentaion`是数据增强策略,其中取值`cleva_robustness`(评价中文健壮性的数据增强策略),`cleva_fairness`(评价中文公平性的数据增强策略)和`cleva`(同时评价中文健壮性和公平性)是CLEVA特有的中文数据增强策略。 83 | 84 | 其他参数的含义参考HELM的[教程](https://crfm-helm.readthedocs.io/en/latest/tutorial/)。 85 | 86 | CLEVA数据集(`version=v1`)对应的所有可用`task`,`subtask`和`prompt_id`取值参考HELM里的[配置文件](https://github.com/stanford-crfm/helm/blob/main/src/helm/benchmark/presentation/run_specs_cleva_v1.conf)。用户可以通过以下命令来运行整个CLEVA的评测(复现CLEVA结果的运行时间请参考[论文](https://arxiv.org/abs/2308.04813)): 87 | ```sh 88 | helm-run \ 89 | -c src/helm/benchmark/presentation/run_specs_cleva_v1.conf \ 90 | --num-train-trials \ 91 | --max-eval-instances \ 92 | --suite 93 | ``` 94 | 一般而言,`--max-eval-instances`大于5000可以保证使用了CLEVA每个任务上的所有数据进行评测。 95 | 96 | ### 📊 参考结果 97 | 98 | 使用HELM评测`gpt-3.5-turbo-0613`在部分CLEVA任务(`version=v1`)上的结果与CLEVA平台运行的结果对比: 99 | 100 | | 任务 | 指标 | HELM复现结果 | CLEVA评测结果 | 101 | | ---- | ----------------- | ---------------- | ----------- | 102 | | task=summarization,subtask=dialogue_summarization | ROUGE-2 | 0.3045 | 0.3065 | 103 | | task=translation,subtask=en2zh | SacreBLEU | 60.48 | 59.23 | 104 | | task=fact_checking | Exact Match | 0.4595 | 0.4528 | 105 | | task=bias,subtask=dialogue_region_bias | Micro F1 | 0.5656 | 0.5589 | 106 | 107 | > **注意**
108 | > 结果的差异主要是由于随机种子不同导致不同的in-context示例以及CLEVA和HELM使用的ChatGPT版本不完全对齐。 109 | 110 | ## ⏬ 数据下载 111 | 112 | 如果您想在自己的代码中使用CLEVA的数据进行评测,您可以通过以下命令下载数据: 113 | ```sh 114 | bash download_data.sh 115 | ``` 116 | 运行成功后会在当前目录生成以数据版本命名的文件夹,里面包含CLEVA各个任务的数据。您可以通过向`download_data.sh`传递参数来指定数据版本。默认是`v1`。 117 | 118 | ## 🛂 许可 119 | 120 | CLEVA is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. 121 | 122 | You should have received a copy of the license along with this work. If not, see . 123 | 124 | ## 🖊️ 引用 125 | 126 | 如果您在您的工作中使用了CLEVA,请引用我们的论文: 127 | ```bib 128 | @misc{li2023cleva, 129 | title={CLEVA: Chinese Language Models EVAluation Platform}, 130 | author={Yanyang Li and Jianqiao Zhao and Duo Zheng and Zi-Yuan Hu and Zhi Chen and Xiaohui Su and Yongfeng Huang and Shijia Huang and Dahua Lin and Michael R. Lyu and Liwei Wang}, 131 | year={2023}, 132 | eprint={2308.04813}, 133 | archivePrefix={arXiv}, 134 | primaryClass={cs.CL} 135 | } 136 | ``` 137 | -------------------------------------------------------------------------------- /download_data.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | version=${1:-v1} 5 | 6 | wget "http://39.108.215.175/data/${version}.zip" 7 | mkdir -p ${version} 8 | unzip ${version}.zip -d ${version} 9 | rm -rf ${version}.zip 10 | -------------------------------------------------------------------------------- /overview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaVi-Lab/CLEVA/9b11c68e6321db0aad5d3c571094451884180c78/overview.png --------------------------------------------------------------------------------