SE-Bench: Benchmarking Self-Evolution with Knowledge Internalization
Jiarui Yuan, Tailin Jin, Weize Chen, Zeyuan Liu, Zhiyuan Liu, Maosong Sun
TL;DR
SE-Bench introduces a principled, obfuscated-API benchmark to isolate knowledge internalization as the core of self-evolution. By mapping NumPy to a random ZWC package and enforcing strict information availability rules, it creates a needle-in-a-haystack setting where success depends on true internalization rather than prompt conditioning or external documentation. The study reveals three central findings: (1) internalization requires Closed-Book training to compress knowledge into weights, (2) standard RL struggles to internalize new facts due to PPO clipping and negative gradients, and (3) self-play can enable knowledge internalization when combined with SFT, though RL remains ineffective in this context. Collectively, SE-Bench provides a rigorous diagnostic platform for understanding and advancing self-evolving agents and motivates targeted hybrid strategies to achieve robust internalization.
Abstract
True self-evolution requires agents to act as lifelong learners that internalize novel experiences to solve future problems. However, rigorously measuring this foundational capability is hindered by two obstacles: the entanglement of prior knowledge, where ``new'' knowledge may appear in pre-training data, and the entanglement of reasoning complexity, where failures may stem from problem difficulty rather than an inability to recall learned knowledge. We introduce SE-Bench, a diagnostic environment that obfuscates the NumPy library and its API doc into a pseudo-novel package with randomized identifiers. Agents are trained to internalize this package and evaluated on simple coding tasks without access to documentation, yielding a clean setting where tasks are trivial with the new API doc but impossible for base models without it. Our investigation reveals three insights: (1) the Open-Book Paradox, where training with reference documentation inhibits retention, requiring "Closed-Book Training" to force knowledge compression into weights; (2) the RL Gap, where standard RL fails to internalize new knowledge completely due to PPO clipping and negative gradients; and (3) the viability of Self-Play for internalization, proving models can learn from self-generated, noisy tasks when coupled with SFT, but not RL. Overall, SE-Bench establishes a rigorous diagnostic platform for self-evolution with knowledge internalization. Our code and dataset can be found at https://github.com/thunlp/SE-Bench.
