arXiv:2611.07129stat.MLNov 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2611.07129

Bayesian Tensor Train Kernel Machines with Automatic Model Complexity Inference

Afra Kilic, Kim Batselier

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

Abstract

Tensor Network (TN) kernel machines accelerate supervised learning by using low-rank TNs to reduce computation and memory. However, most TN-based methods are deterministic with manually tuned ranks and feature dimensions, while the existing Bayesian TN kernel machine is restricted to the CANDECOMP/PARAFAC decomposition (CPD), whose single rank is shared by all modes. We extend this framework to the tensor train (TT) and propose Bayesian Tensor Train Kernel Machines (BTT-KM), whose hierarchical ARD-type priors on the TT cores infer the TT ranks and feature dimensions from data. Since each TT core is coupled to the others only through its neighbors, its closed-form posterior update requires propagating the contributions of all other cores along the chain. Mean-field variational inference yields a Bayesian alternating least squares algorithm with the same computational complexity as its deterministic counterpart and a closed-form predictive distribution. A synthetic experiment illustrates that BTT-KM recovers the true TT ranks and feature dimensions from an over-parameterized initialization.

Keywords: tensor network kernel machines, tensor train decomposition, variational inference, uncertainty quantification, automatic model selection

1 Introduction

Tensor Network (TN) kernel machines are a class of kernel methods designed for high-dimensional feature spaces and large-scale datasets. By learning directly in feature space and imposing a low-rank tensor structure on the model weights, they avoid the memory and computational cost of standard kernel methods. For a set of data samples {xn,yn}∣xn∈RD,yn∈R}n=1N\{\mathbf{x}_n, y_n\} \mid \mathbf{x}_n \in \mathbb{R}^D, y_n \in \mathbb{R}\}_{n=1}^N, TN kernel machines consider the model

yn=φ(xn)⊤w+en,(1)y_n = \varphi(\mathbf{x}_n)^\top \mathbf{w} + e_n, \tag{1}

where w\mathbf{w} denotes the model weight vector and ene_n represents measurement noise. The feature map φ(⋅):RD→RM1M2⋯MD\varphi(\cdot): \mathbb{R}^D \to \mathbb{R}^{M_1 M_2 \cdots M_D} is constrained to a Kronecker-product structure

φ(xn)=φ(1)(xn(1))⊗φ(2)(xn(2))⊗⋯⊗φ(D)(xn(D)),(2)\varphi(\mathbf{x}_n) = \varphi^{(1)}(x_n^{(1)}) \otimes \varphi^{(2)}(x_n^{(2)}) \otimes \cdots \otimes \varphi^{(D)}(x_n^{(D)}), \tag{2}

where each factor φ(d)∈RMd\varphi^{(d)} \in \mathbb{R}^{M_d} is a feature vector for dimension dd. This feature map induces the finite-dimensional kernel kM(xn,xm)=⟨φ(xn),φ(xm)⟩k_M(\mathbf{x}_n, \mathbf{x}_m) = \langle \varphi(\mathbf{x}_n), \varphi(\mathbf{x}_m) \rangle, which, depending on the

©2026 Afra Kilic and Kim Batselier.

License: CC-BY 4.0, see https://creativecommons.org/licenses/by/4.0/.

choice of basis functions, can represent the target kernel exactly, as for polynomial features (Batselier et al., 2017; Novikov et al., 2018), or approximate it, as for Gaussian kernels (Wesel and Batselier, 2021, 2024). Model (1) is therefore a primal formulation of kernel machines (Suykens et al., 2002; Wesel and Batselier, 2021, 2025): w\mathbf{w} is learned directly in feature space, avoiding the O(N2)\mathcal{O}(N^2) memory and O(N3)\mathcal{O}(N^3) cost of the dual formulation.

By exploiting the Kronecker-product structure of (2), TN kernel machines further impose a low-rank TN structure on w\mathbf{w}, so that it is never formed explicitly but represented and learned directly through its tensor components. Two common choices are the CANDECOMP/PARAFAC decomposition (CPD) (Harshman, 1970; Carroll and Chang, 1970) and the tensor train (TT) decomposition (Oseledets, 2011). Assuming M1=⋯=MD=MM_1 = \cdots = M_D = M, so that w∈RMD\mathbf{w} \in \mathbb{R}^{M^D}, both reduce the storage of w\mathbf{w} from O(MD)\mathcal{O}(M^D) to O(DMR)\mathcal{O}(DMR) for CPD and O(DMR2)\mathcal{O}(DMR^2) for TT, which is linear in DD. Both can also be trained with the alternating least squares (ALS) algorithm, at a cost of O(ND(MR)2+D(MR)3)\mathcal{O}(ND(MR)^2 + D(MR)^3) for CPD and O(ND(MR2)2+D(MR2)3)\mathcal{O}(ND(MR^2)^2 + D(MR^2)^3) for TT, which is linear in NN and DD. This makes both decompositions suitable for representing w\mathbf{w} in high-dimensional, large-scale settings, while the low-rank structure also acts as an implicit regularizer by limiting the degrees of freedom of the model. The two decompositions differ in how their components interact. In CPD, all DD factor matrices share a single rank RR. In TT, each core shares a rank only with its neighbors, so the model has D−1D-1 ranks R2,…,RDR_2, \ldots, R_D, one between each pair of consecutive cores. As a result, the model capacity in TT can differ across the ranks, so that strongly interacting modes can be given a higher rank than weakly interacting ones, instead of using one global rank for all modes.

In (Kilic and Batselier, 2025), we introduced Bayesian Tensor Network kernel machines (BTN-KM), a fully probabilistic treatment of CPD-based kernel machines. Hierarchical ARD-type priors on the factor matrices infer the tensor rank and the feature dimensions from data, and mean-field variational inference yields a Bayesian ALS algorithm with the same computational complexity as its deterministic counterpart. In this paper, we extend this framework to the TT format and propose Bayesian Tensor Train Kernel Machines (BTT-KM). This extension is not a direct translation of the CPD case. Since each TT core is coupled to the rest of the network only through its neighboring cores, deriving its closed-form posterior update requires propagating the contributions of all other cores along the chain.

We adapt the hierarchical prior to the TT structure through two sets of precision parameters. The rank precisions λd\lambda_d are shared by two consecutive cores and penalize the components of the TT rank RdR_d, while the feature precisions δd\delta_d are specific to each core and penalize the components of its feature dimension MdM_d. We derive the resulting mean-field variational posterior of all parameters and hyperparameters, show that it again leads to a Bayesian ALS algorithm with the same computational complexity as deterministic TT-ALS, and derive the corresponding closed-form predictive distribution. The resulting method automatically infers the TT ranks {Rd}d=2D\{R_d\}_{d=2}^D and feature dimensions {Md}d=1D\{M_d\}_{d=1}^D of TT kernel machines directly from data. A synthetic experiment illustrates how the penalization acts on the TT cores and recovers the true ranks and feature dimensions.

The remainder of the paper is organized as follows. Section 2 introduces the notation and TT preliminaries. Section 3 presents BTT-KM: the model and priors (Section 3.1), the variational updates and lower bound (Section 3.2), the predictive distribution (Section 3.3), and implementation details and complexity (Section 3.4). Section 4 illustrates the penalization on synthetic data, and Section 5 concludes. Proofs are in the Appendix, and code is available at https://github.com/afrakilic/BTKM.