ReverseMath: 面向可扩展和可验证数学问题生成的答案反转方法
ReverseMath: Answer Inversion for Scalable and Verifiable Mathematical Problem Generation
AI总结:
提出ReverseMath方法,通过反转原始问题的输入输出关系自动生成新数学问题,用于评估和训练,揭示记忆行为并提升推理性能。
摘要:
数学推理基准对于评估大型语言模型(LLM)至关重要,但许多基准是静态的,并通过公开评估和训练管道反复暴露,使得难以区分真正的推理与记忆。同时,手动构建具有可靠答案的新数学问题仍然成本高昂。我们引入ReverseMath,一种通过答案反转生成新数学问题的可扩展方法。给定一个问题及其答案,ReverseMath掩码原始问题中的一个数值,将原始答案视为已知条件,并重写问题,使得掩码值成为新答案。生成的问题反转了原始输入输出关系,使其答案通过构造已知。我们研究了ReverseMath在评估和训练中的应用。对于评估,配对的原始/反转问题揭示了显著的行为变化:模型有时在反转问题上失败,甚至错误地输出原始答案,暗示了类似记忆的行为。对于训练,ReverseMath提供自动标注的反转问题作为强化学习(RL)的数据增强。实验表明,包含ReverseMath生成的数据提高了多个基准上的数学推理性能,证明了其作为分析工具和可验证训练数据的可扩展来源的价值。
英文摘要:
Mathematical reasoning benchmarks are vital for evaluating large language models (LLMs), but many are static and repeatedly exposed through public evaluation and training pipelines, making it difficult to separate genuine reasoning from memorization. Meanwhile, manually constructing new math problems with reliable answers remains costly. We introduce ReverseMath, a scalable method for generating new math problems through answer inversion. Given a problem and its answer, ReverseMath masks a numerical value in the original problem, treats the original answer as a known condition, and rewrites the problem so that the masked value becomes the new answer. The generated problem reverses the original input-output relation, making its answer known by construction. We study ReverseMath for both evaluation and training. For evaluation, paired original/reversed problems reveal substantial behavioral shifts: models sometimes fail on reversed problems and even incorrectly output the original answer, suggesting memorization-like behavior. For training, ReverseMath provides automatically labeled reversed problems as data augmentation for reinforcement learning (RL). Experiments show that including ReverseMath-generated data improves mathematical reasoning performance across multiple benchmarks, demonstrating its value as both an analysis tool and a scalable source of verifiable training data.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。