From Theory to Demonstration: A Case Study in Engineering Demonstration Models

A recently proposed approach aims to improve the accuracy of simulation results. It does this by combining outputs from multiple lower-accuracy runs, where accuracy is controlled by tuneable parameters such as step sizes or tolerances. This method is called Sparse Probabilistic Richardson Extrapolation (SPRE). While conceptually straightforward, implementing and demonstrating SPRE in practice presents a range of non-trivial software engineering challenges. A key practical challenge lies in designing simulation models that exhibit sufficiently stable and predictable behaviour as parameters vary. In this talk, we share the story of developing such models through a series of visually engaging examples, including animated 3D physics simulations and flocking multi-agent systems, highlighting both unsuccessful and successful attempts. These examples illustrate the difficulty of aligning theoretical assumptions with real computational models. We also discuss the Python implementation of SPRE designed with performance, flexibility, and reproducibility in mind. A central requirement of the method is automatic differentiation, which we achieve using JAX to compute exact gradients of complex computational functions. JAX also enables just-in-time compilation, delivering significant performance improvements for the repeated evaluations required by the method. This work demonstrates that implementing advanced methods is only part of the challenge; equally important is constructing meaningful examples that reveal their strengths and limitations. By combining modern tools with careful model design, we show how research software engineering practices, particularly around performance, abstraction, and testing, enable emerging ideas to become usable, reproducible, and compelling software tools.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-08-21
DOI
https://doi.org/10.5281/zenodo.22046167
Primary Topic
Simulation Techniques and Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

From Theory to Demonstration: A Case Study in Engineering Demonstration Models

Toni Karvonen, Chris J. Oates, Richard Howey
Zenodo (CERN European Organization for Nuclear Research)
Simulation Techniques and Applications
article

From Theory to Demonstration: A Case Study in Engineering Demonstration Models

Toni Karvonen, Chris J. Oates, Richard Howey
article en

Abstract

A recently proposed approach aims to improve the accuracy of simulation results. It does this by combining outputs from multiple lower-accuracy runs, where accuracy is controlled by tuneable parameters such as step sizes or tolerances. This method is called Sparse Probabilistic Richardson Extrapolation (SPRE). While conceptually straightforward, implementing and demonstrating SPRE in practice presents a range of non-trivial software engineering challenges. A key practical challenge lies in designing simulation models that exhibit sufficiently stable and predictable behaviour as parameters vary. In this talk, we share the story of developing such models through a series of visually engaging examples, including animated 3D physics simulations and flocking multi-agent systems, highlighting both unsuccessful and successful attempts. These examples illustrate the difficulty of aligning theoretical assumptions with real computational models. We also discuss the Python implementation of SPRE designed with performance, flexibility, and reproducibility in mind. A central requirement of the method is automatic differentiation, which we achieve using JAX to compute exact gradients of complex computational functions. JAX also enables just-in-time compilation, delivering significant performance improvements for the repeated evaluations required by the method. This work demonstrates that implementing advanced methods is only part of the challenge; equally important is constructing meaningful examples that reveal their strengths and limitations. By combining modern tools with careful model design, we show how research software engineering practices, particularly around performance, abstraction, and testing, enable emerging ideas to become usable, reproducible, and compelling software tools.

Zenodo (CERN European Organization for Nuclear Research)
Lappeenranta-Lahti University of Technology (FI), Newcastle University (GB)
Industry, innovation and infrastructure
Openalex Percentile: Top 6%
Simulation Techniques and Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

From Theory to Demonstration: A Case Study in Engineering Demonstration Models — Toni Karvonen, Chris J. Oates, et al. · Zenodo (CERN European Organization for Nuclear Research) (2026) | TGRS Research Map | TGRS