TensorX
返回文献探索

Paper · arXiv 2312.07910

PromptBench: A Unified Library for Evaluation of Large Language Models

Kaijie Zhu, Qinlin Zhao, Hao Chen, Jindong Wang, Xing Xie

16 upvotesDecember 13, 2023arXiv 预印本
AI 摘要

PromptBench is a unified library designed to evaluate large language models with key components for prompt engineering, adversarial attacks, and flexible evaluation protocols.

prompt constructionprompt engineeringadversarial prompt attackdynamic evaluation protocolsanalysis toolsPromptBench

Abstract

The evaluation of large language models (LLMs) is crucial to assess their performance and mitigate potential security risks. In this paper, we introduce PromptBench, a unified library to evaluate LLMs. It consists of several key components that are easily used and extended by researchers: prompt construction, prompt engineering, dataset and model loading, adversarial prompt attack, dynamic evaluation protocols, and analysis tools. PromptBench is designed to be an open, general, and flexible codebase for research purposes that can facilitate original study in creating new benchmarks, deploying downstream applications, and designing new evaluation protocols. The code is available at: https://github.com/microsoft/promptbench and will be continuously supported.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
PromptBench: A Unified Library for Evaluation of Large Language Models | TensorX