[Paper Review] Mining Beyond the Bools: Learning Data Transformations and Temporal Specifications
The paper extends specification mining to data-rich temporal properties by using TSL f and Syntax-Guided Synthesis to learn data transformations, then synthesizes reactive controllers from mined specifications with high sample efficiency and strong generalization.
Mining specifications from execution traces presents an automated way of capturing characteristic system behaviors. However, existing approaches are largely restricted to Boolean abstractions of events, limiting their ability to express data-aware properties. In this paper, we extend mining procedures to operate over richer datatypes. We first establish candidate functions in our domain that cover the set of traces by leveraging Syntax Guided Synthesis (SyGuS) techniques. To capture these function applications temporally, we formalize the semantics of TSL$_f$, a finite-prefix interpretation of Temporal Stream Logic (TSL) that extends LTL$_f$ with support for first-order predicates and functional updates. This allows us to unify a corresponding procedure for learning the data transformations and temporal specifications of a system. We demonstrate our approach synthesizing reactive programs from mined specifications on the OpenAI-Gymnasium ToyText environments, finding that our method is more robust and orders of magnitude more sample-efficient than passive learning baselines on generalized problem instances.
Motivation & Objective
- Motivate automatic extraction of expressive temporal and data-aware specifications from execution traces.
- Develop a mining pipeline that discovers data-transforming functions and their temporal relations.
- Formalize a finite-prefix interpretation of Temporal Stream Logic (TSL f) to handle data and time.
- Integrate Syntax-Guided Synthesis to infer function updates across variables.
- Demonstrate reactive controller synthesis from mined specifications in OpenAI-Gym ToyText environments.
Proposed method
- Introduce TSL f, a finite-prefix version of Temporal Stream Logic that supports data transformations and first-order predicates.
- Propose a bottom-up function-discovery procedure using SyGuS to find update functions for every variable at each time step.
- Greedily merge constraint groups to form a compact function set that covers all transitions (Algorithm 2).
- Construct well-formed TSL f traces by ranking function-inputs to determinize updates across traces (Algorithm 3 and 4).
- Lift traces to function-application traces and apply specification mining with an extended Bolt framework for liveness (F) and safety (G) properties, yielding a conjunction G φ ∧ F ψ.
- Demonstrate synthesis of reactive controllers via Issy from mined TSL f specifications and evaluate on OpenAI-Gym ToyText environments.

Experimental results
Research questions
- RQ1Can we mine expressive data-transforming functions and temporal specifications from traces with arbitrary data types beyond Booleans?
- RQ2How can SyGuS be integrated to discover variable-update functions that explain trace evolutions?
- RQ3Does learning data-aware, temporal specifications improve robustness and sample efficiency of reactive controller synthesis compared to baselines?
- RQ4What is the expressive gap between TSL f and standard TSL in the context of finite traces, and how does it affect realizability?
- RQ5Do mined liveness and safety specifications generalize to unseen configurations in temporal-relational tasks?
Key findings
- TSL f can mine both data-transforming functions and temporal specifications from traces comprising non-Boolean data.
- The approach achieves perfect win rates on held-out ToyText configurations using as few as 20 examples (≤20).
- Compared to baselines, specification mining with TSL f is significantly more sample-efficient and generalizes better to unseen board sizes and hole placements.
- On FrozenLake-like tasks, the mined liveness and safety specifications enable robust, relational reasoning beyond memorized positions.
- The method demonstrates order-of-magnitude better sample efficiency than passive imitation baselines (e.g., stochastic Mealy, behavioral cloning, decision trees) and outperforms bit-blast LTL f baselines that lack action semantics.
- mined specifications express relational invariants (e.g., comparing player coordinates to hole coordinates) that generalize across board configurations.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.