Quadra is an experimental mixed-effects inference framework focused on:
- reverse-mode automatic differentiation
- Laplace approximation
- sparse Hessian methods
- implicit differentiation
- scalable scientific inference workflows
The project is oriented toward computational statistics, state-space models, and large-scale scientific modeling applications such as fisheries stock assessment.
Current development emphasizes:
- transparent numerical workflows
- reproducible benchmarking
- sparse linear algebra performance
- modular inference architecture
- computational profiling and scaling analysis
Current implemented capabilities include:
- reverse-mode automatic differentiation
- exact and approximate gradients
- Laplace approximation
- random effects optimization
- sparse Hessian construction
- sparse factorization reuse
- implicit derivative calculations
- profiled derived quantity uncertainty
- delta-method utilities
- benchmark and scaling infrastructure
- benchmark normalization and plotting
- CI benchmark workflows
core/
autodiff/
laplace/
inference/
model/
optimizer/
examples/
simple/
big/
benchmarks/
analysis/
comparisons/
outputs/
normalized/
tests/
Recommended:
- C++17 compiler
- Eigen
- LBFGSpp
- GNU Make
Optional:
- R
- TMB
makeRun all tests:
make testRun selected tests:
make test-laplace-implicit-workspace
make test-laplace-profiled-derived-report
make test-random-intercept./examples/simple/random_intercept_model./examples/big/catch_at_age_laplacemake benchmark-random-interceptmake benchmark-state-spaceQuadra benchmark:
make benchmark-quadra-tmb-random-intercept-quadraTMB benchmark:
make benchmark-quadra-tmb-random-intercept-tmbNormalize benchmark outputs:
make benchmark-normalize-allGenerate scaling plots:
make benchmark-plot-random-interceptGitHub Actions workflows currently provide:
- contract compilation checks
- benchmark execution
- RSS logging
- benchmark normalization
- benchmark artifact uploads
- scaling plot generation
The current V1 effort is focused on:
- stable mixed-effects workflows
- reusable sparse factorization infrastructure
- implicit differentiation utilities
- scalable state-space inference
- reproducible benchmark infrastructure
- comparative inference benchmarking
Quadra is currently experimental and under active development.
Interfaces, APIs, benchmark structure, and numerical methods may evolve rapidly during the V1 development cycle.