Integrating Random Effects in Deep Neural Networks

Giora Simchoni, Saharon Rosset
6/7/2022
stat.MLcs.LG

Official code: gsimchoni/lmmnn (40 stars, Jupyter Notebook, last commit 2024-03-27).

Abstract

Modern approaches to supervised learning like deep neural networks (DNNs) typically implicitly assume that observed responses are statistically independent. In contrast, correlated data are prevalent in real-life large-scale applications, with typical sources of correlation including spatial, temporal and clustering structures.

Show full abstract

These correlations are either ignored by DNNs, or ad-hoc solutions are developed for specific use cases. We propose to use the mixed models framework to handle correlated data in DNNs. By treating the effects underlying the correlation structure as random effects, mixed models are able to avoid overfitted parameter estimates and ultimately yield better predictive performance. The key to combining mixed models and DNNs is using the Gaussian negative log-likelihood (NLL) as a natural loss function that is minimized with DNN machinery including stochastic gradient descent (SGD). Since NLL does not decompose like standard DNN loss functions, the use of SGD with NLL presents some theoretical and implementation challenges, which we address. Our approach which we call LMMNN is demonstrated to improve performance over natural competitors in various correlation scenarios on diverse simulated and real datasets. Our focus is on a regression setting and tabular datasets, but we also show some results for classification. Our code is available at https://github.com/gsimchoni/lmmnn.

View on arXivView PDF

Code Implementations(1)

gsimchoni/lmmnnOfficial100%
409Jupyter Notebook, RFeb 7, 20212 years ago

Similar Papers

Cite this paper

@article{simchoni2022integrating,
  title  = {Integrating Random Effects in Deep Neural Networks},
  author = {Giora Simchoni and Saharon Rosset},
  year   = {2022},
  eprint = {2206.03314},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.03314}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2206.03314.svg)](https://codeofpaper.com/paper/2206.03314)

Discussion