# Poster 30446

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/30446

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hello everyone, I'm Nicola Zubic and today I'll be presenting our work on limits of deep learning sequence modeling through the lens of complexity theory. This is joint work with Federico Solda and Aurelio Salzer from algorithms and optimization group and my supervisor professor Davide Scaramuza from the robotic perception group.
Deep learning, particularly transformers, large language models, and as it stands have achieved remarkable success in language vision and robotics. However, we see persistent failures when these models face more deceptive reasoning, compositional tasks, and function composition. These failures manifest as hallucinations or incorrect reasoning steps. Our contribution is a theoretical and empirical investigation into these limitations, aiming to pinpoint precisely why
I.e. these models fail on the compositional tasks and complex reasoning. Our first theoretical result establishes a lower bound for a function composition. In short, one layer SSM cannot solve composition tasks over large domains without any practically large hidden state. Formally, if the product of dimensions squared plus dimension time precision is less than n log n, where n is the domain size, the model errors with high probability. This leads to get high accuracy in something as simple as applying F.
In ghetto G of X, with large domains, you need enormous capacity, otherwise it fails. Empirically, we see how well-known models degrade quickly on multi-digit multiplication, dynamic programming tasks, or path solving as problem size grows. Chain of thought, or COT prompting, is a popular technique that prompts the model to generate intermediate reasoning steps in natural language. The idea is to make the reasoning process more explicit.
Hopefully reducing errors. For instance, here we show a scratch pad for multidigit multiplication guiding each step. This can help, but as we'll see, it doesn't fully overcome the deeper architectural limitations. Here's an example illustrating the classic multiplication algorithm in a scratch pad style. Despite these step-by-step prompts, models like GPT-4 or Jamba often still make mistakes, especially when the number of digits grows. They'll do a few steps correctly, but then carry the wrong remainder.
either or succeeds. This highlights the COD might delay an error, but it doesn't guarantee the model can systematically hold an outdated nested state for every intermediate step.
Our second theorem addresses iterated function composition, showing that even with C or T one-layer SSNs require a polynomially growing number of hidden sets. Specifically on the order of square root n log n divided by d d was solved reliably. Put simply, if you want to do f compose f compose f multiple times, you can't just apply a short chain of thought. You need increasingly many sets. And the examples at the bottom show spatial, temporal and
and relational queries that require chaining multiple factors. In each case common access and or transform models respond incorrectly, often concluding with insufficient data or mixing facts incorrectly. Even if we take the newer models than these ones like GPT-01 pro or O3 mini high, they would probably be able to work with more entities and relations with them and get the correct answer, but at some depth they will fail 100%.
And here you see performance hitmaps across multiplication, dynamic programming and puzzle tasks when we introduce COT or stretch paths. So while COT helps a bit the performance gain isn't enough to solve bigger problems. It's essentially a token trade-off. You spend more tokens enumerating steps, but that doesn't break the fundamental complexity barrier. As the tasks scale, the errors keep compounding. That's the point. And the final two theorem explains these models in a large space complexity.
Lexity class, specifically Theorem 3, tells us that problems like derivability or truth sets, but NL complete, can't be solved by log precision and sense unless L equals NL, and Theorem 4 says that any finite precision and sense can only recognize regular languages essentially functioning like a finite state machine. Our experiments on math QA tasks reflect these limitations in practice as complexity grows beyond regular or small-scope performance drops.
In conclusion, current deep learning architectures as a sentence transformers are inherently limited in multi -step reasoning. COT prompting can't fully solve it because the complexity constraints remain. This indicates a need for novel architectures, perhaps some symbolic integration or external engines.
Maybe we need some super set of deep learning framework that is more expressive or another question is is there an architecture inside deep learning that would do this because so far we proved this only for the existing architectures but we don't claim that there is no model that uses gradient descent that could do this. Ultimately to approach general intelligence we must address these fundamental computational problems.
And regarding our work, our poster is at a conference session on April 25th from 10am to 12.30pm and we also have three exciting workshops related to reasoning associative memories and explainable AI for science where we'll present our work with Buster. Also you can scan the QR code for more details regarding our paper and thank you very much for listening.
