← Latest papers
💻 computer science

Task-Dependent Intrinsic Dimensionality Across Transformer Layers: An Exploratory Study of Qwen2.5-1.5B

This exploratory study of Qwen2.5-1.5B reveals that the intrinsic dimensionality of internal representations varies non-uniformly across task categories and transformer layers, with reasoning tasks exhibiting lower dimensionality than factual recall in middle layers but converging toward similar levels in the final layers.

Original author: Mitra Varun Gogulapati

Published 2026-11-12
📖 5 min read🧠 Deep dive

Original author: Mitra Varun Gogulapati

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). ✨ This is an AI-generated explanation of the paper below. It is not written or endorsed by the author. For technical accuracy, refer to the original paper. Read full disclaimer

Inside the digital minds of modern artificial intelligence, there exists a vast, invisible landscape where information is stored and transformed. These systems, known as transformers, process language by converting words into long lists of numbers, creating a high-dimensional space that can have thousands of coordinates. Yet, despite this massive capacity, the actual information needed to solve a specific problem often lives in a much smaller, more focused region of that space. Scientists call this the intrinsic dimension, a measure of how many directions are truly necessary to describe the data at any given moment. Understanding whether this internal space expands or contracts depending on the type of task—such as recalling a fact versus solving a logic puzzle—offers a window into how these machines think. If the geometry of these internal representations changes based on the job at hand, it suggests that the model does not treat all knowledge as a single, uniform block, but rather reshapes its internal world to fit the problem.

A recent study set out to map these shifting landscapes within a specific, smaller artificial intelligence model called Qwen2.5-1.5B. The researchers were not trying to teach the model anything new or check if it could answer questions correctly. Instead, they acted as cartographers, observing how the model's internal state changed as it processed different types of prompts. They gathered 200 distinct requests, divided into four categories: factual recall (specifically about chemistry), arithmetic calculations, logical reasoning, and predicting the output of short computer code. For each request, they captured the model's internal "thought" at every single step of its processing, from the very first layer where the input is received to the final layer where the answer is prepared. This allowed them to trace the shape of the model's thinking as it moved deeper into the network.

To measure the complexity of these internal states, the researchers used several tools that act like rulers for high-dimensional space. They looked at how the energy of the data was distributed across the many coordinates. If the data is spread out evenly, the space is considered high-dimensional; if the data is squashed into just a few directions, the space is low-dimensional. They applied these measurements to the model's responses for each of the four task types. The results revealed a surprising and dynamic pattern. In the early and middle stages of processing, the internal representations for logical reasoning tasks occupied a slightly larger, more complex space than those for simple factual recall. However, as the model moved into its final layers, this relationship flipped. In the deepest parts of the network, the representations for factual recall became significantly more complex and spread out, while the space for reasoning tasks actually shrank and became more concentrated.

This reversal was the most striking discovery of the work. At one specific point near the end of the processing chain, the measure of complexity for factual recall was more than double that of the reasoning tasks. This suggests that the model does not simply get "smarter" or more complex as it goes deeper; rather, it reorganizes its internal geometry in a way that depends entirely on what it is trying to do. For the chemistry facts, the model seems to spread its attention across many directions in the final stages, whereas for the logic puzzles, it tightens its focus into a narrower, more efficient path. The researchers noted that this was a descriptive observation of a specific set of prompts and did not prove that one task is inherently harder or better than the other. It simply showed that the shape of the model's thinking changes as it works.

The study also highlighted the limitations of trying to draw broad conclusions from such a small sample. The researchers used only a dozen prompts for each category in their main analysis, which is a very small number for making definitive claims about how the model works in general. They found that the length of the prompts and the specific way the questions were written could influence the results, and they were unable to perfectly match these factors across all categories. Because of this, they could not say with certainty that the observed differences were caused solely by the type of task, rather than by the structure of the questions themselves. Furthermore, the study did not test whether these geometric changes actually helped the model get the right answers or if they were just a side effect of how the model was built.

Ultimately, this work provides a detailed snapshot of how a language model's internal world is not static. It is a fluid environment that stretches and compresses depending on the task. The finding that reasoning and factual recall follow different paths through the final layers of the network challenges the idea that these models process all information in the same way. While the study does not offer a complete map of the territory, it establishes that the depth of the network matters and that the relationship between different types of tasks is not fixed. The researchers have made their data and methods available so others can verify these observations, acknowledging that much more work is needed to understand the full scope of how these digital minds organize their knowledge.

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 →