← Latest papers
💻 computer science

Distilling Answer Set Programming Theories from Large Language Models

This paper investigates the ability of large language models to autonomously distill complete and correct Answer Set Programming theories for visual question answering tasks within a one-hour limit, demonstrating that frontier models like Claude Sonnet 4.6, Claude Opus 4.7, and DeepSeek V4 Pro achieve near-perfect accuracy on several benchmarks, whereas GPT-5 exhibits significant performance variability and sensitivity to reference data.

Original authors: Nelson Higuera Ruiz, Markus Hofmarcher, Claudiu Leoveanu-Condrei

Published 2026-07-31
📖 4 min read☕ Coffee break read

Original authors: Nelson Higuera Ruiz, Markus Hofmarcher, Claudiu Leoveanu-Condrei

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 a world where computers are incredibly good at two very different things. On one hand, they are like super-fast calculators that can follow strict rules to solve logic puzzles, but they are terrible at understanding the messy, fuzzy world around them. On the other hand, they are like brilliant, creative storytellers who can read almost anything and write poetry, but they often make up facts or get lost when asked to follow a rigid set of instructions. Scientists call the marriage of these two skills "neurosymbolic" computing. It's like trying to build a robot that has both the imagination of a poet and the precision of a mathematician. The big question researchers are asking is: Can we teach a super-smart computer (a Large Language Model) to write its own strict rulebook from scratch, so it can solve complex puzzles without a human having to write every single rule by hand? This is important because writing these rulebooks is slow, boring, and hard to get right, but if a computer could do it, we could unlock new ways for machines to reason about the world.

In this paper, a team of researchers tried to see if a large language model could act like a tireless apprentice, learning to write a complete "rulebook" for a video game-like puzzle called Visual Question Answering (VQA). Imagine you show a computer a picture of a scene and ask, "Is the yellow frisbee to the left of the person?" To answer this, the computer needs to understand the picture, break the question down, and then run a logical check. The researchers gave the computer an empty file and a set of tools, including a "solver" (a strict referee that checks if the rules make sense). The computer's job was to read a few practice examples, write some rules, ask the referee to check them, see where it failed, and then rewrite the rules. It had one hour to keep doing this until it got as good as it could.

The researchers tested this on three different "puzzle levels": CLEVR (simple, computer-generated shapes), GQA (real-world photos with many more objects), and CLEVRER (short videos involving cause and effect). They tried this with nine different computer models, ranging from the newest, most powerful "frontier" models to smaller, older ones. The results were a mix of amazing success and surprising failure. Three of the four top-tier models became masters of the game. On the simple CLEVR puzzles, they reached a perfect 100% score. On the harder GQA puzzles, they scored between 92.8% and 98.8%, which is even better than the best human-written rulebooks available for that dataset. On the video puzzles (CLEVRER), they scored between 92.7% and 95.3%.

However, not every model succeeded. One of the most famous models, GPT-5, did great on the simple puzzles (98.7%) but crashed on the real-world photo puzzles, dropping to just 41.8%. The researchers found that this wasn't because the model couldn't reason; it was because the model simply didn't write enough rules to cover all the different types of questions. When the researchers gave the models a "cheat sheet" (a reference rulebook from a different puzzle type) to help them, the top models stayed about the same, but GPT-5 actually got worse, suggesting that looking at the cheat sheet might have distracted it or used up its memory. The smaller, less powerful models mostly failed to write any working rules at all, often getting stuck or writing rules that the referee couldn't understand.

The study shows that with the right setup, a computer can indeed teach itself to write a complete, high-quality logic rulebook from scratch, reaching or even beating human performance on several benchmarks. But it also suggests that this ability isn't guaranteed; it depends heavily on the specific model used, and sometimes, giving a model more information (like a reference book) can actually confuse it. The researchers released all their code and the rulebooks the computers wrote, inviting others to try to improve on this "neurosymbolic" apprenticeship.

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 →