potentialpaper

Linear approximations to HMM filtering

Andrew Mah, Joshua L. Pughe-Sanford, Sarah E Harvey, Alex H Williams

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Complex sequence models, such as transformers and state space models (SSMs), learn to represent latent belief states when trained on next-token prediction. Surprisingly, we find that in previously studied tasks, this phenomenon can also be captured by linear recurrent models. This raises a natural question: when are linear models sufficient for optimal belief state approximation? We study this question in the canonical setting of hidden Markov models (HMMs), where Bayes-optimal prediction requires nonlinear filtering. We characterize the full class of HMMs whose filtering dynamics are exactly realizable by linear recurrent neural networks (RNNs). More generally, for arbitrary HMMs, we establish a dissipation relation which shows that approximation error decays at a rate determined by intrinsic properties of the underlying HMM. We validate our theoretical results through experiments on both randomly sampled HMMs and constructed adversarial examples. Together, these findings clarify when linear sequence models suffice for optimal inference and when nonlinearity is fundamentally necessary.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]—[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:43 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

This paper studies a very interesting theoretical question: whether and when linear RNNs can approximate nonlinear filtering of an underlying HMM. The authors analyze both the exact and approximate cases, deriving interesting results leveraging log-belief representations and Hilbert-projective contraction analysis.

The main strengths of the paper are the clean formulation and relevance of the question they tackle, the conceptually useful exact and approximation results, and the links offered between the current analysis and properties such as sparsity, contraction, and filtering hardness.

The main weaknesses raised by the reviewers are (i) some proof statements and assumptions need correction and/or clarification, (ii) the restrictive assumptions made concerning normalization, positivity, dimensionality, invertibility, and related aspects, and (iii) the fact that the experiments do not directly connect next-token prediction performance and belief-state reconstruction, nor do they show the tightness of the bounds.

Overall, this paper seems to be headed toward acceptance, but only if the concerns of the reviewers are addressed in the rebuttal, in particular those related to (i). I encourage the authors to carefully go through the reviews and answer the reviewers’ questions during the rebuttal and discussion. My final acceptance recommendation will depend primarily on whether the proof-level concerns are properly resolved during this phase. In particular, I encourage the authors to take special care in answering reviewer GAgZ’s technical questions. (Concerns (ii) and (iii) should also of course be addressed as well in the rebuttal and discussion)

Final justification

The authors properly addressed the reviewers' concerns during rebuttal and discussion.

The authors must thoroughly incorporate their clarifications in the camera-ready version, in particular for reviewers GAgZ's technical questions and reviewer SUDh's comments:

  • the proof corrections, limitations and clarifications about the assumptions discussed with the reviewer must be included
  • summaries of lemmas/theorems should be replaced with formal counterparts in the main drafts
  • supporting and explanatory text should be added to improve readability and accessibility
  • the early-sequence prediction-error transient should be included
  • the text should be edited in place to avoid confounding empirically supported hypothesis/explanations with formal consequence of the current theory
Area Chair snJ7 · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

This paper studies a very interesting theoretical question: whether and when linear RNNs can approximate nonlinear filtering of an underlying HMM. The authors analyze both the exact and approximate cases, deriving interesting results leveraging log-belief representations and Hilbert-projective contraction analysis.

The main strengths of the paper are the clean formulation and relevance of the question they tackle, the conceptually useful exact and approximation results, and the links offered between the current analysis and properties such as sparsity, contraction, and filtering hardness.

The main weaknesses raised by the reviewers are (i) some proof statements and assumptions need correction and/or clarification, (ii) the restrictive assumptions made concerning normalization, positivity, dimensionality, invertibility, and related aspects, and (iii) the fact that the experiments do not directly connect next-token prediction performance and belief-state reconstruction, nor do they show the tightness of the bounds.

Overall, this paper seems to be headed toward acceptance, but only if the concerns of the reviewers are addressed in the rebuttal, in particular those related to (i). I encourage the authors to carefully go through the reviews and answer the reviewers’ questions during the rebuttal and discussion. My final acceptance recommendation will depend primarily on whether the proof-level concerns are properly resolved during this phase. In particular, I encourage the authors to take special care in answering reviewer GAgZ’s technical questions. (Concerns (ii) and (iii) should also of course be addressed as well in the rebuttal and discussion)

Final justification

The authors properly addressed the reviewers' concerns during rebuttal and discussion.

The authors must thoroughly incorporate their clarifications in the camera-ready version, in particular for reviewers GAgZ's technical questions and reviewer SUDh's comments:

  • the proof corrections, limitations and clarifications about the assumptions discussed with the reviewer must be included
  • summaries of lemmas/theorems should be replaced with formal counterparts in the main drafts
  • supporting and explanatory text should be added to improve readability and accessibility
  • the early-sequence prediction-error transient should be included
  • the text should be edited in place to avoid confounding empirically supported hypothesis/explanations with formal consequence of the current theory
Reviewer SUDhOpenReview ↗
Rating
5/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This manuscript is focused on when linear RNNs can exactly realize, or approximately track, Bayes-optimal filtering in finite-state HMMs. Theoretically, this adds a log-affine characterization of belief representations, an exact-realizability result for special transition structures, and a Hilbert projective metric analysis showing how approximation error dissipates according to HMM contraction. The experiments on Mess3, random HMMs, and clustered HMMs support the fact that linear models can be surprisingly strong when the dynamics are sufficient contractive.

Strengths and weaknesses

It is an interesting and timely question to ask that if transformer/RNN representations in HMM tasks resemble belief states, it is important to understand how much of that behavior is already available to linear recurrent dynamics.

In my opinion this work presents a mathematical lens on this especially through log-belief coordinates and the use of Hilbert projective distance. The exact and approx results are useful coceptually speaking, and the experiments are well aligned with the theoretical underpinnings.

The transition matrix orientation appears potentially inconsistent: the paper defines Tij=P(xt+1=i∣xt=j)T_{ij} = P(x_{t+1}=i | x_t=j), suggesting column-stochastic dynamics, but the experiments describe sampling rows from Dirichlet distributions instead of columns. I personally found the relationship between the exact solution theorem and the earlier Schur-stability assumption for FF unclear, especially for permutation matrices. These are mainly notational nits but worth to consider to improve readability and theory clarity.

The approx theory is compelling, but the empirical section could do more to connect the actual trained models to the theoretical quantities fr instance reporting the learned model mismatch term, local contraction along trajectories, or bound looseness would help bridge theory to experiments and viceversa. The clustered HMM exception is interesting, but it also shows that cTc_T and cEc_E are partly worst-case heuristics. Please make that caveat made more prominent.

This is a solid contribution with significant originality and a nice motivating connection to mech-interp and seq-modeling. I lean positive, but my score would increase if the authors clarify the theorem assumptions/conventions and strengthen the empirical validation of the bound terms.

Questions
  • Please clarify the stochastic convention for T throughout the theory and experiments. Is T column-stochastic as defined, or are rows sampled/used in implementation?

  • Can the authors report how tight the Hilbert/Birkhoff-based bounds are empirically, or at least compare worst-case cTc_T to local contraction rates along sampled trajectories?

  • In the clustered HMM setting, can the authors more explicitly characterize why linear RNNs improve again at complete cluster separation? This seems important because it qualifies the interpretation of cT,cEc_T, c_E goes to 1.

  • How should the exact-realizability theorem be reconciled with the stated Schur-stability assumption on the RNN recurrence matrix F, especially when T is a permutation matrix?

Limitations

The paper does acknowledge limitations of the Hilbert metric and the looseness of worst-case contraction bounds. I'd recommend adding that the proposed contraction coefficients are not complete predictors of difficulty, especially for structured HMMs where effective lower-dimensional filtering is prone to potentially occur.

Final justification

The rebuttal addressed my main concerns. The authors clarified the stochastic convention, explained the Schur-stability issue for permutation transitions, added evidence on the looseness of the contraction bound, and gave a plausible account of the clustered-HMM behavior. The proof corrections raised in the discussion are substantive, but the authors acknowledged them clearly and revised the claims accordingly. Some limitations remain, especially the worst-case nature of the contraction analysis and the need to verify the revised proofs carefully. Overall, the response resolved the issues that kept me moved me to a 5, so I support acceptance.

Formatting concerns

N/A

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal
  1. We thank the reviewer for pointing out the inconsistent notation. Previously, the theory section used a column-stochastic convention, while the experimental section used a row-stochastic convection. We have updated the text to use the column-stochastic convention consistently throughout. In the experiment, both TT and EE are constructed using columns sampled i.i.d. from a Dirichlet distribution.

  2. Birkhoff contraction bounds are global-worst-case bounds and are therefore conservative along typical trajectories. Over the collection of randomly generated HMMs used in the paper, we computed the time-averaged contraction rate realized over the forward filter dynamics and compared it to the Birkhoff contraction bound. The empirical contraction rates were, on average, 45% of the worst-case bound. The empirical rates were typically much smaller than cTc_T when cE≈1c_E \approx 1 and cTc_T is small, and nearly equal to cTc_T when cT≈1c_T \approx 1 and cEc_E is small. We have added a figure to the appendix comparing the empirical local contraction rates with the worst-case bound, along with text discussing the conservativeness of the theoretical guarantee.

  3. We hypothesize that, in the limit that the cliques become fully separated (corresponding to a block-diagonal TT and cT→1c_T \to 1), the linear RNN can effectively perform inference in two stages. First, it can identify which clique is generating the observed sequence. Once the generating clique has been inferred, it can perform filtering within that clique. At complete cluster separation, the first stage is transient because each sequence is generated entirely within a single clique, while our theory predicts that the second stage is comparatively easy because the within-clique transition matrices are dense. This hypothesis predicts that for complete cluster separation, prediction error should be highest early in the sequence, when the model must simultaneously infer both the generating clique and the latent state, and should become easier once the clique has been identified.

Consistent with this prediction, we find that at complete cluster separation, the model initially exhibits high prediction error (DKL≈0.7D_{\text{KL}} \approx 0.7), which subsequently decreases and stabilizes at a much lower value (DKL≈0.03D_{\text{KL}} \approx 0.03). This initial transient is also present for weakly connected cliques, but noticeably less prominent. For more strongly connected cliques, model performance is essentially constant throughout the sequence, suggesting that this transient behavior is unique to the fully separated regime. Developing further theory for this hierarchical inference process is a future direction for this work. We will include a summary of this result in the appendix as evidence of our hypothesis.

  1. We appreciate the reviewer for raising this very important point. Recurrent weights in linear RNNs are conventionally required to be Schur stable so that the hidden state remains bounded. Indeed, we prove that for permutation-TT, F=TF=T is marginally stable solution; the forward filter is realizable by a linear dynamical system, but not by a Schur stable one. A linear RNN (not constrained to be Schur stable) would be able to implement the forward filter with zero error, although its hidden state would eventually escape to infinity unless EE is specifically tuned to avoid such runaway growth. We have updated the main text to be much more precise about this. When TT is a permutation and EE is generic, we suspect a Schur-constrained RNN trained on next-token prediction to approach marginal stability from inside the unit circle over the course of training, balancing boundedness with prediction accuracy over the training data.
Reviewer SUDh · CommentOpenReview ↗

Thank you for the detailed response and for addressing each of my questions directly. The clarification that the theory and experiments now consistently use the column-stochastic convention resolves my concern about the orientation of T. The additional comparison between realized local contraction rates and the worst-case Birkhoff bound is also helpful.

The proposed two-stage interpretation of the fully separated clustered-HMM setting is plausible. The reported early-sequence prediction-error transient provides useful empirical support for this explanation. I encourage the authors to include this result in the revision and to clearly distinguish the explanation as an empirically supported hypothesis rather than a formal consequence of the current theory.

In my opinion, the rebuttal substantially addresses main concerns. Assuming that the promised clarifications and additional empirical analyses are incorporated clearly into the revised manuscript, I view the paper more positively following the discussion.

Reviewer euWEOpenReview ↗
Rating
5/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper discusses the settings in which a linear RNN can approximate a Bayesian filtering for HMMs or be an exact implementation of such. It shows such results are only possible in highly restricted transition matrices and the conditions in which such approximations behave well. The authors also include experiments based off of the standard Mess3, random and clustered HMMs to strengthen the theory.

Strengths and weaknesses

S1 the paper provides a complete, satisfying answer to the proposed main backbone of the work of "when is filtering exactly linear?". It rigorously proves it happens if and only if the transition matrix is permutation or rank-one.

S2 The paper uses dissipativity, an energy related error measurement. It nicely connects matrix sparsity to filtering accuracy.

S3 experiments validate their theory and are comprehensive and standard in the literature

W1 The math relies on the transition matrix having zeros (every state can reach every other state). HMMs will often have zeros (impossible transitions), which makes the claimed bound technically break down.

W2 The paper's main theoretical contribution is about reconstructing the hidden state ρt\rho_t. However, their experiments primarily measure next-token prediction error. In theory, a model could be predicting the next token correctly even if it fails to reconstruct ρ\rho.

Questions

Q1 How does this framework conceptually extend or limit itself when real-world HMMs have structural zeros?

Q2 How should one think about the next token prediction error vs reconstruction of belief state when it comes to the experimental setup?

Q3 The authors may wish to engage with the paper "Transformers Represent Belief State Geometry in their Residual Stream" from Shai et. al. They claim that predicting in-context convergence rates as open; Theorem 2 might be a natural complement to the belief-state framework here under the paper's assumptions.

Limitations

yes

Final justification

Thank you very much for details, I really appreciate the connection of belief states and the overall performance here and the addition of the correlation in the comment. Really interesting work. I also thank you for the addition of Shai et al., I believe there might be a natural fruitful follow up study from your study. I am keeping my current rating of accept.

Formatting concerns

N/A

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal
  1. As it stands, the current theory does not directly apply to HMMs with structural zeros. There are other contraction coefficients, such as the Dobrushin contraction coefficient, that do not require strict positivity. However, these coefficients are not ideal for this dynamical system, as they do not behave well under the Hadamard product and are sensitive to normalization. Extending our analysis to accommodate more general HMMs with structural zeros is an important direction for future work. That said, our theory does accurately predict that structural zeros (cT=1c_T=1) is a generically difficult regime for linear RNNs to filter (specifically Figure 2A and B). We have added some text to section 5.3 text to make this clearer.

  2. In experiment, we found that the log belief state can be decoded from the hidden activations with high accuracy using an affine decoder. This suggests that the RNNs learned the log-affine representation discussed in the theoretical section. This is likely, in part, because we use a softmax readout: softmax is the optimal readout of log-affine coordinates. Due to this alignment, the theoretical analysis provides a useful framework for understanding the behavior of models trained empirically on next token prediction. We cannot prove that models trained on next token prediction must reconstruct log-beliefs. But we can a posteriori observe that they often do, which makes our theoretical results quite relevant.

To more directly connect belief-state reconstruction and predictive performance, we additionally measured the KL divergence between the decoded and true belief states across and compared it with the model's next-token prediction KL-divergence, across our independently trained models. We find a strong positive correlation (Pearson’s r = 0.752, p = 4.66e-24), indicating that models with stronger belief state encoding also achieve lower next-token prediction error. We have added this additional analysis to the text.

  1. We thank the reviewer for this comment and have since added a citation to Shai et al. We agree the perspectives are complementary: Shai et al. pose the open problem of predicting how quickly a model synchronizes, in context, onto an ergodic component of the belief space. Our Theorem 2 addresses the adjacent question of how far a trained linear RNN's beliefs can stray from those of the ideal filter. Predicting the in-context convergence of a trained model would therefore involve two ingredients: the ideal synchronization rate of the forward filter, together with an allowance for representational slack of the kind Theorem 2 bounds. Combining the two perspectives is a natural direction for future work.
Reviewer euWE · CommentOpenReview ↗

Thank you very much for details, I really appreciate the connection of belief states and the overall performance here and the addition of the correlation in the comment. Really interesting work. I also thank you for the addition of Shai et al., I believe there might be a natural fruitful follow up study from your study. I am keeping my current rating of accept.

Reviewer GAgZOpenReview ↗
Rating
5/6
Confidence
2/5
Quality
3/4
Clarity
2/4
Significance
3/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper studies when Bayesian filtering in finite-state hidden Markov models (HMMs) can be represented or approximated by linear recurrent neural networks (RNNs). Since the Bayes-optimal HMM filter is non-linear, the paper asks whether linear recurrent dynamics can nevertheless track belief states, either exactly or approximately. The main theoretical contributions are as follows: a characterization suggesting that additive recurrent representations of the filter must use log-belief coordinates under certain assumptions; an exact-solvability result stating that only restricted classes of HMM transition matrices admit exact linear filtering; and an approximation analysis based on the Hilbert projective metric and Birkhoff contraction coefficients. The paper also provides experiments that empirically assess the approximation power of linear RNNs across several HMM families, and examine how this performance relates to the Birkhoff contraction coefficients and sparsity of the transition and emission matrices.

Strengths and weaknesses

This work seeks to understand when non-linear HMM filtering can be exactly or approximately represented by linear recurrent dynamics. I find the question conceptually interesting given the recent work cited in this submission here suggesting that transformers, SSMs, and recurrent models may learn belief-state-like representations from next-token prediction. The paper separates and focuses on the representational question from training dynamics, and attempts to characterize the exact and approximate limits of linear recurrent filtering.

The main strengths of the paper are as follows:

  1. The paper asks a clean and meaningful theoretical question. HMM filtering is a canonical non-linear Bayesian inference problem, and understanding when this non-linear recursion can be represented by linear recurrent dynamics is an appealing way to probe the limits of simple sequence models.
  2. The paper distinguishes exact global representation from approximate/local representation. This distinction is important: exact linear filtering is rare, but approximate filtering may still be good when beliefs remain concentrated near the stationary distribution or when there's a strict contraction.
  3. The experiments seem reasonably aligned with the theory. Rather than only benchmarking performance, the experiments test whether properties such as transition/emission sparsity and contraction coefficients correlate with approximation difficulty. The clustered HMM experiment is also useful because it shows that the proposed coefficients are not a complete characterization of difficulty.

However, I have several correctness and clarity concerns that I would like the authors to address:

  1. In Lemma 1, the proof seems to infer that certain variables can be varied independently from the existence of two distinct emission-dependent vectors. Since the input $ u_t $ is one-hot and hence ranges over finitely many values, and since the transformed variable involving $ \beta(\rho)T\rho $ may not range over an open set without additional rank/surjectivity assumptions, I do not see why the stated assumptions are sufficient to force the claimed log-affine form. The result may still be correct under stronger non-degeneracy assumptions, but the proof as written does not make these assumptions explicit enough.
  2. Regarding Theorem 1 and the role of the normalization factor $ \beta $: The theorem is stated as a characterization depending only on the transition matrix $ T $, but the equation being solved also depends on the separable normalization choice. In particular, the rank-one case seems to depend on whether β\beta is fixed or can be chosen to cancel the non-linear scale factor. For example, with constant $ \beta $, a rank-one stochastic transition matrix generally gives $ T\rho=\pi(1^\top \rho) $, and $ \log(1^\top \rho) $ is not linear in $ \log\rho $. Thus, the theorem should clarify whether $ \beta $ is fixed, optimized over, or chosen as part of the representation. Relatedly, the proof should more clearly separate necessity from sufficiency and explicitly verify the displayed form of $ F $ in the permutation and rank-one cases under the stated assumptions.
  3. Lemma 7 in the appendix appears false as stated for an arbitrary strictly positive matrix: if all rows are identical but non-uniform, the projective diameter is zero while the row-spread quantity is positive. The intended application may only require a column-stochastic or equal-column-sum matrix, but the lemma should be stated with the correct assumptions. Theorem 3 is titled as an expected-deviation result, but the proof is actually a pathwise recurrence assuming initialization at $ \pi $; if the initialization is arbitrary, an additional $ c_T^t d(\rho_0,\pi) $ term should appear. These issues may be fixable, but they affect the precision of the theoretical claims.
  4. The claims of the paper should also be interpreted carefully because several of the strongest statements rely on specific representation, normalization, positivity, dimensionality, invertibility, and readout assumptions. For example, the log-affine representation result assumes an exact smooth conjugacy and $ k=n $, and the exact linear-filtering analysis is conducted in log-belief coordinates. Moreover, next-token prediction requires a nonlinear softmax-type readout from log-belief coordinates. This is reasonable, but the paper should consistently distinguish "linear recurrent dynamics with nonlinear readout" from a fully linear sequence model.
  5. The readability of the paper could also be improved. The main text presents the central results only as “Summary of Lemma/Theorem/Proposition” statements. While formal versions are present in the appendix, the informal main-text versions are often too compressed to make the assumptions, quantifiers, and scope immediately clear. For a theory submission, clearer informal theorem statements in the main text would substantially improve readability.

A notational issue:

  • Equation 6 is potentially ambiguous. From ht=Fht−1+Guth_t= F h_{t-1} + G u_t and $h_t = \log \rho_t $, the natural expression is $\rho_t = \exp(G u_t) \odot \exp(F\log\rho_{t-1}) $. The expression exp⁡(G)ut\exp(G)u_t is equivalent only because utu_t is one-hot and exp⁡\exp is interpreted entry-wise, not as a matrix exponential. The authors should clarify this.

Overall, I think the paper asks an important and necessary theoretical question. My main concerns are about the precision of the statements and proofs rather than the conceptual direction. I lean slightly positive because these issues seem plausibly fixable, but I would like the authors to look into the proof-level questions carefully.

Questions
  1. In Lemma 1, could the authors clarify the non-degeneracy assumptions needed for the variation argument in the proof? Since utu_t is one-hot and y(ρ)=β(ρ)Tρy(\rho) = \beta(\rho)T\rho may not range over all of R++nR_{++}^{n}, it would help to explain why the stated assumptions are sufficient to force the log-affine conclusion.
  2. In Theorem 1, could the authors clarify whether the normalization β\beta is fixed in advance or may be chosen as part of the representation? Since Equation 8 depends on β(ρ)\beta(\rho), the rank-one case seems to depend on this choice.
  3. Lemma 7 seems false for an arbitrary strictly positive matrix. Is an additional assumption, such as column-stochasticity or equal column sums, intended? If so, please revise the statement and explain how this affects Theorem 3. [For example, consider matrix with all rows identical but non-uniform such as $A = \bigl( \begin{smallmatrix} 1 & 2 \\ 1 & 2 \end{smallmatrix} \bigr) $. All rows are identical but non-uniform. Then the row-spread $g_A =\log 2 > 0 $. But the projective distance between identical rows is zero, so ΔA=0\Delta_A = 0, hence cA=0c_A = 0. Therefore gA≤arctanh(cA)g_A \leq \text{arctanh}(c_A) becomes $\log 2 \leq 0 $ which is false. Maybe I missed this but the intended application is probably to column-stochastic matrices like EE.]
  4. Theorem 3 is described as an expected-deviation result, but the proof seems to give a pathwise recurrence initialized at π\pi. Can the authors clarify the exact statement, including the initialization assumption and whether an extra cTtd(ρ0,π)c_T^t d(\rho_0,\pi) term is needed for general initialization?
  5. How much of the empirical success should be attributed to the linear recurrent dynamics, and how much to the nonlinear softmax/readout layer? A clearer distinction would help interpret the claim that “linear” models suffice.

I would be happy to increase the rating if the authors can address the proof-level concerns above, especially Lemma 1 and Theorem 1, and revise the statements of Lemma 7 and Theorem 3.

Limitations

The authors do discuss some limitations, especially the looseness of Hilbert-projective bounds for one-sided KL and the worst-case nature of Birkhoff contraction. However, I think the limitations section should more explicitly discuss the dependence of the main claims on exact conjugacy, separable normalization, positivity, fixed hidden dimension (k=n), etc.

Final justification

The rebuttal has addressed my concerns and I will increase current score/rating to 5 (i.e. Accept). I strongly encourage the authors to incorporate the proof corrections as discussed above, limitations and clarifications about the assumptions, replace summaries of lemmas/theorems with formal counterparts in the main drafts, and add the supporting and explanatory text to the paper to improve readability and accessibility.

Formatting concerns

No major formatting or anonymity concerns that I noticed.

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

(Note: OpenReview's renderer took issue with some of the equations: we temporarily fixed this by placing them in plain code blocks. We apologize for the inconvenience and hope they remain easy to read.)

We are truly appreciative of the reviewers' rigor going through our appendix. The reviewer correctly identified issues with Lemma 1 and Lemma 7, and we could not be more grateful for this. Lemma 7 required only a quick fix, while Lemma 1 is indeed wrong as stated: we found counter examples for the previous claim, inspired by the reviewers feedback. We will respond to the list of weaknesses first (with the bullet point considered weakness 6), and then to the reviewers questions.

W1. Indeed, Lemma 1 is incorrect as stated. Eq 38 in the Appendix is essentially an instance of Pexider’s equation, which admits only log-affine continuous solutions when xx and yy range over a connected, open subset of Rn×RnR^n \times R^n (Aczél 1966, section 3.1.1; Radó & Baker 1987, Theorem 1). The revised appendix states the corrected lemma with these hypotheses explicit, and then constructs explicit counterexamples in the regimes where they fail. The manuscript has also been revised to discuss this topic more deeply.

A very simple counterexample is rank-one T=π1⊤T = \boldsymbol{\pi}{\bf 1}^\top. Choosing the normalization β(ρ)=1/(1⊤ρ)\beta(\boldsymbol{\rho}) = 1/({\bf 1}^\top\boldsymbol{\rho}) collapses the propagated state to a single point, β(ρ)Tρ=π\beta(\boldsymbol{\rho}) T \boldsymbol{\rho} = \boldsymbol{\pi}. The filter update $\boldsymbol{\rho}_t = (E^\top{\bf u}_t)\odot\boldsymbol{\pi}$ is a function of the current observation alone. The identity map ψ(ρ)=ρ\psi(\boldsymbol{\rho}) = \boldsymbol{\rho}, which is not log affine, is an embedding. As such, the forward filter can then be integrated with ${\bf h}_t = \boldsymbol{\rho}_t = G{\bf u}_t$, where F=0F = 0 and Gij=EjiπiG_{ij} = E_{ji}\pi_i for one-hot ut{\bf u}_t. Of course, the log-affine embedding is exact here as well.

Notably, in our linear setting, and in every counterexample we can construct, the non-log-affine embedding coexists with the log-affine one. Our numerical results confirm that, empirically, RNNs often converge to a log-like representation, when they converge to a solution that performs filtering well. On Mess3 (Appendix A), the learned weights converge to the predicted log-affine solution. Across many randomly generated HMMs, affine decoders recover log⁡ρt\log\boldsymbol{\rho}_t from trained hidden states (Table 3). Accordingly, we have revised the manuscript: we position log-coordinates as a canonical embedding, rather than a required one. Supposing a log-affine embedding, the rest of the analysis (proving that T must be rank one or permutation) remains untouched.

We thank the reviewer, again, for bringing this to our attention.

W2. We agree with the reviewer: the roles of (α,β,c)(\alpha, \beta, {\bf c}) should be positioned more clearly, and we have rewritten the relevant statements accordingly. Equations 47-50 should be read as follows: given TT and EE, we ask whether there exists a tuple (α,β,c,F^,G^)(\alpha, \beta, {\bf c}, \hat{F}, \hat{G}) satisfying Equations 47 and 48; if so, Equations 49 and 50 yield weights (F,G)(F, G) for which the RNN integrates the forward filter exactly. The normalizations and the gauge vector must be chosen as part of the solution. As the reviewer anticipates, T=π1⊤T = \boldsymbol{\pi}{\bf 1}^\top being rank-one requires a ρ\boldsymbol{\rho}-dependent normalization. One such choice is β(ρ)=1/(1⊤ρ)\beta(\boldsymbol{\rho}) = 1/({\bf 1}^\top\boldsymbol{\rho}), with α(u)=1\alpha({\bf u}) = 1 and c=π{\bf c} = \boldsymbol{\pi}. This results in F=0F = 0 and G=log⁡(diag⁡(π)E⊤)G = \log(\operatorname{diag}(\boldsymbol{\pi})E^\top). The permutation branch, by comparison, admits constant β\beta. We have added these explicit choices to the theorem, together with a short converse paragraph substituting both solution families back into the matching equation, separating necessity from sufficiency as the reviewer rightly requests.

W3. The reviewer was right, Lemma 7 was wrong as stated. In particular, old Eq 88 did not follow from old Eqs 86 and 87, since Eqs 86 and 87 used differing values of k and i. We have revised the proof; the lower bound now assumes column stochasticity explicitly, as anticipated by the reviewer.

In our previous definition of Theorem 3, we had assumed ρ0=π\boldsymbol{\rho}_0 = \boldsymbol{\pi}, such that the factor of cTtd(ρ0,π)c_T^t d(\boldsymbol{\rho}_0, \boldsymbol{\pi}) vanished. We have now restated Theorem 3 for generic initializations (making the term expected by the reviewer explicit), and renamed it “pathwise deviation of belief from stationarity”.

W4. Our primary goal was to explore in what setting a linear dynamical system could effectively embed the forward filter in its hidden activations. In this setting, there is no notion of the readout, and the situation is truly linear. It is only once we progress to the task of next token prediction that we invoke a nonlinearity, and we only do so because the softmax-than-linear readout is the analytical function of next token probabilities from log-affine belief state coordinates. We have adjusted the manuscript to better demarcate that we explore next token prediction for linear recurrent dynamics with a nonlinear readout. We also more clearly specify that linearity sufficing refers to the ability of a linear dynamical system to embed the forward filter and not to the next token prediction task.

W5. We agree with the reviewer, the summaries were too brief. We have adjusted the theorem summaries to make their scope and assumptions explicit and more clear.

W6. We state in the text already that exp⁡,log⁡\exp,\log are elementwise and that ut{\bf u}_t is one hot. However, we will restate the assumption where used in the text, as we see how it can be confusing; exp(G)exp(G) canonically means the matrix exponential.

Q1. See W1.

Q2. See W2.

Q3. See W3.

Q4. See W3.

Q5. See W4. Additionally, before next-token prediction even enters, we explore when a linear system ${\bf h}_t = F{\bf h}_{t-1} + G{\bf u}_t$ can embed the belief state ht=ψ(ρt){\bf h}_t = \boldsymbol{\psi}(\boldsymbol{\rho}_t). Success here is truly a linear property: all of the conditioning and propagation of beliefs through time is performed by the recurrent dynamics.

In the next-token prediction task, a principal role of the readout function is to decode a sufficient statistic of the next-token probabilities from the RNNs hidden state. In our setting, this sufficient statistic is the belief state. When the embedding of the belief state is nonlinear, decoding requires a nonlinear readout. We note that in the counterexample above, the identity embedding is admissible for rank-one TT. In this regime, ht{\bf h}_t embeds the belief state directly, and next-token prediction can be made using a purely linear readout. In this regard, some of the empirical networks' success is certainly attributable to the nonlinear readout: it plays the pivotal role of inverting the learned embedding, which we anticipate to be, in most cases, log-affine.

Reviewer GAgZ · CommentOpenReview ↗

Response to rebuttal

Thank you to the authors for providing clear explanations in their rebuttal. The rebuttal has addressed my concerns and I will increase current score/rating to 5 (i.e. Accept). I strongly encourage the authors to incorporate the proof corrections as discussed above, limitations and clarifications about the assumptions, replace summaries of lemmas/theorems with formal counterparts in the main drafts, and add the supporting and explanatory text to the paper to improve readability and accessibility.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…