cs.LGOct 27, 2026

Log-Derivative Trick for Parametric Markov Chains

Authors: Arthur Gall, Ichiro Hasuo, Thomas Seiller

Organizations: National Institute of Informatics, Tokyo, Japan · SOKENDAI (The Graduate University for Advanced Studies), Kanagawa, Japan · Imiron Co., Ltd., Tokyo, Japan · CNRS, France

Abstract

Optimizing expected rewards and reachability probabilities in parametric Markov chains (pMCs) is central to the analysis and synthesis of probabilistic systems with loops. While traditional symbolic synthesis approaches--such as parameter lifting and rational function generation--suffer from scalability bottlenecks, gradient-based optimization emerges as an effective alternative. However, existing gradient-based techniques still rely on symbolic gradient computation--such as solving large linear systems--over the global state space, inheriting scalability limits. Finite-horizon approximation is possible but introduces uncontrollable bias. In this paper, we introduce a scalable Monte Carlo gradient estimator based on a measure-theoretic generalization of the log-derivative trick. We prove that our estimator provides unbiased gradient estimates under almost-sure termination and standard regularity conditions. Crucially, our method avoids global state-space materialization and linear system solving entirely: it operates purely along sampled trajectories, requiring only black-box evaluations of local transition probabilities (or densities) and their derivatives. Unlike existing pMC techniques that are fundamentally restricted to finite discrete systems, our measure-theoretic framework naturally extends to continuous and general σσ-finite state spaces. Empirical evaluations on synthetic discrete pMCs and continuous-state case studies demonstrate that our method scales to state spaces far beyond the reach of existing solvers, significantly reducing execution time without introducing bias.

Figures & tables

Explore similar work

CardsList
  1. PAC Approximation and DIRECT Optimization for Parametric Markov Models

    Aug 3, 2026Zhiming Chi, Ying Liu, Andrea Turrini +2Robust Markov Decision ProcessesMarkov Decision Processes

  2. GradInf: Gradient Estimation as Probabilistic Inference

    Jul 8, 2026Gaurav Arya, Mathieu Huot, Moritz Schauer +2Probabilistic Programming

  3. Exact Discrete Stochastic Simulation with Deep-Learning-Scale Gradient Optimization

    Feb 23, 2026Jose M. G. Vilar, Leonor SaizStraight-Through EstimatorMarkov Chains