Limits of Deep Learning: Sequence Modeling through the Lens of Complexity Theory
<|reference_start|>Limits of Deep Learning: Sequence Modeling through the Lens of Complexity Theory: 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. Multi-layer SSMs are constrained by log-space computational capacity, limiting their reasoning abilities. 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.<|reference_end|>
@article{zubić2024limits,
    title={Limits of Deep Learning: Sequence Modeling through the Lens of
  Complexity Theory},
    author={Nikola Zubi'c, Federico Sold'a, Aurelio Sulser, Davide Scaramuzza},
    journal={arXiv preprint arXiv:2405.16674},
    year={2024},
    archivePrefix={arXiv},
    eprint={2405.16674},
    primaryClass={cs.LG cs.CC cs.LO}
}