Learning Tensor Representations for Meta-Learning

Samuel Deng, Yilin Guo, Daniel Hsu, Debmalya Mandal

Abstract

We introduce a tensor-based model of shared representation for meta-learning from a diverse set of tasks. Prior works on learning linear representations for meta-learning assume that there is a common shared representation across different tasks, and do not consider the additional task-specific observable side information. In this work, we model the meta-parameter through an order-3 tensor, which can adapt to the observed task features of the task. We propose two methods to estimate the underlying tensor: a tensor regression approach and a method of moments approach. We demonstrate that substituting the estimated tensor allows for estimating task-specific parameters with very few samples of a new task. Empirical evaluations on synthetic and real-world datasets show that our methods improve over previous linear models of shared representations.

Introduction

Meta-learning, or "learning to learn," focuses on training models that can rapidly adapt to new tasks using minimal data. A common approach is representation learning, where a shared representation is extracted from a variety of training tasks. However, traditional linear matrix models often assume a static shared representation, failing to account for task heterogeneity or observable task-specific side information (e.g., user demographics in recommendation systems).

This paper addresses these limitations by generalizing shared linear representations to incorporate observable side information. By modeling the shared representation as an order-3 tensor, the framework allows the model to dynamically adapt to task-specific features in a mathematically rigorous and sample-efficient manner.

Methodology

The core of the proposed framework is the use of an order-3 tensor to represent the meta-parameter. This tensor acts as a multi-linear operator mapping three components to an output: input features, observed task features, and unobserved task features.

Meta-Training Phase

The learning process involves estimating the underlying tensor from a set of training tasks. The authors identify that while the factor corresponding to unobserved task features is fundamentally unidentifiable during training, the first two factors (relating to input and observed task features) can be recovered. Two primary estimation methods are proposed:

  1. Tensor Regression: This method solves a regularized least-squares problem using an overlapped Schatten-1 norm, followed by robust tensor decomposition. It is robust and performs well under natural data assumptions.
  2. Method of Moments: This approach utilizes Singular Value Decomposition (SVD) on specific data statistics. While it requires stricter distributional assumptions (e.g., Gaussian features), it offers improved theoretical sample complexity regarding the number of tasks.

Meta-Test Phase

During adaptation to a new task, the model utilizes the pre-learned tensor factors. This reduces the adaptation problem to a low-dimensional least-squares regression to estimate the unobserved parameters of the new task.

Experimental Evaluation

The methods were evaluated across three distinct environments:

  • Synthetic Data: Used to validate theoretical bounds and sample efficiency against a known low-rank order-3 tensor.
  • Schools Dataset: Examination records from 139 schools, where student populations provided task-specific features.
  • Lenk Dataset: A computer survey dataset involving 180 individuals rating computer characteristics, where individual preferences represent distinct tasks.

Results and Discussion

The theoretical analysis demonstrates that the excess test error on a new task is bounded by $O(r^2/N_2)$, where $r$ is the tensor rank and $N_2$ is the number of samples from the new task. This is a significant improvement over learning from scratch, which would scale with the full feature dimensions $(d_1 + d_2)$.

Empirically, the tensor-based methods significantly outperformed baseline matrix methods that either ignored task features or naively concatenated them. The Tensor Regression method, in particular, showed high robustness across different datasets.

Key Insights

  • Sample Efficiency: By leveraging the CP-rank ($r$) of the tensor rather than feature dimensions, the model achieves true few-shot adaptation.
  • Generalization: The tensor framework serves as a natural generalization of matrix-based models, providing a flexible way to incorporate side information without sacrificing theoretical rigor.

Conclusion and Future Work

This work establishes a robust foundation for using tensor representations in meta-learning. While currently focused on multi-linear representations, future research could extend this framework to non-linear shared representations, such as deep neural networks, or explore higher-order tensors to capture more complex environmental variables.

Summary updated

BibTeX
@inproceedings{deng2022learning,
  author = {Samuel Deng and Yilin Guo and Daniel Hsu and Debmalya Mandal},
  title = {{Learning Tensor Representations for Meta-Learning}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2022},
  url = {https://openreview.net/forum?id=kxq0-VOeqH},
}
Figure