← Latest papers
🤖 AI

Behavior and Representation in Open-Weight Large Language Models for Combinatorial Optimization: From Feature Extraction to Algorithm Selection

This paper investigates whether frozen open-weight large language models can serve as effective surrogate descriptors for combinatorial optimization by demonstrating that while their hidden states implicitly encode problem features and support algorithm selection comparable to traditional methods, they struggle with explicit feature recovery and exhibit a persistent gap between implicit representation and explicit retrieval.

Original authors: Francesca Da Ros, Luca Di Gaspero, Kevin Roitero

Published 2026-08-13
📖 6 min read🧠 Deep dive

Original authors: Francesca Da Ros, Luca Di Gaspero, Kevin Roitero

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 solve a giant, messy puzzle where the pieces are numbers, rules, and constraints. In the world of computer science, this is called Combinatorial Optimization. It's the math behind everything from packing a truck efficiently to scheduling your school day or finding the fastest route home. For decades, humans have built special, rigid tools to measure the shape of these puzzles so computers can solve them faster. These tools are like a carpenter's tape measure: they are precise, fast, and built for one specific job.

But recently, a new kind of "super-brain" has arrived: Large Language Models (LLMs). You might know them as the AI chatbots that can write stories, code, and answer questions. They are amazing at understanding language and spotting patterns. But here is the big question: Do these super-brains actually understand the math behind the puzzle, or are they just guessing based on how the puzzle looks? If an AI can "see" the puzzle's hidden structure, maybe we don't need to build those rigid tape measures anymore. We could just ask the AI to describe the puzzle, or even use its "brain" to pick the best solver. This paper dives deep into that mystery, testing if these AI brains are truly smart about math or just really good at sounding like they are.


The Great AI Math Test: Reading Minds vs. Asking Questions

The researchers behind this study, Francesca Da Ros, Luca Di Gaspero, and Kevin Roitero, decided to put five different open-source AI models through a rigorous math exam. They didn't just ask the AI to solve problems; they wanted to see how the AI thought about them. They treated the AI like a student taking a test in two very different ways:

  1. The "Direct Question" Test (Direct Querying): They asked the AI, "Look at this puzzle. How many pieces are there? What is the average weight?" They wanted to see if the AI could spit out the exact number, just like a calculator.
  2. The "Mind-Reading" Test (Probing): They didn't ask the AI to speak. Instead, they looked inside the AI's "brain" (its hidden layers) while it was looking at the puzzle. They asked, "Is the answer to 'how many pieces' hidden somewhere in the AI's internal electrical signals?" They used a simple decoder to try and pull that answer out of the AI's mind, even if the AI itself refused to say it.

They tested these models on four classic math puzzles: packing boxes (Bin Packing), coloring maps so no neighbors match (Graph Coloring), scheduling jobs on machines (Jobshop Scheduling), and filling a knapsack with the most valuable items (Knapsack). They used five different AI models, ranging from a tiny 3-billion-parameter brain to a massive 120-billion-parameter giant.

The Big Surprise: The Brain Knows More Than It Says

The results were a bit like discovering a student who fails the oral exam but aces the written one.

When asked directly, the AI was often clumsy.
If the answer was right there in the text (like "count the number of lines"), the AI got it right most of the time. But as soon as the answer required a little bit of math—like calculating an average or finding a maximum—the AI started to stumble. It would either give the wrong number or, in the case of the "reasoning" models, simply say, "I don't know" (a behavior called abstention). The bigger the AI, the better it got at saying "I don't know" instead of guessing wrong, but it still couldn't reliably do the math itself. Even when they made the AI "think out loud" (a technique called Chain-of-Thought), it only helped the biggest models, and it made the process much slower and more expensive.

But when they looked inside the AI's brain, the story changed.
This is where the magic happened. Even when the AI couldn't or wouldn't say the number out loud, the researchers found that the information was actually sitting right there in the AI's hidden layers. When they used a simple decoder to "probe" the AI's brain, they could recover the correct numbers with much higher accuracy than when they just asked the AI to speak.

It's as if the AI is a librarian who has forgotten how to speak clearly but still has every book perfectly organized on the shelves. If you ask the librarian, "What's the title of the book on page 50?" they might stutter or say "I don't know." But if you have a special scanner (the probe) that reads the book's spine directly from the shelf, the scanner finds the title instantly. The knowledge is there; the AI just can't always retrieve it through conversation.

The Verdict: A New Tool, Not a Replacement

So, what does this mean for the future of solving math puzzles?

The paper concludes that LLMs are not ready to replace the old, precise math tools (the "tape measures") for doing exact calculations. If you need a perfect number right now, a simple computer program is still faster, cheaper, and more accurate than asking an AI.

However, the study suggests something very exciting: The AI's internal "brain signals" can act as a great shortcut. Even though the AI can't do the math perfectly, its hidden understanding of the puzzle is so good that it can be used to predict which solver will work best for a specific problem. In fact, the researchers found that using the AI's internal signals to pick a solver worked just as well as using the old, hand-crafted math tools.

The Takeaway:
Think of these AI models not as calculators, but as intuitive guides. They might not be able to do the long division for you, but they have a "feel" for the problem that is surprisingly accurate. If you are facing a brand-new type of puzzle where no one has built a measuring tool yet, you can use the AI's internal brain-scan to get a head start. But if you need a precise answer, you still need to do the math yourself. The AI is a helpful partner who knows the landscape, but it's not the one driving the car.

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 →