HAMMER: Hamiltonian Curiosity Augmented Large Language Model Reinforcement
Ming Yang, Xiaofan Li, Zhiyuan Ma, Dengliang Shi, Jintao Du, Yu Cheng, Weiguo Zheng
TL;DR
HAMMER addresses instability in reinforcement learning for large language models with verifiable rewards by introducing a diversity-driven curriculum that orders training data via a minimum-semantic Hamiltonian cycle. It combines semantic embeddings derived from the backbone LLM with an η-greedy heuristic to construct a Hamiltonian Curiosity Order, promoting early exploration and smoother optimization. The authors provide learning-theoretic guarantees showing that diverse, early subsets preserve the optimal policy while tightening generalization bounds, and they show that the minimum semantic cycle corresponds to maximizing dataset diversity. Empirically, HAMMER consistently yields 3-4% average accuracy gains across math benchmarks (AIME, AMC, Olympiad) and across model scales, demonstrating improved sample efficiency and training stability in RLVR settings.
Abstract
Recent curriculum reinforcement learning for large language models (LLMs) typically rely on difficulty-based annotations for data filtering and ordering. However, such methods suffer from local optimization, where continual training on simple samples in the early steps can cause the policy to lose its exploration. We propose a novel schema, namely Hamiltonian curiosity augmented large language model reinforcement (HAMMER), that transfers diversity metrics, commonly used in dataset evaluation, into the dynamic reinforcement learning procedure, where training samples are ordered via a minimum-semantic Hamiltonian path making the initial training retrain more exploration. From a theoretical perspective of generalization bounds, diversity-driven ordering facilitates stable convergence. Empirical evaluations indicate that HAMMER stimulates model "curiosity" and consistently achieves a 3% to 4% average accuracy gain across diverse inference benchmark.
