Compute Has Shape: Self-Morphing the Internal Computation of Frozen LLMs
On the map: LLM reasoning → Test-time compute and efficient thinking also fits: Diffusion reasoning and test-time scaling
Abstract (arXiv)
Test-time scaling improves large language models through additional computation, but how to adapt the topology of internal computation to individual inputs remains underexplored. Existing approaches largely fix recurrent or parallel architectures during training, or reconfigure frozen models along a single structural axis. We introduce SelfMorph, which makes computational shape an input-dependent inference-time decision. It unifies the original forward path (BASE), serial reuse of a layer span (REPEAT), and local branching and merging of perturbed hidden states (BRANCH) in a unified space parameterized by type, location, and intensity. Since they offer complementary benefits rather than uniform dominance, we use a lightweight selector that reads the backbone's depth-wise hidden state trajectory on the prompt to choose a morphology before response generation. We train the selector by distilling utility-based distribution from offline morphing that jointly account for task performance and computational cost. Evaluated on three LLMs spanning 4B-27B, SelfMorph achieves a 8.06% mean relative improvement on five in-distribution benchmarks and 4.45% on four unseen benchmarks. It achieves the strongest performance in 24 of 27 settings. These findings identify input-adaptive computational topology as a complementary axis of test-time scaling beyond generating more tokens. Our code is available at https://github.com/creator-xi/SelfMorph.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Test-time compute and efficient thinking, one of 17 directions in LLM reasoning. Builds on 22 of its 24 references that are in the map. Submitted 28 Oct 2026.
Builds on
22 of 24 references.
Closest ancestors · 5
Same direction, newest first
- 2025Scaling Latent Reasoning via Looped Language Models29 Oct
- 2025Parallel Test-Time Scaling for Latent Reasoning Models9 Oct
- 2025SoftCoT++: Test-Time Scaling with Soft Chain-of-Thought Reasoning16 May
- 2025Parallel Scaling Law for Language Models15 May
- 2025Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approach7 Feb
Other references · 17
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,963
- 2021Training Verifiers to Solve Math Word Problemscited by 11,055
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 6,016
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 5,336
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,388
- 2023Let's Verify Step by Stepcited by 4,259
- 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 3,191
- 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 3,132
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,284
- 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,957
- 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,392
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,106
5 more
- 2023The Internal State of an LLM Knows When It's Lyingcited by 725
- 2024The Remarkable Robustness of LLMs: Stages of Inference?cited by 163
- 2026Training-Free Looped Transformerscited by 23
- 2026Multiplex Thinking: Reasoning via Token-wise Branch-and-Mergecited by 18
- 2026Skip a Layer or Loop It? Learning Program-of-Layers in LLMscited by 12
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Compute Where it Counts: Self Optimizing Language Models
- 2026LLM Complexity: Towards a Computational Complexity View of Large Language Model Inference
- 2026Sparse or Dense? A Mechanistic Estimation of Computation Density in Transformer-based LLMs
- 2025Test-time Scaling of LLMs: A Survey from A Subproblem Structure Perspective
- 2025Recursive Inference Scaling: A Winning Path to Scalable Inference in Language and Multimodal Systems
- 2025xLSTM Scaling Laws: Competitive Performance with Linear Time-Complexity
- 2026A Single-Layer Model Can Do Language Modeling
- 2026TopoSteer: Topological Layer Selection for Activation Steering in LLMs