With human help, AI solves an old computing challenge
EPFL researchers developed A-greement, an AI-assisted consensus algorithm that reduces the time for distributed computers to agree from 90 to 62 milliseconds, about 30%. The AI generated and tested the code, while expert researchers checked the algorithm and its proofs using experimental tests, formal verification and human review. The team plans to apply this approach, combining AI with expert oversight, to other problems in distributed computing.
New research from EPFL shows how AI can help solve a longstanding challenge in distributed computing. It also underlines the role of expert students, whose ability to challenge and verify AI were essential.
In computer science, consensus is the ability for multiple machines to reach agreement quickly even when some of the machines fail. It is one of the oldest challenges in distributed computing, which is when independent computers work together over a network to solve a problem or run an application.
The consensus algorithm is the foundation of many parts of our modern technological system: for example databases, blockchain, and the cloud server are all built on consensus. It is important in domains such as banking, finance, air traffic control, and cloud computing systems, but so far, the time it takes for computers to agree is (relatively) quite slow, with the best existing protocol taking 90 milliseconds.
“Consensus is what makes a group of unreliable machines behave like one reliable system. Almost everything we depend on online relies on it,” says Anne-Marie Kermarrec, EPFL School of Computer and Communication Sciences (IC) professor and head of the Scalable Computer Systems Lab. She is part of the EPFL team that created a new algorithm, called A-greement, which helps solve this problem.
“This problem is known to be very difficult, and people have been working on it for decades. There are solutions, but the time it takes for the machines to agree is substantial,” says Rachid Guerraoui, an IC professor and head of the Distributed Computing Laboratory which also led the research.
A time reduction of around 30%
With the help of AI, Guerraoui, Kermarrec, and their teams, have managed to improve speeds on this consensus problem to 62 milliseconds, representing a time reduction of around 30%. The work didn’t only involve coming up with a new algorithm but also having an AI agent generate the actual code to test the algorithm.
“We were surprised to see that an AI agent could do the entire job, all the way from discovering a new algorithm to developing the code, and then also testing the code and verifying its correctness,” Guerraoui says.
When AI verifies its own work, there is a risk that it could still be incorrect. This is why it is so important to also have expert humans in the loop. One of these was Zicong Hong, a postdoctoral researcher in Guerraoui’s group.
Potential AI errors and human corrections
“In research there are three languages,” Hong explains. “First is the human language, the one we use to communicate with one another and to come up with ideas, for example. However, when we want to evaluate, or implement an idea, we need to translate it into a system language, such as C++ or Python. Finally, when we want to prove an idea’s correctness or safety, we need to express it in a formal language, such as Lean or Rocq. The challenge is that gaps can arise between these different languages and the AI systems, potentially leading to errors when translating or interpreting ideas. Therefore, humans need to help the AI to revise some problems to solve the gap between these languages.”
The humans did this by checking the correctness of the generated algorithm and the plausibility of the correctness proof by building independent verification mechanisms to check whether the AI's protocol was actually correct, a combination of experimental testing, formal verification and human expert review. This included using a tool called Lean 4 to independently check mathematical proofs generated by the AI. This evaluation process took place each time the AI proposed a new version of the algorithm, which happened almost every day.
“The fact that we in a university could do this just by having some basic subscriptions to AI platforms and using them in a smart way is a very good sign,” Guerraoui says.
“A fantastic tool to use carefully”
For Guerraoui, the vital role of expert humans in this research is one of the most exciting parts. “There’s a perception that with AI, our students will be out of a job. But to me, it’s like inventing the telescope or the microscope, which we can use to boost our research. It’s not an employee or a worker – it’s a tool. And it’s a fantastic tool that we need to use carefully and that can speed up the research process, but we are not out of a job.”
For their next steps, the group is trying to apply the same approach of using AI in collaboration with expert humans to other fundamental problems.
“We want to apply it to other areas of distributed computing where we know there is still a lot of progress to be made,” Kermarrec says.
https://news.epfl.ch/news/with-human-help-ai-solves-an-old-computing-challen