Addressing the problem that inaccurate prior knowledge degrades the robustness of results in Bayesian quantitative verification, this paper proposes EPIK, a Bayesian parameter model checking method. It leverages expert prior knowledge of observable system-level properties to derive reasonable distributions of unknown transition parameters, supporting quantitative verification of elusive properties that are difficult to observe directly.
The combination of Bayesian learning and quantitative verification is an effective toolkit for analyzing core quantitative properties of software systems such as reliability and response time, with clear application value in scenarios involving analysis of critical system properties.
The accuracy and robustness of the outputs of such Bayesian-framework-based quantitative verification depend heavily on the prior knowledge underlying the Bayesian inference. Prior knowledge typically comes from domain experts' experience and carries initial judgments about the probability of events. Once inaccurate or information-poor priors are used, they directly and negatively affect the subsequent quantitative analysis, ultimately yielding erroneous verification conclusions.
The parameter estimation step of existing quantitative verification has long suffered from an under-addressed pain point: conventional quantitative verification presupposes that the model can accurately reproduce the runtime behavior of real software. This premise is usually satisfiable at the model structure level, but correctly estimating core parameters such as transition probabilities and transition rates is extremely difficult. Current mainstream approaches—relying on domain experts to provide point estimates, inferring parameters through model fitting, or dynamically updating parameters at runtime—all introduce estimation errors that cannot be quantified. These errors propagate and accumulate throughout the subsequent verification process; their actual impact cannot be explicitly traced, but is usually quite significant.
System-level properties are divided into two distinct categories. PK-informed properties are those for which domain experts possess extensive relevant prior knowledge, typically derived from long-term empirical observation of the property's value distribution in past runs of the same system or in other systems with similar behavioral characteristics. The other category is elusive properties: these are either rare, under-studied, entirely new types of properties, or their observation is extremely costly and entails unacceptable operational risk, leaving almost no reusable historical observational data to support prior knowledge accumulation.
EPIK, proposed in the paper, is the first prior knowledge extraction and embedding framework for Bayesian learning in quantitative verification settings. Its core innovative idea departs from the traditional path of directly specifying priors for model transition parameters, instead using experts' knowledge of observable system-level properties to construct a bi-level optimization problem, achieving systematic extraction and embedding of prior knowledge.
EPIK takes as input past observations of system-level properties provided by domain experts—typically quantifiable PK-informed properties such as reliability and response time—each expressed as a probability distribution. On this basis it launches a multi-objective search-based knowledge extraction process, ultimately producing a Pareto-optimal approximate set of the unknown transition parameters. The resulting Pareto front can closely match expert expectations, supporting decision makers in quantitative analysis of rare, novel, or extremely costly-to-observe elusive system properties.
In its first stage, EPIK invokes the ParaMC tool to derive closed-form rational functions and for the PK-informed property Y and the elusive property Z respectively, so that the values of all properties can be expressed as explicit algebraic mappings of the unknown transition parameters. Extracting these algebraic formulas provides the basis for accelerating subsequent EPIK stages: by transforming the knowledge induction and knowledge embedding steps into independently solvable optimization problems, EPIK avoids repeatedly invoking the PMC module within the optimization loop, reducing the computational cost of the pipeline. You can combine this with the figure that follows to fully trace the output form of this stage and the dependencies across the whole pipeline.
In the knowledge induction stage, EPIK's optimization goal is to find hyperparameter values for the distributions of all unknown model parameters such that the distance between the property distributions given by domain experts and the property distributions generated under the current hyperparameters is minimized. For the unknown transition parameters commonly modeled as Beta distributions in such scenarios, the optimizable hyperparameters consist of the two shape parameters of the corresponding Beta distribution.
The knowledge embedding stage takes the Pareto-optimal solution set output by the knowledge induction stage as input, constructs the verification results for the elusive properties, and finally selects the parameter solution that best meets the requirements from the solution set. If there is only 1 elusive property in the scenario, this stage's optimization problem is single-objective; if the number of elusive properties is greater than 1, it becomes multi-objective, ultimately yielding a smaller Pareto subset filtered from the original Pareto-optimal solution set. The type of estimator chosen in this stage and the specific strategy for solving the optimization problem must both be consistent with the decision makers' expectations.
Because the actual Pareto fronts of the real systems used in the experimental evaluation are unknown and cannot be computed exactly, the research follows a commonly used statistical analysis convention in the field: for each system variant, a reference front is composed of the non-dominated Pareto front approximations extracted from all runs of all EPIK instances, then Pareto front quality indicators are used to quantify the goodness of fit of EPIK's output Pareto front approximations, with box plots finally used to display the central tendency and distribution characteristics of each indicator.
Under compliant scenarios and low prior-conflict scenarios, the distributions of results generated by EPIK closely approximate the PK-informed property distributions given by domain experts. As the prior conflict level rises, the distributional deviation of the generated results increases in step; this divergence is especially pronounced in medium- and high-conflict scenarios, where such conflicting knowledge prevents EPIK from further reducing the overall KL divergence value. Please refer to the figure that follows to intuitively understand how well the generated distributions match the expert prior distributions under different prior conflict levels, and how the degree of conflict affects the result deviation.
EPIK treats parameter non-identifiability as a design characteristic: the Pareto set it synthesizes is not a single "correct" parameter recovery result, and no parameter in the Pareto set is the absolute ground truth; rather, the set represents the collection of all acceptable priors consistent with both the formal model and the domain knowledge.
EPIK's verification reliability for elusive properties is strictly conditional: this capability holds only if the PK-informed properties are accurate and the underlying model structure itself is correct; direct verification of such properties cannot be accomplished at design time from the missing prior data.
The research mitigated internal validity threats that could interfere with causal inference by performing 30 independent repeated runs per experiment and using statistical tests to confirm the statistical significance of the results; it also specifically designed research questions targeting EPIK's ability to cope with inaccurate and conflicting prior knowledge, and all experimental results are publicly available to support reproducibility.
The research controlled external validity threats that could reduce EPIK's generalizability by constructing PK-informed properties based on domain expert knowledge. The confidence strength of prior knowledge can be conveniently encoded into the PK-informed properties, and integrating multiple experts' prior knowledge into the parameters of the corresponding distributions is also supported. The current evaluation uses established, mature case studies; experiments in more domains and application scenarios with different characteristics from this evaluation are needed to further validate EPIK's applicability and scalability.