AI Models Learn to Reason by Setting Their Own Coding Tests
Terminator Machine Learning By What The Future Newsroom · January 7, 2026 · 4 min read

AI Models Learn to Reason by Setting Their Own Coding Tests

Absolute Zero Reasoner is a research system that lets an AI model generate Python problems, solve them, and use the results to improve. The work points to a broader push toward self-play as conventional training data becomes scarcer and more expensive.

AI models are usually trained by looking outward: at human-written examples, human-curated data, or tasks designed by people. A research project called Absolute Zero Reasoner explores a different route: letting a model create problems for itself, attempt the answers, and learn from what happens next.

“A self-training reasoning loop points mildly toward more autonomous and capable AI systems, though the story is research-focused rather than immediately dangerous.”Why it scores Terminator

What Absolute Zero Reasoner Does

Absolute Zero Reasoner, or AZR, was developed by researchers from Tsinghua University, the Beijing Institute for General Artificial Intelligence (BIGAI), and Pennsylvania State University. Its core idea is direct: use a large language model to make challenging but solvable Python coding problems, then ask that same model to solve them.

The system checks the model’s answer by trying to run the code. That gives AZR a practical signal: the attempt either works or it does not. The system then uses those successes and failures to refine the original model.

This creates a loop with two connected goals. The model is trained to become better at posing useful problems, and it is also trained to become better at solving them. In that sense, the learning process is not only about answering questions; it is also about discovering which questions are worth asking.

Why Self-Generated Problems Matter

The source article frames modern artificial intelligence models as powerful imitators. They learn from examples of human work, or from exercises set by human instructors. AZR tests whether an AI model can move beyond that pattern by using its own problem-making as part of training.

Andrew Zhao, a PhD student at Tsinghua University who came up with the original idea for Absolute Zero, compared the process to human learning. “In the beginning you imitate your parents and do like your teachers, but then you basically have to ask your own questions,” he said. “And eventually you can surpass those who taught you back in school.”

That comparison is important because it highlights the difference between memorizing examples and building reasoning habits. AZR does not remove the model from feedback. Instead, it changes where part of the training pressure comes from: the model’s own generated challenges become part of the learning environment.

Zhao and Zilong Zheng, a researcher at BIGAI who worked on the project, also noted that this kind of learning is connected to “self-play,” an idea that has been discussed for years. The source names Jürgen Schmidhuber and Pierre-Yves Oudeyer as earlier researchers associated with this line of thinking.

What the Researchers Found

The team tested the approach on 7 billion and 14 billion parameter versions of the open source language model Qwen. According to the source, the method significantly improved the model’s coding and reasoning skills.

The result is notable because the model also outperformed some models that had received human-curated data. That does not mean human data is irrelevant. It does show why researchers are paying attention to training methods where a model can generate part of its own curriculum.

Zheng pointed to one feature as especially interesting: the challenge level can rise with the model. “The difficulty level grows as the model becomes more powerful,” he says.

That scaling behavior is central to the promise of AZR. If a model can keep producing harder problems as it improves, the training loop may remain useful for longer. A weak model would not need the same tasks as a stronger one, and AZR is designed around that moving target.

The Limits Are Still Clear

AZR currently fits best where answers can be checked cleanly. Coding and math are useful for this because a system can test whether code runs or whether a result is valid. That makes the feedback loop easier to trust.

The limitation is that many AI tasks are not so easy to verify. The source notes that the system only works for now on problems that can easily be checked. That boundary matters because reasoning in the real world often involves ambiguous goals, incomplete information, or actions that cannot be judged by a simple test.

Future versions might extend the idea to agentic AI tasks, such as browsing the web or doing office chores. In that scenario, the model might need to judge whether an agent’s actions are correct. That would move the method beyond code execution and into a harder form of evaluation.

Zheng also connected the approach to a larger possibility. “Once we have that it’s kind of a way to reach superintelligence,” Zheng told the source article.

A Broader Shift in AI Training

AZR is not the only project exploring this direction. The source points to early signs that similar ideas are drawing attention at large AI labs.

One example is Agent0, a project from Salesforce, Stanford, and the University of North Carolina at Chapel Hill. It involves a software-tool-using agent that improves itself through self-play. Like Absolute Zero, it links experimental problem-solving with gains in general reasoning.

Another recent paper, written by researchers from Meta, the University of Illinois, and Carnegie Mellon University, presents a system that uses a similar kind of self-play for software engineering. The authors describe it as “a first step toward training paradigms for superintelligent software agents.”

The wider context is straightforward: conventional sources of training data are becoming scarcer and more expensive, while AI labs continue searching for ways to make models more capable. A system such as Absolute Zero Reasoner suggests one path forward. Instead of relying only on human examples, an AI model may be able to strengthen its reasoning by asking itself harder questions, testing its own answers, and learning from the results.

AIMachine LearningResearchSoftware Agents
← Back to the wire

Read next