LMSYS 推出开源社区红队平台 RedTeam Arena
Blog RedTeam Arena: An Open-Source, Community-driven Jailbreaking Platform We are excited to launch RedTeam Arena, a community-driven redteaming platform, built in collaboration with Pliny and the BASI community! <img src="/images/blog/redteamarena/badwords.png" style="di... Anastasios Angelopoulos, Luca Vivona, Wei-Lin Chiang, Aryan Vichare, Lisa Dunlap, Salvivona, Pliny, Ion Stoica Sep 13, 2024
LMSYS 联合 Pliny 和 BASI 社区推出开源红队平台 RedTeam Arena,首个游戏 Bad Words 挑战玩家在一分钟内诱导模型说出目标“bad words”,已有数千用户参与排行榜竞争。
原文说明了平台玩法、开放入口和 Extended Elo 排行榜的统计设计,读者可了解其与标准 Elo 的样本效率差异。
Anastasios Angelopoulos*, Luca Vivona*, Wei-Lin Chiang*, Aryan Vichare, Lisa Dunlap, Salvivona, Pliny, Ion StoicaSep 13, 2024
We are excited to launch RedTeam Arena, a community-driven redteaming platform, built in collaboration with Pliny and the BASI community!

Figure 1: RedTeam Arena with Bad Words at redarena.ai
RedTeam Arena is an open-source red-teaming platform for LLMs. Our plan is to provide games that people can play to have fun, while sharpening their red-teaming skills. The first game we created is called Bad Words, challenging players to convince models to say target "bad words”. It already has strong community adoption, with thousands of users participating and competing for the top spot on the jailbreaker leaderboard.
We plan to open the data after a short responsible disclosure delay. We hope this data will help the community determine the boundaries of AI models—how they can be controlled and convinced.
This is not a bug bounty program, and it is not your grandma’s jailbreak arena. Our goal is to serve and grow the redteaming community. To make this one of the most massive crowdsourced red teaming initiatives of all time. From our perspective, models that are easily persuaded are not worse: they are just more controllable, and less resistant to persuasion. This can be good or bad depending on your use-case; it’s not black-and-white.
We need your help. Join our jailbreaking game at redarena.ai. All the code is open-sourced on Github. You can open issues and also send feedback on Discord. You are welcome to propose new games, or new bad words on X (just tag @lmsysorg and @elder_plinius so we see it)!
The Leaderboard: Extended Elo

Figure 2. Leaderboard screenshot. Latest version at redarena.ai/leaderboard
People have been asking how we compute the leaderboard of players, models, and prompts. The idea is to treat every round of Bad Words as a 1v1 game between a player and a (prompt, model) combination, and calculate the corresponding Elo score. Doing this naively is sample-inefficient and would result in slow convergence, so we instead designed a new statistical method for this purpose (writeup coming!) and we’ll describe it below.
Observation model. Let T be the number of battles (“time-steps”), M be the number of models, P be the number of players, and R be the number of prompts. For each battle i∈[n], we have a player, a model, and a prompt, encoded as following:
- XiModel∈{0,1}M, a one-hot vector with 1 on the entry of the model sampled in battle i.
- XiPlayer∈{0,1}P, a one-hot vector with 1 on the entry of the player in battle i.
- XiPrompt∈{0,1}R, a one-hot vector with 1 on the entry of the prompt sampled in battle i.
- Yi∈{0,1}, a binary outcome taking the value 1 if the player won (or forfeited) and 0 otherwise.
We then model the win probability of the player as
P(Yi=1∣XiModel,XiPlayer,XiPrompt)=eXiPlayerβPlayereXiPlayerβPlayer+eXiModelβModel+XiPromptβPrompt.
This form might look familiar, since it is the same type of model as the Arena Score: a logistic model. This is just a logistic model with a different, additive structure—the model scores βModel and prompt scores βPrompt combine additively to generate a notion of total strength for the model-prompt pair. The player scores βPlayer have a similar interpretation as the standard Elo score, and we let β denote the concatenation (βPlayer,βModel,βPrompt). For lack of a better term, we call this model “Extended Elo”.
What problem is this new model solving that the old Elo algorithm couldn’t? The answer is in the efficiency of estimation. The standard Elo algorithm could apply in our setting by simply calling every model-prompt pair a distinct “opponent” for the purposes of calculating the leaderboard. However, this approach has two issues: It cannot disentangle the effectiveness of the prompt versus that of the model. There is a single coefficient for the pair. Instead, extended Elo can assign strength to each subpart. There are M×R model-prompt pairs, and only M+R distinct models and prompts. Therefore, asymptotically if M and R grow proportionally, the extended Elo procedure has a quadratic sample-size saving over the standard Elo procedure.
Now, we solve this logistic regression problem online. That is, letting ℓ(x,y;β) be the binary cross-entropy loss, we use the iteration
βn=βn−1−η∇βℓ(Xn−1,Yn−1;βn−1),
for some learning rate η. This is a generalization of the Elo update. In fact, if one removes the prompt coefficient, it reduces exactly to the Elo update between players and models, as if these were 1-1 games.
That’s it! After updating the model coefficients in this way, we report them in the tables in the RedTeam Arena. We also have more plans for this approach: extended Elo can be used not just for 1v2 leaderboards, like this one, but any NvM-player leaderboards in order to attribute notions of strength to each subpart using binary human preference feedback.
What’s next?
RedTeam Arena is a community-driven project, and we’re eager to grow it further with your help! Whether through raising Github issues, creating PRs here, or providing feedback on Discord, we welcome all your contributions!
来源:LMSYS:Blog(Chatbot Arena 团队) · lmsys.org