Hierarchical Modeling with Tensor Inputs

Yada Zhu, Jingrui He, Rick Lawrence

Abstract

In many real-world applications, data naturally exists in multi-dimensional arrays, or tensors. Standard machine learning approaches often flatten these tensors into 1D vectors, a process that destroys valuable structural information and spatial/temporal correlations. This paper introduces H-MOTE (Hierarchical MOdeling with TEnsor inputs), a novel optimization framework and algorithm for supervised learning directly on tensor data. By employing a low-rank Candecomp/Parafac (CP) decomposition and a hierarchical Bayesian-inspired prior, H-MOTE effectively incorporates domain expert knowledge to regularize the model. Our empirical evaluation on both synthetic and real-world semiconductor manufacturing datasets demonstrates that H-MOTE significantly outperforms traditional flattening techniques and existing tensor-based models. Notably, the method exhibits superior robustness to noise and prevents overfitting in scenarios where labeled data is scarce.

Introduction

The prevalence of multi-dimensional data in fields such as semiconductor manufacturing, computer vision, and medical imaging necessitates learning algorithms that respect the inherent structure of the input. For instance, process data from a manufacturing wafer can be viewed as a 2D tensor (steps $\times$ sensors), while video data forms a 3D tensor (width $\times$ height $\times$ time). Standard approaches typically flatten these tensors into 1D vectors to feed them into models like linear regression or Support Vector Machines (SVMs). However, this flattening treats all features as independent, ignoring the structural relationships between them.

While some supervised tensor learning methods have been proposed, they often suffer from restrictive rank-one assumptions or lack a principled mechanism to integrate prior domain knowledge. In industries like manufacturing, labeled data is often expensive and sparse, but expert intuition is abundant. We address these challenges by proposing H-MOTE, a framework that supports higher-rank weight tensors and seamlessly integrates expert knowledge as mathematical priors.

Methods

The H-MOTE framework models the relationship between an input tensor $X$ and a target $y$ through an inner product with a learned weight tensor $W$. To manage the high dimensionality of $W$ and prevent overfitting, we utilize a CP decomposition, representing $W$ as a sum of $R$ rank-one components: $W \approx \sum_{r=1}^R a_r^{(1)} \circ a_r^{(2)} \circ \dots \circ a_r^{(D)}$.

A hierarchical modeling approach is then applied to these components. Instead of learning the vectors $a_r^{(d)}$ from scratch, we regularize them toward prior weight vectors provided by domain experts. This formulation acts as a natural regularizer, guiding the model toward sensible weights even with very few training examples. The optimization problem is solved using a block coordinate descent algorithm, which alternates updates between the CP component blocks. This approach is mathematically guaranteed to converge to a local optimum and scales linearly with the number of training examples and tensor dimensions.

Results

We evaluated H-MOTE against several baselines, including Ridge regression on flattened vectors, Tensor Least Squares (TLS), and Potential SVM (PSVM).

Synthetic Data Performance

On synthetic datasets consisting of 2nd-order tensors with added Gaussian noise, H-MOTE variants consistently achieved lower Root Mean Squared Error (RMSE) compared to standard Ridge regression. As illustrated in Figure 1, H-MOTE demonstrates superior robustness as noise levels increase. Furthermore, the gap between training and test error for H-MOTE is significantly smaller than for Ridge regression, proving its enhanced ability to generalize and resist overfitting.

Training and test error comparison on synthetic data with varying noise levels.

Real-World Application: Virtual Metrology

In semiconductor manufacturing, "virtual metrology" aims to predict wafer quality based on machine sensor data to reduce the need for costly physical measurements. We tested H-MOTE on three real-world datasets where labeled target measurements were highly sparse. Figure 4 shows that H-MOTE variants (H-MOTE1, 2, and 3) consistently outperform TLS, PSVM, and Ridge regression across a range of training sample sizes. The inclusion of expert priors (H-MOTE2) and the use of bootstrapped priors (H-MOTE3) yielded the lowest average RMSE, confirming that domain knowledge effectively bridges the gap created by limited labeled data.

Performance comparison (RMSE) on three semiconductor manufacturing datasets across varying sample sizes.

Discussion and Conclusion

H-MOTE provides a robust and practical framework for tensor-based supervised learning. By preserving data structure and leveraging expert priors, it overcomes the fundamental limitations of traditional flattening and simple rank-one tensor models. The algorithm's linear complexity ensures scalability for real-world deployment. While the current work focuses on regression, the framework is mathematically extensible to classification tasks. Future research will explore these applications as well as the performance of H-MOTE on higher-order tensors in domains like computer vision.

Summary updated

BibTeX
@inproceedings{zhu2012hierarchical,
  author = {Yada Zhu and Jingrui He and Rick Lawrence},
  title = {{Hierarchical Modeling with Tensor Inputs}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2012},
  doi = {10.1609/aaai.v26i1.8283},
}
Figure