RULER - Relative Universal LLM-Elicited Rewards

From AlphaGo Zero to RULER: the evolution of reinforcement learning

How reinforcement learning has changed the AI landscape since 2017 and which revolutionary approaches such as RULER will shape the future. An overview of the most important developments and challenges.

Since 2017, reinforcement learning has evolved from a niche topic to a central component of modern AI development. The story begins with AlphaGo Zero, which turned the world of AI on its head. But the journey continues with RULER, an innovation that has the potential to change everything.

Reinforcement Learning 2017: The breakthrough with AlphaGo Zero

The year 2017 marked a turning point for reinforcement learning. DeepMind's AlphaGo Zero made history by mastering the complex board game Go without any human game data and solely through self-play.

The result was impressive: within just three days, AlphaGo Zero outperformed all previous versions, defeating them with a perfect score of 100:0. This breakthrough demonstrated the potential of AI systems to develop superhuman capabilities through autonomous learning.

At the same time, OpenAI developed the Proximal Policy Optimization (PPO)a method that enabled more stable and efficient training processes. These advances laid the foundation for today's applications of reinforcement learning in complex systems.

The problem of reward hacking 

To understand the problem, it is important to know the basic principle of reinforcement learning: An AI learns using RL through rewards and punishments. Similar to dog training, the agent receives points (rewards) when it does something right and loses points when it makes mistakes. This allocation of points is called the reward function.

The agent tries out different actions and memorizes which ones earn him the most points. Over time, he gets better and better at achieving high rewards. This is the basic principle of learning. 

However, the success of RL systems has highlighted a fundamental problem: reward hacking. This is when an AI finds creative but undesirable ways to maximize the reward function. 

Imagine you want to teach a robot to clean your living room. You program a simple reward function: "Get 10 points for every speck of dust that disappears." The smart robot could now learn to simply push the dust under the sofa instead of vacuuming it up. Technically speaking, the specks of dust have "disappeared" and it gets its points. 

Other classic examples: 

  • An agent in a video game who exploits programming errors to collect infinite points
  • An AI system for traffic optimization that switches all traffic lights to red to "avoid traffic jams" (there is no more traffic)
  • A chatbot that gives extremely short but poor-quality answers because it is rewarded for "quick answers"

These behaviors highlight a key challenge: How can we design reward functions that actually encourage the desired behavior without creating undesirable loopholes? 

RLHF: The game changer for ChatGPT 

The answer to the reward hacking problem came in the form of Reinforcement Learning from Human Feedback (RLHF). Instead of relying solely on pre-programmed reward functions, RLHF integrates human feedback directly into the learning process. 

In RLHF, humans evaluate various outputs of the AI system and provide feedback on which answers are preferred. The system then learns to internalize these human preferences and act accordingly. 

OpenAI successfully used RLHF in the development of ChatGPT. By integrating human ratings, the model was able to learn, among other things: 

  • Generate helpful and relevant answers 
  • Avoid harmful or inappropriate content 
  • Better understand the context and nuances of human communication   

This approach led to the impressive quality that characterizes ChatGPT today. 

RULER: The next generation of intelligent rewards 

The latest progress in this area is RULER (Relative Universal LLM-Elicited Rewards) an innovative approach that addresses the weaknesses of traditional reward systems.

How RULER works

Instead of evaluating each AI output individually ("This is good" or "This is bad"), RULER compares different answers in a group directly with each other. 

The principle is simple: 

  • RULER takes several AI outputs (e.g. different answers to the same question) 
  • Each output is given a value between 0 and 1 (e.g. 0.05 or 0.83) 
  • A large language model (LLM) acts as a "judge" and compares them with each other 
  • At the end, all outputs are ranked relative to each other 

The highlightThere is no fixed definition of "good" or "bad". RULER asks: "Which answer is better than the other?" This makes the system flexible and harder to manipulate. 

Advantages over reward hacking 

RULER offers several decisive advantages: 

  • No fixed reward functions: Since RULER is based on relative comparisons, there are no rigid rules that can be exploited.
  • No labeled data required: RULER requires neither expert feedback nor manually created reward functions.

Automatic output generation for RULER 

A particularly clever approach combines RULER with automatic output generation: you can use an LLM to systematically generate different responses to the same query, which are then evaluated by RULER. 

This is how it works in practice: 

  1. GenerationSystem prompt: "You are a comedian with many years of experience on stage and in dad jokes" + User prompt: "Generate 4 dad jokes for me"
  2. Rating: RULER compares the 4 jokes relative to each other and ranks them 
  3. Fine tuning: Only the best jokes are used to improve the LLM
  4. IterationThe process repeats itself and the LLM continuously improves

The big advantageNo human labelers required, no manually created training samples. The system improves itself! 

Concrete example - first iteration: 

The LLM generates 4 Dad Jokes: 

  • Joke A: "I'm reading a book about anti-gravity. It's impossible to put it down!"
  • Joke B"Why can't ghosts tell lies? Because you can see through them!"
  • Joke C"What's green and knocking on the door? A knocking salad!" 
  • Joke D"What is red? A red car. What is blue? A blue car."

RULER evaluates and ranks: 

  1. Joke A (0.91) - Brilliant double meaning ("to put away"), perfect dad-yoke structure
  2. Joke C (0.73) - Classic wordplay, works reliably, timeless
  3. Joke B (0.32) - Predictable corny joke, but basically works
  4. Joke D (0.05) - No pun, no punchline, completely useless 

ResultOnly joke A and C are used for fine-tuning. In the next iteration, the LLM generates similar but improved variants. 

Conclusion: The future of reinforcement learning 

From AlphaGo Zero's revolutionary self-learning to RULER's intelligent evaluation systems. The journey of reinforcement learning shows a clear trend: away from rigid rules and towards flexible, self-improving systems. 

The three major breakthroughs at a glance: 

  • 2017: AlphaGo Zero proves that AI can achieve superhuman results without human data
  • RLHF: Human feedback solves the reward hacking problem and enables ChatGPT 
  • RULERAutomatic evaluation + fine-tuning = self-learning systems without human intervention

The highlight of RULER is that it combines the best of both worlds. The efficiency of AlphaGo Zero's autonomous learning with the quality control of RLHF, but without the effort of human evaluation. 

But where does this journey lead?

While self-learning AI systems open up fascinating possibilities, they also present us with fundamental questions: if AI systems develop their own standards of evaluation and evolve without human control, how do we ensure that they conform to our values? The efficiency of RULER is impressive, but it could also mean that we increasingly lose control over the direction of development of our most intelligent systems. The future of reinforcement learning is promising, but it requires us to navigate this balance between autonomy and control very carefully.

Nico Zentner

About ME

Nico Zentner is an IT consultant and AI expert at doubleSlash. With his experience in generative AI and digital transformation It supports companies in developing innovative solutions and designing responsible technologies.

In addition to his professional passion, Nico is committed to the Ethical debate with AI and wants to change the world positively - through technology or small, inspiring impulses. This passion was already evident during his studies "Business Informatics PLUS Teaching" at RWU (Ravensburg Weingarten University of Applied Sciences). Where he completed his bachelor's thesis entitled "Risks through the use of AI - Development of a framework for the responsible use of AI in companies".

As a musician and producer, he is able to combine creativity and technology in his spare time. His aim is to make complex topics understandable and to inspire people through technology and creative ideas.

All contributions from Nico Zentner

Learn more

Further information on our website and in our newsletter

Arrow up