Tensor machines for learning target-specific polynomial features

Jiyan Yang, Alex GittensarXiv 2015

Abstract

Tensor Machines (TMs) provide a novel framework for learning a compact, highly efficient set of polynomial features by framing the learning process as a low-rank tensor decomposition. Unlike standard random feature methods that rely on thousands of "target-agnostic" features, TMs optimize a handful of features specifically tailored to the target task. This approach achieves state-of-the-art accuracy with models that are significantly smaller and faster than traditional kernel approximations.

Introduction

Kernel methods are fundamental to machine learning, enabling the capture of non-linear patterns without manual feature engineering. However, their computational cost scales cubically with the number of data points ($O(n^3)$), making them impractical for large-scale applications.

To mitigate this, researchers frequently employ random feature maps, which approximate kernels by sampling thousands of random features. While effective, these features are chosen without regard for the specific labels of the task. Consequently, achieving high accuracy often requires a massive number of features—sometimes in the tens of thousands. This research introduces Tensor Machines to address a core question: Can we learn a very small, "parsimonious" set of features specifically tailored to the target?

Methodology

Tensor Machines bridge the gap between the expressivity of polynomial kernels and the efficiency of Factorization Machines through several key innovations:

  1. The Tensor Representation: Any degree-$q$ polynomial can be represented as an inner product with a $q$-order tensor. Learning an optimal polynomial is thus equivalent to learning a hidden tensor.
  2. Low-Rank Optimization: Rather than random sampling, TMs directly optimize a set of rank-one tensors to approximate the "ideal" target tensor. While this presents a non-convex optimization problem, empirical results suggest the process is robust.
  3. Optimization Solvers:
    • TM-Batch: Utilizes L-BFGS for full-batch optimization on smaller datasets.
  4. TM-SFO: A stochastic quasi-Newton solver designed for massive datasets that exceed memory capacity.
  5. Theoretical Foundation: The authors establish generalization error bounds using Rademacher complexity, proving that TMs converge to the expected risk at the optimal rate of $O(1/\sqrt{n})$ despite the non-convex objective.

Experimental Evaluation

The authors evaluated TMs on 10 diverse public datasets spanning regression (Indoor, Year, Census, Slice, Buzz) and binary classification (Gisette, Adult, Forest, Cor-rna, and a private eBay search dataset). The eBay dataset, containing 1.2 million data points, served as a benchmark for the scalability of the TM-SFO approach.

Key Results

The experimental results highlight several advantages of the Tensor Machine framework:

  • Efficiency and Accuracy: TMs consistently delivered the lowest worst-case relative errors across all datasets while maintaining low computational overhead.
  • Extreme Parsimony: While random feature methods like Kar-Karnick require thousands of features, TMs typically require fewer than 5 features per degree to achieve comparable or superior accuracy. For instance, on the "Slice" dataset, TMs outperformed random maps that used 7,000 features.
  • Target-Specific Adaptation: By evolving the hypothesis class based on target labels, TMs continue to improve with additional data, whereas target-agnostic methods like CRAFTMaps often reach performance plateaus early.
Relative test error vs. relative time across multiple datasets. TMs (blue and green) occupy the high-efficiency, low-error region.
  • Scalability: On the 1.2M-point eBay dataset, the running time of TM-SFO grew linearly with training set size, outperforming the superlinear growth of competing methods.

Discussion and Limitations

While TMs offer significant improvements in efficiency, some challenges remain:

  • Non-Convexity: Although simple random initialization proved sufficient in practice, the non-convex nature of the objective function means global optimality is not theoretically guaranteed.
  • Hyperparameter Sensitivity: Performance is sensitive to the initialization variance ($\alpha^2$) and the regularization parameter ($\lambda$), necessitating careful cross-validation.
  • Complexity with Degree: Computational costs scale with $q^2$. While effective for degrees 2 through 5, extremely high-degree polynomials may introduce bottlenecks.

Summary updated

BibTeX
@misc{yang2015tensor,
  author = {Jiyan Yang and Alex Gittens},
  title = {{Tensor machines for learning target-specific polynomial features}},
  year = {2015},
  eprint = {1504.01697},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1504.01697},
}
Figure