Tensor-variate Mixture of Experts

Noémie Jaquier, Robert Haschke, Sylvain Calinon

Abstract

Modern robotic sensors, such as tactile arrays and video streams, generate high-dimensional data in the form of tensors. Traditional regression methods often flatten these inputs into vectors, destroying spatial relationships and leading to overfitting, especially with limited training data. We present the Tensor-variate Mixture of Experts (TME), a model that performs regression directly on multi-dimensional arrays. By utilizing CANDECOMP/PARAFAC (CP) decomposition for parameter factorization, TME preserves structural information while significantly reducing parameter counts. Our results on synthetic and real-world tactile myography (TMG) datasets demonstrate that TME outperforms standard Mixture of Experts and Ridge Regression, matching the performance of Gaussian Processes with significantly lower computational overhead.

Introduction

Robotic perception increasingly relies on high-resolution sensors like tactile arrays (e.g., 8x40 grids) or EEG signals. Standard machine learning workflows typically flatten these multi-dimensional inputs into 1D vectors. This "flattening" operation is problematic for two reasons: it discards the inherent spatial structure of the data and causes a dimensionality explosion. In applications like personalized prosthetic control, where training data from individual users is scarce, high-dimensional models are prone to severe overfitting.

This paper introduces the Tensor-variate Mixture of Experts (TME) to address these challenges. TME extends the classic Mixture of Experts (ME) framework to handle tensor-valued inputs natively, preserving spatial priors and enabling efficient learning from small datasets.

Methods

The TME model extends the ME architecture by formulating both the gating network and the expert models as tensor-variate functions.

The TME architecture consists of a tensor-variate logistic regression gate and tensor-variate ridge regression experts.

Tensor-variate Formulation

In a standard ME, a gate divides the input space, and experts specialize in specific regions. In TME, the gate is formulated as a tensor-variate logistic regression (softmax) function, while the experts are formulated as tensor-variate ridge regression models.

Parameter Factorization

To maintain a low parameter count, weight tensors for both the gate and the experts are factorized using CANDECOMP/PARAFAC (CP) decomposition. This represents high-dimensional weight tensors as a sum of lower-dimensional rank-1 tensors. The model is trained using an Expectation-Maximization (EM) algorithm. Because the CP decomposition keeps the optimization linear with respect to individual factor matrices, the process is highly efficient and avoids the memory bottlenecks of standard flattened ME models.

Experimental Evaluation

The model was evaluated across three distinct scenarios:

  1. Synthetic Datasets: 2D, 3D, and 4D tensor data were used to test parameter recovery. TME successfully recovered ground-truth weight shapes (e.g., crosses) where standard ME produced noisy results.
  2. Offline TMG Dataset: Data from 9 participants performing 6 hand movements using a 320-taxel bracelet.
  3. Real-time Teleoperation: 11 participants controlled a 24-DOF Shadow robot hand in real-time tasks.

Results and Discussion

TME demonstrated superior data efficiency and interpretability compared to vector-based baselines.

RMSE performance as a function of training data size, showing TME's robustness in low-data regimes.

Performance and Efficiency

On synthetic 2D data, TME achieved an RMSE of 0.16 for weight recovery, nearly half that of standard ME (0.30). In the offline TMG task, TME (RMSE 0.30 ± 0.07) matched the performance of Gaussian Processes (GPs) while being computationally lighter. Crucially, TME's inference time is $O(1)$ relative to training set size, taking only 1.0 ms per sample, which is vital for high-frequency real-time control.

Interpretability and Generalization

Because TME preserves the tensor structure, its weights can be visualized directly as 2D shapes. The model cleanly recovers the underlying "shapes" of signal sources, whereas standard ME models yield noisy, uninterpretable weight vectors. Furthermore, in live teleoperation, TME showed an impressive ability for "zero-shot combination," allowing users to perform simultaneous movements (e.g., grasping while flexing) even when the model was trained only on isolated actions.

Conclusion

The Tensor-variate Mixture of Experts provides a robust framework for regression on high-dimensional structured data. By avoiding flattening and employing CP decomposition, it achieves high performance with minimal data. Future work will focus on automatic rank selection for the decomposition and adapting to covariate shifts caused by sensor displacement during prolonged use.

Summary updated

Abstract

When data are organized in matrices or arrays of higher dimensions (tensors), classical regression methods first transform these data into vectors, therefore ignoring the underlying structure of the data and increasing the dimensionality of the problem. This flattening operation typically leads to overfitting when only few training data is available. In this paper, we present a mixture of experts model that exploits tensorial representations for regression of tensor-valued data. The proposed formulation takes into account the underlying structure of the data and remains efficient when few training data are available. Evaluation on artificially generated data, as well as offline and real-time experiments recognizing hand movements from tactile myography prove the effectiveness of the proposed approach.
BibTeX
@article{jaquier2021tensor,
  author = {Noémie Jaquier and Robert Haschke and Sylvain Calinon},
  title = {{Tensor-variate Mixture of Experts}},
  journal = {Robotics Auton. Syst.},
  year = {2021},
  doi = {10.1016/j.robot.2021.103812},
}
Figure