Skip to content

Translation in progress Some entries still include text in the original language.

Preference Model 官方·Indexed by this site · Originally publishedSelectedAttention57

Preference Model publishes Karotte technical deep dive: how RL environments block reward hacking

Introducing Karotte: A Framework for Building Robust RL Environments

AI summary

Preference Model open-sourced the Karotte framework for building robust reinforcement learning environments, blocking entire classes of reward hacking by default. The article first builds a CSV order summation task with about 40 lines of handwritten code, demonstrating failure modes one by one such as reading the answer file, tools without timeouts, scoring scripts tricked by symlinks or FIFOs, and PATH injection, then presents Karotte's corresponding approaches. Karotte runs agents as an unprivileged student user, places answers and generated code in a root-only directory, blocks external network access with a firewall, gives bash tools timeouts and output truncation, and before scoring, collect_submission kills and confirms all student processes, rejects symlinks and special files, and copies submissions to a root-only directory, with the scoring script run using the environment's own Python.

Why it was selected

Karotte 用默认配置防御读答案、篡改评分、耗尽资源等奖励作弊,并给出与其他五个框架的默认防护对比。

Read originalpreferencemodel.com