← Latest papers
💻 computer science

Can LLMs Perform Synthesis?

This paper evaluates the performance of symbolic tools against LLMs (Qwen and GPT-5) across four program synthesis domains, finding that symbolic solvers consistently solve more benchmarks and execute faster than both open-source and frontier LLMs, even when the latter are run on more powerful hardware.

Original authors: Derek Egolf, Yuhao Zhou, Stavros Tripakis

Published 2026-03-24
📖 5 min read🧠 Deep dive

Original authors: Derek Egolf, Yuhao Zhou, Stavros Tripakis

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 are trying to build a perfect robot that never makes mistakes. You have a very strict instruction manual (a "specification") that says exactly what the robot must do. Your goal is to get a machine to read that manual and automatically build the robot for you. This is called Program Synthesis.

For decades, we've used "Symbolic Tools"—think of them as super-precise, rigid math robots. They are like a master locksmith who tries every single key in a giant keyring, one by one, until they find the one that opens the door. They are slow, methodical, and guaranteed to find the right key if it exists.

Recently, a new contender has entered the ring: Large Language Models (LLMs). Think of these as creative, intuitive geniuses. They have read almost every book in the library. When you ask them to build a robot, they don't try every key; they just guess the right one based on their intuition and experience. They are fast and often brilliant, but sometimes they make up things that sound good but don't actually work.

This paper asks a simple question: Can these creative geniuses (LLMs) replace the methodical locksmiths (Symbolic Tools) at the job of building perfect robots?

The Experiment: A Race in Four Arenas

The researchers set up a race between the old-school math robots and the new AI geniuses across four different "arenas" (types of problems):

  1. The Traffic Light Arena (LTL Reactive Synthesis): Building a system that reacts to traffic lights and pedestrians perfectly.
  2. The Lego Arena (Syntax-Guided Synthesis): Building a function using only specific Lego bricks (a grammar) provided by the user.
  3. The Teamwork Arena (Distributed Protocol Synthesis): Writing instructions for a team of computers to work together without arguing.
  4. The Recursive Maze Arena (Recursive Program Synthesis): Writing code that calls itself to solve complex puzzles.

They pitted the Symbolic Tools (the locksmiths) against Qwen (a very smart, open-source AI) and GPT-5 (the most powerful, proprietary AI available).

The Rules of the Race

To make it fair, the researchers set some ground rules:

  • The "Check-Work" Rule: Since AI can hallucinate (make things up), they didn't just trust the AI's answer. They had a strict "Verifier" (a grader) check every answer. If the AI got it wrong, it had to try again.
  • The "No-Hints" Rule: The AI wasn't allowed to see why it failed. It couldn't say, "Oh, I missed a step," and fix it. It just had to keep guessing until it got it right or ran out of time. This tested if the AI could do the job on its own, not just as a helper to a human.
  • The Time Limit: Everyone had 10 minutes to solve each puzzle.

The Results: Who Won?

Here is the verdict, broken down by what happened in the race:

1. The Speed and Accuracy Champion: The Symbolic Tools
In almost every arena, the old-school Symbolic Tools won. They solved more puzzles than the AI.

  • Analogy: Imagine the AI is a sprinter who runs fast but trips over its own shoelaces often. The Symbolic Tool is a tortoise that walks slowly but never trips. In the end, the tortoise finished more races.
  • The Gap: In the "Traffic Light" arena, the Symbolic Tool solved 354 puzzles, while the best AI (GPT-5) only solved 229. The AI was significantly slower and less accurate.

2. The AI's Strength: Solving the "Unsolvable"
There was one surprising twist. In some cases, the Symbolic Tools got stuck. They are so rigid that if a puzzle requires a weird, creative leap, they give up.

  • The AI's Win: The AI managed to solve a few puzzles that the Symbolic Tools couldn't solve at all.
  • Analogy: If the door is locked with a strange, non-standard lock, the locksmith might give up because their keys don't fit. The AI, however, might look at the lock, realize it's a trick, and just pick it with a paperclip.

3. The "Repetition" Problem
The AI had a funny flaw. When it got stuck, it would often guess the same wrong answer over and over again.

  • Analogy: Imagine a student taking a test. They get a question wrong. Instead of studying, they just write the same wrong answer 50 times, hoping the teacher changes their mind. The Symbolic Tools, being logical, never repeat the same mistake; they try a completely new key every time.

4. The Cost of Time and Money

  • Time: The Symbolic Tools were much faster. Even though the AI was running on super-powerful computer chips (GPUs), the math robots on standard chips were still faster at solving these specific logic puzzles.
  • Money: Using the AI cost real money (about $40 for the Traffic Light race). The Symbolic Tools were free (once you have the software).

The Big Takeaway

Can LLMs perform synthesis?
Yes, but not yet as a replacement.

Think of it like this:

  • Symbolic Tools are like GPS navigation. They are boring, but they will get you to your destination 100% of the time, and they won't lead you off a cliff.
  • LLMs are like a local taxi driver. They might know a cool shortcut the GPS doesn't know, and they can get you there faster sometimes. But they might also get lost, take you in circles, or drive you into a lake.

The Verdict:
The best strategy isn't to choose one or the other. It's to use both.

  • Let the Symbolic Tool do the heavy lifting for the standard, boring, critical tasks.
  • Let the AI try to solve the weird, creative problems that stump the math robots.

The paper concludes that while AI is getting incredibly good, it still lacks the guarantee of perfection that we need for critical systems (like nuclear power plants or self-driving cars). For now, the "boring" math robots are still the kings of the castle.

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 →