NoLimits.jl: Flexible and Composable Nonlinear Mixed-Effects Modeling in Julia
Manuel Huth, Jonas Arruda, Nina Schmid, Roy Gusinow, Vincent Wieland, Clemens Peiter, Jan Hasenauer
stat.CO, stat.ML
Submitted: 2026-06-23
Comments: 74 pages (52 main), 9 Figures (6 main)
Code: https://github.com/manuhuth/NoLimits.jl
License: http://creativecommons.org/licenses/by/4.0/
The gist: Nonlinear mixed-effects models are widely used to analyze longitudinal data, but existing open-source software often supports only a limited subset of the model structures, inference methods,
Terminology
Abstract
Nonlinear mixed-effects models are widely used to analyze longitudinal data, but existing open-source software often supports only a limited subset of the model structures, inference methods, machine-learning components, automatic differentiation techniques, and random-effects distributions required in modern applications. We introduce NoLimits.jl, an open-source Julia package for flexible and composable nonlinear mixed-effects modeling. Its macro-based modeling language enables observation and latent-state models to be constructed from diverse building blocks, including ordinary differential equations, Markov models, and neural networks. NoLimits.jl supports flexible, covariate-dependent observation and random-effects distributions and provides a unified interface to frequentist inference through Laplace approximation, stochastic expectation maximization, and Bayesian Markov chain Monte Carlo methods. We demonstrate the package on three case studies showcasing its workflows, integration of differentiable machine-learning components, and data-driven estimation of random-effects distributions using normalizing flows. Together, these capabilities substantially expand the range of nonlinear mixed-effects models that can be specified, estimated, and compared within a single open-source framework.
Sources
- Extending the saemix package for R to fit non Gaussian outcomes
- Universal Differential Equations for Scientific Machine Learning
- Forward-Mode Automatic Differentiation in Julia
- Fitting Large Nonlinear Mixed Effects Models Using Variational Expectation Maximization
Related papers
- A fast non-reversible sampler for Bayesian mixture models
- A Computable Measure of Suboptimality for Entropy-Regularised Variational Objectives
- BKP: An R Package for Beta Kernel Process Modeling
- Edgewise Envelopes Between Balanced Forman and Ollivier-Ricci Curvature
- Amortized quadrature for posterior expectations in inverse problems
- A Non-asymptotic Analysis for Learning and Applying a Preconditioner in MCMC