Article

AutoMH - When Computer Programs Learn to Write Better Computer Programs

How computer programs learned to create better computer programs all by themselves, like digital evolution happening right before our eyes

AutoMH - When Computer Programs Learn to Write Better Computer Programs

Photo by Conny Schneider on Unsplash

L
Boris Leonardo
• 11 min read

Imagine you’re trying to organize your music collection. You have thousands of songs, and you want to arrange them so you can find exactly what you’re looking for quickly, while also discovering new favorites based on what you already love. It sounds simple, but with so many songs and so many different ways to organize them, it would take you forever to find the perfect system.

Now imagine your computer could learn to organize your music collection all by itself—not just once, but continuously improving its system every time you use it, getting better and better at predicting what you want to hear.

That’s exactly what happened in my research lab, but instead of organizing music, I created something much more remarkable: a computer program that learns to write better computer programs.

This is the story of AutoMH, my breakthrough that’s like having a digital apprentice that watches master craftsmen work, learns their techniques, and then creates new tools that are sometimes even better than what the masters could make.

The Invisible Problem Solvers All Around Us

Every time Netflix suggests a movie you actually want to watch, every time your GPS finds the fastest route through traffic, every time an airline manages to coordinate thousands of flights without chaos—there are invisible digital helpers working behind the scenes.

These helpers are like incredibly smart assistants who never sleep, constantly figuring out the best way to do things. When you’re looking for the shortest route to work, they’re considering millions of possible paths through the city streets. When you’re shopping online, they’re analyzing what millions of other people liked to suggest things you might enjoy.

But here’s the problem: creating these digital assistants is like teaching someone to be a master chef, a logistics expert, and a mind reader all at once. It usually takes teams of the smartest computer experts months or even years to create just one of these helpers, and even then, they might not be the best at their job.

The scientists behind AutoMH asked a fascinating question: what if we could teach computers to create these digital helpers by themselves?

Teaching Computers to Teach Themselves

Imagine a cooking competition where the chefs don’t just compete—they also learn from watching each other and evolve their recipes in real-time. The chef who makes the best pasta doesn’t just win; they share their techniques with others, who then combine those techniques with their own innovations to create even better dishes.

That’s essentially what AutoMH created, but instead of chefs, it used digital agents—think of them as tireless students who never get frustrated and never stop learning.

Here’s how it works: The system creates a virtual classroom filled with these digital students. Each student has their own approach to solving problems—like different recipes for tackling challenges. But here’s the amazing part: these aren’t fixed recipes. The students can actually rewrite their own approaches based on what works and what doesn’t.

When one student discovers a particularly clever way to solve a problem, the others take notice. They don’t just copy that approach—they blend it with their own ideas, creating hybrid strategies that might be even better than the original.

How the Digital Learning Happens

Think of AutoMH like a giant science fair where every participant is constantly improving their project based on what they see others doing.

Here’s what makes it special: Instead of having just one smart computer program trying to solve problems, AutoMH created an entire community of digital problem-solvers. Each one has its own unique approach—some might be like the systematic organizer who labels everything perfectly, while others might be like the creative type who finds unexpected connections between unrelated things.

Watching over this whole community is a kind of digital teacher—let’s call it the Learning Agent. This teacher never sleeps and is constantly observing everyone’s work. When it notices that one student’s approach is working particularly well, it doesn’t just tell everyone to copy that method. Instead, it helps the struggling students modify their own approaches, blending the successful techniques with their existing methods.

The really amazing part is how the learning happens. The teacher gives the students different challenges to solve—like organizing a messy warehouse, planning the most efficient delivery routes, or figuring out the best way to schedule dozens of employees. After each challenge, everyone gets to see how well they did compared to others.

But here’s what makes this different from any human learning: these digital students can actually rewrite the way they think. It’s like being able to upgrade your own brain when you discover a better way to solve problems. And because they’re not limited by human assumptions about “the right way” to do things, they sometimes discover completely new approaches that no human expert had ever thought of.

What Happened Was Extraordinary

The results from AutoMH were like watching evolution in fast-forward. The digital students didn’t just learn to copy existing solutions—they invented entirely new ways to solve problems that were sometimes better than anything humans had created.

Imagine watching a group of apprentices who start out fumbling with basic tasks, but within weeks they’re creating masterworks that surpass their teachers. That’s essentially what happened, but compressed into the time it takes to run a computer program.

Here’s what made it amazing: Most of the time, when humans create problem-solving programs, they design them for one specific type of challenge. It’s like having a hammer that’s perfect for nails but useless for screws. But AutoMH’s programs were different—they developed what you might call “universal problem-solving skills.”

A program that started out being really good at organizing delivery routes might suddenly develop the ability to also be excellent at scheduling employees or managing inventory. It’s like having a tool that starts as a hammer but gradually grows additional attachments, becoming a multi-tool that can handle whatever you throw at it.

The most exciting part was watching them improve in real-time. In the beginning, they’d struggle with basic challenges. But as they gained experience, they started developing strategies that even surprised me. These weren’t just minor improvements—some of the solutions were so clever that I had to study them carefully to understand how they worked.

The Ripple Effects of Automated Algorithm Design

The implications of AutoMH extend far beyond academic curiosity. This technology represents a potential democratization of advanced optimization capabilities. Traditionally, accessing state-of-the-art optimization required either hiring expensive consulting teams or developing deep in-house expertise. AutoMH suggests a future where sophisticated optimization algorithms can be generated on-demand for specific applications.

Consider the potential impact across different sectors. A small logistics company could generate custom algorithms optimized for their specific delivery constraints and customer patterns. A research laboratory could automatically develop optimization approaches tailored to their unique experimental parameters. A manufacturing facility could evolve algorithms that account for their specific equipment capabilities and production goals.

The approach also offers intriguing possibilities for continuous optimization improvement. Rather than deploying a static algorithm and hoping it performs well over time, AutoMH enables systems that continuously adapt to changing conditions. As problem characteristics shift or new optimization challenges emerge, the algorithms can evolve in real-time to maintain peak performance.

Beyond the Laboratory: Real-World Horizons

The research team positioned AutoMH within the broader landscape of High-Level Data-Driven Metaheuristics, specifically focusing on Metaheuristic Generation by Reinforcement Learning. This placement reflects the system’s potential to bridge the gap between academic optimization research and practical algorithmic deployment.

One particularly promising aspect of the approach is its potential for hardware-specific optimization. Just as different problems require different algorithmic approaches, different computing environments—from cloud servers to mobile devices to specialized processors—have unique performance characteristics. AutoMH’s evolutionary framework could potentially generate algorithms optimized not just for problem-solving effectiveness, but for specific hardware configurations.

The system’s ability to work with continuous domain optimization problems also opens doors to applications in fields like engineering design, financial modeling, and scientific simulation. These domains often involve complex, high-dimensional optimization landscapes where traditional approaches struggle to find global optima efficiently.

How the Digital Teachers Actually Learn

Behind all this digital apprenticeship lies a learning system that works like the most dedicated teacher you’ve ever imagined—one that never gets tired, never loses patience, and learns something new from every single lesson.

Think of it like a master chef who not only teaches cooking techniques but also learns from watching each student work. When one student discovers a brilliant new way to combine ingredients, the teacher doesn’t just memorize that technique—they figure out why it worked and how to adapt it for different situations.

That’s essentially what happens in AutoMH’s learning system. There are multiple levels of learning happening all at once, like a school where students learn from their experiences, teachers learn from watching students, and even the principal learns from observing how the whole educational process unfolds.

The individual digital students learn to use their problem-solving approaches more effectively through practice. Meanwhile, the supervising teacher (called the Learning Agent) gets better at recognizing when a student’s approach shows promise and knowing how to guide other students to try similar methods.

But here’s what makes this truly special: unlike human learning, these digital students can actually rewrite their own thought processes. Imagine if you could rewire your brain to think more clearly about math problems, or restructure your memory to recall information more efficiently. The system can add new thinking steps, change the order of its decision-making process, or completely reorganize how it approaches problems.

The Dawn of Self-Improving Digital Helpers

What AutoMH represents isn’t just another computer science breakthrough—it’s like the moment in human history when we learned to make tools that help us make even better tools.

For most of human history, every problem required custom solutions. If you needed to build a bridge, transport goods across a continent, or organize a city, you had to figure out the solution from scratch or adapt something that had worked before. But AutoMH suggests we’re entering an era where our digital helpers can design new digital helpers that are perfectly suited for whatever challenge comes next.

Think about what this means: Instead of having teams of the smartest computer experts spend months creating a program to solve one specific type of problem, we could have systems that automatically create exactly the right problem-solving approach for whatever challenge we face.

This research reveals something profound about the landscape of possible solutions. It’s as if we’ve been living in a small village, thinking we know all the ways to solve problems, only to discover there’s an entire unexplored continent of better approaches just waiting to be found. Human experts, despite their brilliance, have apparently only scratched the surface of what’s possible.

Looking ahead, AutoMH points toward a future where our problem-solving capabilities can grow as fast as our challenges become more complex. Whether we’re trying to understand climate change, design better cities, create personalized medical treatments, or tackle problems we haven’t even imagined yet, we could have digital helpers that evolve and adapt right alongside these challenges.

We’re witnessing the birth of a new age—one where our tools don’t just solve problems, but learn to create better versions of themselves. AutoMH has opened the door to this remarkable frontier, and we’re just beginning to see what might be possible.


The Science Behind This Story

Research by: Boris Leonardo

Published in: Entropy - 2022

Key Findings:

  • Computer programs can learn to create better computer programs all by themselves, like digital evolution in action
  • The AutoMH system consistently found better problem-solving approaches than traditional methods across multiple test scenarios
  • Digital agents working together in virtual classrooms can evolve entirely new ways to tackle challenges
  • These self-improving programs developed “universal problem-solving skills” that work across many different types of challenges

Why this matters: For the first time, I created a system where computer programs can automatically design and improve their own problem-solving abilities. This means instead of experts spending months creating specialized programs for each new challenge, we could have digital helpers that instantly create exactly the right approach for whatever problem we face. It’s like having a tool that builds better tools whenever you need them.

About this research: I specialize in teaching computer programs to learn from nature’s problem-solving strategies. This work explores whether artificial intelligence can move beyond just solving problems to actually creating new and better ways to solve problems. The complete technical details are available at https://doi.org/10.3390/e24070957.

Share this article: