Manuscript Offprint
arXiv:2610.40871TensorSSM: Memorizing Spatial Position in Dynamic State Space for Tensor Core Generation
ARTICLE INFO
Keywords:
Implicit Neural Representations
State Space Model
Functional Tensor Decomposition
Data Compression
ABSTRACT
High-dimensional tensors are ubiquitous in real-world applications but lead to massive storage overhead. Functional tensor decomposition addresses this by employing neural networks to map element coordinates to tensor cores, significantly reducing the parameters for data compression. However, existing functional methods typically flatten high-order tensors into 1D sequences. This folding operation causes highly overlapping local coordinate sequences and struggles to capture complex cross-mode spatial dependencies, severely limiting their expressiveness on diverse datasets. To tackle these challenges, we propose TensorSSM, a novel Implicit Neural Representation (INR) for functional decomposition method that memorizes spatial positions within a dynamic State Space Model (SSM). Specifically, TensorSSM first decomposes mode-wise coordinates into sequences spit by K-ary rule, encoding spatial tokens from coarse to fine, which effectively captures spatial variations. Furthermore, we extend the SSM's state space to explicitly map cross-mode spatial dependencies, allowing inter-mode interactions to enhance the updates of each mode. By integrating cross-mode information from previous hidden states into the current state transitions, TensorSSM effectively expands tensor representation along two dimensions: the sequence dimension for coarse-to-fine spatial tokens, and the state dimension for cross-mode memorization. This design effectively integrates spatial information into the state space and the tensor core, substantially advancing the state adaptability and enhancing the expressiveness of the data compression. Extensive experiments demonstrate that TensorSSM achieves significantly high reconstruction accuracy and storage efficiency, exhibiting robust expressiveness across diverse tensor datasets without relying on strict spatial assumptions. Our code is available online at https://github.com/szhang-cityu/TensorSSM for reproducibility.
et al., 2023; Zhang, Wang, Zhao, Guo, Zhao, Zhuang, Gu, Zhang and Yin, 2024). Consequently, developing compact representations that can precisely express and reconstruct these high-dimensional tensors using fewer parameters has emerged as an increasingly important research problem.
To tackle this challenge, conventional matrix and tensor decomposition techniques have been extensively developed to reconstruct the original high-dimensional data using a substantially reduced set of core elements (Kwon et al., 2023; Yin, Acun, Wu and Liu, 2021). By factorizing the original tensor into lower-dimensional components, these methods achieve significant data compression and parameter efficiency (Lebedev, Ganin, Rakhuba, Oseledets and Lempitsky, 2014). Despite their widespread application, however, these traditional decomposition approaches often suffer from inherent limitations. For instance, certain methods are strictly confined to matrix-level factorization, which are not suitable for multi-dimensional data analysis (Sun, Xie, Zhang and Faloutos, 2007). Furthermore, many existing techniques heavily rely on strong structural assumptions, such as the sparsity of the data (Allen, 2012; Li, Choi, Perros, Sun and Vuduc, 2017; Mørup, Hansen and Arnfred, 2008; Li, Li, Li, Rellermeyer, Chen and Li, 2020) and the low-rank properties (Malik and Becker, 2018; Zhao, Sugiyama, Yuan and Cichocki, 2019; Gong, Huang and Yan, 2024). This over-reliance on specific priors severely restricts their applicability and expressiveness when dealing with dense, complex, or irregular real-world tensors.
Corresponding authors
szhang844-c@my.cityu.edu.hk (S. Zhang); xw3128@columbia.edu (X. Wang); morin.wang@my.cityu.edu.hk (M. Wang); xianzhao@cityu.edu.hk (X. Zhao)
https://szhang-cityu.github.io/ (S. Zhang);
https://morin.wang/ (M. Wang); https://zhaoxyai.github.io/ (X. Zhao)
ORCID(s): 0009-0006-1758-6708 (S. Zhang); 0009-0009-1741-5310 (X. Wang); 0000-0002-0073-0172 (M. Wang); 0000-0003-2926-4416 (X. Zhao)
These authors contributed equally to this work.
Sheng Zhang et al.: Preprint submitted to Elsevier
Page 1 of 13

(a) Similar Mode Indices & Similar Values: Strong Local Spatial Assumption
(b). Similar Mode Indices & Not Similar Values: Limited Expressiveness of Mode Index
Figure 1: (a). Adjacent tensor entries usually have highly overlapping raw mode indices or sequences from folded mode indices, leading to the same or similar tensor core representations, which is only effective for local similar entries. (b). Entries with shared mode indices may have similar representations, but their true values may be totally different from each other.
To mitigate the reconstruction errors inherent in high-order tensors and enhance the expressiveness for a broader range of tensor-based data, functional tensor decomposition methods (Vemuri, Büchner, Niebling and Denzler, 2024; Zhou, Luo, Zhao and Meng, 2026; Wang, Zhao, Zheng, Li and Ng, 2025a; Zhang, Li, Luo, Xie and Meng, 2026b) have been proposed to learn high-quality INR as tensor cores. Departing from conventional decomposition paradigms, these approaches leverage neural networks to capture the intrinsic relational patterns among tensor entries. Specifically, the multi-dimensional coordinate indices of the tensor elements are mapped into tensor cores via learned transformation rules (Kwon et al., 2023), from which the original numerical values are subsequently recovered through tensor decomposition operations. By implicitly representing the entire tensor solely through the neural network, this paradigm achieves exceptional parameter efficiency, requiring minimal storage for model weights while simultaneously maintaining remarkably low reconstruction errors.
Despite the great success of these functional approaches, they inherently struggle with several critical limitations when applied to complex tensors with high dimensionality in each mode. Specifically, to process these data, existing INR methods directly read the coordinates as the input sequence to learn the spatial correlation (Zhang et al., 2026b; Fang, Yu, Wang, Li, Kirby and Zhe, 2024) or employ folding strategy (Kwon et al., 2023) to decompose the coordination sequence to reduce the parameter size and refine the learning of spatial positions of tensor elements. However, this paradigm introduces a major bottlenecks. Existing functions learn tensor cores from raw index sequences, which struggles to balance the reliance on strong assumption of high local spatial correlation and the expressiveness of each index. Specifically, on one hand, the folding operation inevitably
generates highly overlapping coordinate sequences for local entries within the high-order tensor as shown in Figure 1.(a). Consequently, these methods heavily rely on the strong assumption of high local spatial correlation. To mitigate the disruption caused by arbitrary folding, techniques such as the reordering operation (Kwon et al., 2023) are required to group correlated entries. Nevertheless, the effectiveness of such reordering heuristics is inherently limited and often fails to generalize across diverse and heterogeneous datasets. on the other hand, when the dimension of each mode is large, there are many entries that share the same indices in different modes as shown in Figure 1.(b), which limits the expressiveness of the index representations in the neural networks. In addition, storing the explosive spatial correlation in the limited hidden states makes it exceedingly difficult for the neural network to effectively capture and integrate them.
To address these challenges, we propose TensorSSM, a novel Implicit Neural Representation (INR) that memorizes the spatial states of tensor elements into the state space of State Space Models (SSMs) (Gu, Goel and Ré, 2021; Gu and Dao, 2023). Specifically, instead of learning from raw index sequences, we first decompose the coordinate value of each tensor entry along every mode into a spatial token sequence based on a K-ary numeral system. This hierarchical decomposition encodes the spatial relationships and variations within each mode in a coarse-to-fine manner, where higher-order digits govern broader spatial regions and lower-order digits capture fine-grained local correlations. Furthermore, since standard sequential features can only capture intra-mode numerical relationships and suffer from limited expressiveness, we inject the cross-mode spatial dependencies into the state transition in the state space by spreading the spatial information in the state transition operator, yielding a spatial-aware SSM for tensors. Through
Sheng Zhang et al.: Preprint submitted to Elsevier
Page 2 of 13 these designs, TensorSSM shifts the learning paradigm from raw index sequences to expanded index sequences for state memorization, extending the tensor learning into two dimensions: (1) the sequence dimension along the entry indices, which controls sequence variations to learn coarse-to-fine spatial discrepancies; and (2) the state dimension, which compresses and memorizes cross-mode spatial information to govern numerical updates.
Our main contributions are summarized as follows:
We propose TensorSSM, a novel INR that seamlessly integrates spatial information learning for large tensors. By expanding indices into a coarse-to-fine spatial token via K-ary decomposition, our method effectively controls spatial discrepancies and overcomes the expressiveness limitations in raw index representations.
We introduce a state space extension that compresses and memorizes spatial information from other modes into the shared state, while simultaneously controlling hidden state updates with cross-mode information, which significantly enhances the model's expressiveness based on complex spatial correlations.
- Extensive experiments on diverse real-world tensor datasets demonstrate that TensorSSM achieves superior reconstruction accuracy and parameter efficiency compared to state-of-the-art baselines, validating its robustness and generalization capabilities across heterogeneous data.
2. Preliminaries
2.1. Functional Tensor Decomposition
Tensor Decomposition. Given a tensor , where each mode contains objects, and each entry of is located by a -size tuple of indexes , denoted as . Tensor decomposition approximates each entry by a compact interaction of low-rank latent factors. Specifically, we introduce groups of latent factors , where , and each factor represents the latent embedding of the -th object in the -th mode.
The classic Canonic-Polyadic (CP) decomposition (Hitchcock, 1927) sets all modes' ranks to a single value , and approximates each entry as the product-sum of the factors: , where denotes the element-wise (Hadamard) product. Tucker decomposition (Tucker, 1966) takes one more step towards a more expressive and flexible low-rank structure. It allows us to set different factor ranks for each mode, by introducing a core tensor , known as the Tucker core. It models the entry as a weighted sum over all possible cross-rank factor multiplications: , where is the Kronecker product and is the vectorization operator. Tensor-train (TT) decomposition (Oseledets, 2011) represents the tensor by third-order tensors , called TT cores, so that each entry is approximated as a chain of the core slices: , where, for all , , is the -th slice of along the second mode, and . For simplicity, in this paper, we unify all other TT ranks (i.e., ) to a single value denoted by .
Function factorization. Function factorization refers to decomposing a complex multivariate function into a set of low-dimensional functions (Rai, 2014; Nouy, 2015). One of the most widely used method for function factorization is TT (Gorodetsky, Karaman and Marzouk, 2015; Bigoni, Engsig-Karup and Marzouk, 2016; Ballester-Ripoll, Paredes and Pajarola, 2019), which converts the function approximation into a tensor decomposition problem. TT decomposition can factorize a d-variate function by:
where each function is a univariate matrix-valued function, which takes the scalar as the input and outputs a matrix. Similarly, tucker cores can also be used to generalize the discrete factors:
where each maps the continuous index of mode to an -dimensional latent factor, extending Tucker decomposition from grid-structured data to continuous-indexed data.
2.2. Structured State Space Model (S4)
State space model (SSM). A linear state space model maps a 1-D input signal to an output through an -dimensional latent state :
where , , and . To operate on a discrete sequence , Eq. (3) is discretized by a step size via the bilinear transform, yielding the recurrent inference process:
where and . Unrolling Eq. (4) with gives an equivalent global convolution
where is the SSM convolution kernel. The model supports parallel training through (5) and linear-time recurrent inference through (4). However, materializing naively costs time and space, and a generic A fails to capture long-range dependencies.
The S4 parameterization. S4 (Gu et al., 2021) addresses both problems by imposing structure on A. First, A is initialized by the HiPPO matrix (Gu, Johnson, Timalinsa, Rudra and Ré, 2022; Gu, Dao, Ermon, Rudra and Ré, 2020), which
Sheng Zhang et al.: Preprint submitted to Elsevier
Page 3 of 13

(a) Overall Framework of TensorSSM via Functional Decomposition
(b) Coarse-to-fine Spatial Tokenization
(c) State Transition based on Cross-Mode Spatial Tokens
Figure 2: (a). Framework Overview of TensorSSM via Functional Tensor Decomposition. (b). The index of each mode is decomposed via K-ary rule and form a coarse-to-fine sequence as the spatial token. (c). The cross-mode information is spanned to the state transition operator, selectively influencing the spatial dependencies in the tensor core representations.
makes optimally memorize the history of . Second, S4 exploits the key structural result that every HiPPO matrix admits a normal plus low-rank (NPLR) decomposition
where is unitary, diagonal, and are low-rank factors. Then, the kernel is therefore computed stably in operations and space, while are the learnable parameters.
3. Method
In this section, we present the proposed TensorSSM for learning a spatial-aware INR over arbitrary tensor indices. Given an index of tensor , where is the number of tensor modes, the model outputs a scalar prediction . The method consists of three main components: (i) coarse-to-fine coordinate tokenization (Section 3.1), (ii) a spatial-aware TensorSSM with cross-stream fusion and input-dependent rank-one transitions (Section 3.2), and (iii) Tucker-based reconstruction with pairwise residuals ((Section 4.7).
3.1. Coarse-to-Fine Coordinate Tokenization
Existing INR methods leverage dense indices to generate tensor cores, limiting the expressiveness of the representations and rely heavily on the local spatial assumptions (Kwon et al., 2023). To handle tensors of arbitrary order and varying mode sizes, we avoid direct dense representations and
instead decompose each multi-dimensional index into a multi-scale sequence of tokens.
Instead of representing a coordinate densely, we expand each coordinate in a base- numeral system. We determine the number of scales required to represent the largest mode in a base- numeral system:
Then the index is is expanded to base- digits, producing a coarse-to-fine spatial token:
By the digit-wise variation structure of base- expansions, the -th position of the token stores the spatial information in the range of . Therefore, these tokens serve as medias for storing multi-scale spatial information in dynamic states.
We project these discrete identifiers into a continuous latent space via a disentangled additive composition of learnable embeddings to enhance the expressiveness of the model (Wang, Zhao, Wang, Zhang, Li, Yu, Wang, Zhou, Yin, Li, Guo and Zhao, 2025d). Formally, we define three embedding matrices: the token embedding , the axis embedding , and the scale embedding . The embedding operation acts as a row-selection operator indexed by the integer identifiers. Specifically, for an integer index and matrix , the
Sheng Zhang et al.: Preprint submitted to Elsevier
Page 4 of 13 notation denotes the -th row of , yielding a vector in . The embedded token sequence is then constructed as:
This embedding strategy preserves structural semantics, with each embedded token carrying the features of the corresponding tensor entry. These features can be expanded and used to memorize the state of cross-mode correlation patterns among tensor entries in our TensorSSM.
3.2. TensorSSM: An INR with Memory
Memory has become an increasingly functions for both machine learning models (Lin, Jiang, Suo, Wang, Zeng, Yu, Xia, Zhang, Singh, Liu, Wang, Feng, Song, Wang and Chua, 2026) and large language model agents (Zhang, Li, Zhang, Jia, Wang, Qian, Zhang, Wang, Liu and Zhao, 2026a). Existing INR methods via functional tensor decomposition employ hidden states in neural networks to learn the tensor core representations (Vemuri, Büchner and Denzler, 2026). However, the vectors of hidden states show limited expressiveness, and struggle to memorize the spatial dependencies (Gao, He, Tan, Qin, Wang and Liu, 2019). In addition, basic SSMs are developed to learn sequential dependencies instead of spatial memory (Gu et al., 2020; Sarrof, Veitsman and Hahn, 2024). Uniquely, unlike a standard 1D SSM, our model explicitly spread the influence of multiple tensor modes in to the state transition operator, with information is exchanged and memorized across modes through synchronized fusion and conditional modulation.
3.2.1. Cross-Mode Cross-Stream Fusion
While each mode is tokenized independently, modeling an INR that can memorize spatial positions for the tensor requires interactions among different modes. To enable this without disturbing the coarse-to-fine causal order inside each stream, we apply a Synchronous Cross-Stream Fusion operation at the k-th position of the token. Let
denote the token embedding of mode m at scale k after the layer normalization. The cross-mode context for mode m is aggregated from all other modes at the same scale using a message aggregation function MSG(·):
(11)
where are learnable matrices and is the hidden size of the model. The fused token, which serves as the input to the SSM stream, is given by
If , we will set under this circumstance, as there are no cross-mode information. Crucially, is an explicit function of all mode embeddings aggregated at the same scale: , which is utilized to transfer the spatial information to the transition operator. Because the fusion uses the original pre-fusion tokens synchronously, the operation is permutation equivariant with respect to mode indices. This allows the model to incorporate cross-mode spatial information in the multi-scale positional representation, which serves as the spatial correlation that can be memorized by the SSM state, enhancing the expressiveness of the INR.
3.2.2. Spatial-Aware State Transition for SSM
Existing methods including functional decomposition methods based on neural networks, struggle to capture the spatial patterns and numerical values simultaneously in the channels due to the limited expressiveness of the vector features. Beyond traditional S4 (Gu et al., 2021), we utilize the state space transition with dynamic spatial information, enabling the SSM to compress and memorize the spatial patterns in the state space.
Specifically, after cross-stream fusion, the fused token is fed into the SSM. For clarity, we write the equations for a single feature channel and omit the batch index. In the full model, the equations are applied independently over channels, and the channel with the index is denoted as . Let the continuous-time SSM be
where is the latent state, is the input projection vector, and is the readout vector.
The transition matrix is initialized with the HiPPO-LegS (Gu et al., 2020) structure and modulated by the input carrying the cross-mode spatial information through a rank-one perturbation:
where is the HiPPO base matrix, are learnable vectors, and is a scaling factor. This design introduces input-dependent selectivity while preserving the stable memory structure of HiPPO. Specifically, we use learnable and to selectively span the spatial influence to the state update operator . Therefore, the multi-scale position information and patterns from other modes can be selectively compressed into the state, enhancing the expressiveness of learning tensor entries. The values are not only learned from indices, but also from the correlation pattern among all the indices of arbitrary entries memorized in the state space, helping the SSM to no longer rely on the strong assumption of high local spatial correlation. Then, following S4, we discretize the transition operator with the continuous spatial information using the bilinear transform
Sheng Zhang et al.: Preprint submitted to Elsevier
Page 5 of 13 with step size :
The discrete-time recurrence is then
Directly forming and inverting at every step would be computationally expensive. However, since the input dependence is rank-one, we can derive an exact and efficient update using the Woodbury identity. Define
Then using the Eq. (14) we have:
The state update can be written as solving
where
By the Woodbury matrix identity,
Therefore,
This formulation is algebraically equivalent to solving the bilinearly discretized dynamic system that memorize the spatial information using the spatial-aware state transition matrix . It avoids calculating matrix inversion at every step. Once , are precomputed, each step only requires matrix-vector products and a scalar correction. Moreover, when , the transition reduces to the stable HiPPO-LegS SSM, while in other cases the relative spatial positions from other modes can be spread, compressed and memorized in the state space through the rank-one term.
3.2.3. Cross-Mode Modulation
Existing methods tend to ignore the correlation among the indices after learning a tensor core representation, which may limits the quality of the tensor core generation. Our TensorSSM learn the representation for each mode index , so beyond capturing the multi-scale spatial correlation in the state space, the tensor core may also have correlation in the space of hidden states. To further strengthen cross-mode interactions, we apply a cross-mode Feature-wise Linear Modulation (FiLM). For mode , we concatenate the representations of all other modes:
These concatenated information from other modes serve as a general modulation on the generated representation vector through a gate mechanism. The modulation factors can be derived by:
where , are learnable matrices, , are biases, and is the activation function. The modulated representation is
This allows the representation of one mode to be conditionally rescaled by the global context of all other modes.
3.3. Tucker Reconstruction and Residual Heads
Given the final INR of the -th mode , in this paper, we reconstruct the scalar tensor value using Tucker decomposition. It is noteworthy that tensor decomposition methods are flexible and the Tucker reconstruction head can also be replaced by CP, TT or MLP-based methods. The details of relative experiment can be referred to Section 4.7.
For each mode m, we project the representation into a low-dimensional factor:
where . Let be the Tucker core tensor. The Tucker prediction is
This head captures global high-order interactions among all tensor modes. Since the correlation of values and mode indices are highly complex, using the spatial-aware state space transition alone may suffer from the memory loss in the state space (Wang, Chen, Yan, Lu and Sun, 2025e). Therefore, to further improve expressiveness, we add an optional pairwise residual head to perform a fine-grained refinement on the output using the cross-mode outputs and , which deeply refine and recall the cross-mode spatial information to enhance the final outputs.
where are learnable projection matrices. Then the final prediction is
where and are scalar learnable parameters, and controls the strength of the pairwise residual.
Sheng Zhang et al.: Preprint submitted to Elsevier
Page 6 of 13
Table 1 Statistics of the datasets used in our experiments.
| Dataset | Size | Order | Density | Smoothness |
|---|---|---|---|---|
| Uber | 183×24×1,140 | 3 | 0.138 | 0.861 |
| Action | 100×570×567 | 3 | 0.393 | 0.484 |
| Air | 5,600×362×6 | 3 | 0.917 | 0.513 |
| PEMS-SF | 963×144×440 | 3 | 0.999 | 0.461 |
| Activity | 337×570×320 | 3 | 0.569 | 0.553 |
| NYC | 265×265×28×35 | 4 | 0.118 | 0.788 |
3.4. Training Objective
The model is trained by minimizing the mean squared error over tensor entries:
where is the ground-truth value of the -th tensor entry.
To prevent the model from relying on a fixed coordinate traversal order, we use permutation-based training. Following the previous work (Kwon et al., 2023), at each epoch, a random permutation over all tensor entries is sampled, and mini-batches are drawn from the permuted index sequence. This encourages the learned INR to depend only on the coordinate values and mode structure, not on the ordering in which entries are visited. During validation, the model is evaluated densely over the full tensor grid to obtain unbiased full-tensor MSE and fitness metrics.
4. Experiments
4.1. Datasets and Evaluation Metrics
We evaluate TensorSSM on six real-world tensors including urban mobility, human activity, environmental monitoring, and transportation. Uber is a tensor of pickup counts organized by date, hour, and latitude. Action is a tensor of frame-level features extracted from action videos. Air Quality is a tensor of pollutant measurements organized by hour, monitoring location, and pollutant type. PEMS-SF is a tensor of lane-usage rates organized by station, timestamp, and day. Activity is a tensor of frame-level features extracted from human-activity videos. NYC is a tensor of taxi-trip counts organized by origin, destination, day, and month.
We assess compression performance using compressed size and reconstruction Fitness. Given an input tensor and its reconstruction , Fitness is defined as
where a higher value indicates a more accurate reconstruction and a value of one indicates exact reconstruction. Compressed size is reported in bytes, with lower values indicating more compact storage, and includes the stored representation and the metadata required for reconstruction.
All metrics are computed over the complete reconstructed tensor; thus, this evaluation measures full-tensor reconstruction rather than generalization to held-out coordinates. For TensorSSM and the size-matched baselines, we select the available configuration whose compressed size is closest to that of TensorCodec and compare reconstruction Fitness. For SZ3, we instead select the operating point whose Fitness is closest to TensorCodec and compare their compressed sizes.
4.2. Baselines
We compare TensorSSM with six representative baselines covering classical tensor decomposition, error-bounded scientific data compression, and neural tensor compression methods. (1) CPD. Canonical Polyadic Decomposition approximates a tensor as a sum of rank-one components. (2) TTD. Tensor-Train Decomposition represents a high-order tensor as a sequence of compact low-rank cores. (3) TRD. Tensor-Ring Decomposition connects the decomposition cores in a cyclic structure to provide a flexible low-rank representation. (4) SZ3. SZ3 is an error-bounded scientific data compressor for which we select an operating point with Fitness closest to TensorCodec and compare their compressed sizes. (5) NeuKron. NeuKron is a neural Kronecker-based compression method that recursively models tensor entries using compact learned representations. (6) TensorCodec. TensorCodec is a neural tensor-train compression method that combines mixed-radix folding, index reordering, and recurrent generation to reconstruct tensor entries.
4.3. Implementation Details
We implement TensorSSM in PyTorch and conduct all experiments on an NVIDIA GeForce RTX 5090 GPU. Model parameters and forward computation use FP32, while full-tensor squared errors are accumulated in FP64 for stable metric reporting. All TensorSSM configurations use Tucker rank , two recurrent blocks, an expansion ratio of 2, decimal coordinate tokenization with base , cross-mode FiLM, and a pairwise interaction head of rank 2. We set for Uber, Action, and Air Quality, for PEMS-SF and Activity, and for NYC. We optimize all TensorSSM models using Adam with a learning rate of , a batch size of 65,536, and a maximum of 1,000 epochs. At each epoch, all tensor entries are randomly permuted and visited once, after which we evaluate the complete tensor using batches of 131,072 entries and retain the checkpoint with the highest Fitness. Training stops when Fitness fails to improve by at least for 30 consecutive epochs. All experiments use random seed 7. For the baselines, we control capacity using rank for CPD and TTD, a truncation threshold for TRD, an absolute error bound for SZ3, hidden width for NeuKron, and hidden size for TensorCodec. Since CPD, TTD, and TRD do not provide a direct mechanism for targeting an exact compressed size, we sweep their rank or truncation settings and report, for each dataset, the configuration whose compressed size is closest to that of TensorSSM. NeuKron and TensorCodec are selected
Sheng Zhang et al.: Preprint submitted to Elsevier
Page 7 of 13
Table 2
Comparison of compressed size and Fitness on six datasets, where CS denotes Compressed Size. For CPD, TTD, and NeuKron, we report the available configuration whose compressed size is closest to TensorSSM. For SZ3, we report the operating point whose Fitness is closest to TensorCodec. The best results are bold and the second best are underlined. Improve denotes the relative Fitness gain of TensorSSM over the strongest competing method on each dataset. "*" indicates the improvements are statistically significant (i.e., two-sided t-test with p < 0.05) over baselines).
| Dataset | Metric | CPD | TTD | NeuKron | TRD | SZ3 | TensorCodec | TensorSSM | Improve (%) |
|---|---|---|---|---|---|---|---|---|---|
| Uber | CS (bytes) | 156,368 | 153,468 | 155,154 | 157,824 | 646,537 | 153,766 | 152,720 | 2.55 |
| Fitness | 0.7289 | 0.7355 | 0.6925 | 0.6409 | 0.7382 | 0.7380 | 0.7570* | ||
| Action | CS (bytes) | 153,512 | 167,264 | 153,388 | 153,760 | 4,980,510 | 155,558 | 152,624 | 12.36 |
| Fitness | 0.7725 | 0.6767 | 0.3767 | 0.7716 | 0.7493 | 0.7542 | 0.8680* | ||
| Air | CS (bytes) | 143,256 | 148,320 | 149,891 | 158,416 | 1,592,014 | 160,999 | 152,720 | 7.34 |
| Fitness | 0.6775 | 0.6794 | 0.6580 | 0.5880 | 0.6761 | 0.6762 | 0.7293* | ||
| PEMS-SF | CS (bytes) | 43,344 | 42,460 | 46,175 | 45,472 | 1,906,220 | 46,323 | 45,648 | 0.40 |
| Fitness | 0.6027 | 0.5898 | 0.5547 | 0.5616 | 0.5991 | 0.5991 | 0.6051* | ||
| Activity | CS (bytes) | 49,120 | 46,992 | 48,201 | 50,140 | 2,125,643 | 48,365 | 45,648 | 10.77 |
| Fitness | 0.6256 | 0.5488 | 0.4291 | 0.6470 | 0.6310 | 0.6310 | 0.7167* | ||
| NYC | CS (bytes) | 47,520 | 49,392 | 47,071 | 49,536 | 530,298 | 48,067 | 47,408 | 8.05 |
| Fitness | 0.7488 | 0.6933 | 0.7086 | 0.7010 | 0.7578 | 0.7568 | 0.8188* |
analogously using their available hidden-width or hidden-size configurations. SZ3 is tuned separately to match TensorCodec Fitness, after which the two methods are compared by compressed size.
4.4. Main Results
We evaluate the reconstruction performance and compression efficiency of TensorSSM against six representative baselines across six datasets. Specifically, we compare their reconstruction Fitness and compressed size, with the results reported in Table 2. TensorSSM achieves the highest Fitness on all six datasets, with an average relative improvement of 6.91% over the strongest competing method on each dataset. The largest gains are observed on Action (12.36%) and Activity (10.77%), followed by NYC (8.05%) and Air (7.34%). Smaller improvements are observed on Uber (2.55%) and PEMS-SF (0.40%), indicating that the magnitude of the gains varies across datasets. Nevertheless, TensorSSM consistently achieves the highest reconstruction Fitness across all evaluated datasets.
Classical tensor decomposition methods exhibit substantial performance variation across datasets. CPD achieves a Fitness of 0.7725 on Action, while TTD performs best among classical methods on Air (0.6794), and TRD leads on Activity (0.6470). These differences reflect the sensitivity of low-rank decomposition methods to the underlying tensor structure. Although each factorization can efficiently represent certain patterns, its prescribed decomposition form constrains the interactions that can be captured under a limited parameter budget. In contrast, TensorSSM generates coordinate-dependent tensor-train cores through dynamic state-space modeling, with additional cross-mode interactions to enrich the learned representation. This flexibility
allows TensorSSM to achieve higher Fitness than all three classical methods across the evaluated datasets.
Among neural compression baselines, NeuKron shows relatively low Fitness on Action (0.3767) and Activity (0.4291). Its Kronecker-based representation, designed primarily for sparse and reorderable tensors, may be less suitable for the structures present in these datasets. TensorCodec provides stronger performance by using an LSTM to generate tensor-train cores from folded and reordered indices. However, TensorSSM improves its Fitness from 0.7542 to 0.8680 on Action and from 0.7568 to 0.8188 on NYC. Unlike TensorCodec, TensorSSM uses numeral-base coordinate encoding and dynamic state-space modeling, which is useful for memorizing spatial information and constructing coordinate-dependent representations. These differences provide a plausible explanation for the observed improvements, while their individual contributions are examined in the ablation study.
The improvements in reconstruction quality do not require larger compressed representations. TensorSSM achieves the smallest compressed size on Uber, Action, and Activity, and the second-smallest on NYC. On Air and PEMS-SF, its compressed size remains close to those of the size-matched baselines while achieving higher Fitness. Compared with SZ3, TensorSSM also demonstrates favorable storage efficiency at the reported operating points. For example, on NYC, TensorSSM achieves a Fitness of 0.8188 using 47,408 bytes, whereas SZ3 achieves 0.7578 using 530,298 bytes.
Overall, the results demonstrate that TensorSSM provides consistently strong reconstruction quality within a compact storage budget. Its coordinate-dependent core generation offers a flexible alternative to fixed low-rank factorizations and existing neural compression architectures.
Sheng Zhang et al.: Preprint submitted to Elsevier
Page 8 of 13

Figure 3: Training Fitness curves of TensorSSM, TensorCodec, and NeuKron on six datasets. The curves are Gaussian-smoothed. For Uber, Air, PEMS-SF, and NYC, the NeuKron curves are displayed up to the larger final epoch of TensorSSM and TensorCodec.
The contributions of its individual components are further investigated through ablation experiments.
4.5. Convergence Analysis
In this subsection, we investigate the convergence behavior of TensorSSM by comparing its reconstruction Fitness with TensorCodec and NeuKron across six datasets. Figure 3 presents the Fitness trajectories over training epochs. Dashed lines indicate last-value extensions for methods with shorter training runs and do not represent additional training results. Overall, TensorSSM achieves rapid improvements in the early training stages and maintains higher Fitness throughout most of the observed training process.
The convergence patterns vary across datasets. On Action and Activity, TensorSSM establishes a clear advantage over both baselines within the early epochs and maintains this gap as training progresses. NeuKron converges to substantially lower Fitness on these datasets, while TensorCodec exhibits a smaller but persistent gap relative to TensorSSM. A similar pattern is observed on NYC, where TensorSSM reaches a higher Fitness level and remains ahead of the competing methods. On PEMS-SF, TensorSSM and TensorCodec exhibit comparable trajectories with some fluctuations, consistent with their smaller performance difference.
These observations indicate that the reconstruction advantage of TensorSSM emerges early in training rather than relying solely on late-stage optimization. Its coarse-to-fine


Figure 4: Effect of the numeral base on the Fitness of TensorSSM on the Air and Action datasets.
coordinate representation and cross-mode-enhanced state-space modeling may contribute to learning effective representations during training. Overall, TensorSSM demonstrates favorable convergence behavior in terms of training epochs across the evaluated datasets.
4.6. Sensitivity to the Numeral Base
In this subsection, we conduct a sensitivity analysis to investigate the effect of the numeral base on the reconstruction performance of TensorSSM. Specifically, a smaller base produces a longer coarse-to-fine sequence, whereas a larger base shortens the sequence but increases the token vocabulary size. The numeral base therefore controls the trade-off between sequence length and coordinate granularity. The results are presented in Figure 4.
Action shows a clear preference for decimal tokenization. Fitness increases from 0.8240 at b = 2 to 0.8680 at b = 10, and then decreases to 0.8616 at b = 16. The decimal setting improves Fitness by 0.0440 over b = 2 and by 0.0064 over the next-best setting, b = 16. This result indicates that
Sheng Zhang et al.: Preprint submitted to Elsevier
Page 9 of 13

Figure 5: Fitness of TensorSSM on the Action dataset when replacing the Tucker factorization with CP, TT, or MLP.
provides a suitable balance for Action and supports its use as the default TensorSSM setting.
Air is less sensitive to the numeral base. Among the controlled settings, , , and achieve 0.7304, 0.7293, and 0.7327, respectively. The best observed result at is only 0.0034 above the decimal setting. This difference may be related to the imbalanced Air shape (5600, 362, 6), since the dimension of size 6 uses only a small subset of the available digits under larger bases. Thus, remains a strong default, although the optimal numeral base may vary with the tensor shape.
4.7. Compatibility with Reconstruction Heads
In this subsection, we conduct a reconstruction-head replacement study to investigate whether the effectiveness of TensorSSM depends on the original Tucker reconstruction head. Specifically, we replace the Tucker head with CP, TT, and MLP alternatives, while keeping the coordinate tokenizer, recurrent SSM encoder, cross-mode interaction modules, and training settings unchanged. The results are presented in Figure 5. The compressed sizes of all variants range from 154,110 to 154,170 bytes, ensuring an approximately size-matched comparison.
All three replacement heads achieve a Fitness above 0.85. TT and CP obtain 0.8635 and 0.8613, respectively, remaining within 0.0044 and 0.0067 of Tucker's 0.8680. The MLP head achieves 0.8509, showing that the learned representations can also support a generic neural reconstruction module, although structured tensor heads provide better reconstruction quality. These results demonstrate that TensorSSM is not tied to Tucker factorization: its coordinate representations can be reused by different reconstruction heads, while Tucker is retained as the default because it gives the best observed performance.
4.8. Component Ablation
To evaluate the contribution of each component in TensorSSM, we conduct an ablation study on the Action dataset. Specifically, we individually remove the pairwise interaction module, the SSM module, and the coarse-to-fine tokenization mechanism. We also introduce two self-only variants for FiLM conditioning and feature fusion to examine the role of cross-mode information. Here, self-only means that each module uses only features from the current tensor mode,
Table 3
Ablation results of TensorSSM on the Action dataset. Self-only FiLM and self-only fusion remove information from the other tensor modes in the corresponding modules.
| Variant | Fitness |
| Full TensorSSM | 0.8680 |
| Self-only FiLM | 0.8304 |
| Self-only Fusion | 0.8390 |
| w/o Pairwise Interaction | 0.8530 |
| w/o SSM | 0.7778 |
| w/o Coarse-to-Fine | 0.6819 |
excluding information from other modes while retaining the module itself. The results are reported in Table 3.
Table 3 shows that the full TensorSSM achieves the highest Fitness, and every ablation causes a performance drop. The largest degradation occurs when coarse-to-fine tokenization is removed: Fitness decreases from 0.8680 to 0.6819, an absolute drop of 0.1861. This variant retains the recurrent SSM but represents each raw coordinate in a single step, indicating that the hierarchical coordinate sequence is essential for learning informative multi-scale representations.
Removing the SSM reduces Fitness by 0.0902 to 0.7778, providing evidence that recurrent state propagation across coordinate scales is another major source of performance. The self-only FiLM and self-only fusion variants obtain 0.8304 and 0.8390, corresponding to drops of 0.0376 and 0.0290. Because these variants retain the corresponding modules but exclude information from the other tensor modes, their degradation directly demonstrates the value of cross-mode conditioning and feature exchange. With the FiLM module, the state memory can be enhanced by the cross-mode spatial information. Removing the pairwise interaction produces a smaller but consistent drop of 0.0150, showing that explicit pairwise modeling provides a complementary improvement.
Overall, the results identify coarse-to-fine tokenization and recurrent state modeling as the two most influential components, while FiLM, cross-mode fusion, and pairwise interaction provide additional gains. The self-only variants have the same parameter count as the full model, so their differences are not caused by reduced capacity. In contrast, removing the SSM also reduces the model size. Therefore, its 0.0902 drop reflects the combined effect of removing recurrent modeling and lowering capacity. Nevertheless, the full model consistently outperforms all simplified variants, supporting the complementary design of its components.
4.9. Comparison under Matched Hidden Size
In this subsection, we conduct a hidden-size-matched comparison to investigate whether the performance advantage of TensorSSM over TensorCodec persists under the same hidden dimension. Specifically, we align the hidden representation sizes of both models across six datasets and
Sheng Zhang et al.: Preprint submitted to Elsevier
Page 10 of 13

Figure 6: Fitness comparison between TensorSSM and Tensor-Codec under matched hidden sizes is numerically.
compare their reconstruction Fitness. The results are presented in Figure 6. TensorSSM consistently outperforms TensorCodec on all six datasets, achieving an average absolute Fitness gain of approximately 0.114. These results suggest that the improvement cannot be attributed solely to a larger hidden representation. One contributing factor may be the incorporation of cross-mode spatial information into the state-space representations, which enables TensorSSM to capture coordinate-dependent structures more effectively.
The largest improvements occur on NYC and Action, where Fitness increases from 0.634 to 0.819 and from 0.685 to 0.868, corresponding to absolute gains of 0.185 and 0.183. TensorSSM also improves Activity by 0.134, Air by 0.077, and Uber by 0.066. On PEMS-SF, the gain is smaller but remains positive, increasing Fitness from 0.564 to 0.605. The improvements across both three-way and four-way tensors show that TensorSSM can use the same nominal feature
width more effectively across datasets with different orders and dimensions.
By controlling the hidden size, we can compare the reconstruction quality and directly validate the expressiveness of TensorSSM in memorizing tensor entries. These results also support the effectiveness of combining coarse-to-fine coordinate tokenization, which serves as the essential transformation of tensor entries, so that they can be learned and compressed with in multi-scale sequences,
5. Conclusion
In this paper, we propose TensorSSM, a novel Implicit Neural Representation for functional decomposition method that memorizes spatial positions within a dynamic State Space Model To address the challenge of overlooking positional correlation among tensor entries, TensorSSM first decomposes mode-wise coordinates into sequences spit by K-ary rule, encoding spatial tokens from coarse to fine. Further more, the SSM's state space is refined to explicitly map cross-mode spatial dependencies, allowing inter-mode interactions to enhance the updates of each mode. By integrating cross-mode information in the state transition operator, TensorSSM effectively integrates spatial information into the state space and the tensor core, enhancing the expressiveness of the data compression. Extensive experiments demonstrate that TensorSSM achieves significantly high reconstruction accuracy and storage efficiency, exhibiting robustness and expressiveness across diverse tensor datasets.
Sheng Zhang et al.: Preprint submitted to Elsevier
Page 11 of 13
References
Allen, G., 2012. Sparse higher-order principal components analysis, in: Artificial intelligence and statistics, PMLR, pp. 27–36.
Ballester-Ripoll, R., Paredes, E.G., Pajarola, R., 2019. Sobol tensor trains for global sensitivity analysis. Reliability Engineering & System Safety 183, 311–322.
Bigoni, D., Engsig-Karup, A.P., Marzouk, Y.M., 2016. Spectral tensor-train decomposition. SIAM Journal on Scientific Computing 38, A2405–A2439.
Fang, S., Yu, X., Wang, Z., Li, S., Kirby, M., Zhe, S., 2024. Functional bayesian tucker decomposition for continuous-indexed tensor data, in: International Conference on Learning Representations, pp. 11069–11086.
Gao, J., He, D., Tan, X., Qin, T., Wang, L., Liu, T.Y., 2019. Representation degeneration problem in training natural language generation models. arXiv preprint arXiv:1907.12009.
Gong, W., Huang, Z., Yan, L., 2024. Enhanced low-rank and sparse tucker decomposition for image completion, in: ICASSP 2024-2024 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), IEEE. pp. 2425–2429.
Gorodetsky, A.A., Karaman, S., Marzouk, Y.M., 2015. Function-train: a continuous analogue of the tensor-train decomposition. arXiv preprint arXiv:1510.09088.
Gu, A., Dao, T., 2023. Mamba: Linear-time sequence modeling with selective state spaces. arXiv preprint arXiv:2312.00752.
Gu, A., Dao, T., Ermon, S., Rudra, A., Ré, C., 2020. Hippo: Recurrent memory with optimal polynomial projections. Advances in neural information processing systems 33, 1474–1487.
Gu, A., Goel, K., Ré, C., 2021. Efficiently modeling long sequences with structured state spaces. arXiv preprint arXiv:2111.00396.
Gu, A., Johnson, I., Timalkina, A., Rudra, A., Ré, C., 2022. How to train your hippo: State space models with generalized orthogonal basis projections. arXiv preprint arXiv:2206.12037.
Hitchcock, F.L., 1927. The expression of a tensor or a polyadic as a sum of products. Journal of Mathematics and Physics 6, 164–189.
Huang, J., Huang, T.Z., Zhao, X.L., Deng, L.J., 2020. Nonlocal tensor-based sparse hyperspectral unmixing. IEEE Transactions on Geoscience and Remote Sensing 59, 6854–6868.
Jang, J.G., Kang, U., 2021. Fast and memory-efficient tucker decomposition for answering diverse time range queries, in: Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining, pp. 725–735.
Kwon, T., Ko, J., Jung, J., Shin, K., 2023. Tensorcodec: Compact lossy compression of tensors without strong data assumptions, in: 2023 IEEE International Conference on Data Mining (ICDM), IEEE, pp. 229–238.
Lebedev, V., Ganin, Y., Rakhuba, M., Oseledets, I., Lempitsky, V., 2014. Speeding-up convolutional neural networks using fine-tuned cp-decomposition. arXiv preprint arXiv:1412.6553.
Li, H., Li, Z., Li, K., Rellermeyer, J.S., Chen, L., Li, K., 2020. Sgd_tucker: A novel stochastic optimization strategy for parallel sparse tucker decomposition. IEEE Transactions on Parallel and Distributed Systems 32, 1828–1841.
Li, J., Choi, J., Perros, I., Sun, J., Vuduc, R., 2017. Model-driven sparse cp decomposition for higher-order tensors, in: 2017 IEEE international parallel and distributed processing symposium (IPDPS), IEEE. pp. 1048–1057.
Lin, X., Jiang, Z., Suo, Z., Wang, S., Zeng, H., Yu, H., Xia, Y., Zhang, J., Singh, A., Liu, F., Wang, W., Feng, F., Song, Y., Wang, Q., Chua, T.S., 2026. Self-evolving memory for generative recommendation. URL: https://arxiv.org/abs/2609.15598, arXiv:2609.15598.
Malik, O.A., Becker, S., 2018. Low-rank tucker decomposition of large tensors using tensorsketch. Advances in neural information processing systems 31.
Mørup, M., Hansen, L.K., Arnfred, S.M., 2008. Algorithms for sparse nonnegative tucker decompositions. Neural computation 20, 2112–2131.
Nouy, A., 2015. Low-rank tensor methods for model order reduction. arXiv preprint arXiv:1511.01555.
Oseledets, I.V., 2011. Tensor-train decomposition. SIAM Journal on Scientific Computing 33, 2295–2317.
Rai, P., 2014. Sparse low rank approximation of multivariate functions—Applications in uncertainty quantification. Ph.D. thesis. Ecole Centrale de Nantes (ECN).
Sarrof, Y., Veitsman, Y., Hahn, M., 2024. The expressive capacity of state space models: A formal language perspective. Advances in Neural Information Processing Systems 37, 41202–41241.
Shu, S., Huang, T.Z., Huang, J., 2023. Dual-channel enhanced decoder network for blind hyperspectral unmixing. IEEE Geoscience and Remote Sensing Letters 21, 1–5.
Shu, S., Huang, T.Z., Huang, J., Vivone, G., 2026. Physics-guided vision transformer network with tokens complementarity for hyperspectral unmixing. IEEE Transactions on Geoscience and Remote Sensing 64, 1–21.
Sun, J., Xie, Y., Zhang, H., Faloutsos, C., 2007. Less is more: Compact matrix decomposition for large sparse graphs, in: Proceedings of the 2007 SIAM International Conference on Data Mining, SIAM, pp. 366–377.
Tucker, L.R., 1966. Some mathematical notes on three-mode factor analysis. Psychometrika 31, 279–311.
Vemuri, S.K., Büchner, T., Denzler, J., 2026. F-inr: Functional tensor decomposition for implicit neural representations, in: 2026 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), IEEE. pp. 6557–6568.
Vemuri, S.K., Büchner, T., Niebling, J., Denzler, J., 2024. Functional tensor decompositions for physics-informed neural networks, in: International Conference on Pattern Recognition, Springer, pp. 32–46.
Wang, C., Zhao, X.L., Zheng, Y.B., Li, B.Z., Ng, M.K., 2025a. Functional tensor singular value decomposition. SIAM Journal on Scientific Computing 47, A2180–A2204.
Wang, M., Xiao, Y., Wang, B., Zhang, S., Ye, S., Wang, W., Yin, H., Guo, R., Xu, Z., 2025b. Findrec: Stein-guided entropic flow for multi-modal sequential recommendation. URL: https://arxiv.org/abs/2507.04651, arXiv:2507.04651.
Wang, M., Zhang, S., Guo, R., Wang, W., Wei, X., Liu, Z., Yin, H., Chang, Y., Zhao, X., 2025c. Star-rec: Making peace with length variance and pattern diversity in sequential recommendation, in: Proceedings of the 48th international ACM SIGIR conference on research and development in information retrieval, pp. 1530–1540.
Wang, M., Zhao, X., Wang, W., Zhang, S., Li, J., Yu, B., Wang, B., Zhou, S., Yin, D., Li, Q., Guo, R., Zhao, X., 2025d. Embedding in recommender systems: A survey. URL: https://arxiv.org/abs/2310.18608, arXiv:2310.18608.
Wang, Y., Chen, Y., Yan, J., Lu, J., Sun, X., 2025e. Memmamba: Rethinking memory patterns in state space model. arXiv preprint arXiv:2510.03279
Yin, C., Acun, B., Wu, C.J., Liu, X., 2021. Tt-rec: Tensor train compression for deep learning recommendation models. Proceedings of Machine Learning and Systems 3, 448–462.
Zhang, S., Li, J., Zhang, Y., Jia, P., Wang, Y., Qian, X., Zhang, W., Wang, M., Liu, Y., Zhao, X., 2026a. Memsearch-o1: Empowering large language models with reasoning-aligned memory growth in agentic search. arXiv preprint arXiv:2604.17265.
Zhang, S., Wang, M., Wang, W., Gao, J., Zhao, X., Yang, Y., Wei, X., Liu, Z., Xu, T., 2025. Glint-ru: Gated lightweight intelligent recurrent units for sequential recommender systems, in: Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining V. 1, pp. 1948–1959.
Zhang, S., Wang, M., Zhao, X., Guo, R., Zhao, Y., Zhuang, C., Gu, J., Zhang, Z., Yin, H., 2024. Dns-rec: Data-aware neural architecture search for recommender systems, in: Proceedings of the 18th ACM conference on recommender systems, pp. 591–600.
Zhang, X., Li, Y., Luo, Y., Xie, Q., Meng, D., 2026b. Online functional tensor decomposition via continual learning for streaming data completion. Advances in Neural Information Processing Systems 38, 41790–41818.
Sheng Zhang et al.: Preprint submitted to Elsevier
Page 12 of 13
Zhao, Q., Sugiyama, M., Yuan, L., Cichocki, A., 2019. Learning efficient tensor representations with ring-structured networks, in: ICASSP 2019-2019 IEEE international conference on acoustics, speech and signal processing (ICASSP), IEEE. pp. 8608–8612.
Zhou, G., Luo, Y., Zhao, X., Meng, D., 2026. Efficient arbitrary-scale image super-resolution via functional tensor decomposition. IEEE
Transactions on Multimedia.
Zhu, Y., Ye, Y., Zhang, S., Zhao, X., Yu, J., 2023. Difftraj: Generating gps trajectory with diffusion probabilistic model. Advances in Neural Information Processing Systems 36, 65168–65188.
Sheng Zhang et al.: Preprint submitted to Elsevier
Page 13 of 13