← Latest papers
💬 NLP

Enhanced LLM Reasoning by Optimizing Reward Functions with Search-Driven Reinforcement Learning

This paper proposes a search-driven reinforcement learning framework that iteratively optimizes reward function specifications through automated generation, validation, and GRPO-based screening, demonstrating that a ranked-feedback loop significantly enhances mathematical reasoning performance on GSM8K compared to static or random reward ensembles.

Original authors: Arash Ahmadi (Mike), Sarah Sharif (Mike), Yaser (Mike), Banad

Published 2026-05-05
📖 5 min read🧠 Deep dive

Original authors: Arash Ahmadi (Mike), Sarah Sharif (Mike), Yaser (Mike), Banad

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a very smart student (a Large Language Model) who is great at talking but sometimes struggles with math. You want to teach them to solve math problems better. Usually, you'd hire a teacher to grade their homework. But in this paper, the authors ask a different question: "What if we don't know exactly how to grade the homework perfectly? What if we let an AI help us invent the best grading rules?"

Here is the story of how they did it, explained simply.

1. The Problem: The "Grading Rubric" Mystery

In the world of AI, to teach a model to think better, you use a system called Reinforcement Learning. Think of this like training a dog.

  • The Dog: The AI model.
  • The Treat: A "reward" (a positive score).
  • The Trick: Solving a math problem correctly.

The problem is that designing the "treat" (the reward function) is hard. If you tell the AI, "Good job if you get the right answer," it might cheat by guessing or copying patterns without actually thinking. If you try to reward the steps it takes, you have to write complex rules, and it's easy to make a mistake in those rules.

2. The Solution: The "Grading Rule Factory"

The authors built a system that treats the grading rules themselves as something to be optimized. They didn't write the rules by hand; they set up a factory where an AI (a "frontier" model named Kimi K2) acts as a Rule Inventor.

Here is how the factory works, step-by-step:

  • Round 1: The Rule Inventor AI is given 20 math problems and asked to write 10 new ways to grade them. It writes these rules as simple computer code (like a recipe).
  • The Safety Check: Before these rules are used, they go through a "security scanner" to make sure they aren't dangerous or broken.
  • The Test Drive: The researchers take a small math student (a 3-billion-parameter AI model) and let it practice solving problems using one of these new rules for a short time (500 steps).
  • The Scorecard: They see how well the student did on a test. If the new rule helped the student get better scores, the rule gets a high ranking. If the rule confused the student, it gets a low ranking.
  • The Feedback Loop: The top-performing rules are summarized and fed back to the Rule Inventor AI. The AI is told, "Hey, rules that counted the number of thinking steps worked well. Rules that just looked at the final answer didn't work as well. Try to invent new rules based on that."

They repeated this cycle 5 times, generating 50 different candidate rules.

3. The Results: Finding the "Golden Rules"

After 5 rounds, they found some winners.

  • The Best Single Rule: One rule, called thinking_steps_count, was a champion. It gave extra points if the AI wrote out its thinking process in at least three distinct lines. It didn't check if the answer was right (the base system did that); it just encouraged the AI to show its work.
  • The Power of Teamwork (Ensembles): They realized that one rule isn't enough. So, they took the best 5 rules and combined them into a "super-grading team."
    • The Result: This team of rules helped the AI jump from a 60% success rate (using only basic rules) to a 79.5% success rate.
    • The "Magic" Check: To prove it wasn't just luck or the sheer number of rules, they tried a "random team" of 5 rules picked from the pile. That random team crashed, with the AI failing almost everything. This proved that the feedback loop (learning which rules worked and feeding that back to the inventor) was the secret sauce, not just having more rules.

4. Did the AI Cheat? (The "Reward Hacking" Audit)

A common fear is that if you tell an AI "give me more lines of thinking," it will just fill the page with nonsense to get points.

  • The Audit: The authors checked the AI's answers. They found that when the AI got the answer right, it actually wrote more lines and used more math symbols than when it got it wrong.
  • The Conclusion: The AI wasn't cheating by padding empty space; it was genuinely thinking harder because the rules encouraged it to.

5. Why This Matters

  • It's Accessible: You don't need a supercomputer. They ran this whole experiment on a single, high-end consumer graphics card (like the kind gamers use) in about 40 hours.
  • It's Automated: Instead of a human expert spending weeks guessing what the perfect grading rubric looks like, this system automates the discovery of those rules.
  • It's Transparent: The rules aren't a black box; they are simple Python code that humans can read, understand, and tweak.

In a nutshell: The paper shows that if you let an AI help you design the grading system for another AI, and you keep refining those rules based on how well the student performs, you can teach the student to think much better than if you just gave it a static, human-written set of rules.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →