mlsanityData to 14 Oct 2026

Implementing neural network mixed-effects models in Template Model Builder (TMB)

arXiv 2608.31133 ↗First posted 31 Aug 2026stat.ML cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Neural network mixed-effects models (NMMs) have gained traction by combining the strong representation and predictive power of artificial neural networks with the capacity of mixed-effects modeling to capture complex correlation structures. However, existing estimation approaches rely heavily on manual derivations of objective functions and gradients, which inherently forces simplifying approximations and severely constrains the complexity and accuracy of NMMs. In this work, we introduce a general framework for implementing NMMs using Template Model Builder (TMB). By leveraging automatic differentiation and Laplace approximation, TMB requires users to specify only the negative joint log-likelihood and any regularization terms. The framework automatically integrates out random effects and evaluates the marginal objective function alongside its exact gradients, eliminating the need for manual derivations or ad hoc approximations. We demonstrate the efficiency, flexibility, and statistical performance of TMB-based NMMs across two numerical examples, including an application to monotonic NMMs. Reproducible code is provided to facilitate broader adoption.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 1 of its 14 references that are in the map. First posted on arXiv 31 Aug 2026.

Builds on

1 of 14 references.

References · 1

  1. 2022Monotonic Neural Additive Models: Pursuing Regulated Machine Learning Models for Credit Scoringcited by 12

Built on by

Not cited yet.