Limits of Deep Learning: Sequence Modeling through the Lens of Complexity Theory

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zubić, Nikola, Soldá, Federico, Sulser, Aurelio, Scaramuzza, Davide
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929736871051264
author Zubić, Nikola
Soldá, Federico
Sulser, Aurelio
Scaramuzza, Davide
author_facet Zubić, Nikola
Soldá, Federico
Sulser, Aurelio
Scaramuzza, Davide
contents Despite their successes, deep learning models struggle with tasks requiring complex reasoning and function composition. We present a theoretical and empirical investigation into the limitations of Structured State Space Models (SSMs) and Transformers in such tasks. We prove that one-layer SSMs cannot efficiently perform function composition over large domains without impractically large state sizes, and even with Chain-of-Thought prompting, they require a number of steps that scale unfavorably with the complexity of the function composition. Also, the language of a finite-precision SSM is within the class of regular languages. Our experiments corroborate these theoretical findings. Evaluating models on tasks including various function composition settings, multi-digit multiplication, dynamic programming, and Einstein's puzzle, we find significant performance degradation even with advanced prompting techniques. Models often resort to shortcuts, leading to compounding errors. These findings highlight fundamental barriers within current deep learning architectures rooted in their computational capacities. We underscore the need for innovative solutions to transcend these constraints and achieve reliable multi-step reasoning and compositional task-solving, which is critical for advancing toward general artificial intelligence.
format Preprint
id arxiv_https___arxiv_org_abs_2405_16674
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Limits of Deep Learning: Sequence Modeling through the Lens of Complexity Theory
Zubić, Nikola
Soldá, Federico
Sulser, Aurelio
Scaramuzza, Davide
Machine Learning
Computational Complexity
Logic in Computer Science
Despite their successes, deep learning models struggle with tasks requiring complex reasoning and function composition. We present a theoretical and empirical investigation into the limitations of Structured State Space Models (SSMs) and Transformers in such tasks. We prove that one-layer SSMs cannot efficiently perform function composition over large domains without impractically large state sizes, and even with Chain-of-Thought prompting, they require a number of steps that scale unfavorably with the complexity of the function composition. Also, the language of a finite-precision SSM is within the class of regular languages. Our experiments corroborate these theoretical findings. Evaluating models on tasks including various function composition settings, multi-digit multiplication, dynamic programming, and Einstein's puzzle, we find significant performance degradation even with advanced prompting techniques. Models often resort to shortcuts, leading to compounding errors. These findings highlight fundamental barriers within current deep learning architectures rooted in their computational capacities. We underscore the need for innovative solutions to transcend these constraints and achieve reliable multi-step reasoning and compositional task-solving, which is critical for advancing toward general artificial intelligence.
title Limits of Deep Learning: Sequence Modeling through the Lens of Complexity Theory
topic Machine Learning
Computational Complexity
Logic in Computer Science
url https://arxiv.org/abs/2405.16674