Automata Learning

Definition

Automata learning infers a finite automaton from evidence such as positive and negative traces, membership/equivalence queries, or observed interaction data.

Why It Matters

Learned automata can expose temporal task structure in a compact, inspectable form. In RL, that structure can turn history-dependent rewards into product-state planning problems and guide exploration.

Formalism / Key Objects

  • A deterministic finite automaton is typically written

with states Q, alphabet Sigma, transition function delta, initial state q_0, and accepting states F.

  • Passive algorithms such as RPNI infer a DFA consistent with positive and negative trace sets.
  • Active algorithms such as L* use membership and equivalence queries.
  • In DARP, confidence-weighted refinement attaches a score

to automaton states and revises low-confidence or inconsistent regions online.

  • Dynamic Automaton Refinement records the DARP-specific update rule, exploration bonus, and product-MDP maintenance scheme.
  • In LHRM, the learner induces the root transition function of a hierarchical Reward Machines model from goal, dead-end, and incomplete label traces using ILASP, while previously learned lower-height RMs may be available as callable components.

Connections

Common Confusions

  • Learning an automaton from traces does not guarantee the inferred automaton is the true task structure unless the evidence is sufficient and assumptions hold.
  • Passive inference avoids query overhead but can miss valid behavior absent from the data.
  • Active inference can identify structure with stronger interaction assumptions, but those queries may be unrealistic in deployed RL settings.

Key Sources