arXiv:2608.26763cs.AIAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.26763

Categorizer Automata for Discounted-Sum Payoffs

Nathalie Bertrand, Pranav Ghorpade, Senthil Rajasekaran, Sasha Rubin, Moshe Vardi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Categorizing continuous data into discrete bins is a fundamental operation in artificial intelligence. We introduce the categorizer automaton, a deterministic automaton that reads an infinite sequence of rewards and identifies which of finitely many bins contains its discounted sum. Categorizer automata generalize comparator automata, the special case of two bins, which have already proven useful in quantitative synthesis. Our main technical contribution is the construction of a categorizer automaton whose state space is linear in the number of bins, rather than exponential as obtained by a cross-product of comparator automata. We then apply categorizer automata to Markov decision processes, where they allow one to synthesize policies that maximize the expected utility of a discounted-sum payoff for utility functions that may be discontinuous. For piecewise-constant utility functions, the resulting algorithm is exact and runs in pseudo-polynomial time. For piecewise-Lipschitz utility functions, a class that includes any utility with bounded slope between finitely many jumps, it again runs in pseudo-polynomial time and yields an ε\varepsilon-optimal policy. We also show that the synthesis problem considered is PSPACE-hard already for piecewise-constant utilities.

1 Introduction

The fields of verification and sequential decision-making often involve assigning a numerical payoff to an infinite-length execution of a system. One of the most popular ways to reason about such executions is through the discounted-sum payoff (de Alfaro, Henzinger, and Majumdar 2003; Puterman 1994), which aggregates an infinite sequence of rewards along an execution through a discounted sum. For a discount factor d>1d > 1, the discounted-sum payoff of an infinite reward sequence r0r1…r_0 r_1 \ldots is DSd(r0r1…):=∑i=0∞d−iri\mathrm{DS}_d(r_0 r_1 \ldots) := \sum_{i=0}^{\infty} d^{-i} r_i.

Representing numerical properties of discounted-sum payoffs with finite-state automata allows synthesis and verification problems involving such properties to be handled using efficient automata-theoretic techniques. A notable example is the development of the comparator automaton (Bansal, Chaudhuri, and Vardi 2018, 2022). A comparator automaton reads an infinite reward sequence w and accepts it iff DSd(w)⋈t\mathrm{DS}_{d}(w) \bowtie t, for a fixed rational threshold t and a comparison relation ⋈\bowtie such as > or ≤\leq. Comparator automata have since been used for synthesis for satisficing (synthesize a “good enough” policy rather than an optimal one (Simon 1956)) objectives in two-player discounted-sum games (Bansal, Chatterjee, and Vardi 2021), synthesis that combines discounted-sum payoffs with temporal specifications (Bansal et al. 2022), and Nash-equilibrium realizability under discounted-sum payoffs in deterministic multi-agent systems (Rajasekaran, Bansal, and Vardi 2023).

In many settings, however, comparing the payoff with a single threshold does not provide enough information. For example, a decision maker may assign different utilities to losses, moderate gains, and large gains, or may wish to simultaneously track the payoff up to a prescribed accuracy.

In this paper, we introduce the categorizer automaton, a generalization of comparator automaton. Instead of reasoning about a single threshold like the comparator automaton, the categorizer automaton simultaneously considers several thresholds that divide the real line R\mathbb{R} into a series of disjoint intervals I1,…,InI_1, \ldots, I_n. The problem then becomes categorizing an infinite reward sequence by the interval that its discounted sum lies in, as opposed to comparing its discounted sum to a single threshold. That is, a categorizer automaton A\mathcal{A} reads an infinite reward sequence and identifies the unique interval containing its discounted sum. It does this based on which states repeat infinitely often along the run, a property that is captured by the automata-theoretic Büchi condition.

The comparator automaton is the special case of n=2n = 2 intervals. A single boundary point splits the real line in two, and the automaton computes one bit about the payoff: whether DSd(w)\mathrm{DS}_d(w) lies above or below the threshold. The use of finer partitions reveals more information about the payoff. In particular, because the discounted-sum payoff is bounded when the rewards are bounded, for every precision ε>0\varepsilon > 0 the bounded range of possible discounted sums can be divided into finitely many intervals of length at most ε\varepsilon (with the rest of R\mathbb{R} covered by two unbounded intervals) so that the resulting categorizer automaton identifies an interval of width at most ε\varepsilon containing DSd(w)\mathrm{DS}_d(w).

A natural way to build a categorizer automaton is to take one comparator automaton per boundary point and construct their cross-product. This works, but the state space grows exponentially with the number n of intervals. This is prohibitively large when n is part of the input, as in the approx-

Copyright © 2027, Association for the Advancement of Artificial Intelligence (www.aaai.org). All rights reserved.

imation regime above, where reaching precision ε\varepsilon forces a number of intervals that grows as ε\varepsilon shrinks.

Our main technical contribution is a construction of the categorizer automaton that has a state space that is linear in the number n of intervals. As in the comparator automata setting, we assume that rewards are bounded integers, the boundary points are rational, and the discount factor d is an integer. Under these assumptions, for every finite partition of R into intervals, our construction yields a categorizer automaton whose state space is linear in n and polynomial in the numeric value of the largest reward and the largest denominator among the boundary points when written in lowest terms. The main idea behind this construction is that the per-boundary comparisons are highly dependent on one another, rather than independent as a cross-product construction via comparator automata would suggest. Exploiting this dependence is what allows one to avoid the exponential blowup.

Applications A categorizer automaton can be composed with an arbitrary finite-state model whose executions generate bounded reward sequences, including transition systems, games, Markov decision processes (MDPs), and stochastic games. In the resulting composition, the interval containing the discounted-sum payoff is represented by a Büchi condition. Thus, via categorizer automata, objectives depending on the exact payoff interval, an approximate payoff value, or both, can be reduced to automata-theoretic objectives.

We apply categorizer automata to MDPs, where they allow one to synthesize policies that maximize the expected utility of a discounted-sum payoff under utility functions that may be discontinuous. Utility functions provide a standard way to express how a decision maker values different outcomes, allowing the model to reflect attitudes toward risk rather than only the payoff (Mas-Colell et al. 1995). Abrupt changes in utility (discontinuities) arise naturally when meeting a target or crossing a safety threshold. Using categorizer automata together with existing automata-theoretic techniques (Courcoubetis and Yannakakis 1998; Etessami et al. 2008), we obtain, for integer discount factors, an exact algorithm for piecewise-constant utilities with finitely many rational discontinuities. The algorithm computes the optimal expected utility and synthesizes a finite-memory policy attaining it. For utilities that are Lipschitz continuous on each of finitely many intervals but may be discontinuous at their boundaries, we build on the piecewise-constant result to compute the optimal value up to an additive error of ε\varepsilon and synthesize an ε\varepsilon-optimal policy. Both algorithms run in pseudo-polynomial time: their running times are polynomial in certain numerical parameter values, but not in the lengths of their binary encodings. This dependence is unlikely to be avoidable, as we also show that the synthesis problem is PSPACE-hard even for piecewise-constant utilities.

We remark that the previous applications of comparator automata discussed above have focused on non-probabilistic models. Our application to MDPs extends the literature to stochastic settings.

Related Work The classical discounted-sum payoff objective maximizes the expectation EMθ[DSd]\mathbb{E}_{\mathcal{M}}^{\theta}[\mathrm{DS}_{d}] over policies θ\theta in an MDP M\mathcal{M}. This corresponds to the linear utility u(x)=xu(x) = x and can be solved using the Bellman equations (Puterman 1994). In general, for a nonlinear utility uu, the objective EMθ[u(DSd)]\mathbb{E}_{\mathcal{M}}^{\theta}[u(\mathrm{DS}_{d})] no longer admits Bellman-style equations on the original state space of the MDP (Kadota, Kurano, and Yasuda 1998). Existing algorithmic approaches typically exploit special structure in the utility, as for exponential utility (Bäuerle and Rieder 2014), or augment the state space with accumulated reward and apply discretizations or finite-horizon approximations (Wu and Xu 2023). Such approximations naturally apply to continuous utilities: truncating the discounted sum changes the payoff by a vanishing amount, and uniform continuity over the bounded payoff range then bounds the resulting change in the utility.

This argument fails for discontinuous utilities. Near a discontinuity, an arbitrarily small change in the payoff can produce a large change in utility. The simplest example is a threshold utility, defined by u(x)=0u(x) = 0 for x<vx < v and u(x)=1u(x) = 1 for x≥vx \geq v, whose expected value is precisely the probability that the discounted-sum payoff is at least v. Threshold utilities have been studied by White (1993) and Wu and Lin (1999), who characterize Bellman-style equations on an extended, possibly infinite, state space and investigate the conditions under which optimal policies exist. From an algorithmic perspective, they have been studied in the finite-horizon setting (Xu and Mannor 2011). For the infinite-horizon setting, Randour, Raskin, and Sankur (2015) study percentile queries through an ε\varepsilon-gap formulation, which permits instances sufficiently close to the payoff threshold to remain unresolved. Thus, prior algorithms either restrict the horizon or relax the threshold comparison, whereas, for integer discount factors, our algorithm solves the exact problem.