Papers
Topics
Authors
Recent
Search
2000 character limit reached

TR-ALSAR Algorithm Overview

Updated 2 December 2025
  • TR-ALSAR is a family of algorithms that fits low-rank tensor ring decompositions to multi-dimensional data using efficient, numerically stable ALS routines.
  • It mitigates issues such as intermediate data explosion and instability by incorporating QR-based techniques and chain contractions in the solution process.
  • Empirical evaluations demonstrate that variants like TR-ALS-SC and TR-ALS-QR offer faster convergence and robust performance on large-scale, ill-conditioned datasets.

Tensor Ring Alternating Least Squares with Advanced Reduction (TR-ALSAR) algorithms form a family of practical, numerically stable routines for fitting low-rank tensor ring (TR) decompositions to multi-dimensional data. They address computational challenges inherent to classical TR-ALS—including intermediate data explosion and numerical instability—by exploiting algebraic structure and QR-based stabilization. This approach yields efficient, scalable solutions applicable to large-scale and ill-conditioned tensor decomposition problems (Yu et al., 2022).

1. Mathematical Formulation of Tensor Ring Decomposition

Given an NNth-order tensor XRI1×I2××INX \in \mathbb{R}^{I_1 \times I_2 \times \cdots \times I_N}, the TR decomposition expresses XX as the trace over a product of NN third-order core tensors: X(i1,,iN)=Trace[G1(i1)G2(i2)GN(iN)]X(i_1, \ldots, i_N) = \operatorname{Trace}[G_1(i_1) \cdot G_2(i_2) \cdots G_N(i_N)] where GnRRn×In×Rn+1G_n \in \mathbb{R}^{R_n \times I_n \times R_{n+1}} for n=1,,Nn=1,\ldots,N with RN+1=R1R_{N+1}=R_1, and Gn(in):=Gn(:,in,:)G_n(i_n) := G_n(:,i_n,:).

The goal is to minimize the Frobenius reconstruction error: minG1,,GNTR({Gn})XF2\min_{G_1,\ldots,G_N} \| \operatorname{TR}(\{G_n\}) - X \|_F^2 Alternating Least Squares (ALS) is performed by cyclically updating one core XRI1×I2××INX \in \mathbb{R}^{I_1 \times I_2 \times \cdots \times I_N}0 at a time, keeping the others fixed, via a least-squares subproblem formulated on appropriate unfoldings of XRI1×I2××INX \in \mathbb{R}^{I_1 \times I_2 \times \cdots \times I_N}1 and subchains XRI1×I2××INX \in \mathbb{R}^{I_1 \times I_2 \times \cdots \times I_N}2 of the remaining cores.

2. Normal Equations and Subproblem Structure

For core XRI1×I2××INX \in \mathbb{R}^{I_1 \times I_2 \times \cdots \times I_N}3, the subproblem in unfolded form is: XRI1×I2××INX \in \mathbb{R}^{I_1 \times I_2 \times \cdots \times I_N}4 where XRI1×I2××INX \in \mathbb{R}^{I_1 \times I_2 \times \cdots \times I_N}5 is the mode-XRI1×I2××INX \in \mathbb{R}^{I_1 \times I_2 \times \cdots \times I_N}6 unfolding of XRI1×I2××INX \in \mathbb{R}^{I_1 \times I_2 \times \cdots \times I_N}7 and XRI1×I2××INX \in \mathbb{R}^{I_1 \times I_2 \times \cdots \times I_N}8 is the mode-2 unfolding of XRI1×I2××INX \in \mathbb{R}^{I_1 \times I_2 \times \cdots \times I_N}9.

Setting the derivative to zero yields the normal equations: XX0 Solving this XX1 linear system is efficient for small XX2, but direct formation of XX3 is generally computationally prohibitive for large-scale tensors.

3. Coefficient Matrix Simplification: TR-ALS-SC

TR-ALS-SC leverages TR algebraic structure to factorize and contract the Gram matrices required in the normal equations, thus avoiding explicit computation of large unfoldings and their associated data explosion.

  • For each XX4, define the Gram-tensor:

XX5

with XX6, where XX7 denotes the matrix outer product.

  • The cumulative Gram matrix is built via chains of contractions:

XX8

with contraction operator XX9 merging matching NN0-modes.

The right-hand side of the normal equations is computed implicitly by means of Matricized-Tensor-Times-Subchain-Product (MTTSP), implemented as a sequence of small matrix multiplications. All steps avoid forming intermediate objects larger than the input tensor NN1 or the cores. The resulting system

NN2

is solved per core update.

4. QR-Based Numerical Stabilization: TR-ALS-QR

For ill-conditioned or collinear core scenario, TR-ALS-QR stabilizes the ALS subproblems by casting them in orthogonal bases via QR factorizations:

  • Compute a mode-2 QR of each core: NN3, where NN4 is orthonormal and NN5 is triangular in its mode-2 unfolding.
  • Construct the subchain NN6 of concatenated NN7 (excluding NN8), then obtain its QR factorization NN9.
  • Form the projected tensor X(i1,,iN)=Trace[G1(i1)G2(i2)GN(iN)]X(i_1, \ldots, i_N) = \operatorname{Trace}[G_1(i_1) \cdot G_2(i_2) \cdots G_N(i_N)]0 by mode-wise multiplying X(i1,,iN)=Trace[G1(i1)G2(i2)GN(iN)]X(i_1, \ldots, i_N) = \operatorname{Trace}[G_1(i_1) \cdot G_2(i_2) \cdots G_N(i_N)]1 with the conjugate transposes X(i1,,iN)=Trace[G1(i1)G2(i2)GN(iN)]X(i_1, \ldots, i_N) = \operatorname{Trace}[G_1(i_1) \cdot G_2(i_2) \cdots G_N(i_N)]2 for all X(i1,,iN)=Trace[G1(i1)G2(i2)GN(iN)]X(i_1, \ldots, i_N) = \operatorname{Trace}[G_1(i_1) \cdot G_2(i_2) \cdots G_N(i_N)]3.
  • The TR-ALS-QR update for X(i1,,iN)=Trace[G1(i1)G2(i2)GN(iN)]X(i_1, \ldots, i_N) = \operatorname{Trace}[G_1(i_1) \cdot G_2(i_2) \cdots G_N(i_N)]4 solves the triangular system:

X(i1,,iN)=Trace[G1(i1)G2(i2)GN(iN)]X(i_1, \ldots, i_N) = \operatorname{Trace}[G_1(i_1) \cdot G_2(i_2) \cdots G_N(i_N)]5

This approach guarantees that the least-squares solves are well-conditioned. The computational overhead from QR factorizations is moderate in practice, especially when X(i1,,iN)=Trace[G1(i1)G2(i2)GN(iN)]X(i_1, \ldots, i_N) = \operatorname{Trace}[G_1(i_1) \cdot G_2(i_2) \cdots G_N(i_N)]6 and explicit formation of X(i1,,iN)=Trace[G1(i1)G2(i2)GN(iN)]X(i_1, \ldots, i_N) = \operatorname{Trace}[G_1(i_1) \cdot G_2(i_2) \cdots G_N(i_N)]7 is avoided.

A fourth hybrid, QRNE, combines coefficient simplification from SC with QR stabilization by interleaving these strategies within the update, further improving speed and stability.

5. Algorithmic Descriptions

The following table summarizes key steps in the three principal TR-ALSAR variants:

Variant Gram Construction Solve Type Stabilization
TR-ALS Explicit unfolding Normal equations None
TR-ALS-SC Chain contraction of X(i1,,iN)=Trace[G1(i1)G2(i2)GN(iN)]X(i_1, \ldots, i_N) = \operatorname{Trace}[G_1(i_1) \cdot G_2(i_2) \cdots G_N(i_N)]8 Normal equations None
TR-ALS-QR (Not needed) Triangular system QR orthogonalization

Pseudocode for each variant cycles over the cores, forming the appropriate subchain data (either explicitly, via chain contractions, or QR bases), computes the right-hand side by MTTSP, performs a solve (normal equations or triangular system), and updates the core.

6. Computational Complexity and Memory

Three main cost components are considered: upfront initialization, per-iteration update cost, and memory footprint. Let X(i1,,iN)=Trace[G1(i1)G2(i2)GN(iN)]X(i_1, \ldots, i_N) = \operatorname{Trace}[G_1(i_1) \cdot G_2(i_2) \cdots G_N(i_N)]9 be the tensor order, GnRRn×In×Rn+1G_n \in \mathbb{R}^{R_n \times I_n \times R_{n+1}}0 the uniform mode size, and GnRRn×In×Rn+1G_n \in \mathbb{R}^{R_n \times I_n \times R_{n+1}}1 the uniform TR rank.

Time complexity per sweep:

Part / Method TR-ALS TR-ALS-SC TR-ALS-QR
Upfront init GnRRn×In×Rn+1G_n \in \mathbb{R}^{R_n \times I_n \times R_{n+1}}2 GnRRn×In×Rn+1G_n \in \mathbb{R}^{R_n \times I_n \times R_{n+1}}3 GnRRn×In×Rn+1G_n \in \mathbb{R}^{R_n \times I_n \times R_{n+1}}4
MTTSP GnRRn×In×Rn+1G_n \in \mathbb{R}^{R_n \times I_n \times R_{n+1}}5 GnRRn×In×Rn+1G_n \in \mathbb{R}^{R_n \times I_n \times R_{n+1}}6 GnRRn×In×Rn+1G_n \in \mathbb{R}^{R_n \times I_n \times R_{n+1}}7
Gram construction GnRRn×In×Rn+1G_n \in \mathbb{R}^{R_n \times I_n \times R_{n+1}}8 GnRRn×In×Rn+1G_n \in \mathbb{R}^{R_n \times I_n \times R_{n+1}}9
System solve n=1,,Nn=1,\ldots,N0 n=1,,Nn=1,\ldots,N1 n=1,,Nn=1,\ldots,N2
QR factorization n=1,,Nn=1,\ldots,N3
Other n=1,,Nn=1,\ldots,N4 n=1,,Nn=1,\ldots,N5 n=1,,Nn=1,\ldots,N6

n=1,,Nn=1,\ldots,N7Typically avoided for large n=1,,Nn=1,\ldots,N8 by implicit computation.

Memory footprint:

  • Data tensor n=1,,Nn=1,\ldots,N9: RN+1=R1R_{N+1}=R_10
  • Cores: RN+1=R1R_{N+1}=R_11
  • Gram-tensors RN+1=R1R_{N+1}=R_12: RN+1=R1R_{N+1}=R_13
  • Temporaries: RN+1=R1R_{N+1}=R_14 (baseline), RN+1=R1R_{N+1}=R_15 (QR).

7. Empirical Properties and Trade-Offs

Extensive experiments on synthetic and real data reveal the following characteristics:

  • TR-ALS-SC reduces per-iteration cost by roughly half compared to baseline TR-ALS, converges in the same number of iterations, and can achieve 2–3RN+1=R1R_{N+1}=R_16 faster wall-clock time for large RN+1=R1R_{N+1}=R_17 and RN+1=R1R_{N+1}=R_18.
  • TR-ALS-QR exhibits significant stability advantages on ill-conditioned or collinear core problems, where TR-ALS and TR-ALS-SC can stagnate or produce inaccurate solutions, while TR-ALS-QR maintains robust convergence and lower errors.
  • On real imaging and video datasets (e.g., DC-Mall hyperspectral, "Park Bench," "Tabby Cat"), all methods yield identical reconstruction errors for RN+1=R1R_{N+1}=R_19, while TR-ALS-SC and TR-ALS-QRNE run 5–10Gn(in):=Gn(:,in,:)G_n(i_n) := G_n(:,i_n,:)0 faster than TR-ALS; TR-ALS-QRNE is the fastest stable variant.

The selection of algorithmic variant is thus dictated by the desired balance of speed and numerical robustness:

  • TR-ALS-SC is optimal for well-conditioned data and maximizes speed.
  • TR-ALS-QR (and QRNE) ensure numerical stability, crucial when data are noisy or core collinearity is high, with only moderate computational overhead.
  • The hybrid QRNE provides near-SC speed and QR stability, without formation of large intermediate tensors (Yu et al., 2022).
Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to TR-ALSAR Algorithm.