Image classification using local tensor singular value decompositions

Elizabeth Newman, Misha E. Kilmer, Lior Horesh

Abstract

This paper presents a novel framework for image classification that leverages local tensor singular value decompositions (tSVD) to represent image classes as low-rank subspaces. Unlike traditional methods that flatten images into vectors—thereby losing spatial context—this approach treats images as lateral slices of a 3D tensor. By computing a separate tSVD for each class, the method identifies class-specific "tubal" components. Classification is then performed via orthogonal projection, where a test image is assigned to the class whose subspace yields the minimum residual error. Evaluated on the MNIST dataset, the method demonstrates that preserving multi-dimensional structure and utilizing low-rank approximations can achieve competitive accuracy with high mathematical interpretability.

Introduction

Traditional image classification pipelines often rely on vectorization, a process that flattens 2D pixel arrays into 1D vectors. While computationally convenient for standard linear algebra, vectorization destroys the inherent spatial correlations and structural information present in images. Conversely, modern deep learning models achieve state-of-the-art results but are often criticized as "black-box" systems due to their lack of mathematical transparency and high computational demands.

This research seeks a middle ground by employing tensor-based representations. By maintaining the multi-dimensional nature of image data, the authors propose a method that is both mathematically elegant and efficient. The core idea is to represent each object class as a unique subspace within a tensor framework, allowing for classification through simple geometric projections.

Methodology: The tSVD Framework

The proposed method is built upon the t-product and the resulting tensor Singular Value Decomposition (tSVD) for third-order tensors. In this framework, data is organized into a 3D array $\mathcal{A} \in \mathbb{R}^{\ell \times m \times n}$.

Tensor Representation

Instead of a single global model, the authors construct a separate 3D tensor for each class in the dataset. For example, in the MNIST digit recognition task, one tensor is created for all "zeros," another for all "ones," and so on. Images are stored as lateral slices within these tensors, preserving the 2D relationship between pixels along the frontal faces.

Decomposition of a third-order tensor into frontal slices, lateral slices, and tubes.

Local tSVD and Classification

For each class-specific tensor, a truncated tSVD is computed. This process identifies the most significant "singular tubes" that define the characteristic features of that class. This results in a basis $U_i$ that spans the subspace of the $i$-th digit class.

To classify a new test image, the algorithm follows a four-step process:

  1. Re-orientation: The test image is oriented as a tensor slice.
  2. Projection: The image is projected onto the basis $U_i$ of every candidate class.
  3. Residual Calculation: The algorithm calculates the "residual error"—the distance between the original image and its projection—for each class.
  4. Decision: The image is assigned to the class that yields the smallest residual error. This "local" approach allows the model to learn class-specific features independently, facilitating parallelization.

Experimental Setup and Datasets

The framework was evaluated using the MNIST dataset, a standard benchmark consisting of 70,000 grayscale images (28x28 pixels) of handwritten digits. The data was split into a training set of 60,000 images and a test set of 10,000 images. The primary hyperparameter investigated was the truncation value $k$, which determines the rank of the subspace used for each class.

Discussion: The Truncation Paradox

A key finding of the study is the "Truncation Paradox." While one might expect that including more singular tubes (higher $k$) would improve accuracy by capturing more detail, the researchers found that a lower truncation value ($k=4$) significantly outperformed a higher one ($k=10$).

Magnitude of singular tubes for different digit classes, illustrating the rapid decay of information.

As seen in Figure 5, the magnitude of the singular tubes decays rapidly. The first few tubes capture the essential structural features of the digit, while higher-order tubes likely capture noise or idiosyncratic variations specific to individual training samples. Using too many tubes leads to overfitting, where the class subspaces become too broad and lose their discriminative power.

Key Results

  • Accuracy: The system achieved a peak recognition rate of 88.51% at $k=4$.
  • Rank Sensitivity: Increasing the rank to $k=10$ caused accuracy to drop to 75.31%, underscoring the importance of aggressive feature selection in tensor subspaces.
  • Class-Specific Performance: Performance varied by digit. The digit '1' was the most distinct (96.56% accuracy), while '5' proved the most challenging (79.48%), frequently being confused with '8' due to shared structural curves.
  • Efficiency: By utilizing Fast Fourier Transforms (FFTs) to compute the t-product, the method remains computationally efficient and highly suitable for GPU acceleration.

Conclusion and Future Work

While the current accuracy of 88.5% is lower than state-of-the-art deep learning models (which often exceed 99% on MNIST), the tSVD approach offers superior interpretability and structural preservation. Future research will focus on automated truncation strategies to find optimal $k$ values for each class dynamically, extending the framework to higher-order tensors for color images, and developing orientation-invariant t-products to handle rotated or shifted objects.

Summary updated

BibTeX
@inproceedings{newman2017image,
  author = {Elizabeth Newman and Misha E. Kilmer and Lior Horesh},
  title = {{Image classification using local tensor singular value decompositions}},
  booktitle = {CAMSAP},
  year = {2017},
  doi = {10.1109/camsap.2017.8313137},
}
Figure