In the scenario-based evaluation of machine learning models, a key problem is how to construct test datasets that represent various scenarios. The methodology proposed in this paper is to construct a benchmark and attach metadata to each test case. Then a test system can be constructed with test morphisms that filter the test cases based on metadata to form a dataset.
The paper demonstrates this methodology with large language models for code generation. A benchmark called ScenEval is constructed from problems in textbooks, an online tutorial website and Stack Overflow. Filtering by scenario is demonstrated and the test sets are used to evaluate ChatGPT for Java code generation.
Our experiments found that the performance of ChatGPT decreases with the complexity of the coding task. It is weakest for advanced topics like multi-threading, data structure algorithms and recursive methods. The Java code generated by ChatGPT tends to be much shorter than reference solution in terms of number of lines, while it is more likely to be more complex in both cyclomatic and cognitive complexity metrics, if the generated code is correct. However, the generated code is more likely to be less complex than the reference solution if the code is incorrect.
IRSC: A Zero-shot Evaluation Benchmark for Information Retrieval through Semantic Comprehension in Retrieval-Augmented Generation Scenarios
PengCheng Laboratory(鹏城实验室);Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院);Southern University of Science and Technology(南方科技大学)
SWE-EVO: Benchmarking Coding Agents in Long-Horizon Software Evolution Scenarios
FPT Software AI Center(FPT软件人工智能中心);School of Computing and Information Systems(计算与信息系统学院);University of Melbourne(墨尔本大学);Center of AI Research(人工智能研究中心);VinUniversity(文大学)
TSHA: A Benchmark for Visual Language Models in Trustworthy Safety Hazard Assessment Scenarios
City University of Hong Kong(香港城市大学);East China Normal University(华东师范大学);University of Western Australia(西澳大学);Shanghai AI Laboratory(上海人工智能实验室);Shanghai Development Center of Computer Software Technology(上海计算机软件技术开发中心);Zhejiang Gongshang University(浙江工商大学)
Towards Generalizable Context-aware Anomaly Detection: A Large-scale Benchmark in Cloud Environments
UC San Diego(加州大学圣地亚哥分校);Massachusetts Institute of Technology(麻省理工学院);Georgia Institute of Technology(佐治亚理工学院);Carnegie Mellon University(卡内基梅隆大学);Tongji University(同济大学);Tsinghua University(清华大学);University of Pennsylvania(宾夕法尼亚大学)
MLDebugging: Towards Benchmarking Code Debugging Across Multi-Library Scenarios
School of Computer Science and Engineering, Central South University, China(中南大学计算机科学与工程学院);The University of Hong Kong(香港大学);Research Center for SCIR, Harbin Institute of Technology, Harbin, China(哈尔滨工业大学SCIR研究中心);School of Communication and Information Engineering, Shanghai University, China(上海大学通信与信息工程学院)