Stream Recursion Model (SRM)
摘要
Stream Recursion Model (SRM) 是 Hierarchical Reasoning Model 的改进,它将计算组织成递归潜在流,以提升大型语言模型的机制可解释性,在每个参数上达到与 GPT-2 相当的性能。
arXiv:2609.28809v1 Announce Type: new
Abstract: Mechanistic interpretability seeks to make verifiable statements about the internal behavior of large language models (LLMs). Many interpretability techniques struggle to scale with the increasing size and depth of architectures. Our solution to this is to introduce smaller models with structures that lend themselves to interpretability. In this work, we introduce the Stream Recursion Model (SRM), a modification of the Hierarchical Reasoning Model (HRM) designed to expose internal computational structure while remaining scalable. SRM organizes computation into multiple interacting latent streams that are updated through recursive refinement, enabling direct analysis of stream dynamics, causal contribution, and routing behavior. SRM achieves performance comparable to GPT-2 on a per-parameter basis. Our analysis reveals consistent and distinct behavior across streams, indicating structured specialization and interaction. These results suggest that SRM provides a practical architectural foundation for scalable mechanistic interpretability and opens up promising avenues for future research in both reasoning performance and interpretability.
查看缓存全文
缓存时间: 2026/09/25 09:38
# Stream Recursion Model (SRM) Source: [https://arxiv.org/html/2609.28809](https://arxiv.org/html/2609.28809) Charles BrockAffiliation:Department of Computer Science and Engineering, New Mexico Institute of Mining and Technology, Socorro, NM, USAAffiliation:Institute for Complex Additive Systems Analysis, New Mexico Institute of Mining and Technology, Socorro, NM, USADavid ChamberlainAffiliation:Department of Computer Science and Engineering, New Mexico Institute of Mining and Technology, Socorro, NM, USAAffiliation:Institute for Complex Additive Systems Analysis, New Mexico Institute of Mining and Technology, Socorro, NM, USACorrespondence to:[david\.chamberlain@student\.nmt\.edu](mailto:[email protected])Jennifer MinnichAffiliation:Institute for Complex Additive Systems Analysis, New Mexico Institute of Mining and Technology, Socorro, NM, USAMatthew HoffmanAffiliation:Sandia National Laboratories, Albuquerque, NM, USARamyaa RamyaaAffiliation:Department of Computer Science and Engineering, New Mexico Institute of Mining and Technology, Socorro, NM, USA ###### Abstract Mechanistic interpretability seeks to make verifiable statements about the internal behavior of large language models \(LLMs\)\. Many interpretability techniques struggle to scale with the increasing size and depth of architectures\. Our solution to this is to introduce smaller models with structures that lend themselves to interpretability\. In this work, we introduce the Stream Recursion Model \(SRM\), a modification of the Hierarchical Reasoning Model \(HRM\) designed to expose internal computational structure while remaining scalable\. SRM organizes computation into multiple interacting latent streams that are updated through recursive refinement, enabling direct analysis of stream dynamics, causal contribution, and routing behavior\. SRM achieves performance comparable to GPT\-2 on a per\-parameter basis\. Our analysis reveals consistent and distinct behavior across streams, indicating structured specialization and interaction\. These results suggest that SRM provides a practical architectural foundation for scalable mechanistic interpretability and opens up promising avenues for future research in both reasoning performance and interpretability\. ###### Keywords: Machine Learning, Mechanistic Interpretability, Recurrent Transformers, Hierarchical Reasoning Model, Language Models ††affiliationnotice:Equal contribution## 1Introduction The objective of mechanistic interpretability is to analyze the internal workings of LLMs so as to be able to predict their functionality and verify their security and stability\. The rising use of LLMs in areas such as healthcare and processing classified documents necessitates advances in interpretability\. Frontier models have recently surpassed the 1T parameter mark, making mechanistic interpretability difficult and prohibitively expensive\. The goal of this paper is to develop a more parameter\-efficient model that would structurally lend itself to both new and existing interpretability techniques\. SRM ArchitectureEmbeddingInputz0z\_\{0\}To StreamsSRM LayerSRM LayerSRM LayerSRM LayerFrom StreamsUnembeddingOutputBackpropDetachedSRM Layer FunctionInputzt−1z\_\{t\-1\}Stream\-wiseAttentionStep 1Step 2Stepnnztz\_\{t\}SRM Step FunctionS1S\_\{1\}S2S\_\{2\}SnS\_\{n\}InputOutputSRM Stream BlockStream InStream OutMLPToken\-wiseAttentionFigure 1:Design and layout of the SRM Architecture\. stream\-wise Attention performs attention across the streams per token\. Token\-wise Attention operates like normal attention\.### 1\.1Related Works Recent works have shown that there are many redundant parameters within the layers of vanilla transformer models\. In Mixture\-of\-Recursions \(MoR\)\([Bae et al\., 2025](https://arxiv.org/html/2609.28809#bib.bib1)\), looped the middle layers of a vanilla transformer\. They found that in doing so, they were able to achieve equivalent performance with similar compute time to vanilla transformers, while using only a third of the parameters\. However, they found that at some point, increasing the number of looped layers resulted in performance drop\-offs\. Meanwhile,\([Zhu et al\., 2025](https://arxiv.org/html/2609.28809#bib.bib5)\), found that by looping through a whole language model multiple times \(using a technique similar to deep supervision from\([Wang et al\., 2025](https://arxiv.org/html/2609.28809#bib.bib2)\)\) during pre\-training, they were able to outperform models several times larger in complex reasoning tasks\. A drawback with their method is that they were only able to do 8 loops through the model before they started facing training issues with unstable gradients, limiting their technique to only 4 loops\. A promising line of work in parameter reduction emerged from a novel architecture proposed by\([Wang et al\., 2025](https://arxiv.org/html/2609.28809#bib.bib2)\)called the Hierarchical Reasoning Model \(HRM\)\. Combined with a new training technique called deep reinforcement learning and limited back propagation through time \(LBTT\), HRM was able to get40\.3%40\.3\\%accuracy on ARC\-ARG1\([Chollet, 2019](https://arxiv.org/html/2609.28809#bib.bib11)\)using only 27M parameters, beating frontier models such as o3\-mini\-high with an accuracy of 34\.5%\. Building on HRM\([Jolicoeur\-Martineau, 2025](https://arxiv.org/html/2609.28809#bib.bib3)\)with their Tiny Reasoning Models \(TRM\), was able to achieve44\.6%44\.6\\%accuracy while using only 7M parameters by increasing parameter reuse and increasing the depth of the LBTT\. The huge performance claims with a very small number of parameters, along with the highly recurrent architecture made it very attractive to do interpretability work with\. A novel design element in the HRM architecture is its usage of multiple latents/streams used in its computation\. For consistency in the rest of this paper we will only refer to them as streams\. Both the HRM and TRM papers propose that 2 streams is the optimal number of streams\. Meanwhile,\([Deng et al\., 2025](https://arxiv.org/html/2609.28809#bib.bib4)\)is able to achieve improved performance using only a single stream with some training tweaks\.\([Ge et al\., 2025](https://arxiv.org/html/2609.28809#bib.bib6)\)showed that using a single stream with the HRM architecture resulted in improved performance\. This disagreement on the optimal number of streams suggests that the optimal number of streams is sensitive to the architectural differences of HRM and its variants\. Furthermore, the inability of these models to improve in performance when increasing the number of streams, as found by\([Jolicoeur\-Martineau, 2025](https://arxiv.org/html/2609.28809#bib.bib3)\), suggests a flaw in these models\. The field of mechanistic\-interpretability has recently been focused on using dictionary learning techniques\. While powerful, dictionary learning techniques have several drawbacks: they can be more expensive to train than the original model, are only able to capture features for a singular point in the model, and have several other open issues as discussed by\([Shu et al\., 2025](https://arxiv.org/html/2609.28809#bib.bib13)\)\. While Cross Layer Transcoders \(CLTs\), another dictionary learning technique, solves some of the issues SAEs face\([Ameisen et al\., 2025](https://arxiv.org/html/2609.28809#bib.bib15)\), they are even more expensive to train\. ### 1\.2Contributions In this work we introduce a novel architecture derived from HRM called the Stream Recursion Model \(SRM\)\. We summarize our contributions as follows: - •We introduce a modification to HRM that allows it to scale in performance with the use of more streams\. This is our SRM model\. - •We verify that SRM can achieve on\-par performance compared to vanilla transformers, and vastly outperforms HRM when trained on language datasets\. - •Using techniques made possible by SRM, we identify unique and interesting behaviors within our model, such as unique routing patterns and specialized behavior of each stream\. Furthermore, we achieve the results in this work with only a single 4xL40s GPU cluster over the course of 2 months and∼\\sim1000 GPU hours of external compute\. ## 2Motivation Based on the disagreements about the best number of streams to use in HRM or its variants, we believed that there was an issue in how these models handled communication between streams\. Specifically, streams in HRM communicate information between each other by simply adding the current state of one stream into another at specified intervals\. This results in the underutilization of each stream as it does not allow for the translation of information between streams\. While this doesn’t appear to be an issue on the non\-causal datasets used by HRM, such as Sudoku\([Wang et al\., 2025](https://arxiv.org/html/2609.28809#bib.bib2)\)and ARC\-ARG\([Chollet, 2019](https://arxiv.org/html/2609.28809#bib.bib11);[Chollet et al\., 2025](https://arxiv.org/html/2609.28809#bib.bib12)\), we found that this did cause issues when training on language datasets\. Scaling up HRM’s streams in both depth and size was not able to fix these issues\. To solve this issue, we sought to introduce a learnable translation between streams, as well as increase the number of streams\. We faced another issue in our attempt to increase the number of streams\. When using 2 streams, the relatively limited number of possible configurations, and thus parameters, specifying when streams communicate with each other is feasible to manage\. However, the number of configurations and parameters grows exponentially with the number of streams\. To reasonably use multiple streams, we need a method which can learn this configuration for us\. We combine both of these solutions \- when to communicate and how to translate between streams \- by creating a learnable layer \(which we call the ”communication layer”\) that learns both\. ### 2\.1The Network Approach The Network Approach treats each stream as a node in a network\. Between each node we have a learned translation function with a learned gating function over the translation\. In practical terms, the network approach is the attention function\. The key difference is that each stream gets its own query, key, value, and output matrices that it can learn\. The value and output weights work together to create the learned translation between any two streams\. Meanwhile, the key and query weights form our attention matrix which in turn gives us the gating values for the translation functions between each pair of streams\. By using this approach, we are still able to view the configuration of communication between the streams by analyzing the resulting attention matrix\. ## 3SRM In this section we define the Stream Recursion Model\. It consists of 3 main functions: the input function, the output function, and the layer function\. The layer function in turn contains 3 functions: a connection function between the streams, an update function, and a collection of step\-functions[Figure1](https://arxiv.org/html/2609.28809#S1.F1)along with pseudocode in[Figure2](https://arxiv.org/html/2609.28809#S3.F2)\. The rest of this section will discuss design decisions and details for our SRM Model\. ### 3\.1Input and Output Functions A direct embedding from tokens into the streams is inefficient since the effective embedding width with multiple streams is quite large\. Instead, we embed down to a smaller embedding dimension, then use a linear layer to get the tokens embedding per stream\. We use a similar method when decoding tokens: a linear of all streams into a small embedding dimension, followed by an unembedding layer to get token\-ids\. By using an intermediate embedding dimension we drastically reduce the number of parameters used for embedding and decoding\. ### 3\.2The Layer Function The layer function is the core component that makes SRM work\. It encompasses the connection function, the update function, and the step functions\. #### 3\.2\.1The Connection Function The connection function in SRM is essentially a multi\-head\- attention function where each stream learns its own weights for the key, query, value, and output parameters\. Due to this analogy we often refer to the connection function as stream\- wise attention\. Pseudocode of the definition is provided in[Figure2](https://arxiv.org/html/2609.28809#S3.F2)\. #### 3\.2\.2The Update Function The update function is what connects the step\-functions, the connection function, and the embedded input\. It determines how all three of its variables will interact with each other within the model, and how gradients will flow during back\- propagation\. Model performance is fairly sensitive to the permutation of layernorms used in the update function\. We found that the definition given below worked the best in our models\. Update\(zt,i,ct,x\)=zt,i\+RMSNorm\(ct\+x\)\\text\{Update\}\(z\_\{t,i\},c\_\{t\},x\)=z\_\{t,i\}\+\\text\{RMSNorm\}\(c\_\{t\}\+x\)\(1\) Wherezt,iz\_\{t,i\}is the hidden streams at layerttstepii,ctc\_\{t\}is the output of the connection function at layertt, andxxis the embedding of the input tokens\. #### 3\.2\.3The Step\-Function The step function consists of a collection transformer blocks, with each stream having its own unique transformer block\. For the transformer block we utilize a post\-norm architecture, following HRM\. In the transformer block we compute the attention function and the FFN function in parallel, following\([Black et al\., 2022](https://arxiv.org/html/2609.28809#bib.bib10)\)and their GPT\-NeoX model\. Each layer in the SRM Model consists of a series ofnnmany steps andmmmany step\-functions\. The layer function hardcodes how itsmmstep functions are called\. For example, given the step\-functionsA,BA,BandCC, one possible hardcoded connection isABCABCABCABC; another isABCCBAABCCBA\. defstreams\_linear\(z,O\): B,T,S,E=z\.shape weight=torch\.nn\.Parameter\(S,O,E\) output=torch\.einsum\('btse,soe\-\>btso',z,weight\) returnoutput defstreamwise\_attention\(z,n\_heads,head\_dim\): B,T,S,E=z\.shape qkv=streams\_linear\(z,3\*n\_heads\*head\_dim\) qkv=qkv\.view\(B,T,S,n\_heads,3\*head\_dim\)\.transpose\(3,2\) q,k,v=qkv\.split\(head\_dim,dim=\-1\) y=torch\.nn\.functional\.scaled\_dot\_product\_attention\( q,k,v, is\_causal=False\) y=y\.transpose\(3,2\)\.view\(B,T,n\_heads\*S,head\_dim\) y=streams\_linear\(y,E\)\.view\(B,T,S,n\_heads,E\) y=y\.sum\(dim=\-2\) returny defsrm\_step\(z\): B,T,S,E=z\.shape foriinrange\(S\): stream=z\[:,:,i\] update=self\.mlp\[i\]\(stream\)\+self\.attn\[i\]\(stream\) update=RMSNorm\(update\+stream\) z\[:,:,i\]=update returnz defsrm\_layer\(x,z,n\_steps=3\): c=streamwise\_attention\(z\) y=RMSNorm\(c\+x\) foriinrange\(n\_steps\): step\_idx=self\.get\_step\_idx\(i\) z=self\.steps\[step\_idx\]\(z\+y\) returnz defsrm\(input\_ids,z,n,l\): B,T,S,E=z\.shape emb=embedding\(input\_ids\) stream\_emb=linear\_up\(emb\)\.view\(B,T,S,E\) for\_inrange\(n\-l\): withtorch\.no\_grad\(\): z=srm\_layer\(stream\_emb,z\) for\_inrange\(l\): z=srm\_layer\(stream\_emb,z\) out\_emb=linear\_down\(z\.view\(B,T,S\*E\)\) output\_ids=unembedding\(out\_emb\) returnoutput\_ids Figure 2:Pseudocode for SRM in PyTorch ## 4Hyper\-Parameter selection This section discusses our efforts in hyperparameter optimization and selection with HRM models\. Due to our limited compute capacity, we limit our training to a meager 0\.5B tokens, or about 1000 training steps\. While this limits the accuracy of the conclusions that we draw from our experiments, we find that we are still able to determine which parameters SRM is the most sensitive to, along with a relatively performant region\. The general hyperparameters that we sought to understand were: \(i\) the number of layers used in the model, along with the number of layers we include during backpropagation, \(ii\) an interesting modification involving extra step\-functions used during the embedding and unembedding functions, \(iii\) the dimension of the streams, along with their quantity, \(iv\) and the number of steps and step\-functions within a layer and their ordering\. ### 4\.1Computation Depth Due to the causal nature of language data, we did not implement Adaptive Computation Time \(ACT\)\([Wang et al\., 2025](https://arxiv.org/html/2609.28809#bib.bib2)\)when training our model on our language dataset\. We did run experiments on the effectiveness of limited backpropagation through time\. Using a fixed depth of 8 layers we found that returns severely diminished when performing backpropagation through more than 4 layers\. While we can not be certain that this depth is compute\-optimal for every choice of hyperparameters for SRM, it does provide us a reasonable choice for us to use throughout the rest of our experiments and for training\. Further work should explore the sensitivity of performance to the number of layers and backpropagation layers, with the rest of the hyperparameters for SRM\. ### 4\.2Pre\- and Post\-Steps Studies on the similarity of layers in dense transformer models has shown that the first and last layer are significantly different from the middle layers, suggesting that they are specialized\.[Bae et al\., 2025](https://arxiv.org/html/2609.28809#bib.bib1)demonstrated in their MoR model that adding an independent transformer at the beginning and end of the model resulted in significant performance gains\. Inspired by these results, we experimented with adding a step\-function after the input function and before the output function\. To our surprise, we found that the presence of pre\-steps resulted in worse performance, while post\-steps did result in either similar or increased performance\. The inclusion of pre\-steps may result in lower performance as it removes the uniformity of token representations leaving the input function, resulting in less stable gradients throughout the rest of the model\. It is unclear if the presence of post\-steps resulted in performance gains solely due to the increased number of parameters, or if there is a structural benefit, as would be suggested by the results found by\([Bae et al\., 2025](https://arxiv.org/html/2609.28809#bib.bib1)\)\. Because we are uncertain about the nature of the benefit from post\-steps in general, we avoided using them\. ### 4\.3Layer\-Steps In order to measure the impact of the number of layer\-steps within a layer and their ordering, we conduct the following experiments: For each experiment we used three step\-functionsA,B,CA,B,C, while we varied both the ordering of the step\-functions and the number of layer\-steps\. Three was chosen as it has numerous possible configurations with a minimal amount of parameters, allowing us more clear insight into the effect of ordering and layer\-step depth\. The results are shown in[Figure6](https://arxiv.org/html/2609.28809#A1.F6)in Appendix A\. Experimentation revealed that the ordering of the steps didn’t have a noticeable effect and that keeping the number of layer\-steps and step\-functions equal gave good performance with the least compute\. ### 4\.4Stream Size To measure the effect of the size of the stream dimension we ran three sets of experiments\. For these experiments we varied 4 variables; the number of streamsss, the stream dimensiondsd\_\{s\}, the hidden width of the step\-functions MLP layerdhd\_\{h\}, and the number of heads used by the step\-functions Attention layernhsn\_\{hs\}\. For the first two experiments we helds×ds=4096s\\times d\_\{s\}=4096constant and variedss\. The first set holds parameter count constant by settingdh=768d\_\{h\}=768andnhs=2n\_\{hs\}=2\. The second set holds the model width constant by holdings×nhs=64s\\times n\_\{hs\}=64ands×dh=6×128×32s\\times d\_\{h\}=6\\times 128\\times 32\. The third set holds stream size constant withnhs=2n\_\{hs\}=2,dh=768d\_\{h\}=768, andds=256d\_\{s\}=256and measures the impact of more streams by varyingss\. As we can see from Figure[3](https://arxiv.org/html/2609.28809#S4.F3), there seems to be a large jump in performance between 4 and 8 streams when the width of the streams changes\. We believe this is due to the dimension of the streams being greater than the dimension of the intermediate embedding\. 5\.55\.5666\.56\.577LossFixed ParameterFixed WidthFixed Stream Size1248163264444\.54\.5Number of StreamsLoss Figure 3:These hyperparameter sweep experiments were trained for 1000 steps \(approximately 500M tokens\) and are not representative of the full training runs reported elsewhere\. ## 5Results To verify that SRM could perform on language Datasets, we trained 3 models on OpenWebText\([Gokaslan et al\., 2019](https://arxiv.org/html/2609.28809#bib.bib7)\)\. Model and training details are provided in[AppendixB](https://arxiv.org/html/2609.28809#A2)\. For a fair comparison, we trained a GPT\-2\([Radford et al\., 2019](https://arxiv.org/html/2609.28809#bib.bib8)\)instance using the same training configuration as our SRM models\. We see that SRM\-base is able to achieve on par performance to GPT\-2 with roughly half the parameters and 7 times the compute time\. Meanwhile, SRM\-med is able to out\-perform GPT\-2 with a similar number of parameters requiring 6 times more compute\. SRM\-large demonstrates that SRM is able to scale well with an increase of parameters\. Of note is the short amount of training steps taken during our training; we only trained on∼\\sim5B tokens\. Based on our training graphs, if we extrapolate out to 300B tokens we expect for SRM\-base to maintain similar performance to GPT\-2, SRM\-med to stall in performance, and for SRM\-large to reach a loss of around 2\.6\-2\.7\. Training results are shown in[Table1](https://arxiv.org/html/2609.28809#S5.T1), and a training graph is shown in[Figure4](https://arxiv.org/html/2609.28809#S5.F4)\. Table 1:Performance of GPT\-2 and SRM on OpenWebText after 10k training steps\.10210^\{2\}10310^\{3\}10410^\{4\}334455667788StepLossHRMGPT\-2SRM\-medSRM\-largeSRM\-baseFigure 4:Training loss of GPT\-2 and the three SRM models on OpenWebText\. Smoothed using a rolling average of 200 steps\. ## 6Analysis In this section we study stream level behavior by performing the 3 following experiments\. 1. 1\.Routing Behaviors 2. 2\.Connection Update Behavior Alignment 3. 3\.Step\-Function Update Behavior Alignment We perform these studies across three different SRM Configurations of varying sizes, SRM\-base, SRM\-med, and SRM\-large\. Model configurations are provided in[AppendixB](https://arxiv.org/html/2609.28809#A2)\. Further details and analysis, along with additional experiments, are performed and outlined in[AppendicesC](https://arxiv.org/html/2609.28809#A3),[D](https://arxiv.org/html/2609.28809#A4)and[E](https://arxiv.org/html/2609.28809#A5)\. ### 6\.1Routing Behaviors The SRM’s stream\-wise attention mechanism enables each stream to selectively communicate with other streams, creating a learned routing network\. We analyze these routing patterns to characterize the model’s internal communication structure\. We analyze edges whose value exceeds0\.100\.10in the attention matrix after applying softmax; this gives us edges of strong significance\. In SRM\-base, we observe a small subset of streams consistently exhibiting higher outgoing routing frequency\. These streams route to a broader set of streams than the rest, indicating a hub\-like topology\. The routing patterns are stable across layers and attention heads, suggesting that routing patterns occur uniformly across model depth\. See[Figure11](https://arxiv.org/html/2609.28809#A3.F11)\. In SRM\-med, like in SRM\-base, we observe a small subset of streams that tends to frequently output into the rest of the other streams\. Of particular note with SRM\-med is the low self routing frequency for the non\-hub\-like streams\. See[Figure18](https://arxiv.org/html/2609.28809#A4.F18)\. In SRM\-large, we once again observe a small subset of hub\-like streams\. Unlike SRM\-base, we are able to easily observe that there is a subset of streams that act as sinks, rarely outputting into other streams\. We also see that there is a noticeable change in routing behavior throughout the models depth\. See[Figure5](https://arxiv.org/html/2609.28809#S6.F5)\. It is interesting to observe that by adding more streams, significant routing becomes more sparse under the threshold\. Hub\-like streams continue to be observed, and the number of seemingly specialized connections and streams increases\. ### 6\.2Connection Update Behavior Alignment Here we measure the cosine similarity of the output of the connection functionctc\_\{t\}and the token inputxtx\_\{t\}in the update function\. Across all three models we observe thatctc\_\{t\}andxtx\_\{t\}are nearly orthogonal, with a small positive bias in cosine similarity\. This suggests that the connection function introduces directionally distinct information to the streams, rather than reinforcing input token direction or canceling it out\. See[Figures9](https://arxiv.org/html/2609.28809#A3.F9),[16](https://arxiv.org/html/2609.28809#A4.F16)and[23](https://arxiv.org/html/2609.28809#A5.F23)\. ### 6\.3Step\-Function Update Behavior When comparingRMSNorm\(ct\+x\)\\text\{RMSNorm\}\(c\_\{t\}\+x\)and the output of the step\-function, all three models have slightly different behaviors\. In SRM\-base, all streams maintain a relatively high cosine similarity\>0\.7\>0\.7, with the exception of a few streams that hover around a cosine similarity between0\.00\.0and0\.30\.3, see[Figure10](https://arxiv.org/html/2609.28809#A3.F10)\. In SRM\-med, we observe that all streams maintain a high cosine similarity\>0\.5\>0\.5, see[Figure17](https://arxiv.org/html/2609.28809#A4.F17)\. SRM\-large exhibits unique behavior compared to the other models\. While most streams maintain a cosine similarity\>0\.5\>0\.5, one stream hovers around0\.00\.0, except for the last step in the layer, where it jumps to\>0\.8\>0\.8\. Two other streams display distinct behavior, maintaining negative values ranging from−0\.1\-0\.1to−0\.7\-0\.7, except for the last step in the layer, where similarity hovers around0\.30\.3, see[Figure24](https://arxiv.org/html/2609.28809#A5.F24)\. These behaviors suggest that streams in SRM\-large are performing a functionally different roles compared to the other streams and the other models\. Figure 5:Stream\-to\-stream routing frequency for SRM\-large at a 10% attention threshold\. The x\-axis across heat\-maps is the source stream, while the y\-axis is the target stream\. ## 7Future Works In this section we discuss future directions of study that our SRM model lends itself to\. ### 7\.1Mechanistic Interpretability The heavily recurrent nature of SRM heavily lends itself to the universal application of dictionary learning techniques such as Sparse Autoencoders\([Shu et al\., 2025](https://arxiv.org/html/2609.28809#bib.bib13);[Bricken et al\., 2023](https://arxiv.org/html/2609.28809#bib.bib14)\)and Cross Layer Transcoders\([Ameisen et al\., 2025](https://arxiv.org/html/2609.28809#bib.bib15)\)\. Combined with our routing analysis, one could use dictionary learning to discover if routing switches are based on some interpretable feature\. We leave this direction of study to future work\. ### 7\.2Reasoning Tasks Because SRM is a variant of HRM, we believe that it is well suited to logic and reasoning tasks\. Further work training SRM on language based reasoning tasks could yield substantial results if deep reinforcement learning\([Wang et al\., 2025](https://arxiv.org/html/2609.28809#bib.bib2)\)is used\. ## 8Conclusion In this work we demonstrated that our proposed SRM architecture both generalizes and improves upon the HRM architecture\. By allowing for a learned communication method between streams with our connection function, we can generalize HRM to use multiple streams\. This allows for expanded capability, along with opening up new avenues of analysis for mechanistic interpretability\. We demonstrated that HRM, as it was originally designed was incapable of performing on language datasets\. We show that SRM is capable of performing comparably to standard transformer models such as GPT\-2\. In our analysis of our SRM models we found that different choices in sizes and parameters yields significantly distinct and interesting routing structures\. This result provides insights on the role and purposes of the different streams\. Future work performing in\-depth studies on the individual streams may identify critical roles and functionality in the individual streams which may mimic the region of the human brain\. ## Acknowledgements Sandia National Laboratories is a multimission laboratory managed and operated by National Technology & Engineering Solutions of Sandia, LLC, a wholly owned subsidiary of Honeywell International Inc\., for the U\.S\. Department of Energy’s National Nuclear Security Administration under contract DE\-NA0003525\. SAND2026\-21799O\. This paper describes objective technical results and analysis\. Any subjective views or opinions that might be expressed in the paper do not necessarily represent the views of the U\.S\. Department of Energy or the United States Government\. ## References - Ameisenet al\.\(2025\)E\. Ameisen, J\. Lindsey, A\. Pearce, W\. Gurnee, N\. L\. Turner, B\. Chen, C\. Citro, D\. Abrahams, S\. Carter, B\. Hosmer, J\. Marcus, M\. Sklar, A\. Templeton, T\. Bricken, C\. McDougall, H\. Cunningham, T\. Henighan, A\. Jermyn, A\. Jones, A\. Persic, Z\. Qi, T\. Ben Thompson, S\. Zimmerman, K\. Rivoire, T\. Conerly, C\. Olah, and J\. BatsonCircuit tracing: revealing computational graphs in language models\.Transformer Circuits Thread\.External Links:[Link](https://transformer-circuits.pub/2025/attribution-graphs/methods.html)Cited by:[§1\.1](https://arxiv.org/html/2609.28809#S1.SS1.p4.1),[§7\.1](https://arxiv.org/html/2609.28809#S7.SS1.p1.1)\. - Baeet al\.\(2025\)S\. Bae, Y\. Kim, R\. Bayat, S\. Kim, J\. Ha, T\. Schuster, A\. Fisch, H\. Harutyunyan, Z\. Ji, A\. Courville,et al\.Mixture\-of\-recursions: learning dynamic recursive depths for adaptive token\-level computation\.arXiv preprint arXiv:2507\.10524\.Cited by:[§1\.1](https://arxiv.org/html/2609.28809#S1.SS1.p1.1),[§4\.2](https://arxiv.org/html/2609.28809#S4.SS2.p1.1),[§4\.2](https://arxiv.org/html/2609.28809#S4.SS2.p2.1)\. - Blacket al\.\(2022\)S\. Black, S\. Biderman, E\. Hallahan, Q\. Anthony, L\. Gao, L\. Golding, H\. He, C\. Leahy, K\. McDonell, J\. Phang,et al\.Gpt\-neox\-20b: an open\-source autoregressive language model\.InProceedings of BigScience Episode\# 5–Workshop on Challenges & Perspectives in Creating Large Language Models,pp\. 95–136\.Cited by:[§3\.2\.3](https://arxiv.org/html/2609.28809#S3.SS2.SSS3.p1.1)\. - Brickenet al\.\(2023\)T\. Bricken, A\. Templeton, J\. Batson, B\. Chen, A\. Jermyn, T\. Conerly, N\. Turner, C\. Anil, C\. Denison, A\. Askell, R\. Lasenby, Y\. Wu, S\. Kravec, N\. Schiefer, T\. Maxwell, N\. Joseph, Z\. Hatfield\-Dodds, A\. Tamkin, K\. Nguyen, B\. McLean, J\. E\. Burke, T\. Hume, S\. Carter, T\. Henighan, and C\. OlahTowards monosemanticity: decomposing language models with dictionary learning\.Transformer Circuits Thread\.Note:https://transformer\-circuits\.pub/2023/monosemantic\-features/index\.htmlCited by:[§7\.1](https://arxiv.org/html/2609.28809#S7.SS1.p1.1)\. - Cholletet al\.\(2025\)F\. Chollet, M\. Knoop, G\. Kamradt, B\. Landers, and H\. PinkardArc\-agi\-2: a new challenge for frontier ai reasoning systems\.arXiv preprint arXiv:2505\.11831\.Cited by:[§2](https://arxiv.org/html/2609.28809#S2.p2.1)\. - Chollet \(2019\)F\. CholletOn the measure of intelligence\.arXiv preprint arXiv:1911\.01547\.Cited by:[§1\.1](https://arxiv.org/html/2609.28809#S1.SS1.p2.1),[§2](https://arxiv.org/html/2609.28809#S2.p2.1)\. - Denget al\.\(2025\)Y\. Deng, B\. Sun, Y\. Li, L\. Kong, Z\. Tang, K\. Zhang, and G\. ChenSelection, reflection and self\-refinement: revisit reasoning tasks via a causal lens\.arXiv preprint arXiv:2510\.08222\.Cited by:[§1\.1](https://arxiv.org/html/2609.28809#S1.SS1.p3.1)\. - Everettet al\.\(2024\)K\. Everett, L\. Xiao, M\. Wortsman, A\. A\. Alemi, R\. Novak, P\. J\. Liu, I\. Gur, J\. Sohl\-Dickstein, L\. P\. Kaelbling, J\. Lee,et al\.Scaling exponents across parameterizations and optimizers\.arXiv preprint arXiv:2407\.05872\.Cited by:[Appendix B](https://arxiv.org/html/2609.28809#A2.p1.1)\. - Geet al\.\(2025\)R\. Ge, Q\. Liao, and T\. PoggioHierarchical reasoning models: perspectives and misconceptions\.arXiv preprint arXiv:2510\.00355\.Cited by:[§1\.1](https://arxiv.org/html/2609.28809#S1.SS1.p3.1)\. - Gokaslanet al\.\(2019\)A\. Gokaslan, V\. Cohen, E\. Pavlick, and S\. TellexOpenWebText corpus\.Note:[http://Skylion007\.github\.io/OpenWebTextCorpus](http://skylion007.github.io/OpenWebTextCorpus)Cited by:[§5](https://arxiv.org/html/2609.28809#S5.p1.1)\. - Jolicoeur\-Martineau \(2025\)A\. Jolicoeur\-MartineauLess is more: recursive reasoning with tiny networks\.arXiv preprint arXiv:2510\.04871\.Cited by:[§1\.1](https://arxiv.org/html/2609.28809#S1.SS1.p2.1),[§1\.1](https://arxiv.org/html/2609.28809#S1.SS1.p3.1)\. - Radfordet al\.\(2019\)A\. Radford, J\. Wu, R\. Child, D\. Luan, D\. Amodei, I\. Sutskever,et al\.Language models are unsupervised multitask learners\.OpenAI blog1\(8\),pp\. 9\.Cited by:[Appendix B](https://arxiv.org/html/2609.28809#A2.p1.1),[§5](https://arxiv.org/html/2609.28809#S5.p2.1)\. - Shuet al\.\(2025\)D\. Shu, X\. Wu, H\. Zhao, D\. Rai, Z\. Yao, N\. Liu, and M\. DuA survey on sparse autoencoders: interpreting the internal mechanisms of large language models\.arXiv preprint arXiv:2503\.05613\.Cited by:[§1\.1](https://arxiv.org/html/2609.28809#S1.SS1.p4.1),[§7\.1](https://arxiv.org/html/2609.28809#S7.SS1.p1.1)\. - Wanget al\.\(2025\)G\. Wang, J\. Li, Y\. Sun, X\. Chen, C\. Liu, Y\. Wu, M\. Lu, S\. Song, and Y\. A\. YadkoriHierarchical reasoning model\.arXiv preprint arXiv:2506\.21734\.Cited by:[Appendix B](https://arxiv.org/html/2609.28809#A2.p3.1),[§1\.1](https://arxiv.org/html/2609.28809#S1.SS1.p1.1),[§1\.1](https://arxiv.org/html/2609.28809#S1.SS1.p2.1),[§2](https://arxiv.org/html/2609.28809#S2.p2.1),[§4\.1](https://arxiv.org/html/2609.28809#S4.SS1.p1.1),[§7\.2](https://arxiv.org/html/2609.28809#S7.SS2.p1.1)\. - Zhuet al\.\(2025\)R\. Zhu, Z\. Wang, K\. Hua, T\. Zhang, Z\. Li, H\. Que, B\. Wei, Z\. Wen, F\. Yin, H\. Xing,et al\.Scaling latent reasoning via looped language models\.arXiv preprint arXiv:2510\.25741\.Cited by:[§1\.1](https://arxiv.org/html/2609.28809#S1.SS1.p1.1)\. ## Appendix AAdditional Tables and Results Figure 6:Effect on the ordering of the step\-functions on loss after 1000 training steps\. Random indicates that for each step we randomly choose one of the three step\-functions, and that each layer had 6 layer steps\. ## Appendix BModel configuration and training All trained models utilize the Adam\-atan2\([Everett et al\., 2024](https://arxiv.org/html/2609.28809#bib.bib9)\)optimizer they also use the tokenizer from GPT\-2\([Radford et al\., 2019](https://arxiv.org/html/2609.28809#bib.bib8)\)\. The SRM models use the Network approach for their connection function\. We use a head dimension of 64 for all attention modules\. The embedding dimension and the stream dimension are both 512\. For the streams we use GELU activation with a hidden dimension of 3072 for the MLP layer, along with 8 heads for the tokenwise attention\. We use a model depth of 8 layers, performing backpropagation through the last 4\. For training, our batch size during training is 512, and we train for a total of 10k steps, resulting in using∼5\\sim 5B training tokens\. We use a learning rate of1e−31e\-3, and a weight decay of0\.10\.1\. SRM\-med has 8 streams, uses 4 heads for the stream\-wise\-attention, and has 3 layer steps with 3 step\-functions\. Following\([Wang et al\., 2025](https://arxiv.org/html/2609.28809#bib.bib2)\), it uses 200 warm\-up steps during training\. SRM\-large has 16 streams, uses 8 heads for the stream\-wise\-attention, and has 6 layer steps with 6 step\-functions\. We used 1000 warm\-up steps during training\. SRM\-base was trained using 32 streams, 6 layer steps with 3 step\-functions, 4 stream\-wise\-attention heads, a stream dimension of 128 with 2 heads for token\-wise attention and a hidden dimension of 768 for the MLP layer\. A single post\-step is used\. We only used 100 warm\-up steps during training\. GPT\-2 was trained without any warm\-up steps using the default model configuration for GPT2LMHead provided by Huggingface’s transformers python package\. HRM was trained with an embedding dimension of 768\. For the MLP layers, we used with GELU activation with a hidden dimension of 3072\. For MHA, we used a head dimension of 64 and 12 heads\. For HRM specific parameters, the L\-net had a depth of 6 transformer blocks, while the H\-net was 4 blocks deep\. We used 3 H\-cycles and 4 L\-cycles\. During training, we used a step size of1e−41e\-4, and used 1000 warm\-up steps\. ## Appendix CSRM\-base: Experiments and Results This appendix provides detailed experimental results for the baseline SRM model \(32 streams, 128 dimensions each, ABCABC step\-group ordering\)\. ### C\.1Representational Drift \(KL Divergence\) For the baseline SRM with 128\-dimensional streams, per\-stream KL divergence between consecutive layer\-wise step\-group contributions provides a stable and interpretable measure of representational change\. This metric quantifies how much a stream’s representation changes from one layer to the next for a given step group\. Unlike the SRM\-med and SRM\-large models where KL divergence becomes numerically unstable due to higher\-dimensional streams \(512 dimensions\), the baseline model’s lower\-dimensional streams yield reliable KL measurements\. Across streams and layers, KL values show substantial variation\. Some streams exhibit consistently low divergence, indicating stable or slowly evolving representations, while others display sharp spikes at specific depths, suggesting transformation events\. Convergence analysis, defined as the earliest transition after which KL changes by less than 10% for the remainder of the forward pass, reveals three categories of behavior: early, middle, and late convergers\. Figure 7:Per\-stream KL divergence measured between consecutive layer\-wise step\-group contributions for the baseline SRM \(ordering: ABCABC\)\. Solid lines show the median KL divergence across streams; shaded regions indicate the interquartile range \(25–75%\)\. Faint trajectories correspond to individual streams\. The dashed vertical line marks the median convergence transition\. KL divergence provides a stable and interpretable measure of representational change for the baseline model\.A pronounced Layer\-4 transition spike appears across all step groups, indicating a global structural transition in the SRM’s recursive computation rather than a group\-specific effect\. Overall, the baseline results demonstrate clear functional differentiation among streams, motivating deeper analysis at larger scales\. ### C\.2Stream Ablation Mean ablation reveals a strongly right\-skewed distribution of stream importance\. Most streams are associated with small KL changes when ablated, while a small subset produces substantially larger degradation in next\-token prediction\. The most impactful stream produces a KL divergence of approximately 0\.091, while the least impactful stream produces approximately 0\.009, representing an order\-of\-magnitude difference in causal contribution\. A small group of streams \(notably streams 16, 26, 17, and 21\) form a clear high\-importance cluster, standing well above the remainder of the distribution\. A cumulative contribution analysis further highlights this hierarchy\. The top nine streams account for approximately 50% of the total causal impact, the top sixteen account for roughly 75%, and the top nineteen account for approximately 80%\. The remaining streams contribute relatively little individually, indicating diminishing marginal impact beyond the most influential subset\. 162617213302313031241118915202810829127162192541452722002⋅10−22\\cdot 10^\{\-2\}4⋅10−24\\cdot 10^\{\-2\}6⋅10−26\\cdot 10^\{\-2\}8⋅10−28\\cdot 10^\{\-2\}0\.10\.1Stream \(ranked by KL\)Ablation KLFigure 8:Per\-stream ablation impact for the SRM\-base model, ranked by KL divergence\. The top nine streams account for approximately half of the total causal impact, while all streams contribute non\-negligibly to next\-token prediction\. ### C\.3Update Alignment #### C\.3\.1Attention\-Token Alignment In the baseline SRM, cosine similarity between attention outputctc\_\{t\}and token inputxtx\_\{t\}is consistently near zero across streams and layers \(mean≈\\approx0\.067, range \-0\.070 to 0\.175\)\. Approximately 10\.5% of stream\-layer pairs exhibit negative cosine values, indicating that attention output can point in the opposite direction of token input\. 0010102020303022334455667788StreamLayer−1\-1−0\.5\-0\.5000\.50\.511Cosine similarityFigure 9:Cosine similarity between attention output and token input for the SRM\-base model\. Values cluster near zero across all layers and streams, indicating that attention\-derived updates are largely orthogonal to token inputs\.High\-impact streams identified in the ablation analysis exhibit similar behavior\. For example, Stream 16 \(highest ablation KL\) shows negative mean alignment \(\-0\.040\), while Streams 26, 17, and 21 show small positive values \(0\.024\-0\.068\)\. These results indicate that streamwise attention does not simply amplify token representations, but instead introduces directionally distinct information\. #### C\.3\.2Update\-State Alignment In the baseline SRM, cosine similarity between the RMS\-normalized combined update\(ct\+xt\)\(c\_\{t\}\+x\_\{t\}\)and the RMS\-normalized hidden stream state is strongly positive across all streams and layers\. No systematic negative alignment is observed\. Alignment values remain high and stable across recursive steps within each layer, indicating that updates are directionally consistent with the existing stream state\. Across layers, alignment exhibits clear stepwise structure corresponding to the six recursive steps per layer\. Within each layer, alignment remains consistently positive across steps\. Minor variation across streams is observed but remains bounded and does not disrupt the overall alignment pattern\. 001010202030300020204040StreamStep−1\-1−0\.5\-0\.5000\.50\.511Cosine similarityFigure 10:Cosine similarity between the combined update and the existing stream state for the SRM\-base model\. Strongly positive alignment across layers and streams indicates that updates reinforce rather than oppose current representations\. ### C\.4Routing Structure In the baseline SRM, routing activity is unevenly distributed across streams\. A subset of streams consistently exhibits higher outgoing routing frequency, routing to a broader set of target streams than others\. This pattern is stable across layers \(L0\-L7\) and attention heads, indicating that outgoing routing activity does not vary substantially with depth\. Routing events exceeding the 10% threshold are not uniformly distributed\. Instead, they are concentrated in specific source streams, while many streams rarely exceed the threshold as routing origins\. This concentration persists across layers, suggesting that the stream\-to\-stream routing structure is established early and maintained through depth\. As a reference point, under a uniform attention distribution with 32 streams, the expected attention weight assigned to any individual stream would be approximately 3\.1%\. The observed routing frequencies therefore reflect attention patterns that substantially exceed uniform allocation\. Figure 11:Stream\-to\-stream routing frequency for the SRM\-base model at a 10% attention threshold\. Rows correspond to layers and columns to attention heads\. Each cell indicates routing from source \(y\) to target \(x\)\. Patterns are dense and broadly distributed across the network\. ### C\.5Stream\-wise Logit Lens In the baseline SRM, no individual stream provides a reliable standalone predictor of the next token\. Absolute predictive performance remains weak across all streams and layers, confirming that prediction is not localized to any single stream representation\. Despite this, the logit lens reveals a strong depth\-dependent structure shared across streams\. All streams follow a similar trajectory: predictive alignment improves early, degrades sharply at mid\-layers, and then partially recovers toward later layers\. This pattern is consistent across streams, indicating that the effect is driven by layer\-wise computation rather than stream\-specific behavior\. The coordinated drop in predictive quality at mid\-depth indicates a phase where stream representations temporarily move away from the output\-aligned subspace\. This is followed by a gradual recovery in later layers\. Importantly, streams do not separate into distinct predictive trajectories during this phase\. Figure 12:Per\-stream logit lens curves \(mean\-corrected\) for SRM\-base\. Each panel shows the mean log\-probability of the correct token across layers for an individual stream\.The heatmap representation \(Figure[13](https://arxiv.org/html/2609.28809#A3.F13)\) confirms this pattern, showing the coordinated mid\-layer degradation visible across nearly all streams, followed by partial recovery at later layers\. Figure 13:Stream\-wise logit lens \(mean\-corrected\) for the SRM\-base model\. The heatmap shows the mean log\-probability of the correct token across layers for each stream\. A coordinated mid\-layer degradation is visible across nearly all streams, followed by partial recovery at later layers\. ## Appendix DSRM\-med Experiments and Results This appendix provides detailed experimental results for the SRM\-med SRM model \(8 streams, 512 dimensions each, ABC step\-group ordering\)\. ### D\.1Representational Drift \(Cosine Distance\) In the SRM\-med model, streams have 512\-dimensional representations\. When applying the baseline KL formulation to these high\-dimensional updates, KL divergence becomes numerically unstable, producing extreme spikes and NaN/Infinity values\. We therefore use cosine distance drift as the primary metric for this model\. The three step groups \(A, B, C\) exhibit systematically different drift and convergence profiles based on cosine distance\. Groups A and B show persistent non\-zero drift across most layer transitions, with all streams in both groups converging late at mean convergence of 6\.0±\\pm0\.0 layers \(median: transition 6, L6→\\rightarrowL7\)\. This indicates that representations associated with these step groups continue to change until the final layer transitions\. In contrast, Group C shows earlier stabilization for a subset of streams: specifically, 5 streams converge by transition 2 \(L2→\\rightarrowL3\), while 3 streams remain late convergers, yielding mean convergence of 3\.5±\\pm2\.1 layers \(median: transition 2\)\. Group C also exhibits larger drift magnitudes at early transitions, followed by reduced drift at later depths\. Figure 14:Per\-stream representational drift measured by cosine distance across depth for the SRM\-med model\. Colored lines denote the median across streams, with shaded regions indicating the interquartile range\. A pronounced mid\-depth transition is visible across step groups, indicating coordinated representational change\. ### D\.2Stream Ablation The SRM\-med model exhibits a similar but more compact hierarchy due to the smaller number of streams\. Ablation KL values span a dynamic range of 0\.130 to 0\.339 bits \(≈\\approx2\.6×\\times\), with a mean of 0\.224±\\pm0\.072 bits\. Streams S6, S4, and S3 form a high\-importance core, with KL divergences of 0\.339, 0\.306, and 0\.278 respectively\. Together, these top streams account for approximately 50% of the total causal impact\. A middle tier of streams \(S7, S1, S5\) contributes moderately, while S0 and S2 exhibit the lowest importance\. Notably, all streams in the SRM\-med model contribute meaningfully \(minimum KL≈\\approx0\.13\), suggesting that at this scale the architecture utilizes nearly all available stream capacity\. 64371502000\.10\.10\.20\.20\.30\.3Stream \(ranked by KL\)Ablation KLFigure 15:Per\-stream ablation impact for SRM\-med, ranked by KL divergence\. A small subset of streams accounts for a disproportionate share of causal contribution, while all streams exhibit non\-zero impact\. ### D\.3Update Alignment #### D\.3\.1Attention\-Token Alignment The SRM\-med model exhibits a similar pattern to the baseline\. Attention\-token cosine similarity remains near zero across layers \(mean 0\.056, range \-0\.022 to 0\.154\), with a slight increase in later layers \(peak≈\\approx0\.074 at layer 5\)\. The persistence of near\-orthogonal alignment at larger scale indicates that attention\-token decoupling is not an artifact of the baseline configuration but a stable architectural property\. 223344556677880011223344556677LayerStream−1\-1−0\.5\-0\.5000\.50\.511Cosine similarityFigure 16:Cosine similarity between attention outputs and token inputs for SRM\-med\. Values cluster near zero across layers and streams, indicating that attention\-derived updates are not aligned with token directions\. #### D\.3\.2Update\-State Alignment In the SRM\-med model, cosine similarity between the RMS\-normalized combined update and the RMS\-normalized hidden stream state is uniformly positive across all streams, layers, and recursive steps\. No systematic negative alignment is observed\. Alignment values remain high throughout the network\. Across recursive steps \(ABC ordering\), alignment exhibits clear stepwise structure\. Within each layer, alignment is stable and remains strongly positive across steps, with modest increases at later steps and deeper layers\. 00551010151520200011223344556677StepStream−1\-1−0\.5\-0\.5000\.50\.511Cosine similarityFigure 17:Cosine similarity between the combined update and the existing stream state for SRM\-med\. Strong positive alignment across layers indicates recursive refinement rather than overwriting of stream representations\. ### D\.4Routing Structure The SRM\-med model exhibits structured and non\-uniform stream\-to\-stream routing over a 10% attention threshold\. Routing activity is concentrated in a subset of streams that consistently act as dominant sources across layers and attention heads\. A prominent feature is strong diagonal dominance: within each head, approximately 2\-4 streams frequently route attention back to themselves at rates exceeding 50%, producing clear diagonal bands in the routing matrices\. Routing structure varies systematically by attention head\. Head H0 displays a hub\-like pattern, with one or two streams routing broadly to many targets\. Head H2 exhibits more channelized behavior, where routing is concentrated between specific stream pairs\. Head H3 shows more context\-dependent routing, with less rigid structure and greater dispersion across targets\. Figure 18:Stream\-to\-stream routing frequency for SRM\-med at a 10% attention threshold\. Routing patterns are dense and structured across layers and heads, with evidence of hub\-like streams and specialized routing structure\. ### D\.5Stream\-wise Logit Lens The SRM\-med model exhibits clear and stable stratification in stream\-level decodability\. While no individual stream is sufficient to recover the model’s prediction in isolation, a subset of streams becomes progressively more aligned with the output space as depth increases\. Early layers \(L0\-L1\) show uniformly weak decodability across all streams\. From L2 onward, streams begin to differentiate\. Several streams, most notably S6, S4, and S1, exhibit consistent and monotonic improvement through mid and late layers, while others \(S3, S5, S7\) remain weakly predictive throughout\. By the final layers \(L6\-L7\), stratification is pronounced\. Stream S6 achieves the strongest alignment with the output head \(mean log\-probability≈\\approx\-8\.5\), followed by S4 and S1\. The relative ordering of streams stabilizes in later layers\. Figure 19:Per\-stream logit lens curves for SRM\-med showing the mean log\-probability of the correct token across layers\. Streams exhibit coordinated mid\-depth degradation followed by partial recovery, with modest stream\-to\-stream variation\.The heatmap representation \(Figure[20](https://arxiv.org/html/2609.28809#A4.F20)\) provides a complementary view, showing the global mid\-layer degradation visible across nearly all streams\. Figure 20:Stream\-wise logit lens heatmap for SRM\-med showing the mean log\-probability of the correct token across layers\. A global mid\-layer degradation is visible across nearly all streams\. ## Appendix ESRM\-large Experiments and Results This appendix provides detailed experimental results for the SRM\-large model \(16 streams, 512 dimensions each, ABCDEF step\-group ordering\)\. ### E\.1Representational Drift \(Cosine Distance\) As in the SRM\-med model, KL divergence becomes numerically unstable for 512\-dimensional stream representations in the SRM\-large model\. We use cosine distance drift as the primary metric\. Across all six step groups \(A\-F\), cosine drift values increase from near zero at early transitions to moderate values at mid and late depth, indicating sustained representational change across layers\. In contrast to the SRM\-med model, no step group exhibits group\-level early stabilization across the majority of streams\. Convergence statistics reveal that late\-converging streams dominate in every step group\. Group A shows mean convergence at 4\.13±\\pm1\.63 layers with 2 early, 1 middle, and 13 late convergers\. Group B converges at 4\.25±\\pm2\.08 layers \(3 early, 2 middle, 11 late\)\. Group C converges at 4\.06±\\pm2\.11 layers \(3 early, 3 middle, 10 late\)\. Group D converges at 4\.63±\\pm2\.09 layers \(3 early, 1 middle, 12 late\)\. Group E shows the earliest mean convergence at 3\.44±\\pm1\.79 layers \(2 early, 6 middle, 8 late\)\. Group F converges at 4\.19±\\pm1\.64 layers \(1 early, 4 middle, 11 late\)\. Figure 21:Per\-stream representational drift measured by cosine distance across depth for the SRM\-large model\. Median trends and interquartile ranges reveal a pronounced mid\-depth transition, consistent with coordinated representational change at scale\. ### E\.2Stream Ablation Mean ablation in the SRM\-large model reveals hierarchical stratification with a wider dynamic range than the SRM\-med model\. Ablation KL values span 0\.013 to 0\.155 bits \(≈\\approx11\.6×\\times\)\. Streams separate into four tiers based on ablation impact\. The high\-importance tier comprises S5, S12, S3, and S6, which exhibit the largest ablation effects \(KL≈\\approx0\.12\-0\.16\)\. The middle\-high tier includes S9, S11, S7, S1, and S15, producing moderate KL increases \(≈\\approx0\.07\-0\.10\)\. The middle\-low tier contains S8, S2, S4, and S0, contributing modestly \(≈\\approx0\.05\-0\.06\)\. Finally, S10, S13, and S14 form a minimal\-impact tier, producing very small KL changes \(<<0\.03\) and indicating near\-redundant contributions\. Mean ablation KL per stream drops approximately 65% from SRM\-med to SRM\-large \(0\.224 to 0\.078 bits\), indicating that causal influence spreads across more streams even as relative differentiation increases\. 5123691171158240101314005⋅10−25\\cdot 10^\{\-2\}0\.10\.10\.150\.15Stream \(ranked by KL\)Ablation KLFigure 22:Per\-stream ablation impact for SRM\-large, ranked by KL divergence\. A highly skewed distribution indicates that a small subset of streams contributes a large fraction of causal influence\. ### E\.3Update Alignment #### E\.3\.1Attention\-Token Alignment The SRM\-large model maintains near\-zero attention\-token alignment despite increased stream count and deeper recursion\. Mean cosine similarity is 0\.064 \(range \-0\.015 to 0\.171\), with a layer\-wise peak at layer 5 \(≈\\approx0\.082\)\. The close correspondence between SRM\-med and SRM\-large values demonstrates that attention\-token orthogonality is invariant to scale and stream count\. 00551010151522334455667788StreamLayer−1\-1−0\.5\-0\.5000\.50\.511Cosine similarityFigure 23:Cosine similarity between attention outputs and token inputs for SRM\-large\. Near\-zero alignment across layers and streams indicates that attention introduces directions distinct from token embeddings\. #### E\.3\.2Update\-State Alignment In the SRM\-large model, update\-state alignment remains predominantly positive across streams and layers\. Most streams exhibit strong alignment between the combined update and the existing hidden state\. However, unlike the baseline and SRM\-med model, a distinct band of reduced or negative alignment is consistently observed for a small subset of streams across specific recursive steps\. This appears as a pronounced stripe in the heatmap, indicating updates that are directionally opposed to the current stream state\. The persistence of this pattern across depth suggests systematic behavior rather than noise\. 0010102020303040400022446688101012121414StepStream−1\-1−0\.5\-0\.5000\.50\.511Cosine similarityFigure 24:Cosine similarity between the combined update and existing stream state for SRM\-large\. Strong positive alignment indicates recursive refinement is preserved at larger scale\. ### E\.4Routing Structure The SRM\-large model exhibits sparse and highly selective stream\-to\-stream routing\. In contrast to the denser routing in the SRM\-med model, routing events above threshold are concentrated in a small number of stream pairs\. Self\-routing is reduced relative to the SRM\-med model\. Within each head, only 1\-3 streams consistently exhibit elevated self\-attention, producing weaker diagonal structure\. Routing structure is characterized by focal high\-frequency edges\. Rather than broad bands of elevated routing, the matrices show isolated, high\-intensity entries corresponding to specific source\-target stream pairs\. These focal connections persist across layers\. The increase in attention heads \(8 versus 4\) corresponds to greater diversification of routing patterns\. Individual heads specialize over narrower subsets of stream pairs\. Figure 25:Stream\-to\-stream routing frequency for SRM\-large at a 10% attention threshold\. Routing is sparse and highly selective across layers and heads, with a small number of dedicated, high\-frequency stream\-to\-stream channels\. ### E\.5Stream\-wise Logit Lens Under mean ablation, the SRM\-large model exhibits strong and rapidly emerging stream\-level decodability\. Unlike smaller models, alignment with the output space develops early and remains stable across depth\. Early layers show uniformly weak decodability at L0, followed by a sharp improvement at L1 across nearly all streams\. From L2 onward, mean log\-probabilities cluster tightly, with only modest variation between streams\. This narrow performance band persists through mid and late layers\. No stream exhibits sustained degradation or failure\. All streams follow similar trajectories: a steep initial gain, followed by gradual refinement and stabilization\. The overall ordering does not change substantially with depth\. Figure 26:Per\-stream logit lens curves for SRM\-large showing the mean log\-probability of the correct token across layers\. Despite increased model scale, streams exhibit coordinated degradation and partial recovery patterns\.The heatmap representation \(Figure[27](https://arxiv.org/html/2609.28809#A5.F27)\) confirms the pronounced mid\-layer degradation visible across nearly all streams\. Figure 27:Stream\-wise logit lens heatmap for SRM\-large showing the mean log\-probability of the correct token across layers\. A pronounced mid\-layer degradation is visible across nearly all streams\.
相似文章
生成式递归推理
本文介绍了生成式递归推理模型(GRAM),这是一个概率框架,通过支持随机潜在轨迹、多个假设以及通过深度和并行采样实现推理时缩放,扩展了递归推理模型。
更简单的微型递归模型
该论文提出了 STRM,这是一种简化的微型递归模型,采用单一状态和统一更新方式,在 Sudoku-Extreme、PPBench 和 ARC-AGI 基准测试中表现优于 TRM,同时训练速度更快。
AdaSR:基于分层相对策略优化的自适应流式推理
提出了AdaSR框架,使推理模型能够自适应地处理流式输入,以及HRPO(一种分层强化学习方法),用于优化思考分配,以实现准确性与效率的权衡。
递归语言模型
本文介绍了递归语言模型(Recursive Language Models, RLMs),这是一种推理策略,使大型语言模型(LLMs)能够通过将任意长的提示视为外部环境,并在提示片段上递归调用自身来处理这些提示。RLMs可以处理超出上下文窗口两个数量级的输入,并且在长上下文任务上以可比的成本优于基础LLMs。
递归语言模型在域外泛化
论文表明,递归语言模型通过隔离子任务、避免标准思维链所使用的捷径,并指出经典学习理论在真正推理方面的局限性,从而提高域外泛化能力。