arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2307.08767cs.CLcs.AIcs.LG
收藏

一种提升语言模型数学问题求解性能的混合策略

A mixed policy to improve performance of language models on math problems

Vividity tech(Vividity科技公司)

Gang Chen

AI总结:

针对语言模型数学推理易出错的问题,提出结合强化学习的两层token混合探索策略,在GSM8K数据集上用GPT-2实现超2%的性能提升。

摘要:

在求解数学问题时,大多数语言模型采用采样策略,根据条件概率预测下一个词,这可能在数学推理步骤中生成错误答案。考虑到数学问题具有确定性,我们提出一种混合策略探索方法,结合强化学习求解数学问题。具体而言,我们提出一种两层token探索策略:抽象层基于概率探索下一个token,第二层为确定性层。其中,抽象层策略通过概率采样判断token是运算符还是操作数,第二层则以贪心方式确定性地选择得分最高的下一个token。我们在GSM8K数据集上使用GPT-2模型测试了该方法,证明性能提升超过2%。我们的实现可在https://github.com/vividitytech/math_lm_rl获取。

英文摘要:

When to solve math problems, most language models take a sampling strategy to predict next word according conditional probabilities. In the math reasoning step, it may generate wrong answer. Considering math problems are deterministic, we propose a mixed policy exploration approach to solve math problems with reinforcement learning. In peculiar, we propose a two level token exploration policy: the abstract level explores next token with probability and the second level is deterministic. Specifically, the abstract level policy will decide whether the token is operator or operand with probability sampling, while the second level is deterministic to select next token with the highest score in a greedy way. We test our method on GSM8K dataset with GPT-2 model, and demonstrate more than $2\%$ performance gain. Our implementation is available at https://github.com/vividitytech/math_lm_rl.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑