WorksMathematics
Factorized approximate inverse preconditioners in the tensor train format
Abstract
We present a preconditioning pipeline that accelerates Tensor Train (TT) linear solvers for symmetric positive-definite problems. Extending the Factorized Sparse Approximate Inverse framework to tensor networks, we construct a preconditioner as the product of a TT operator and its transpose. This formulation is positive semidefinite for any bond dimension and truncation, and definite whenever the factor is non-singular, satisfying the mathematical requirements of the Conjugate Gradient method. We detail the construction of this preconditioner and its integration into Density Matrix Renormalization Group (DMRG)-like linear solvers. Performance evaluations show consistent iteration reductions for anisotropic diffusion and Poisson problems across various configurations, leading to net speedups of up to 25% in ill-conditioned settings of time stepping schemes that can reuse the approximate inverses. These benchmarks were performed with the open-source Julia library DifferenTT.jl, which we also introduce in this work to provide out-of-the-box access to these preconditioned pipelines.
Introduction
Tensor networks provide compact representations of high-dimensional objects by decomposing them into low-rank factors, making it possible to control computational costs while retaining the essential structure of the underlying problem [1, 2]. Among these formats, the Tensor Train (TT) representation [3] has become a particularly useful tool for large-scale numerical modeling [4]. Introduced by the quantum physics community under the name of Matrix Product States (MPS) [5], these array chains have become one of the main tools for probing the properties of quantum systems on lattices, especially in one-dimensional settings [6, 7]. Even though more complex networks have been introduced for systems with intricate correlation structures, the ease of handling these chains and their computational efficiency make them exceptionally reliable [2].
The mathematical community later rediscovered these structures as the TT format [3], demonstrating their capabilities as a generic numerical tool for high-dimensional problems such as function interpolation [8], integration [9], and the solution of Partial Differential Equations (PDEs) [10].
A large fraction of the computational cost in these TT-based PDE solvers lies in solving the resulting large-scale linear systems . Within the context of TTs, this is typically approached either by performing a global optimization in the network manifold [11], or through alternating local updates in sweeps [12, 13, 14], analogous to the Density Matrix Renormalization Group (DMRG) algorithm [5]. In both approaches, iterative methods are frequently invoked to solve the underlying linear system [15, 16]. In particular, for symmetric positive-definite (SPD) linear systems, the Conjugate Gradient (CG) method [17, 18] is usually the solver of choice, which proceeds by minimizing the quadratic cost function
by generating a sequence of mutually -conjugate search directions.
The efficiency of the CG method, and related iterative methods, depends on the spectral properties of the operator [16]. In particular, the -norm error of the CG iterations, starting from an initial guess is bounded by
where is the error at iteration with respect to the exact solution , the -norm and the condition number of the operator. Since the operator is SPD, this quantity is simply the ratio between its largest and smallest eigenvalues. A completely clustered spectrum, such as that of a scaled identity, lets CG converge in a single iteration. Conversely, the more spread out the spectrum is, the more sensitive the iteration becomes to numerical errors, and convergence slows down significantly.
In practice, unfortunately, this condition number often scales unfavorably with the system size or grid resolution. This deterioration is typically mitigated by means of preconditioning techniques [15], which transform the linear system in order to cluster the eigenvalues and accelerate convergence. In this work, we focus on preconditioning techniques based on approximate inverses , which modify the linear system as
such that the effective condition number of the joint operator is reduced. A good preconditioner, therefore, must be a fairly accurate approximation of the exact inverse, while simultaneously remaining computationally cheap to compute and apply. Crucially, for the preconditioned CG (PCG) method, the approximate inverse must be SPD, just like .
While SPD-preserving preconditioning is mature in classical sparse linear algebra [19], not many developments have been made from the point of view of tensor networks. Efficient and exact representations of relevant operators in the TT format only exist in some very particular settings [20, 21], and approximate inversion techniques [22, 12] do not guarantee positive definiteness, which can make PCG break down.
In this work we address this issue by developing an approximate inversion pipeline for general SPD operators that satisfies PCG’s requirements by adapting the Factorized Sparse Approximate Inverse (FSAI) pipeline [23] to the TT format. Rather than approximating the inverse of the full operator directly, this approach constructs an approximate inverse of its Cholesky factor. This factorized construction preserves the SPD property required by conjugate gradient methods by design, given that the factors are non-singular. We begin by introducing TTs and TT-based linear solvers in § 2. We then show how to adapt the full FSAI pipeline to this format in § 3. By means of a projection step, we demonstrate how the construction can be obtained with an efficient tensor network representation. This approximate inverse can then be applied to TT-based solvers. We focus on DMRG-based approaches for their robustness, and discuss in Sec. 4 how to incorporate the factorized preconditioner into this pipeline in a way that keeps their properties without unnecessary costs. Finally, in order to showcase the performance of this TT-based factorized approximate inverse (TT-FAI) we evaluate it in a high-dimensional anisotropic diffusion problem and on the pressure Poisson equation of an incompressible flow solver. These methods are implemented in DifferenTT.jl [24], an open-source Julia library built on the ITensors.jl [25] ecosystem, which we introduce in this work as a workbench for solving PDEs in the TT format. These numerical experiments not only show that the preconditioner is able to reduce the required iterations, as intended, but also that its construction time can be amortized in time stepping schemes that reuse all the operators.
Tensor trains
We begin by briefly reviewing the TT format in order to establish the mathematical basis upon which the methods in this work are built. As introduced earlier, the primary motivation for tensor networks is to circumvent the curse of dimensionality when dealing with high-dimensional problems.
A generic order- tensor (containing the values of a function evaluated on an -dimensional grid, for example) whose local degree of freedom takes values, requires entries to be stored. The TT format can drastically reduce this memory footprint by expressing the components of such a high-dimensional tensor as a sequence of products
where are the physical indices and are the bond indices, of dimension , with the boundary conditions . The maximum bond dimension, , bounds the amount of correlations between each bipartition of the system. If can be represented by a bounded , then the storage cost drops to , avoiding exponential growth with .
Similarly, a high-dimensional linear operator , which in general has entries, can be factorized as a TT operator (or Matrix Product Operator, MPO). Its components are written as
where and represent the physical indices. Viewing each core as a block matrix with blocks, Eq. (5) reads , where is the strong Kronecker product [20], .
These decompositions can also be applied to one-dimensional vectors and, by extension, to the operators that act on them. By means of a binary encoding of its index, through the expansion
we can reshape a -dimensional vector into a tensor with indices of size and apply the TT decomposition. This construction, commonly known as Quantized Tensor Train (QTT) [26, 22], can provide an exponential compression, especially for problems with uncoupled scales [27].
These decompositions are most intuitively visualized using diagrammatic tensor notation (see Figure 1). In this graphical language, each tensor is represented by a shape (e.g., a circle or a square), and its indices are depicted as legs. Connected legs between two tensors imply a summation (contraction) over that shared index. The TT representation of a vector (Eq. (4)), thus, resembles a chain of tensors, each with one free physical leg, while a TT operator (Eq. (5)) has two free physical legs per site.

Figure 1. Diagrammatic representation of (a) a TT / MPS (Eq. (4)) and (b) a TT operator / MPO (Eq. (5)). The horizontal lines correspond to the contracted bond indices () bounded by the bond dimension , while vertical lines denote the free physical indices ().
Linear solvers in the TT format
Having defined the TT format, we now briefly introduce how these factorized structures can be leveraged to solve large-scale linear systems. In the context of TTs, linear solvers can be broadly categorized into two main classes.
The first class comprises global solvers, conceptually very similar to classical iterative solvers. They optimize the tensor train as a whole, leveraging implementations of general linear algebra operations in the TT format [3], to perform the iterations of classical Krylov subspace methods directly within the restricted TT manifold [28, 29, 11]. To keep memory and computational costs under control, the bond dimensions of the network are periodically truncated during the iterative process. It is worth noting that these truncation steps do introduce errors that can break the convergence guarantees of some algorithms. In particular, for the CG method, severe truncation can destroy the orthogonality between search directions, making the method fragile in practice. For this reason, TT solvers of this kind are not considered in this work.
The second prominent approach for solving linear systems is closely related to the DMRG framework, originally developed for computing the properties of quantum systems [30, 5]. Instead of optimizing the TT globally, DMRG-based solvers proceed in an alternating fashion along the network [12, 13, 14]. This is achieved by utilizing the current solution guess to project the global high-dimensional linear system into a tractable local problem, focused on a small subpart of the network (typically one or two adjacent sites). Within this constrained local subspace, one invokes a classical iterative solver. Because the local optimization is exact within the current subspace, the convergence properties of this inner solver are unaffected by truncation errors during its iterations. Once the local solve converges, the updated tensor is reinserted into the tensor network. During this step, one can perform a truncated Singular Value Decomposition (SVD) to bound the bond dimension.
This framework offers significant flexibility in how the projection and subsequent recovery of the tensor network structure are handled. For instance, projecting the problem onto multiple contiguous sites simultaneously can help avoid local minima and allows for dynamic adjustment of the bond dimension [13], while basis expansion techniques can be employed to guide the optimization [14]. For illustrative purposes, Figure 2 depicts the projection process for the two-site variant of the Alternating Linear Scheme (ALS) [13], known as Modified ALS (MALS). In the figure, the triangular sites that form the projection are isometries derived from the canonical form of the current solution guess [5]. Once the local problem is solved, the TT format is recovered by means of an SVD and the optimization proceeds onto the next pair of sites, continuing with the sweeping procedure. Crucially, as we will detail in § 4, this projection mechanism applies not only to the main operator of the linear system, but can also be used to systematically apply approximate inverses to precondition the local systems [31].

Figure 2. Projected operator and right-hand side involved in a two-site MALS pipeline where the optimization is taking place on the third and fourth sites of a TT. The dark red tensors correspond to the operator and the blue tensors to . In both of them, the gray triangles (pointing towards the orthogonality center) that form the projector correspond to the isometric tensors derived from the current solution TT. The blurred rectangular gray tensor depicts the local tensor that is being updated by the local solver to reach a local solution.
Factorized approximate inverses in the TT format
Having reviewed the necessary background on the TT format and TT-based solvers, we now return to our main focus of accelerating the CG method. As mentioned, in order to precondition this solver, we seek an SPD approximate inverse to the operator of our linear system. Operator inversion techniques were already introduced in [22, 12] for the TT format, but even though one can obtain approximate inverses with great fidelity in terms of operator norm, the SPD property is not guaranteed by construction, possibly leading to breakdowns in the CG pipeline. To illustrate this, we consider the inverse of a two-dimensional Laplacian with Dirichlet–Neumann boundary conditions in the direction and periodic boundary conditions in the direction, represented in the QTT format of § 2. Such a setting will be considered later in § 5.2. We approximate this inverse by TT operators of increasing maximum bond dimension, by means of the TT inversion method of Ref. [12] and by performing direct inversion and then converting the resulting matrix to a TT operator with a capped bond dimension. Figure 3 shows the fraction of negative eigenvalues of the symmetric part of each approximation. In both cases, truncation moves the smallest eigenvalues of the symmetric part of the inverse below zero. Truncating a TT operator controls the norm error but not the sign of its eigenvalues, and definiteness is only guaranteed once this error falls below , which corresponds to a relative accuracy of order . This tolerance gets tighter as the grid gets refined, and, accordingly, the range of bond dimensions with an indefinite operator widens. On the grids of § 5.2, where dense spectra are out of reach, the local projections of the approximate inverses computed with the TT solver (Figure 2a), whose spectra lie within the global one, are indefinite for up to 12 on the grid, and for every tested, up to 20, on the one. Direct approximate inverses are therefore unreliable for PCG, precisely when aggressive truncation is needed to keep their cost low.

Figure 3. Fraction of negative eigenvalues of the symmetric part of two TT approximate inverses of the pressure operator of § 5.2, as a function of their maximum bond dimension , on grids of , , and points (, 1024, 4096 and 16384). Solid lines: TT solution of [12]. Dashed lines: exact converted to a TT operator and truncated to bond dimension by successive SVDs. Hollow markers on the bottom level indicate no negative eigenvalue, and crosses a positive semidefinite (PSD) but numerically singular .
To enforce this property by construction in the TT format, we first turn to the theory of FSAIs, introduced by Kolotilina and Yeremin [23]. The core idea behind FSAIs is to look for the inverse not of the operator itself, but of its Cholesky factor. Since the preconditioner is built in factorized form, it is positive semidefinite by construction, and definite whenever the factor is non-singular.
We start by denoting the Cholesky decomposition of our operator and its approximate inverse as follows
With this description, is also an approximate inverse to and, in the exact case , it is lower triangular, like . The latter statement can be shown by applying column-wise forward substitution, for example. From this, we can frame the task of finding this factor as an optimization of the following cost function
whose stationary points with respect to the individual entries of satisfy
The condition reflects that the entries with respect to which we are differentiating only exist in the lower-triangular part. Since is upper triangular, the right-hand side vanishes for , so that, up to the diagonal factor , coincides with the lower triangular approximate inverse of defined by , , and the off-diagonal entries of are not needed [23]. This is a crucial property, derived from the triangular properties of these different matrices, that allows us to obtain without the need to compute the Cholesky factorization of . To do this, we proceed as follows. We first compute a matrix that satisfies
Then, we set , with the diagonal matrix chosen such that the preconditioned matrix has a unit diagonal, [23]. Since , this gives
where this choice can be shown to minimize the Kaporin number of the preconditioned matrix , which is a specific performance measure for the CG method [32]. The second equality follows from , where only contributes because is lower triangular, and where Eq. (10) sets for those entries. Eq. (11) is what makes the rescaling cheap, since only the diagonal of is needed, but it holds only if satisfies Eq. (10) exactly. We return to this point in Lemma 1, where is computed by an approximate solver.
Obtaining in the tensor train format
The solution of the linear system from (10), when working with matrices, can be decomposed into independent linear systems, one for each row, that can be solved in a massively parallel way and that fully respect the lower triangular properties of the solution. On top of this, within these linear systems, specific sparsity constraints can be trivially imposed, keeping the cost of this factor under control at the expense of approximation quality [19].
In the TT format, however, these same triangular properties cannot be imposed in such a straightforward way, since one typically works with individual pieces of a factorization instead of full matrices. In order to still end up with the desired construction, we will proceed by means of a projection step that globally modifies the linear system in order to restrict the possible solutions to the subspace of lower-triangular operators.
Construction of a triangularity mask in the TT format
We assume that the operator is given as a TT operator in which each of the sites has a local dimension of , where , and introduce the following blocks, given in terms of their entries:
where is the Heaviside step function, which is equal to one for non-negative arguments, and zero otherwise, and and denote the rows and columns, respectively. In simpler terms, this translates into being a matrix full of ones, being an identity and and being lower triangular matrices of ones, including and excluding the diagonal, respectively. We also introduce the matrix that serves as a mask for lower triangular matrices in the full space, given by
where the range is used to indicate precisely that its indices span dimensions from to . If this mask only applies to a single dimension , we will simply denote it as . The crucial property of this matrix is that it can be built from the , , and matrices as a TT operator of bond dimension 2:
The proof of this closely follows the approach taken in [20]. We first consider the following recursive relationship, in which we relate and by adding a new dimension from the left:
Alongside this, we make use of the fact that , which results in the following expansion of the identity from Eq. (16):
Applying this identity recursively to the rightmost factor gives
Identifying , the first block row is precisely Eq. (14), completing the proof.
Projection-based triangularity constraint
Now that we have a low-bond-dimension mask for lower triangular matrices, we can turn our attention back to the matrix linear system defined in Eq. (9). First, we reframe it as a regular linear system by vectorizing the matrix space, as in the matrix inversion problem presented in Ref. [12]
Here stacks the rows of its argument, so that and acts on each row of separately, as in Eq. (9). As it is, this linear system has two problems. First, it involves the Cholesky factor of our operator , which we cannot easily access in the TT format. Second, following the ALS-based pipeline of [12], we would be solving the system as a whole, and, therefore, we would not be imposing any lower-triangularity on the solution . In order to tackle both issues, we can take the mask and obtain a projector out of it in this vectorized space by first vectorizing it and then building a diagonal operator. This results in an operator that has a 1 in its diagonal if the entry belongs to the lower-triangular part and 0 otherwise. For illustrative purposes the matrix version of this process for a mask of size would look like
and Figure 4 contains the diagrammatic description of this process for sites in the TT format. Notice that the last step of this TT pipeline, which sets the vectorized in the diagonal of the expanded operator, involves simply contracting delta tensors site-wise, whose entries are equal to 1 when all the indices match in value and zero otherwise. The resulting projector, therefore, has the same low bond dimension as the starting lower-triangular mask.

Figure 4. Diagrammatic representations of the lower-triangular mask (a), its vectorized form (b), and the lower triangular mask projector (c).
Once we have the object in TT form, we can project the linear system from Eq. (19) in order for the global solution to populate the lower triangular subspace:
where denotes an identity in the vectorized space, to distinguish it from the regular identity that has the same dimensions as . Let us review what each term in this new linear system does. The first one, involving the projector twice, sets the rows and columns of that interact with the entries of the vectorized operator that live in the upper-triangular part to 0. The second term places a in the diagonal entries corresponding to those same upper-triangular entries. Finally, in the right-hand side, the projector, acting on the upper-triangular results in only its diagonal surviving. This construction, therefore, enforces the lower-triangular property on variationally through the upper-triangular entries appearing in the linear system as . This is, of course, less robust than the sparse matrix approach that guarantees the triangularity property by construction, since an approximate solver can still set those entries to non-zero values. Still, the important property that we get from this projected linear system is that in the right-hand side we recover the diagonal operator that allows us to proceed in two steps and avoid computing the Cholesky factor , as covered in the beginning of this section.
We can therefore begin by solving the following linear system
with the TT solver of choice, and then rescale the TT operator with another one given by the element-wise operation
There are two important things worth noting in this pipeline, however. First, even though the value of does not affect the exact solution of the linear system of Eq. (21), as discussed in Appendix A.§ 1, it does affect the condition number of the effective operator, given by
A value lying on the upper part of the spectrum of , therefore, will provide a large penalization to the upper-triangular entries without affecting the performance of the CG method when solving the linear system. can be estimated analytically for some particular cases or by means of a few iterations of the Krylov method of choice, for example. Second, regarding the rescaling step, Eq. (22) is the shortcut in Eq. (11), in which the energy-based scaling is replaced by the diagonal entry . In classical FSAI each row of is obtained by solving a small and dense SPD system, typically with a direct method. The replacement is then exact, and the diagonal entries are positive for any sparsity pattern that contains the main diagonal, since they are diagonal entries of inverses of SPD principal submatrices of [23 Lemma 2.1]. Here, in contrast, Eq. (21) is solved as a whole by an approximate TT solver, so neither property is inherited automatically. In the sparse setting, the same situation arises whenever the rows are not exact solutions of their restricted systems, and the shortcut is then avoided by computing the scaling from the energy of each row, , which is positive for any non-zero row [19]. In the TT format, extracting requires contracting three tensor train operators, which is an expensive operation that can require a large bond dimension, whereas is obtained with a single contraction of delta tensors (see Figure 6a). We therefore keep the cheaper Eq. (22) (see, however, the remark at the end of § 3.2), and quantify instead how far its diagonal entries can drift from the exact ones, and when they can change sign.

Figure 6. Contraction of delta tensors on to obtain (a) in order to apply the function element-wise via the RSI pipeline, and recovery of the TT operator form from the output of RSI (b).
To state when the diagonal entries of stay positive, in order for Eq. (22) to be well defined, we denote by the operator of Eq. (21), by its exact solution, and by any approximation to it, such as the output of a TT solver with a finite bond dimension and tolerance. Since acts on each row of separately, is block diagonal, with one block per row (see Appendix A). We write and for the -th rows of and , , for the energy norm of row , and
for the relative energy-norm error of row .
Lemma 1 (Positivity of the diagonal of ). Let be SPD with Cholesky factor , and let . Then, for every row :
(a) The exact diagonal is positive: , and .
(b) The computed diagonal is stable:
(c) A sign change requires losing the whole row: if , then .
Corollary 1. Let be the global relative energy-norm error. Then the rows with a non-positive diagonal entry satisfy
The proofs are given in Appendix A, together with a discussion of why sign changes are not observed in practice and of what the lemma does not guarantee.
It is worth noting, however, that even if all the entries of are positive, the subsequent steps to obtain the rescaled also introduce errors. The calculation of the element-wise operation from Eq. (22) is approximate in itself, as discussed in the following section, and truncation errors are introduced during the contraction of the TT operators representing and . Importantly, however, none of these errors and approximations can make the preconditioner indefinite, as long as the sequential application of and its transpose is performed in an exact manner.
By setting a maximum allowed bond dimension for , and the product of the two, then, this pipeline produces an approximately lower-triangular, low-rank TT approximation to . The bond dimension of the outcome thus acts as an analog to the sparsity pattern one can impose when working with sparse matrices in the classical setting. Regardless of whether admits an accurate low-rank representation, it gives us the ability to externally control the cost of storing and applying our preconditioner at the expense of preconditioning performance.
Computing the rescaling factor D in the TT format
In order to compute the rescaling factor as given by Eq. (22), we employ the Recursive Sketched Interpolation (RSI) pipeline introduced in [33], which was presented mainly for performing element-wise multiplication of TTs, but that can also accommodate other kinds of operations, such as the square root inverse that appears in Eq. (22). The core of this algorithm consists of mapping the TT to be processed onto just a subset of its sites or nodes by means of a random map. This process, known as sketching, then allows one to perform the element-wise operation on an array of manageable size. After this operation has been performed, the factorized format can be recovered by means of an interpolative decomposition, which also allows for the reconstruction of the original TT with matching indices, so that the operation can be repeated on the next subset of sites. By performing this operation throughout the network, then, one obtains the full TT that represents the processed data. Figure 5 summarizes the pipeline in diagrammatic terms. In the original formulation of RSI, however, these random sketches are sampled from a normal distribution, but the function that we want to apply only has support on positive entries. Assuming that the solver that tackled Eq. (21) converged to a meaningful result, the operator should contain only positive numbers in its diagonal, as discussed in the previous section, but the contraction of Gaussian sketches would result in an array that is not necessarily composed of positive numbers only. In order to overcome this, we have replaced the Gaussian sketches with uniformly distributed sketches, which result in a sketched array that is strictly positive, allowing us to apply the function element-wise without issues.

Figure 5. Core steps of the RSI pipeline for implementing element-wise functions of TTs. Step (a) performs a random sketch of the TT by means of a Khatri–Rao product of random matrices, depicted by the gray nodes. Then, in step (b), the desired function is applied element-wise (notice the dot after , which represents the Julia language convention for element-wise operations) on the sketched array and an interpolative decomposition is applied. This recovers the TT format on the output and lets us reconstruct the original TT in the basis defined by the output, denoted by the darker shade of blue. This allows us to repeat the process along the chain, as shown in step (c), until the whole TT has been processed.
The processing pipeline to obtain is, therefore, the following. First, a TT of is obtained by contracting deltas onto the TT operator , as shown in Figure 6a. This object is then passed to RSI in order to apply the inverse of the square root element-wise. The output TT is then contracted with deltas, this time to recover the operator form, as shown in Figure 6b. Once we have this rescaler TT operator, therefore, we can contract it onto and obtain the factor of the approximate inverse.
We note, however, that the cost argument given in § 3.1 against the energy-based scaling applies mainly to forming explicitly. RSI only accesses its input through contractions with the sketching matrices, so the input need not be available as a single, rounded TT. By keeping the object as an uncontracted composite network, the sketched matrices involved in RSI to obtain could be obtained by contracting into it the random matrices without ever forming an explicit TT operator, as shown in Figure 7, similarly to the evaluation of an expectation value, for example. The energy-based scaling could therefore be obtained without any error beyond that of RSI itself. Denoting by and the bond dimensions of and , the leading cost of building each two-site block of Figure 5c would then grow by a factor of about . Building the MPO of explicitly and without truncation would instead cost per site, and its bond dimension of would raise the cost of each block by a factor of about with respect to the direct rescaling of Eq. (22). Moreover, since is SPD, these entries are positive for every non-zero row, so this energy-based variant would make well defined regardless of the accuracy of . We nevertheless leave the exploration of this alternative for future work. On the uniform grids with constant coefficients considered here, the exact diagonal of is nearly constant, and a non-positive entry would require an error of the size of a whole row concentrated on that row, which TT solvers have no reason to produce (see Appendix A.§ 5). The energy-based variant would become relevant on strongly non-uniform grids or with strongly varying coefficients, for which this argument no longer holds (see Appendix A.§ 6).

Figure 7. First RSI sketch of kept as an uncontracted composite network. The cores of and (blue) and of (dark red) are joined site by site by delta tensors, and the random sketching matrices (gray) are contracted onto the resulting network as in Figure 5a, without ever forming the product as a TT operator.
Factorized preconditioning of DMRG-like algorithms
Now that we have an SPD approximate inverse to our operator, we can move on to using it to improve the convergence of TT linear solvers based on the CG method. In order to use the factorized preconditioner within DMRG-like algorithms, however, there is still some freedom in how the global preconditioner gets projected onto the local subspace. One could contract the two factors into a single TT operator and proceed with the alternating optimization as covered in § 2.1. That, however, would substantially increase the bond dimension of the merged object, making the use of this preconditioner very costly, and truncating this product would break the positive-definite guarantees of the factorized preconditioner, in a similar fashion to what is shown in Figure 3. The alternative approach we propose avoids these two issues by leveraging the fact that the two operators are not independent, but transposes of each other. By keeping track of just the projected factor , we can also apply locally by transposing its components. In this sense, therefore, the cost of storing and updating the operators is the same as for a regular TT operator and, as the two factors of bond dimension are applied on top of , a preconditioned local iteration costs about unpreconditioned ones. For illustrative purposes, Figure 8 showcases the contraction of the projected factorized preconditioner, composed of the projected and its transpose. It is worth noting, however, that proceeding in this way, in which one projects the factors and not the full preconditioner , introduces an intermediate that leads to a different preconditioner. In our experiments, we have not observed any qualitative differences in terms of iteration counts between this approach and the much more costly , meaning that this projection still yields a preconditioner of comparable quality that, more importantly, is also locally positive semidefinite, and definite whenever is non-singular.

Figure 8. Projected factorized preconditioner .
Numerical experiments
In this section we present the performance of TT-FAI preconditioners by analyzing their behavior in two different elliptic problems: a high-dimensional anisotropic diffusion equation and the pressure Poisson equation of a projection method for incompressible flows. The choice of second-order elliptic operators follows from three main arguments. First, their discretizations are SPD. Second, their condition number grows polynomially as , where $h is the grid spacing of the finite difference scheme of choice. Third, they are of great significance in general science and engineering, appearing in a variety of problems in electromagnetics, fluid and solid mechanics or quantitative finance.
For each of the two problems below, we benchmark the TT-FAI preconditioner on a DMRG-like MALS solver. In particular, the variant with residual-based truncation introduced in Ref. [12] has been used, as it proved more robust in meeting the prescribed residual bounds. The TT-FAI preconditioner itself is, in every case, also constructed by solving the projected linear system of Eq. (21) with the regular MALS solver of Ref. [13], as this offered the best performance in preliminary tests, given the limited bond dimension budget allowed for . The TT-FAI preconditioner is compared, in every case, against an unpreconditioned baseline and, where applicable, against the preconditioner of Ref. [21]. All solvers and preconditioners in this section are run with DifferenTT.jl [24], and the scripts and data behind every figure and table are described in the Code and data availability statement. All runs used single MareNostrum 5 NG nodes (Nvidia Grace CPU superchip), with 20 BLAS threads and one Julia thread.
As for the choice of , following the argument presented in § 3.1, instead of estimating numerically, in both experiments we set it to the bound , which follows from Gershgorin’s theorem [34 App. C.8]. For the finite difference operators on regular grids used in our benchmarks, this bound can be read directly from the stencil coefficients. For a central stencil along each axis, every row sum of is bounded by with , a bound that the boundary closures used here do not exceed. The resulting values are given in each subsection below.
High-dimensional anisotropic diffusion
In this first experiment we evaluate the performance of the TT-FAI preconditioner in the non-quantized TT format against the approximate inverse preconditioner introduced in Ref. [21]. This preconditioner targets operators in Kronecker-sum form, , where each is the SPD matrix of a one-dimensional elliptic operator acting on the -th dimension, and is given by the following expression:
The weights and nodes come from the Sinc quadrature of with step , which is accurate for . For this reason the quadrature is applied to the rescaled operator , whose spectrum lies in regardless of the scaling of the (e.g. their factor), and the result is scaled back by . Since the eigenvalues of a Kronecker sum are the sums of the eigenvalues of its terms, only requires the smallest eigenvalue of each one-dimensional . Each term of this sum is a rank-one TT operator, so has a bond dimension of at most , and since and all the factors are SPD, so is . Moreover, it can be shown that this approximate inverse converges to exponentially fast in [21].
The -dimensional discrete Laplacian is precisely of this form, and therefore constitutes the ideal setting for Eq. (26), in which a handful of quadrature terms already provide an almost exact inverse. On top of this, since the eigenvalues of a Kronecker sum are the sums of the eigenvalues of its terms, with the same grid along every dimension, does not depend on , so increasing the number of dimensions does not make the Poisson equation any harder to precondition. In order to benchmark the TT-FAI in a setting that departs from this ideal case in a controlled manner, we instead consider the anisotropic diffusion equation
where is the all-ones vector of length , so that is the matrix of ones. The resulting equicorrelated diffusion tensor has eigenvalue along the diagonal direction and , with multiplicity , on its orthogonal complement, and is SPD for . For , this describes a rotated anisotropy, with a strong diffusion along the main diagonal of the hypercube and a weak one transverse to it, which is not aligned with any of the grid axes. In two dimensions, this is the classic rotated anisotropy test case of the multigrid literature [35]. In higher dimensions, the same diffusion operator appears in problems driven by correlated Brownian motions [36].
Since , discretizing Eq. (27) with centered finite differences yields
where is the centered first difference along the -th dimension. Even though the second term couples every pair of dimensions, admits an exact MPO representation with a bond dimension of 3 for any , given by
whose entries are the one-dimensional identity , first difference and second difference matrices acting on each site. This is easily verified, for example, by means of finite automata [37]. For , it reduces to the bond dimension 2 MPO of the Laplacian [20], .
The key property of this problem is that its distance from the separable regime of Eq. (26) can be tuned through . Writing and using that for the one-dimensional matrices, one finds (see Appendix B for a step-by-step derivation) that , where is the separable operator obtained by dropping the off-diagonal part of . Here, indicates that , . Hence, for ,
The quantity acts as a floor for any preconditioner that approximates . The TT-FAI, on the other hand, is built directly from , and is therefore not bound by this floor.
In order to compare different numbers of dimensions at an equal difficulty for separable preconditioners, rather than sweeping directly, we fix the bound of Eq. (30) and invert it for
with . The case () recovers the Poisson equation, the most favorable setting for , while increasing progressively moves the problem away from it. As is only an upper bound, we also compute the discrete floor on the benchmark grid of 15 points per dimension for , in full format, from the Lanczos tridiagonal matrix associated with an exactly -preconditioned CG run [15], as this is not feasible for . The analytic bound is not attained on this coarse grid, since the modes required to reach the extreme eigenvalues of are not fully resolved, but the discrete floor still grows monotonically, from 1 for to 20.4 for .
As the right-hand side, we choose , a rank-one source that, unlike the manufactured solutions commonly used in TT benchmarks, does not add any structure of its own to the problem, so all the complexity of the solution comes from the operator. Indeed, on the same grid with , the maximum TT rank of the exact solution at a relative accuracy of grows steadily with the coupling, from 4 for to 27 for , so the solves become increasingly demanding as grows.
We compare three kinds of preconditioners against the unpreconditioned baseline. First, the preconditioner of Eq. (26) built on , which is the same for every . Second, the TT-FAI built on . And finally, as a control, the TT-FAI built on the separable but used to precondition , which is subject to the same floor as . Comparing the two variants, therefore, isolates whether the performance of the TT-FAI stems from capturing the coupling between dimensions or just from approximating . From the analysis above, is expected to be the best choice for , where it is close to exact at a negligible construction cost. As grows, its iteration count should saturate with at a level set by the floor, while the TT-FAI of can, in principle, go below it at the price of a larger bond dimension.
For the Gershgorin value of involved in the TT-FAI of , the second differences of contribute per dimension and each of the mixed terms contributes , so that
which reduces to for the TT-FAI of .
Table 1 lists the parameters of the MALS benchmark, for which we consider . Every run reaches the outer tolerance in exactly two sweeps, and every TT-FAI build reaches its residual tolerance after a single one. Tighter build tolerances did not improve the results in preliminary tests. Every configuration has been repeated 10 times, each with a different random initial guess and, for the TT-FAI, a new random sketch for , and the figures below report the median and the interquartile range over these repeats.
| Max. bond dim. | Max. sweeps | , TT-FAI of | , TT-FAI of | |
| 10 | 150 | 30 | – | |
| 20 | 300 | 50 | – |
Table 1. MALS parameters for the anisotropic diffusion benchmark, with and , with 15 grid points per dimension. The outer relative residual tolerance is , with a residual-based truncation tolerance of and a cutoff of . The local CG solver runs up to a relative tolerance of with at most 3000 iterations per local problem. The preconditioner uses , the TT-FAI of and the TT-FAI of . Both TT-FAI variants use the value given by Eq. (32) and are built with at most 10 MALS sweeps at local tolerance , 2000 maximum CG iterations and a global residual tolerance of .
Figure 9 shows the total number of local CG iterations. All the preconditioners reduce the iterations of the baseline over the whole range of , and their relative behavior follows the expectations discussed above. For every , however, the iterations of for all differ by less than 7% since it already reaches the floor with , at a bond dimension of 7, due to the coarseness of the grid. For this reason, only is shown in the figures. From the figure, we can see that as grows and the operator

Figure 9. Total iterations of the local CG solver, summed over all sites and sweeps, within MALS to solve the anisotropic diffusion problem of Eq. (27) with up to a relative residual of , as a function of the floor . Markers show the median over 10 repeats and the shaded bands the interquartile range. The curve corresponds to , since all the considered values of lie on the floor (see text).
becomes less separable, the iterations of and the TT-FAI of increase with the same trend, both subject to the same floor, whereas the TT-FAI of falls below them from () for and from () for . Since the TT-FAI of behaves like , the advantage of the TT-FAI of comes from capturing the coupling between dimensions rather than from approximating better. At , however, the TT-FAI of requires about 20% more iterations than for every . In this case the build reaches its residual tolerance of after a single sweep with a of bond dimension 6–7, below the allowed , so this TT-FAI is a coarser approximation of than at . The same gap appears for , where both TT-FAI variants coincide, which confirms that it stems from the accuracy of the TT-FAI construction and not from the coupling between dimensions.
In terms of site-by-site performance, Figure 10 shows how the local CG iterations are distributed along the TT for and for the two system sizes. For the separable case, the baseline requires around 30–45 iterations away from the boundary nodes, while all the preconditioners bring this number down to around 10. For , at the center of the chain, the TT-FAI now clearly has an advantage, with all the different bond dimension variants requiring around 20–30 iterations against the of and the TT-FAI of or the of the baseline at . At , the difference between and TT-FAI is less noticeable. Still, this confirms, as in Figure 9a, that as the problem at hand becomes less separable, the quality of the preconditioners starts to degrade and that the operator-agnostic approach of the TT-FAI is able to better capture the correlations between the different terms of .

Figure 10. Local CG iterations of MALS at each two-site block of the TT, summed over all sweeps, for the anisotropic diffusion problem with (top) and (bottom), and a relative tolerance of . Markers show the median over 10 repeats and the shaded bands the interquartile range. In all cases, the curve corresponds to .
The reduction in iterations, however, does not translate into a reduction of the solve time, for any of the preconditioners considered. Excluding their construction, the median solve time stays within 0.94–1.40 times that of the baseline for the TT-FAI of over all the values of , and , within 1.03–1.97 for the TT-FAI of and within 0.97–1.19 for , while larger values of are only slower. This follows from the cost balance of Sec. 4. Since has a bond dimension of just three (Eq. (29)), a preconditioned local iteration costs up to – unpreconditioned ones for the TT-FAI with –, and for , comparable to the iteration reductions of about 2–5 observed across the benchmark. This, alongside the increased cost given by the need to also keep track of and update the environments of the preconditioner, leads to the TT-FAIs of and , and being, on
average, 11%, 30% and 5% slower than the baseline, respectively.
On top of this, the cost of actually building the preconditioner also needs to be taken into account. For the approximate inverses, it is almost negligible, as their construction is direct from Eq. (26). For the TT-FAI, however, its construction takes a median of about half a minute to 12 minutes depending on , and , longer than the solve itself in every case. This time is mainly spent on solving Eq. (21) on the vectorized space, in which the local basis size of for the considered case makes the local iterations of the MALS sweeps very expensive. Taking this into account, therefore, and even though the results of the TT-FAI in terms of iteration reduction have been satisfactory in this setting, its use in practice is clearly limited.
Two-dimensional Chorin projection
In the previous experiment, the cost of building the TT-FAI preconditioner in a vectorized space outweighed its iteration savings. In this second experiment, we aim to tackle this issue by simulating a two-dimensional incompressible fluid in the QTT format, replicating the numerical pipeline introduced in Ref. [38]. Fluid dynamics problems have been studied in different TT settings [27, 38, 39, 40, 41, 42], but the use of preconditioners has barely been discussed. This experiment is, nonetheless, well suited for approximate inversion techniques such as the TT-FAI, as the QTT format, with a site dimension of just two, makes tackling Eq. (21) much less costly. On top of this, the Chorin projection scheme [43, 44] employed solves a Poisson problem with the same operator at every time step, and, therefore, the preconditioner can be constructed once and reused throughout the whole evolution of the fluid.
This pipeline proceeds in a two-step fashion. First, the fluid is evolved over a time step without accounting for the pressure, by integrating
from with an explicit scheme, which yields a provisional velocity field . Then, a pressure field is obtained from by imposing that satisfies the incompressibility condition , which results in the following Poisson equation for the pressure
Once a solution pressure field has been obtained, is corrected to obtain the velocity field for the next time step
Note that, regardless of the order of the integrator used for Eq. (33), this splitting is only first-order accurate in .
In order to tackle these equations, a finite difference scheme on a collocated grid is used to discretize the domain. Within this setting, the operator that enforces exactly the discrete incompressibility constraint in Eq. (34) is not the compact Laplacian operator, but the product of the discrete divergence and gradient [45]. This is a wide-stencil operator that is in general not symmetric for the inlet-outlet boundary conditions used here, as the two operators carry the closures of the velocity and pressure boundary conditions, respectively. Following common practice in collocated schemes, we instead replace this composite construction by the compact Laplacian, built as the sum of one-dimensional central second-derivative stencils of the same order as the rest of the operators involved in the time stepping scheme (eighth order in our experiments), as in Ref. [38]. The resulting velocity field is therefore only approximately divergence-free, in the same way for all the solvers compared here, while the system becomes, after a symmetrization of the Neumann boundary rows, SPD with a low-rank QTT representation.
The simulated setup is a uniform flow past a cylinder in a channel. The domain is the box , discretized with grid points. The fields are encoded in a non-interleaved QTT, with the sites of the coordinate followed by the sites of the coordinate, as in Ref. [38]. At the inlet (), Dirichlet conditions are imposed on the velocity together with a homogeneous Neumann condition on the pressure, while at the outlet (), homogeneous Neumann conditions are imposed on the velocity and a Dirichlet condition with a constant reference value is imposed on the pressure. The latter makes the pressure operator non-singular, so no regularization of the Poisson problem is needed. The direction is periodic for all the fields. A cylinder of radius 0.1 centered at is immersed in the fluid by multiplying the velocity field at every time step by the smoothed indicator function
which is precomputed as an MPS with the Tensor Cross Interpolation algorithm [8] implementation presented in Ref. [46]. Since the obstacle only enters through this mask on the velocity, the pressure operator, and therefore its preconditioner, stays the same throughout the evolution. The fluid is initialized with and evolved at , defined with respect to the inflow velocity and the unit height of the channel, which results in an effective based on the cylinder diameter .
Regarding the comparison of the linear solvers applied to Eq. (34), the preconditioner of Eq. (26) cannot be applied here with the low bond dimension it has in the non-quantized setting. In Eq. (26) each of the terms of the sum is of bond dimension one, given by each of the exponentials of the matrices being promoted to the full space via identities on the remaining dimensions. In contrast, in the QTT setting studied here, the sum would involve exponentiating TT operators, which is usually done via approximations which could make the operator indefinite, as shown in Figure 3, or working with exponentially large matrices, which would defeat the purpose of the QTT formulation. We therefore compare the TT-FAI against the baseline unpreconditioned solver only.
Table 2 lists the parameters used for the two MALS-based Chorin benchmark setups. The predictor step of Eq. (33) is integrated with a fourth-order Runge–Kutta scheme, and at each time step the MALS sweeps are stopped once a relative residual of is reached, using the residual-based truncation of [12] with no singular value cutoff, while the local CG solver is run up to a tighter tolerance to ensure the residual bound is reached. The TT-FAI is built once per run and is then reused at every time step. Similarly to the anisotropy experiment, the Gershgorin bound has been used to determine . In this case, the absolute values of the eighth-order stencil coefficients add up to , so each dimension contributes to an interior row, resulting in
| Grid | Time steps | Max. bond dim. | |||
| 500 | 150 | ||||
| 1000 | 200 |
Table 2. MALS parameters for the Chorin benchmark, run at with an eighth-order finite-difference stencil on a box up to a final time of 0.5. The outer relative residual tolerance is with 100 sweeps at most, with a residual-based truncation tolerance of and no singular value cutoff, so the truncation is controlled by the residual alone. The local CG solver runs up to a relative tolerance of with at most 2000 iterations per local problem. The TT-FAI is built in all cases with at most 30 MALS sweeps at a local tolerance of , 3000 maximum CG iterations and a global residual tolerance of .
with and on the box, which is periodic in . At each step, the pressure solve is initialized with the solution of the previous one. Every configuration has been repeated 10 times, each with a different random seed, and the figures below report the median over these repeats. It is worth noting that the (10,10) system runs were not co-located, which adds node-to-node variation to the time measurements (17% coefficient of variation for the baseline case) but not to the iteration counts.
Figure 11 shows the total number of local CG iterations for each time step of the evolution of both system sizes. As in the anisotropy experiment considered in the previous subsection, we observe how the TT-FAI preconditioners successfully reduce the number of iterations, with larger iteration count differences for higher bond dimensions up to . Also, this iteration reduction does provide an actual speedup, as shown in Figure 12, in which all of the TT-FAI setups are able to provide a runtime improvement, especially for the more ill-conditioned system with 10 sites per dimension, in which a TT-FAI with a bond dimension between 4 and 7 is able to achieve a final net speedup of about 20–25% at the end of the 1000-step run. For the smaller system size, since the operator is not so ill-conditioned due to the coarse grid, the overall number of iterations performed by both the baseline and the TT-FAI preconditioned runs gets reduced. This makes the overhead given by the tracking and updating of the environments that make up the projectors depicted in Figure 8 larger in relative terms, diluting the advantage given by the reduction in iterations. The same effect explains the decay in the speedup curves of the system in Figure 12b, as warm starts lower the iterations per step.

Figure 11. Total iterations of the local CG solver within MALS, summed over all sites and sweeps, to solve the Poisson problem of Eq. (34) at each time step, over time evolutions of 500 steps for and 1000 steps for . Curves show the median over 10 repeats.

Figure 12. Cumulative total speedup, measured as the ratio between the times of the unpreconditioned MALS and of each TT-FAI variant to solve the Poisson problem of Eq. (34) up to each time step, over time evolutions of 500 steps for and 1000 steps for , taking into account also preconditioner build time. The lines show the median of the ratio between baseline and TT-FAI runs over 10 repeats, each with a different random seed. In both panels, the vertical axis is cut at 0.8 for readability, as the curves exceed 1 after 7–13 steps at (50 for the case) and after 27–265 steps at .
We attribute this net speedup to two main features of this linear system. The first one is that the boundary corrections made to the MPO over the baseline Laplacian construction from [20] result in a TT operator where most bonds have dimension 4, compared to the 3 in the previous experiment, which results in the relative overhead of the TT-FAI being slightly lower. And, secondly, since the QTT formulation of the problem allows exploring an exponentially fine grid, the condition number of the corresponding operator grows exponentially with the number of sites, as opposed to the -dimensional case studied in the previous subsection, hindering the convergence of the CG method, which gives more room for the preconditioner to reduce the number of iterations. On top of this, since the local dimension of the QTT is two, the solution of Eq. (21) is much cheaper. This leads to the iterative scheme being able to amortize the build time of the preconditioner in just a few time steps, as can be seen from Figure 12.
Conclusions
We have presented a numerical pipeline to obtain a factorized approximate inverse in the TT format (TT-FAI). This construction, unlike previous direct approximate inversion techniques, does not suffer from indefiniteness caused by truncation errors, which results in a suitable preconditioner for TT linear solvers based on the Conjugate Gradient method. By means of an efficient projection step and a subsequent linear solve in a vectorized space, the factors of the preconditioner can be obtained variationally without the need to compute the Cholesky decomposition of the linear system’s operator, with a bond dimension that controls the cost of the approximate inverse at the expense of preconditioner quality. Within MALS, projecting the two factors separately keeps every local preconditioner positive semidefinite.
We have benchmarked the TT-FAI preconditioners in two different settings, both using such MALS solvers. First, we considered an -dimensional rotated anisotropy linear system, which can be tuned to reduce to a Poisson equation. As the experiment is tuned away from this separable regime, the TT-FAI approach is able to capture the correlations between the different dimensions and reduce the iterations by up to 50% for 10 dimensions and up to 30% for 20 dimensions with respect to the preconditioner of Ref. [21]. With the rotated anisotropy having a bond dimension of just 3, however, each preconditioned iteration costs up to 3.7–7.7 unpreconditioned ones, resulting in an actual net slowdown. On top of this, the build takes several times longer than the actual solve, because of the local dimension of the vectorized problem, which rules out the use of TT-FAI for practical purposes in such a setting.
As a second benchmark we have studied the time evolution of a two-dimensional incompressible fluid by means of a Chorin projection scheme and a QTT formulation. This setting has three main advantages. The site dimension is two, which keeps the build cheap, the operator of the Poisson linear system has a larger bond dimension than in the anisotropy case (4–6 against 3), and a single TT-FAI is reused at every time step. On a grid, TT-FAIs with –7 reduce the iterations by a factor of 4.0–5.6 and give net speedups of about 20–25% over 1000 time steps, build included. On the coarser grid the solves need fewer iterations, so the fixed work of each MALS step dilutes the net speedup to at most 13%.
The TT-FAI is therefore a practical addition to TT solvers when the local dimension is small and the preconditioner can be reused, as in time stepping schemes. Still, two main questions remain open for future work. The first is how well low-rank TT-FAIs approximate the inverse of less structured operators, in more complex geometries, for example, or within unstructured grids in the QTT format [47, 41]. The second, also related to such unstructured systems, is that the diagonal rescaling of the inverse factors requires the computed diagonal of the factor to stay positive. Lemma 1 shows that this can only fail if the error of a whole row concentrates on it, which the nearly constant diagonal of uniform grids makes unlikely, but the argument weakens with less structured operators. Benchmarking the TT-FAI in such settings would therefore test the bounds given and also the reliability and cost of the energy-based rescaling of Sec. 3.2 in practical scenarios.
CRediT authorship contribution statement
Pau Torrente Badia: Conceptualization, Methodology, Software, Formal analysis, Investigation, Writing – Original Draft; Daniel Pérez García: Software, Validation, Writing – Review & Editing; Artur Garcia-Saez: Writing – Review & Editing, Supervision, Funding Acquisition; Stefano Carignano: Writing – Review & Editing, Supervision, Funding Acquisition.
Code and data availability
The methods of this work are implemented in the open-source Julia package DifferenTT.jl, available under the MIT license at https://github.com/bsc-quantic/DifferenTT.jl (version 0.1.0). The folder experiments/paper of the repository contains the scripts that produce every figure and table with numerical results in this paper, together with instructions to rerun them. The data shown in these figures and tables were produced at the tag paper-ttfai-v0.1-data of the repository, whose library code is that of version 0.1.0, and are archived, with the Julia environment used, on Zenodo under the CC BY 4.0 license: https://doi.org/10.5281/zenodo.23663326.
Declaration of competing interest
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Acknowledgments
We thank Aleix Bou-Comas for fruitful discussions on TT-based numerical methods and Guillaume Houzeaux, Ramiro de Olazábal and Mariano Vázquez for valuable insights on matrix-based linear system solvers. We acknowledge funding from the project PID2023-151384NB-I00 funded by MICIU / AEI / 10.13039/501100011033 and by ERDF, EU. S.C. acknowledges his AI4S fellowship within the “Generación D” initiative by Red.es, Ministerio para la Transformación Digital y de la Función Pública, for talent attraction (C005/24-ED CV1), funded by NextGenerationEU through PRTR.
Declaration of generative AI and AI-assisted technologies in the manuscript preparation process
During the preparation of this work the authors used Claude (Anthropic) and Gemini (Google) LLMs to assist in the formalization of Lemma 1 and the rotated anisotropy benchmark of § 5.1, as well as in formatting and revising the code used to perform the numerical experiments. After using these tools, the authors reviewed and edited the content as needed and take full responsibility for the content of the article.
Positivity of the diagonal of
In this appendix we prove Lemma 1 and Corollary 1, and discuss why approximate solutions of Eq. (21) do not produce non-positive diagonal entries in practice.
The argument extends the classical one of Kolotilina and Yeremin [23] to inexact solutions. There, the scaling is defined through the energy of each row, , and replaced by through an identity that holds only when every row is computed exactly. The positivity of the diagonal then follows from that of the diagonal of the inverse of an SPD matrix [23 Lemma 2.1]. Part (a) of Lemma 1 is this classical result, written for the dense lower triangular pattern. Parts (b) and (c) are what changes when the rows are only approximate, as is the case for any TT solver. They quantify how far can drift from its exact value, and how inaccurate a row has to be before its diagonal entry changes sign.
The build problem splits into one problem per row
Let be SPD, and let with . Consistently with Eq. (10), stacks the rows of its argument, , where is the -th row of written as a column vector, and denotes its entries. In this ordering, applies to every row separately, and keeps the entries of row and sets the others to zero. Neither operator mixes different rows, so is block diagonal, . Splitting each row into its lower entries and its upper entries , the block of row reads
where is the leading submatrix of . is SPD because is, and therefore so is . The right-hand side restricted to row is the canonical vector , which lies in the lower part of the row. Eq. (21) thus decouples into independent systems,
whose solutions have vanishing upper entries and lower entries given by . This is exactly the classical FSAI row condition of Eq. (10), independently of .
We equip the space of row with the energy inner product and norm
Since is SPD, Eq. (21) is the stationarity condition of the quadratic functional , which splits into a sum of row energies,
Completing the square with Eq. (A.2) gives
so the energy measures the distance to the exact row. We stress that Eqs. (A.4) and (A.5) hold for any . The TT format restricts which a solver can reach, but not how evaluates it, so everything below applies to the output of any TT solver.
The diagonal entry as an energy inner product
Using Eq. (A.2) to replace by , the diagonal entry of any row can be written as
In words, the diagonal entry of a row is its overlap with the exact row, measured in the energy inner product. Its sign is therefore a statement about angles: if and only if forms an angle smaller than with in the geometry defined by . Two consequences follow directly. Setting ,
so the exact diagonal entry is a squared norm. And, expanding the error of an arbitrary row,
Eq. (A.7) is the identity behind the shortcut of Eq. (11). For a lower triangular row, is the energy of the row, used by Kolotilina and Yeremin to define the scaling, while is what Eq. (22) actually uses. The two coincide at the exact solution. Away from it, the energy remains positive for every non-zero row, which is why the iterative FSAI variants of [19] scale with it, whereas the sign of depends on how close is to . Lemma 1 makes this dependence precise.
Proof of Lemma 1
Part (a). By Eq. (A.2), , which is positive since is SPD. This is the argument of [23 Lemma 2.1], where is replaced by the principal submatrix of selected by the sparsity pattern of row . To relate it to the Cholesky factor, note that the leading block of , denoted , is the Cholesky factor of , so that and
where only survives because is lower triangular. Regarding the third equality, because, and being both lower triangular, the -th diagonal entry of reduces to , with . For the lower bound, the -th diagonal entry of is , hence . For the upper bound, , and by Cauchy’s interlacing theorem.
As a consistency check, Eq. (22) applied to the exact solution gives , so that the diagonal of is , as expected for .
Part (b). Subtracting Eq. (A.7) from Eq. (A.6) and applying the Cauchy–Schwarz inequality in the energy inner product,
Dividing by gives .
Part (c). If , then , and part (b) gives . The same conclusion follows from Eq. (A.8), which also shows when the bound is attained: for all three terms on its right-hand side are non-negative, so , with equality only for . Among all rows with a non-positive diagonal entry, the one closest to the exact row is the zero row: the cheapest way of changing the sign of the diagonal is to discard the whole row.
Proof of Corollary 1
Let . By part (c), every satisfies . Since is block diagonal,
while, by Eq. (A.7), . Dividing the two expressions gives Eq. (25). □
Why sign changes are not observed in practice
Lemma 1 and Corollary 1 turn the question into one about how the error of the computed is distributed over the rows. Three observations explain why no row reaches .
The energy budget. By Corollary 1, a global relative energy error of allows at most a weighted fraction of the rows to change sign, and each of them must be completely wrong. A sign change is therefore never a small perturbation, as it requires concentrating an error of the size of a whole row on that row.
The exact diagonal is nearly constant. By part (c), row can only change sign if its error energy reaches , so is the price of a sign change in that row. If these prices differed by orders of magnitude, the rows with the smallest would be the first to flip, and the weighted fraction of Eq. (25) could hide many of them. For the operators considered here, the prices are all alike. By part (a), , where is what remains of after eliminating the unknowns that precede in the ordering. On a uniform grid with constant coefficients, is the same for every row and, for a local stencil, these remainders settle to a common value outside thin layers next to the boundaries. No row is therefore markedly cheaper to flip than the others, and the weighted fraction of Eq. (25) becomes, up to a factor of order one, a plain count of rows. This no longer holds on strongly non-uniform grids or with strongly varying coefficients, as discussed in Appendix A.§ 6.
A flat diagonal is easy to represent in the TT format. A nearly constant , with thin boundary layers, has TT rank close to one, and is among the first features that any low-rank solver captures. To change the sign of a single entry, the error of the computed would need a spike of the size of the whole row localized on that row, while remaining small elsewhere. Such a localized feature has a high TT rank, which neither a rank truncation nor an incomplete convergence of the solver has a reason to produce: their errors are spread over many rows, so that each row sees . Unlike the previous two observations, this one is a heuristic and not a theorem.
What the lemma does not guarantee
The stopping criterion does not control . TT solvers monitor the relative residual , with and , rather than the energy error. Since and , the two are related, in the worst case, by
which carries no information for a build tolerance of and an ill-conditioned .
A bound on a fraction is not a bound on existence. Eq. (25) limits the share of rows with a non-positive diagonal, but it does not exclude them. For the problem sizes considered here, with up to rows, even a tiny fraction amounts to many entries if the error concentrates. The heuristic above explains why it does not, but it is not a proof.
Non-uniform grids and varying coefficients. The flat diagonal discussed above relies on all rows of having a similar diagonal entry. On a non-uniform grid this is not the case: a finite-difference diagonal grows as with the local mesh size , so refining the mesh by a factor of ten in some region makes there a hundred times larger, and a hundred times smaller. The same happens where the coefficients of the PDE are large. These rows are the cheapest to flip, and therefore the first to change sign if the error concentrates on them. In addition, the diagonal of is no longer nearly constant, so its TT rank grows and it is harder for the solver to capture accurately.
A practical diagnostic. Since by part (a), sampled values of noticeably below one indicate that the computed diagonal underestimates the exact one in those rows, leading to too large entries of , and non-positive values indicate a sign change. Each sample requires evaluating a single entry of and of in the TT format.
Derivation of the anisotropy floor
In this appendix we derive, step by step, the bound of Eq. (30), which is the quantity used in § 5.1 to control the difficulty of the anisotropic diffusion benchmark for separable preconditioners. As in Appendix A, instead of comparing the operators and directly, the argument relies on comparing the energies and that they assign to an arbitrary grid vector , which reduces every step of the derivation to an inequality between real numbers.
Notation and preliminaries
We consider grid points per dimension with spacing and homogeneous Dirichlet boundary conditions at the ghost nodes, so that, for a one-dimensional vector extended with , the second and first difference matrices of Eq. (29) act as
In dimensions, and denote these matrices acting along the -th dimension, i.e. the Kronecker product of or in the -th position with identities in all the others, and .
For two symmetric matrices and , we write whenever for every vector , or equivalently, whenever is positive semidefinite. The bound we are after concerns the spectrum of , which is not symmetric. However, since is SPD,
so is similar to the symmetric matrix , and both share the same eigenvalues. By the Courant–Fischer theorem, the extreme eigenvalues of are the minimum and maximum of over , which, after the change of variables , become the minimum and maximum of the generalized Rayleigh quotient
Therefore, if we manage to show that for every , which is exactly the statement , all the eigenvalues of lie in , and its condition number, i.e. the ratio of its extreme eigenvalues, is at most . The rest of this appendix is devoted to proving this two-sided bound on .
Making the diffusion tensor explicit in the operator
The first step is to rewrite Eq. (28) in a form in which the entries of appear explicitly. We use two properties of the first difference matrices. On the one hand, with Dirichlet boundary conditions is antisymmetric, , and so is every . On the other hand, for , and act on different dimensions and therefore commute. Together, these give for , so that, since and for ,
The off-diagonal part of thus reproduces exactly the mixed-derivative term of , while its diagonal part produces the extra terms , which are not present in Eq. (28). Subtracting them from the second difference terms yields the exact identity
Splitting the energy into two contributions
Let us now fix any non-zero grid vector and denote its entries by , with a multi-index over the grid points. We collect at each grid point the discrete gradient obtained with centered differences,
and define the two non-negative numbers
that is, the energy of with respect to the Laplacian and the squared norm of its centered discrete gradient, where since is SPD. Since , the energy of with respect to Eq. (B.5) reads
The first contribution corresponds to an isotropic diffusion with unit coefficient, while the second one is the only place where the anisotropy enters, through the quadratic form of evaluated on the discrete gradient at every grid point.
Bounding the anisotropic contribution
For any vector , the Rayleigh quotient of the SPD matrix satisfies . Applying this inequality at every grid point and summing, the second term of Eq. (B.8) is bounded as
Hence, it can be written as for some that depends on (if , any such is valid).
Comparing centered and second differences
The last ingredient is the inequality , which follows from the one-dimensional property . The lower bound is immediate, since . For the upper bound, let us introduce the forward differences , for , of a one-dimensional vector with . Expanding Eq. (B.1), one readily checks that
that is, the centered difference at a grid point is the average of the two forward differences around it. Since the square of an average never exceeds the average of the squares, , and summing over ,
which proves . This inequality carries over to every dimension, as is the Kronecker product of the positive semidefinite matrix with identities, and is therefore positive semidefinite itself. Summing over in Eq. (B.7), we obtain , which also shows that the first term of Eq. (B.8) is non-negative.
The two-sided bound
We can now combine all the previous steps. Dividing Eq. (B.8) by and introducing , the Rayleigh quotient of Eq. (B.3) takes the form
This is the point at which the inequality plays its role: it guarantees that , so that is a weighted average of the numbers and , and therefore lies between them. It only remains to note that as well, since all the diagonal entries of are equal to one, and the diagonal entries of a symmetric matrix are themselves Rayleigh quotients, . Both numbers being averaged lie in the interval , and so does their average, which yields
In physical terms, part of the energy of experiences an isotropic diffusion with unit coefficient and the rest experiences the anisotropic tensor , and since the unit coefficient lies itself within the spectrum of , the total energy can never fall below nor exceed times the energy assigned by the Laplacian.
From the two-sided bound to the floor
As discussed in the preliminaries, Eq. (B.13) implies that all the eigenvalues of lie in , so that
The eigenvalues of the equicorrelated tensor are obtained directly. Along the diagonal direction, , while for any orthogonal to , and . For , the largest eigenvalue is and the smallest one is , and substituting them in Eq. (B.14) recovers Eq. (30),
For the same argument holds with the roles of the two eigenvalues exchanged, giving the bound instead.
Finally, the derivation also explains why is only an upper bound, as observed in the discussion of the discrete floor in § 5.1. Reaching the extremes of Eq. (B.12) requires and (or ) simultaneously. The former only holds for smooth vectors, for which centered and forward differences nearly coincide, whereas oscillatory vectors are nearly invisible to and have . The latter requires the discrete gradient to be aligned with the corresponding eigenvector of at every grid point, which the homogeneous Dirichlet conditions prevent near the boundary. Both conditions can only be approached on fine grids, where vectors can be simultaneously smooth on the scale of and strongly varying along a prescribed direction, which is why the discrete floor remains below on the coarse benchmark grid.
References
- [1]L. Grasedyck, D. Kressner, C. Tobler, A literature survey of low-rank tensor approximation techniques, GAMM-Mitteilungen 36 (1) (2013) 53–78.arxiv.org/abs/1302.7121
- [2]R. Orús, A practical introduction to tensor networks: Matrix product states and projected entangled pair states, Annals of Physics 349 (2014) 117–158.DOI
- [3]I. V. Oseledets, Tensor-train decomposition, SIAM Journal on Scientific Computing 33 (5) (2011) 2295–2317.DOI
- [4]J. J. García-Ripoll, Quantum-inspired algorithms for multivariate analysis: from interpolation to partial differential equations, Quantum 5 (2021) 431.
- [5]U. Schollwöck, The density-matrix renormalization group in the age of matrix product states, Annals of Physics 326 (1) (2011) 96–192.DOI
- [6]A. Klümper, A. Schadschneider, J. Zittartz, Matrix product ground states for one-dimensional spin-1 quantum antiferromagnets, Europhysics Letters 24 (4) (1993) 293.DOI
- [7]G. Vidal, Efficient classical simulation of slightly entangled quantum computations, Phys. Rev. Lett. 91 (14) (2003) 147902.DOI
- [8]D. Savostyanov, I. Oseledets, Fast adaptive interpolation of multi-dimensional arrays in tensor train format, in: The 2011 International Workshop on Multidimensional (nD) Systems, IEEE, Poitiers, France, 2011, pp. 1–8.DOI
- [9]S. Dolgov, D. Savostyanov, Parallel cross interpolation for high-precision calculation of high-dimensional integrals, Computer Physics Communications 246 (2020) 106869.DOI
- [10]M. Bachmayr, Low-rank tensor methods for partial differential equations, Acta Numerica 32 (2023) 1–121.DOI
- [11]S. V. Dolgov, TT-GMRES: solution to a linear system in the structured tensor format, Russian Journal of Numerical Analysis and Mathematical Modelling 28 (2) (2013) 149–172.arxiv.org/abs/1206.5512
- [12]I. V. Oseledets, S. V. Dolgov, Solution of linear systems and matrix inversion in the TT-format, SIAM Journal on Scientific Computing 34 (5) (2012) A2718–A2739.DOI
- [13]S. Holtz, T. Rohwedder, R. Schneider, The alternating linear scheme for tensor optimization in the tensor train format, SIAM Journal on Scientific Computing 34 (2) (2012) A683–A713.DOI
- [14]S. V. Dolgov, D. V. Savostyanov, Alternating minimal energy methods for linear systems in higher dimensions, SIAM Journal on Scientific Computing 36 (5) (2014) A2248–A2271.DOI
- [15]Y. Saad, Iterative Methods for Sparse Linear Systems, 2nd Edition, Society for Industrial and Applied Mathematics, 2003.DOI
- [16]W. Hackbusch, Iterative Solution of Large Sparse Systems of Equations, 2nd Edition, Vol. 95 of Applied Mathematical Sciences, Springer, Cham, 2016.
- [17]M. R. Hestenes, E. Stiefel, Methods of conjugate gradients for solving linear systems, Journal of Research of the National Bureau of Standards 49 (1952) 409–435.DOI
- [18]Barrett, M. Berry, T. F. Chan, J. Demmel, J. Donato, J. Dongarra, V. Eijkhout, R. Pozo, C. Romine, H. van der Vorst, Templates for the Solution of Linear Systems: Building Blocks for Iterative Methods, Society for Industrial and Applied Mathematics, 1994.DOI
- [19]C. Janna, M. Ferronato, F. Sartoretto, G. Gambolati, FSAIPACK: A software package for high-performance factored sparse approximate inverse preconditioning, ACM Trans. Math. Softw. 41 (2) (2015) 10:1–10:26.
- [20]V. A. Kazeev, B. N. Khoromskij, Low-rank explicit QTT representation of the Laplace operator and its inverse, SIAM Journal on Matrix Analysis and Applications 33 (3) (2012) 742–758.DOI
- [21]B. N. Khoromskij, Tensor-structured preconditioners and approximate inverse of elliptic operators in ℝᵈ, Constructive Approximation 30 (3) (2009) 599.DOI
- [22]I. V. Oseledets, Approximation of 2ᵈ × 2ᵈ matrices using tensor decomposition, SIAM Journal on Matrix Analysis and Applications 31 (4) (2010) 2130–2145.DOI
- [23]L. Y. Kolotilina, A. Y. Yeremin, Factorized sparse approximate inverse preconditionings I. Theory, SIAM Journal on Matrix Analysis and Applications 14 (1) (1993) 45–58.DOI
- [24]P. Torrente Badia, D. Pérez García, A. Garcia-Saez, S. Carignano, DifferenTT.jl: Workbench for solving differential equations using tensor trains, https://github.com/bsc-quantics/DifferenTT.jl, version 0.1.0, MIT license (2026).
- [25]M. Fishman, S. R. White, E. M. Stoudenmire, The Tensor software library for tensor network calculations, SciPost Phys. Codebases (2022) 4.DOI
- [26]B. N. Khoromskij, O(d log N)-quantics approximation of N-d tensors in high-dimensional numerical modeling, Constructive Approximation 34 (2) (2011) 257–280.DOI
- [27]N. Gourianov, M. Lubasch, S. Dolgov, Q. van den Berg, H. Babaee, P. Givi, M. Kiffner, D. Jaksch, A quantum-inspired approach to exploit turbulence structures, Nature Computational Science 2 (2022) 30–37.DOI
- [28]D. Kressner, C. Tobler, Krylov subspace methods for linear systems with tensor product structure, SIAM Journal on Matrix Analysis and Applications 31 (4) (2010) 1688–1714.DOI
- [29]J. Ballani, L. Grasedyck, A projection method to solve linear systems in tensor format, Numerical Linear Algebra with Applications 20 (1) (2013) 27–43.DOI
- [30]S. R. White, Density matrix formulation for quantum renormalization groups, Phys. Rev. Lett. 69 (19) (1992) 2863–2866.pubmed.ncbi.nlm.nih.gov/10046608
- [31]D. Kressner, C. Tobler, Preconditioned low-rank methods for high-dimensional elliptic PDE eigenvalue problems, Computational Methods in Applied Mathematics 11 (3) (2011) 363–381.DOI
- [32]I. E. Kaporin, New convergence results and preconditioning strategies for the conjugate gradient method, Numerical Linear Algebra with Applications 1 (2) (1994) 179–210.DOI
- [33]Z. Meng, Y. Khoo, J. Li, E. M. Stoudenmire, Recursive sketched interpolation: Efficient Hadamard products of tensor trains, arXiv:2602.17974 [quant-ph] (2026).arxiv.org/abs/2602.17974
- [34]R. J. LeVeque, Finite Difference Methods for Ordinary and Partial Differential Equations, Society for Industrial and Applied Mathematics, 2007.DOI
- [35]U. Trottenberg, C. W. Oosterlee, A. Schüller, Multigrid, Academic Press, San Diego, 2001.
- [36]B. Øksendal, Stochastic Differential Equations: An Introduction with Applications, 6th Edition, Universitet, Springer, Berlin, Heidelberg, 2003.
- [37]G. M. Crosswhite, D. Bacon, Finite automata for caching in matrix product algorithms, Phys. Rev. A 78 (1) (2008) 012356.DOI
- [38]R. D. Peddinti, S. Pisoni, A. Marini, P. Lott, H. Argentieri, E. Tiunov, L. Aolita, Quantum-inspired framework for computational fluid dynamics, Communications Physics 7 (1) (2024) 135.DOI
- [39]M. Kiffner, D. Jaksch, Tensor network reduced order models for wall-bounded flows, Phys. Rev. Fluids 8 (2023) 124101.DOI
- [40]N.-L. van Hilst, P. Siegl, P. Over, S. Bengoechea, T. Hashizume, M. G. Cecile, T. Rung, D. Jaksch, Quantum-inspired tensor-network fractional-step method for incompressible flow in curvilinear coordinates, Computer Physics Communications 325 (2026) 110169.
- [41]E. Kornev, S. Dolgov, M. Perelshtein, A. Melnikov, TetraFEM: Numerical solution of partial differential equations using tensor train finite element method, Mathematics 12 (20) (2024) 3277.DOI
- [42]M. E. Danis, D. Truong, I. Boureima, O. Korobkin, K. Ø. Rasmussen, B. S. Alexandrov, Tensor-train WENO scheme for compressible flows, Journal of Computational Physics 529 (2025) 113891.arxiv.org/abs/2405.12301
- [43]A. Chorin, The numerical solution of the Navier–Stokes equations for an incompressible fluid, Bulletin of the American Mathematical Society 73 (1967) 928–931.DOI
- [44]A. Chorin, Numerical solution of the Navier–Stokes equations, Mathematics of Computation 22 (1968) 745–762.DOI
- [45]J. H. Ferziger, M. Perić, R. L. Street, Computational Methods for Fluid Dynamics, Springer International Publishing, Cham, 2020.
- [46]Y. Núñez Fernández, M. K. Ritter, M. Jeannin, J.-W. Li, T. Kloss, T. Louvet, S. Terasaki, O. Parcollet, J. von Delft, H. Shinaoka, X. Waintal, Learning tensor networks with tensor cross interpolation: New algorithms and libraries, SciPost Phys. 18 (3) (2025) 104.DOI
- [47]L. Markeeva, I. Tsybulin, I. Oseledets, QTT-isogeometric solver in two dimensions, Journal of Computational Physics 424 (2021) 109835.arxiv.org/abs/1802.02839