Epic: production-ready coverage of bngsim's capability surface

Open
#28 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
15/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Active
Tech stack
python
Domain
testing-qa

Research direction

Start with the repository's design document, especially §11 and the existing infrastructure and pilot work described in the issue. This epic spans corpus setup, correctness and performance coverage across many simulation capabilities, and productionization; its child issues define the concrete implementation tasks. Done means the scoped child work is implemented and its results support repeatable correctness and cost comparisons across the capability surface.

Written by the indexing model from the issue text.

Description

epic

Purpose

bngsim-benchmarks is the durable, repeatable, fast-on-cluster place to answer two
questions about bngsim across its whole
capability surface
:

  1. Correctness — does bngsim give the same answer as an independent reference?
  2. Cost — how long does it take, next to the tools a modeler would otherwise use?

bngsim-paper is a consumer of what we
produce here. This repo holds job setups, job runners, and results — never rendered
manuscript artifacts. Because the cluster lets us run far more than the paper does, the
goal is to exceed the paper's coverage, in both of its testing modes:

  • Tables — curated suites of exactly 10 models, one per bngsim feature × input format (our core layer, §3.2), seeded from the paper's vetted model sets and read model-by-model.
  • Figures — broad coverage over whole public corpora (our breadth layer, §3.4),
    read as distributions.

Where we are on the DESIGN §11 ladder

  • Done: §11.1 infrastructure (problem specs, job generation, serial/local/Slurm
    runners, per-job results + freshness, gather), and the spine of §11.4.1 — ODE on
    5 pilot models × 5 engines (bngsim vs run_network, libRoadRunner, COPASI, AMICI) ×
    2 platforms (x86 + aarch64)
    , with per-engine timing fault isolation (#26).
  • Also done: model sourcing, i.e. pin & fetch (#29), and two-number reporting in gather (#34).
  • Not done: breadth correctness (§11.2), the core suites (§11.3), the ODE size series, every capability past plain ODE, and
    productionization (result bundles, container, the §9 validation gate as a repeatable
    thing).

Decisions taken

  • Model sourcing = pin & fetch + cache (DESIGN §4.2). Specs reference files by
    {repo, commit, path, sha256}; a bench fetch-models command materializes them into
    a git-ignored cache. No large blobs in git; corpora stay canonical upstream.

  • Curated models come from wshlavacek/BNGL-Models
    (cloned locally as a read-only reference): 60 verified literature records in models/
    (each with a verification notebook + reference/ outputs + metadata.yaml), 30
    closed-form theory models in analytical_odes/, and 22 fitting jobs in pybnf-jobs/.

  • Core = suites, not one shared set (decided 2026-11-19; DESIGN §3.2). A suite is one
    bngsim feature on one input format (.net, SBML, Antimony), with exactly 10 published,
    verified models in a fixed order. Each suite is seeded from the paper's vetted set for that
    feature, kept whole: a set larger than 10 is split along the paper's own grouping, and a
    smaller one is topped up to 10 by the paper's own selection criterion. The Antimony suites
    are derived: odd positions come from the .net suite and even positions from the SBML
    suite, each converted to Antimony.

Not in the paper, but in scope here

bngsim has execution backends the paper never exercises — notably the JAX bridge
and the MIR JIT. Those get first-class coverage here (issue in Track 2), alongside
the dense/KLU/auto linear-solver choice and compiled-vs-interpreted RHS agreement
(DESIGN §1.3).

Track structure

Each child is scoped to a single implementation session. Track 0 (substrate) and
Track 1 (ODE core suites) are filed now; Track 2 (capabilities) and Track 3
(productionize)
are listed below and filed as we approach them, so their scopes
reflect what we learn.

Track 0 — Substrate: models & corpora
  • 0.1 Model sourcing: pinned source: + bench fetch-models cache
  • 0.2 BNGL breadth corpus wired (895, bng_parity) — figures
  • 0.3 SBML/BioModels breadth corpus wired (1323, rr_parity) — figures
  • 0.4 Standards conformance sets pinned (SBML Test Suite + DSMTS)
Track 1 — ODE core suites (tables)
  • 1.1 ode-net: 10 published BNGL models, ODE on the generated .net (#33)
  • 1.2 ode-sbml: 10 curated BioModels, ODE on SBML (#37)
  • 1.3 ode-antimony: 10 derived, interleaved from 1.1 and 1.2 (#38)

Every Track 2 capability brings its own per-format suites the same way. The paper's seed sets
and the top-up each needs:

  • SSA: .net (8 seed, +2) and SBML (6, +4)
  • PSA: 3 seed, +7
  • network-free: aggregation (6, +4) and signaling (7, +3)
  • sensitivities: .net PyBNF-fitted (8, +2), .net large networks (3, +7), SBML from PEtab (6, +4), and Antimony, derived as for ODE
  • steady state: 6 seed, +4
  • fitting: 6 seed, +4
Track 2 — Capabilities, in DESIGN §11.4 order (filed as approached)
  • 2.1 ODE size series generators (Dushek / Rubenstein / Yang, §3.3)
  • 2.2 bngsim backend & solver matrix — interpreted / MIR JIT / compiled / JAX bridge
    agree + costs; dense / KLU / auto
  • 2.3 Re-simulation / amortization (load once, new params — the fitting-loop claim)
  • 2.4 SSA + DSMTS analytic moments
  • 2.5 PSA (partial scaling)
  • 2.6 Network-free (NFsim / RuleMonkey)
  • 2.7 Forward sensitivities (AMICI + finite-diff + JAX AD)
  • 2.8 Steady state
  • 2.9 SBML compliance (SBML Test Suite semantic cases)
  • 2.10 Fitting / application (PyBNF)
Track 3 — Productionize (filed as approached)
  • 3.1 Result bundles + bench bundle + rendered summary (§6.3)
  • 3.2 Container image from the pinned lock (§8)
  • 3.3 §9 validation as a repeatable gate (node-sharing + ARM/x86 hygiene)
  • 3.4 Engine-version currency check (flags a lagging reference; respects the AMICI pin)

Not part of this epic

The agent-use study (#12–#17, and deferred PR #27) is the paper's separate "third
question" and keeps its own track.


Filed now (Track 0 / 1)

  • #29 — 0.1 Model sourcing: pinned source: + bench fetch-models cache

  • #30 — 0.2 BNGL breadth corpus wired (895, bng_parity)

  • #31 — 0.3 SBML/BioModels breadth corpus wired (1323, rr_parity)

  • #32 — 0.4 Standards conformance sets (SBML Test Suite + DSMTS)

  • #33 — 1.1 ode-net core suite

  • #37 — 1.2 ode-sbml core suite

  • #38 — 1.3 ode-antimony core suite

  • #34 — 3.5 Reporting: correctness n/m + pre-sim/sim two-number timing (filed early)

Track 2 (capabilities) and Track 3 (productionize) are listed above and will be filed
as we approach them.

Dominant language
Python
Stars
1
Forks
1
Avg merge
1h 48m
Merged PRs (30d)
19

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lanl/bngsim-benchmarks

All issues in lanl/bngsim-benchmarks

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.