TROPT:统一并推进离散文本优化的开源框架
TROPT: An Open Framework for Unifying and Advancing Discrete Text Optimization
TROPT 是首个统一离散优化器执行、并以单一接口标准化其开发的开源框架,支持自由替换模型、目标和优化器来定制端到端优化配方。框架内置 40+ 优化配方,由 15+ 优化器(覆盖白盒到黑盒访问)和 15+ 损失函数构建,覆盖越狱、模型内部探测等应用。研究还借助 TROPT 开展大规模 LLM 越狱优化策略对比,并将优化器从 LLM 越狱迁移到语料投毒等跨领域应用。
arXiv:2606.23496v3 Announce Type: replace Abstract: Discrete text-trigger optimization -- searching for text sequences that, when ingested by a model, steer it toward a specified objective -- underpins model red-teaming (e.g., LLM jailbreaks), as well as auditing and interpretability. However, the current state of discrete optimizers hinders their adoption and progress. First, existing optimizers, when open-sourced at all, are scattered across research codebases tied to specific models, objectives, and problem domains. Second, optimizers proliferate, each requiring engineering overhead to use or extend, and remaining hard to compare head-to-head. Together, these raise the bar for adopting optimizers in existing or new domains, and for advancing them via new strategies. We address these gaps with TROPT, the first open-source framework that unifies discrete optimizers' execution and standardizes their development under a single interface. TROPT makes it easy to customize end-to-end optimization recipes by swapping any component -- models, objectives, and optimizers -- extending its reach across domains and new applications. TROPT currently ships with 40+ optimization recipes -- covering applications such as jailbreaking and probing model internals -- built from 15+ optimizers (spanning white-box to black-box access) and 15+ losses, from foundational to state-of-the-art methods. Demonstrating its utility, we leverage TROPT in several studies: (i) controlled, large-scale experiments comparing and enhancing optimization strategies for LLM jailbreaks, revealing potent-yet-underadopted techniques; and (ii) porting optimizers across applications and domains (e.g., from LLM jailbreaks to corpus poisoning). In all, TROPT significantly lowers the barrier to adopting and advancing discrete text optimization.
来源:arXiv (AI + Vision + Imaging) · arxiv.org