Graphical Multioutput Gaussian Process with Attention

Yijue Dai, Wenzhong Yan, Feng Yin

Multioutput Gaussian Processes (MOGPs) are powerful tools for predicting multiple correlated variables simultaneously. They are considered the gold standard in machine learning for regression tasks where quantifying uncertainty is just as important as the prediction itself. However, traditionally, they suffer from massive computational bottlenecks and struggle with non-Gaussian data.

To address these challenges, researchers have introduced the Graphical MOGP (GMOGP), a novel framework that uses an attention-based graphical model to dynamically learn dependencies between outputs. By incorporating normalizing flows and a distributed learning framework, GMOGP achieves state-of-the-art accuracy and an 80x speedup over traditional methods on real-world datasets.

The Bottleneck in Multioutput Predictions

When predicting multiple related targets—such as temperature, CO2 levels, or torques across different robot joints—researchers use MOGPs to share information across these tasks.

Examples of correlated variables like CO2 and temperature that benefit from joint modeling.

However, classic MOGPs, like the Linear Model of Coregionalization (LMC), have severe drawbacks:

  1. Computational Explosion: They rely on building a massive joint covariance matrix for all outputs. This scales terribly, requiring huge amounts of memory and compute time ($O(N^3 S^3)$ scaling bottleneck).
  2. Negative Transfer: They often force all outputs to correlate with one another. If some outputs are noisy or unrelated, forcing a shared model can actually result in worse performance than just training separate, isolated GPs.
  3. The Gaussian Assumption: Standard MOGPs assume the underlying data follows a Gaussian distribution, which is rarely true for messy, skewed, or heavy-tailed real-world data.

Enter the Graphical MOGP (GMOGP)

To solve these bottlenecks, the GMOGP framework replaces the monolithic cross-covariance matrix with a probabilistic directed acyclic graph (DAG). This models the relationships between outputs much more efficiently.

Attention-Based Graph Learning

The model does not need to know how the outputs are related beforehand. Instead, it uses a dynamic attention mechanism (via a LeakyReLU scoring function) to learn which outputs should act as "parents" to a target output.

GMOGP uses attention to reduce a dense, fully connected dependency graph into a sparse, directed structure.

If an attention weight drops to near zero, the link is severed. This prevents negative transfer by allowing the model to actively ignore irrelevant data sources.

Distributed Optimization

Because the graph breaks the joint distribution into conditional pieces, the underlying mathematics decouple. The model can be trained separately for each output across different GPUs or CPUs. Hyperparameter tuning is treated as a Multi-Objective Optimization (MOO) problem, finding Pareto optimal solutions efficiently.

Transformed GMOGP (TGMOGP)

To handle non-Gaussian data, the authors extended the framework by wrapping the GP priors in invertible non-linear transformations (specifically, Sinh-Archsinh normalizing flows). This allows the model to warp its predictions to fit skewed or multimodal data perfectly.

Performance and Scale

The authors evaluated their model on a custom synthetic dataset and several real-world benchmarks, including geospatial data (JURA), medical time-series (EEG & ECG), telecom traffic (TRAFFIC), and robotics (KUKA & SARCOS).

  • Superior Accuracy: The TGMOGP variant consistently achieved the lowest Root Mean Square Error (RMSE) and Negative Log-Likelihood (NLL) across almost all tested datasets, beating baselines like isolated GPs, LMC, and Gaussian Process Regression Networks (GPRN).
  • Massive Speedups: On the SARCOS dataset, TGMOGP with 100 inducing points took only ~4.6 seconds per iteration, compared to 370 seconds for a Variational LMC—an incredible ~80x speedup.
  • Interpretability: The learned attention weights successfully recovered known real-world correlations. For instance, in the TRAFFIC dataset, the model assigned high attention weights between outputs corresponding to traffic data collected from the exact same cell station.

Limitations and Future Directions

While highly effective, the authors note a few areas for future exploration. First, while the attention coefficients hint at graph structure, fully interpreting them as causal or physical dependencies requires more work in the field of Explainable AI (XAI). Second, the learned graph is currently static; in reality, dependencies between outputs might change dynamically based on the input space (e.g., sensors might only correlate during specific weather conditions).

Future work will likely explore extending GMOGP to online learning frameworks, investigating input-dependent covariance structures, and adapting the model for multi-fidelity data fusion.

Summary updated

BibTeX
@inproceedings{dai2024graphical,
  author = {Yijue Dai and Wenzhong Yan and Feng Yin},
  title = {{Graphical Multioutput Gaussian Process with Attention}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=6N8TW504aa},
}
Figure