Reasoning in Large Language Models: A Geometric Perspective

Romain Cosentino, Sarath Shekkizhar
7/2/2024
cs.AIcs.CL

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

The advancement of large language models (LLMs) for real-world applications hinges critically on enhancing their reasoning capabilities. In this work, we explore the reasoning abilities of large language models (LLMs) through their geometrical understanding. We establish a connection between the expressive power of LLMs and the density of their self-attention graphs. Our analysis demonstrates that the density of these graphs defines the intrinsic dimension of the inputs to the MLP blocks. We demonstrate through theoretical analysis and toy examples that a higher intrinsic dimension implies a greater expressive capacity of the LLM. We further provide empirical evidence linking this geometric framework to recent advancements in methods aimed at enhancing the reasoning capabilities of LLMs.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{cosentino2024reasoning,
  title  = {Reasoning in Large Language Models: A Geometric Perspective},
  author = {Romain Cosentino and Sarath Shekkizhar},
  year   = {2024},
  eprint = {2407.02678},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.02678v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.02678.svg)](https://codeofpaper.com/paper/2407.02678)

Discussion