arXiv:2610.09092cs.LGOct 2026

Manuscript Offprint

arXiv:2610.09092

MaRK: Markov-adapted Recurrent Kernels for Dynamic Operator Conditioning in State Space Models

Syed Ibrahim Omer, Ginny Y. Wong. Xiangyu Zhao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

State Space Models (SSMs) offer an efficient alternative to Transformers for sequence modeling, yet conditioning pre-trained SSMs for iterative generation typically operates outside the recurrent operator, through input injection or activation modulation. While such mechanisms expose the model to conditioning information, they leave the underlying temporal dynamics fixed. We introduce MaRK (Markov-adapted Recurrent Kernels), a dynamic operator-conditioning framework that maps context vectors directly into bounded modulations of a frozen SSM's recurrence (A), read-in (B), read-out (C), skip (D), and discretization ( Δ\Delta) parameters. Viewed through the lens of Linear Parameter-Varying systems, MaRK induces a context-indexed family of Markov parameter sequences, allowing each diffusion timestep to reshape the model's input-output memory kernel. We instantiate MaRK on a frozen 111M-parameter Hydra SSM backbone and study three adapter geometries: Hypernet, Chebyshev polynomial, and Discrete Cosine Transform kernels. Since these adapters modify the Markov parameter sequence through low-rank auxiliary maps on the frozen backbone, parameter-efficient fine-tuning arises as a structural consequence of the adaptation mechanism itself, requiring only 6.3–11M trainable auxiliary parameters to transition from a bidirectional objective to an iterative diffusion regime. The bounded recurrence parameterization further yields an analytic Affine Quadratic Stability certificate for the modulated recurrence. Through synthetic LPV recovery experiments and Markov-operator diagnostics, we show that MaRK recovers coordinate-invariant temporal operators under matched assumptions and produces distinct, stable timestep-conditioned memory profiles. Empirically, the Chebyshev variant yields the strongest performance, achieving an average validation loss of 2.55, followed by the DCT (2.59) and Hypernet (3.77) geometries. Together, these results provide initial evidence that dynamic operator modulation is a principled operator-level conditioning mechanism for adapting SSMs beyond input-stream injection and adaptive normalization.

1 Introduction

State Space Models (SSMs) have emerged as highly efficient, continuous-time alternatives to Transformers for large-scale sequence modeling [1–3]. However, adapting sequence models for conditional generation tasks (e.g., discrete diffusion) traditionally relies on post-hoc interventions [4–8]. This challenge is commonly addressed by two external conditioning paradigms: Input-Stream Injection [4] and Adaptive Layer Normalization (AdaLN) [9–11]. Input-stream injection concatenates

∗^{*}Corresponding Author: ibrahsyed2-c@my.cityu.edu.hk conditioning vectors directly into the sequence; while computationally cheap, it demands that the state-space dynamics route this context across the entire sequence length. For continuous-time SSMs, this relies on learned hidden states carrying context forward, which can dilute the prompt signal and induce temporal lag. Conversely, AdaLN dynamically modulates structural layer activations. While effective for Transformers, applied to SSMs, AdaLN operates externally to the core continuous-time sequence operator. It scales layer inputs and outputs but does not explicitly parameterize the underlying temporal dynamics (the A, B, C, and Δ\Delta matrices) as functions of the timestep context. Both paradigms condition the computation without directly parameterizing the Markov parameter sequence ( H(ct)\mathcal{H}(c_t)), the complete characterization of an SSM's input-output temporal behavior.

To bridge this gap, we introduce MaRK (Markov-adapted Recurrent Kernels), a structurally principled operator-level conditioning approach: Dynamic Operator Modulation. Rather than relying only on external activation normalization or input additions, MaRK moves the conditioning map into the temporal recurrence parameters themselves. By projecting the context vector into bounded multi-dimensional shifts of the fundamental continuous-time matrices, it dynamically modulates the internal recurrence (A), read-in (B), read-out (C), skip connections (D), and discretization steps ( Δ\Delta) of a frozen base model [12]. We apply our method to the Hydra BERT SSM model, a bi-directional extension of the Mamba model parameterized as a quasi-separable matrix mixer [13]. Through MaRK, the continuous-time matrices of the pre-trained Hydra BERT SSM depend on external conditioning signals (diffusion timesteps), allowing the system's temporal properties to vary dynamically at each step.

Because MaRK relies on bounded continuous modulations via low-rank geometries, the same design yields a parameter-efficient adaptation route in our Hydra instantiation, providing a dynamic alternative to static low-rank adaptation methods [14]. We present three kernel geometries: Hypernet, Chebyshev Polynomial, and Discrete Cosine Transform (DCT) [15] kernels, that map conditioning contexts to scalar shifts and low-rank scales. By bounding parameter modulations via hyperbolic tangent saturation and softplus constraints, MaRK admits Affine Quadratic Stability (AQS) certificates for the modulated recurrence [16]. Applied to a 23-layer Hydra SSM, our adapters use 6.3–11M trainable parameters to condition the frozen 111M base structure, turning a computationally expensive pre-training problem into a targeted fine-tuning regime [13].

We evaluate this direct conditioning approach within an iterative mask-based diffusion framework using stability certificates, synthetic operator recovery, Markov-operator diagnostics, and internal adapter ablations. MaRK specifically adapts the frozen Hydra backbone to an iterative diffusion process, employing a Context-Adaptive Token-Level Noise Rescheduling (CART) objective to provide token-level, context-aware training signal within our iterative refinement framework [8].