Beyond Fixed Directions: Adaptive Representation Analysis of Reasoning and Memorization in LLMs
Organizations: Independent Researcher
Abstract
Recent work has proposed that reasoning and memorization in language models can be characterized by a single representation direction, including methods that keep this direction fixed during reinforcement learning. We test two assumptions behind this view. First, are reasoning-oriented and factual-recall task groups approximately single-direction separable? Second, does the resulting geometry remain stable after GRPO? Using Qwen3-0.6B and a controlled 400-example dataset, we find that a one-dimensional projection can match a full 1024-dimensional linear probe with AUROC = 1.00 on the studied task groups. However, after GRPO, the corresponding direction is substantially reorganized: mean-direction cosine averages 0.453, probe-direction cosine 0.445, while direct representation drift reaches 0.511 at the final layer. Probe AUROC nevertheless remains 1.00. The evidence therefore supports single-direction decodability for the studied task groups but challenges fixed-direction stability: the information persists while its geometric realization changes.
Figures & tables
| Dataset | Task type | Raw size | Final use |
|---|---|---|---|
| GSM8K | Reasoning | 7,473 | length-binned |
| MATH-500 | Reasoning | 500 | length-binned |
| PopQA | Factual recall | 14,267 | length-binned |
| TriviaQA | Factual recall | 138,384 | length-binned |
| Total (raw) | – | 160,624 | – |
| Total (deduplicated) | – | 97,477 | – |
| Method | Layer | Accuracy | AUROC |
|---|---|---|---|
| Mean-difference direction | 18 | .9975 | 1.0000 |
| Probe-weight direction | 12 | .9975 | 1.0000 |
| Full 1024-D probe | 12 | .9975 | 1.0000 |
| Random-label probe | – | .4875 | .4816 |
| Baseline / classifier | Accuracy | AUROC |
|---|---|---|
| Length-only classifier | .6475 | .6645 |
| TF–IDF lexical classifier | .9600 | .9911 |
| Random-label probe | .4875 | .4816 |
| Mean-difference direction (best layer) | .9975 | 1.0000 |
| Probe-weight direction (best layer) | .9975 | 1.0000 |
| Full 1024-D probe (best layer) | .9975 | 1.0000 |
| Hypothesis | Verdict | |
|---|---|---|
| H1 | Reasoning-oriented and factual-recall examples are linearly separable in hidden-state space. | Supported |
| H2 | A single one-dimensional direction is sufficient to match a full 1024-D probe. | Supported |
| H3 | The mean-difference / probe direction extracted before RL remains the same direction after GRPO. | Not supported |
| H4 | The broader representation geometry (not only the task direction) is stationary under GRPO. | Not supported |
| H5 | Task-relevant information is preserved after GRPO even though its geometric encoding changes. | Supported |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
Representation Geometry in Language Models
Representation geometry in language models studies how embeddings and hidden states organize concepts, computation, and behavior.
See all 421 papers