← Latest papers
🤖 AI

Bongards at the Boundary of Perception and Reasoning: Programs or Language?

This paper introduces a neurosymbolic approach that combines Large Language Models for generating parameterized programs with Bayesian optimization for parameter fitting to solve Bongard problems, thereby bridging the gap between visual perception and abstract reasoning.

Original authors: Cassidy Langenfeld, Claas Beger, Gloria Geng, Wasu Top Piriyakulkij, Keya Hu, Yewen Pu, Kevin Ellis

Published 2026-02-04
📖 6 min read🧠 Deep dive

Original authors: Cassidy Langenfeld, Claas Beger, Gloria Geng, Wasu Top Piriyakulkij, Keya Hu, Yewen Pu, Kevin Ellis

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

The Big Picture: The "Visual Riddle" Challenge

Imagine you are given a set of 12 drawings. Six of them are "good" (positive), and six are "bad" (negative). Your job is to figure out the secret rule that separates the good ones from the bad ones.

This is called a Bongard Problem. These aren't just simple "find the odd one out" puzzles. The rules can be incredibly tricky.

  • Example: Maybe the "good" pictures all have a shape with a "neck" that is horizontal, while the "bad" ones have a vertical neck. Or maybe the "good" ones have shapes that are "squiggly," while the "bad" ones are "smooth."

The paper asks a big question: Can Artificial Intelligence (AI) solve these riddles the way humans do? Humans are great at looking at a brand-new situation, inventing a new concept on the fly (like "horizontal neck"), and applying it. Current AI is great at recognizing things it has seen before (like "this is a cat"), but it often struggles when it has to invent a new concept from scratch.

The Problem: AI is Too Rigid or Too Vague

The researchers found that AI has two main ways of thinking, and both have flaws when solving these riddles:

  1. The "Chatbot" Approach (Natural Language):

    • How it works: The AI looks at the pictures and tries to describe the rule in words, like a detective writing a report.
    • The Flaw: It's good at big ideas but bad at precision. It might say, "The good shapes are kind of pointy," but it can't tell the difference between a "slightly pointy" shape and a "very pointy" shape. It's like a chef who knows the recipe says "add a pinch of salt" but doesn't know exactly how much that is.
  2. The "Programmer" Approach (Code):

    • How it works: The AI writes a computer program to check the images. It can measure exact distances, angles, and counts.
    • The Flaw: It's great at precision but bad at creativity. If the rule is "the shape looks like a sad face," a computer program struggles to define "sadness" mathematically. It's like a robot that can measure a room to the millimeter but can't understand the concept of "cozy."

The Solution: The "Translator" Team

The authors built a new system that acts like a team of two specialists working together. They call this a "neurosymbolic" approach (combining neural networks/AI with symbolic logic/programs).

Here is how their team works, step-by-step:

Step 1: The Idea Generator (The "Chatbot")

First, they ask a powerful AI (a Vision-Language Model) to look at the riddle and guess a few possible rules in plain English.

  • Analogy: Imagine a brainstorming session where a creative writer suggests, "Maybe the rule is about the shape's 'neck'!"

Step 2: The Translator (The "Programmer")

Next, the system takes those English guesses and tries to turn them into computer code.

  • The Twist: The AI doesn't just write the code; it leaves "blanks" for the tricky numbers. For example, if the rule is "shapes with a neck longer than X," the AI writes the code but leaves X as a mystery variable.
  • Analogy: The writer says, "The neck must be longer than [BLANK]." The programmer sets up the machine to measure the neck but waits for the exact number.

Step 3: The Tuner (Bayesian Optimization)

This is the secret sauce. The system runs a "trial and error" process to find the perfect number for those blanks. It tests different numbers (like 5 pixels, 10 pixels, 15 pixels) to see which one perfectly separates the "good" pictures from the "bad" ones.

  • Analogy: Imagine you are tuning a radio. You know the station is somewhere between 90 and 100, but you don't know the exact frequency. You slowly turn the dial until the static clears and the music is perfect. The system does this mathematically to find the exact "cutoff" point for the rule.

Step 4: The Judge (The Verifier)

Finally, the system checks: "Does this code actually work on all the training pictures?"

  • If the code works perfectly, the system accepts the rule.
  • If the code fails, the system goes back to the "Chatbot," says, "That idea didn't work, try again," and the cycle repeats.

What Did They Find?

The researchers tested this "Team Approach" against the best AI models available (like GPT-4o and Claude 3.7) and even against average human performance.

  1. The Team Wins: By combining the creativity of the Chatbot with the precision of the Programmer, their system solved 51 out of 100 Bongard problems.
  2. Beating Humans: The average human in previous studies solved about 47 problems. Their AI team solved 51, marking the first time an AI has surpassed average human performance on this specific test.
  3. Different Strengths:
    • When the problem was about geometry and math (like "are these lines parallel?"), the "Programmer" part of the team was the hero.
    • When the problem was about abstract concepts (like "is this shape 'open' or 'closed'?"), the "Chatbot" part was the hero.
    • When they used only the Chatbot or only the Programmer, they did worse. They needed both.

The "Memorization" Check

The researchers were worried that the AI might just be "cheating" by memorizing the answers from the internet (since these puzzles are old and popular). To test this, they flipped the rules: they told the AI that the "bad" pictures were actually the "good" ones. The AI still performed well, proving it wasn't just reciting memorized answers; it was actually figuring out the logic.

The Bottom Line

This paper shows that to solve hard visual puzzles, AI shouldn't just try to "think" like a human or "calculate" like a computer. It needs to do both. By letting a creative AI suggest ideas and a precise computer verify them with exact math, we can build systems that learn new visual concepts almost as well as, and sometimes better than, humans.

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 →