1. Home
  2. Explore
  3. Computer Science
  4. Automata Theory and Reinforcement Learning

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Automata Theory and Reinforcement Learning

  • 75Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: RL Foundations
In model-free reinforcement learning, the agent learns a policy that maps states to
or distributions over actions.

75 questions

  1. 1
    In model-free reinforcement learning, the agent learns a policy that maps states to
    _____
    or distributions over actions.
    Hint

    Think of what the agent must choose when it observes a state.

    Answer

    actions

    Explanation

    A policy specifies which action, or action distribution, the agent should use in each state.

  2. 2
    The objective of a reinforcement learning agent is to maximize its expected
    _____
    reward.
    Hint

    The objective accounts for reward gathered across a sequence of interactions.

    Answer

    cumulative

    Explanation

    The agent seeks a policy that maximizes its expected cumulative reward over time.

  3. 3
    In model-free reinforcement learning, the agent receives information about its current state and reward after it
    _____
    in the environment.
    Hint

    This is the agent's basic interaction with its environment.

    Answer

    performs an action

    Explanation

    The agent takes an action, and the environment returns the resulting state and reward.

  4. 4
    A model-free agent does not know the environment's transition system or its transition
    _____
    distribution.
    Hint

    This describes the likelihood of different state changes.

    Answer

    probability

    Explanation

    The agent learns from experience rather than being given the transition system or its probability distribution.

  5. 5
    A Q-function estimates the quality of a particular state and
    _____
    pair.
    Hint

    A Q-value assesses a choice available in a state.

    Answer

    action

    Explanation

    Q-values indicate how good it is to take a particular action in a particular state.

  6. 6
    In Q-learning, the learning rate controls how much the agent incorporates its latest
    _____
    into a Q-value update.
    Hint

    The update balances existing estimates against what just happened.

    Answer

    experience

    Explanation

    The learning rate determines the influence of the latest experience on the updated quality estimate.

  7. 7
    In the Q-learning update described in the talk, gamma is the
    _____
    factor applied to expected future reward.
    Hint

    This factor determines how future rewards contribute compared with immediate rewards.

    Answer

    discount

    Explanation

    Gamma is the discount factor used for the expectation of future reward.

  8. 8
    With Q-values available, a greedy policy chooses the action with the
    _____
    Q-value in the current state.
    Hint

    The policy selects the action judged best by its learned estimate.

    Answer

    highest

    Explanation

    The action with the highest Q-value is treated as the best action in that state.

  9. 9
    A conventional reward function can map a state, or a state-action-successor-state triple, to a
    _____
    value.
    Hint

    The output is a single numerical quantity.

    Answer

    scalar

    Explanation

    Reward functions are commonly programmed as mappings to scalar values, such as from states or state-action-successor-state triples.

  10. 10
    A key motivation for formal reward specifications is that writing reward functions for complex tasks can be
    _____
    .
    Hint

    Consider the effort involved in translating rich behavior into numerical feedback.

    Answer

    hard

    Explanation

    Complex task behavior can be difficult to encode as a conventional reward function.

  11. 11
    When an agent receives reward only after completing a long task, the reward signal is described as
    _____
    .
    Hint

    The signal is missing during much of the agent's behavior.

    Answer

    sparse

    Explanation

    Sparse rewards provide little or no feedback during a task and may require many interactions before success.

  12. 12
    The talk identifies the potentially enormous number of environment interactions needed to learn good policies as a problem of sample
    _____
    .
    Hint

    This concerns how effectively experience is used.

    Answer

    efficiency

    Explanation

    Sample efficiency is a challenge because reinforcement learning may require billions of interactions to learn good policies.

  13. 13
    The requirement that a robot not vacuum while someone is sleeping illustrates a
    _____
    constraint on behavior.
    Hint

    This kind of constraint is intended to prevent unwanted or harmful outcomes.

    Answer

    safety

    Explanation

    Avoiding vacuuming while someone is sleeping is an example of a safety-related task constraint.

  14. 14
    The bath-temperature task specifies that the water should be between 38 and 43 Celsius immediately
    _____
    someone enters the bathtub.
    Hint

    The condition is checked just prior to entry.

    Answer

    before

    Explanation

    The example requires checking that the bath temperature is in the stated range immediately before allowing entry.

  15. 15
    In the ice-cream task, reward is intended only after the complete sequence of actions, not when the behavior is only
    _____
    completed.
    Hint

    The freezer should not be left open midway through the task.

    Answer

    partially

    Explanation

    The desired reward is for completing the whole sequence, rather than for stopping after only part of it.

  16. 16
    The ice-cream task includes returning the ice cream and closing the freezer because leaving the freezer open should be
    _____
    heavily.
    Hint

    This is the opposite of rewarding the desired outcome.

    Answer

    penalized

    Explanation

    The specification treats leaving the freezer open as strongly undesirable behavior.

  17. 17
    The motivating reward examples are temporally extended, conditional, and syntactically
    _____
    .
    Hint

    They contain more structure than a simple one-step instruction.

    Answer

    rich

    Explanation

    The examples involve sequences, conditions, and substantial structure, making them difficult to represent with a simple reward mapping.

  18. 18
    Linear temporal logic is a propositional modal logic with temporal
    _____
    that describe properties of traces over time.
    Hint

    These logical operators express how propositions relate across time.

    Answer

    modalities

    Explanation

    LTL combines propositional logic with temporal modalities for expressing properties of traces.

  19. 19
    LTL can be interpreted over either finite or
    _____
    traces.
    Hint

    These traces do not have a final point.

    Answer

    infinite

    Explanation

    The talk notes that LTL properties can be interpreted over finite or infinite traces.

  20. 20
    The basic logical connectives mentioned for LTL are and, or, and
    _____
    .
    Hint

    This connective negates a proposition.

    Answer

    not

    Explanation

    LTL includes the familiar connectives and, or, and not; implication can be defined from them.

  21. 21
    The LTL temporal operators named in the talk include next, until, eventually, always, and
    _____
    .
    Hint

    It is another temporal operator that can be defined alongside eventually and always.

    Answer

    release

    Explanation

    The talk lists next and until, and notes that eventually, always, and release can also be defined.

  22. 22
    LTL is commonly used in verification and
    _____
    .
    Hint

    This is another formal-methods task involving the construction of systems or strategies.

    Answer

    synthesis

    Explanation

    The talk identifies verification and synthesis among the common uses of LTL.

  23. 23
    The LTL specification for avoiding vacuuming while someone sleeps can be expressed as always not vacuum when
    _____
    .
    Hint

    The proposition describes the condition under which vacuuming is forbidden.

    Answer

    sleeping

    Explanation

    The example says that vacuuming should never occur when someone is sleeping.

  24. 24
    The office-world sequential task requires the agent to visit A, B, C, and D in that
    _____
    .
    Hint

    The task is not merely to visit all four locations; their sequence matters.

    Answer

    order

    Explanation

    The running example specifies the ordered sequence A, B, C, then D.

  25. 25
    In the office-world examples, the stars mark furniture or fragile objects that the agent should not
    _____
    .
    Hint

    These objects should be avoided during navigation.

    Answer

    bump into

    Explanation

    The stars represent furniture or fragile things that the agent should not collide with.

  26. 26
    A reward machine represents a reward function using an automata-based
    _____
    .
    Hint

    It is a structured way to encode reward behavior.

    Answer

    representation

    Explanation

    Reward machines use automata structure to represent reward functions.

  27. 27
    The reward-machine vocabulary can contain human-interpretable events or properties detected from the environment state; these are also called
    _____
    .
    Hint

    They are the symbols used to label conditions in the machine.

    Answer

    propositions

    Explanation

    The example vocabulary includes propositions such as coffee, the mail room, the office, furniture, and locations A through D.

  28. 28
    A reward machine has a finite set of states and an
    _____
    state.
    Hint

    This is the state where execution of the machine begins.

    Answer

    initial

    Explanation

    The reward-machine structure includes a finite state set and a designated initial state.

  29. 29
    In a reward machine, each transition is labeled with a logical condition, or
    _____
    , and a reward.
    Hint

    This label determines when the transition can be taken.

    Answer

    guard

    Explanation

    Transitions have a logical condition called a guard, together with a reward specification.

  30. 30
    In a simple reward machine, a transition's reward may be a constant scalar value, while a more general machine may use a reward
    _____
    .
    Hint

    The more general form need not return just a fixed number.

    Answer

    function

    Explanation

    The talk distinguishes simple scalar rewards from the more general possibility of reward functions.

  31. 31
    A simple reward machine is described as a Mealy machine over the inputs formed by truth assignments to the machine's
    _____
    .
    Hint

    These are the logical symbols in the vocabulary.

    Answer

    propositions

    Explanation

    The simple machine processes truth assignments over its proposition vocabulary.

  32. 32
    A reward machine's terminal-state set can be empty when the machine is intended to operate into
    _____
    .
    Hint

    In this case, the machine has no designated stopping state.

    Answer

    perpetuity

    Explanation

    The formal definition allows an empty terminal-state set for a reward machine that continues indefinitely.

  33. 33
    The reward machine for visiting A, B, C, and D remembers progress through the sequence by changing its internal
    _____
    .
    Hint

    Its current position encodes how much of the task has been completed.

    Answer

    state

    Explanation

    The machine transitions through states corresponding to progress in the ordered task.

  34. 34
    For the coffee-delivery task, a reward machine can send the agent to a sink state if it hits the
    _____
    .
    Hint

    The forbidden objects in the office-world map trigger this outcome.

    Answer

    furniture

    Explanation

    The example transitions to a sink state upon hitting furniture, where the agent remains and receives zero reward.

  35. 35
    A reward machine can represent collecting coffee and mail before visiting the office without requiring the coffee and mail to be collected in a particular
    _____
    .
    Hint

    Either item can be obtained first in the example.

    Answer

    order

    Explanation

    The machine captures both paths: coffee then mail, or mail then coffee, followed by going to the office.

  36. 36
    A reward machine can make a reward non-Markovian by making it depend on the agent's
    _____
    .
    Hint

    The same current move can earn different rewards depending on what happened earlier.

    Answer

    history

    Explanation

    For example, moving to D earns a reward only if the agent has already visited A, B, and C in sequence.

  37. 37
    A reward machine provides a way to decompose a non-Markovian reward into more locally usable, Markovian reward
    _____
    .
    Hint

    The internal machine state records relevant history so reward can be expressed in terms of its current state.

    Answer

    functions

    Explanation

    The reward-machine state tracks task progress, allowing the reward to be handled through Markovian components.

  38. 38
    The straightforward way to apply Q-learning to a reward machine is to form a cross product of the environment state and the reward-machine
    _____
    .
    Hint

    The combined state includes both the world and task progress.

    Answer

    state

    Explanation

    Crossing the environment state with the reward-machine state yields an MDP for a basic Q-learning baseline.

  39. 39
    Hierarchical reinforcement learning learns options and a
    _____
    .
    Hint

    This component chooses how to coordinate the learned subpolicies.

    Answer

    meta-controller

    Explanation

    HRL combines options, or subpolicies, with a meta-controller that selects among them.

  40. 40
    In the HRL baseline described, an option is learned for each
    _____
    mentioned in the reward machine.
    Hint

    For the A, B, C, D task, the options aim at the corresponding named locations.

    Answer

    proposition

    Explanation

    The approach learns a policy for reaching each proposition, then learns how to compose those options.

  41. 41
    Reward-machine-based pruning in HRL uses the current reward-machine state to remove options that are not currently
    _____
    .
    Hint

    At a given task stage, only certain subgoals need to be pursued.

    Answer

    relevant

    Explanation

    For example, in state U0 of the ordered task, the agent should pursue A rather than options for later propositions.

  42. 42
    HRL can produce a suboptimal overall solution because its options are optimized
    _____
    in isolation.
    Hint

    Each subpolicy focuses on its own subgoal rather than the full task.

    Answer

    locally

    Explanation

    Individually optimal options may combine into a suboptimal overall policy when the choices are made myopically.

  43. 43
    In the coffee-delivery illustration, choosing the nearest coffee station can be locally optimal yet lead to a longer route to the
    _____
    .
    Hint

    The task is not complete when the agent has only collected coffee.

    Answer

    office

    Explanation

    The locally best route to coffee can make the subsequent trip to the office much longer.

  44. 44
    The talk contrasts HRL's possible local suboptimality with Q-learning's ability to preserve
    _____
    .
    Hint

    This refers to whether the best overall policy can still be learned.

    Answer

    optimality

    Explanation

    In the tabular setting, Q-learning preserves optimality, whereas myopic option choices may not.

  45. 45
    QRM learns a separate Q-value function for each state of the
    _____
    .
    Hint

    Each task-progress state gets its own value estimates.

    Answer

    reward machine

    Explanation

    QRM maintains a Q-function for each reward-machine state, such as Q0 through Q3 in the running example.

  46. 46
    In QRM, the agent selects actions using the Q-function for its current reward-machine
    _____
    .
    Hint

    The active task-progress state determines which values guide the action.

    Answer

    state

    Explanation

    When the reward machine is in U0, for example, the agent follows the policy informed by Q0.

  47. 47
    QRM reuses experience to update multiple Q-functions using
    _____
    -policy learning.
    Hint

    The method can learn about policies other than the one currently being followed.

    Answer

    off

    Explanation

    Off-policy learning lets QRM use each experience to update value functions for multiple reward-machine states.

  48. 48
    QRM's simultaneous updates use a form of
    _____
    reasoning: the agent considers what would have happened from other reward-machine states.
    Hint

    The method asks what the outcome would be under an alternative task-progress state.

    Answer

    counterfactual

    Explanation

    For each experience, QRM can update values as if the reward machine had been in other states.

  49. 49
    In the counterfactual example, moving to D while in U3 transitions the reward machine back to U0 and gives a reward of
    _____
    .
    Hint

    U3 represents having already visited A, B, and C in the required sequence.

    Answer

    one

    Explanation

    Once the agent has reached U3, moving to D completes the task, returns the machine to U0, and produces reward one.

  50. 50
    The reward-shaping method described augments the original reward using a
    _____
    function.
    Hint

    This function is used to adjust rewards without changing which policy is optimal.

    Answer

    potential

    Explanation

    The described shaping approach is based on defining a potential function and using it to modify rewards.

  51. 51
    A key property of the described reward shaping is that it does not prevent learning an optimal policy for the original, unshaped reward
    _____
    .
    Hint

    The shaping should guide learning without changing the task's underlying objective.

    Answer

    function

    Explanation

    The shaped rewards are designed to preserve optimal policies relative to the original reward function.

  52. 52
    In the talk's tabular setting, Q-learning is guaranteed to converge to an optimal policy in the
    _____
    .
    Hint

    The guarantee applies eventually, given sufficient learning.

    Answer

    limit

    Explanation

    The tabular Q-learning guarantee is convergence to an optimal policy in the limit, although many samples may be needed.

  53. 53
    For the office-world experiments, QRM reached the optimal policy in roughly 13,000 to 15,000 training
    _____
    .
    Hint

    The horizontal axis of the experiment plots counts of agent training interactions.

    Answer

    steps

    Explanation

    The reported QRM curve reached the optimum after approximately 13,000 to 15,000 training steps.

  54. 54
    In the Minecraft-like craft-world experiments, ordinary Q-learning did not solve the tasks even after one million training
    _____
    .
    Hint

    The experiment required far more training than the office-world example.

    Answer

    steps

    Explanation

    Q-learning remained near the bottom of the results after up to 10 to the sixth training steps, illustrating the difficulty of sparse rewards.

  55. 55
    In the continuous Water World experiments, tasks included avoiding pink balls and hitting a green ball followed by a
    _____
    ball.
    Hint

    The task specified an ordered sequence of colored targets.

    Answer

    yellow

    Explanation

    One example required the agent never to hit a pink ball and always to hit a green ball and then a yellow ball.

  56. 56
    In the reported discrete-domain experiments, adding reward shaping to QRM helped it converge to an optimal policy more
    _____
    .
    Hint

    Intermediate feedback can reduce the time spent learning from sparse rewards.

    Answer

    quickly

    Explanation

    The shaped rewards provided intermediate guidance and improved convergence speed in the first two experiment graphs.

  57. 57
    In the reported continuous-domain experiment, reward shaping did not help QRM and instead
    _____
    it.
    Hint

    The result contrasted with the discrete-domain graphs.

    Answer

    hindered

    Explanation

    The talk reports that reward shaping performed worse in the continuous domain and hindered QRM there.

  58. 58
    A reward machine can be constructed directly or translated automatically from another formal
    _____
    .
    Hint

    Examples include formal specifications that can be compiled to automata.

    Answer

    language

    Explanation

    The talk describes direct specification and automatic translation from other formal languages as ways to create reward machines.

  59. 59
    Reward machines can serve as a normal-form representation because multiple specification languages can be translated into the same automata-based
    _____
    .
    Hint

    The benefit is that learning methods can operate on a common representation.

    Answer

    structure

    Explanation

    Using reward machines as a common representation avoids needing a separate learning algorithm for each input language.

  60. 60
    A regular language can be translated into a finite-state
    _____
    .
    Hint

    This standard relationship connects language recognition with machine states and transitions.

    Answer

    automaton

    Explanation

    The talk invokes the correspondence between regular languages and finite-state automata as a basis for translation to reward machines.

  61. 61
    One way to generate reward machines is to use symbolic planners to turn high-level goals into plans that populate a reward
    _____
    .
    Hint

    The plans provide guidance points or waypoints for the agent.

    Answer

    machine

    Explanation

    A high-level planner can generate plans from goal specifications, and those plans can be used to construct a reward machine.

  62. 62
    A high-level goal such as retrieving glasses can be turned into plan-derived waypoints that provide a richer reward structure than a single sparse goal
    _____
    .
    Hint

    The planner offers intermediate guidance toward task completion.

    Answer

    reward

    Explanation

    Plan-derived instructions can provide temporally extended guidance rather than rewarding only the final outcome.

  63. 63
    In a partially observable environment, an agent may need memory because its current observation does not reveal the full state of the
    _____
    .
    Hint

    A current view may omit what happened earlier or what is outside the observation.

    Answer

    world

    Explanation

    Partial observability means the agent cannot infer all relevant information from its current observation alone.

  64. 64
    One traditional way to address partial observability is to construct a
    _____
    state.
    Hint

    This representation captures uncertainty about which underlying state the agent occupies.

    Answer

    belief

    Explanation

    POMDP methods commonly use a belief state to represent uncertainty about the world state.

  65. 65
    Another way to characterize relevant information in a partially observable problem is by the history of states and
    _____
    .
    Hint

    This includes what the agent has observed and done over time.

    Answer

    actions

    Explanation

    The talk notes that the state can be considered as encoded by the history of states and actions performed.

  66. 66
    In the three-room example, pressing the button in the yellow room causes a cookie to appear randomly in either the blue room or the
    _____
    room.
    Hint

    It is the other possible room besides blue.

    Answer

    red

    Explanation

    After the button is pressed, the cookie appears in either the blue room or the red room.

  67. 67
    In the three-room task, the agent must remember what it has tried because, at the T-junction, the correct action depends on its
    _____
    .
    Hint

    The same location can require different actions after different previous events.

    Answer

    history

    Explanation

    The agent's choice depends on whether it has pressed the button, searched a room, or found and eaten a cookie.

  68. 68
    The learned reward machine in the partial-observability work acts as external
    _____
    for the agent.
    Hint

    Its state stores information needed to choose an action later.

    Answer

    memory

    Explanation

    The reward-machine state allows the agent to remember task-relevant history that is absent from its current observation.

  69. 69
    The reward machines for the partially observable examples were learned using discrete optimization via
    _____
    search.
    Hint

    The method's name refers to a search procedure that avoids revisiting certain recent moves.

    Answer

    Tabu

    Explanation

    The talk states that the automata were learned through discrete optimization using Tabu search.

  70. 70
    In the cookie example's learned reward machine, eating the cookie produces a reward of one and returns the machine to
    _____
    .
    Hint

    This is the initial state shown in the machine.

    Answer

    U0

    Explanation

    The machine awards one after the cookie is eaten and then returns to U0.

  71. 71
    The reward-machine learning work for partial observability assumed access to high-level binary classifiers or event
    _____
    .
    Hint

    These identify events such as a button press or the presence of a cookie.

    Answer

    detectors

    Explanation

    The approach did not learn the vocabulary from scratch; it assumed classifiers or detectors for relevant events.

  72. 72
    The speaker noted that translating LTL to a deterministic finite automaton can cause an exponential increase in automaton
    _____
    .
    Hint

    The concern is that the resulting machine may have many more states.

    Answer

    size

    Explanation

    The discussion highlights the potential exponential blowup when compiling higher-level specifications into automata.

  73. 73
    One possible response to automaton-size concerns mentioned in the talk was to use
    _____
    representations.
    Hint

    These representations can help avoid expanding all details into a large explicit machine.

    Answer

    lifted

    Explanation

    The speaker mentioned lifted representations as one way to help keep automata manageable.

  74. 74
    The talk identifies learning from expert demonstrations as a possible route related to inverse reinforcement
    _____
    .
    Hint

    This approach infers objectives or reward structure from observed behavior.

    Answer

    learning

    Explanation

    The discussion connects demonstrations and inferring reward machines with inverse reinforcement learning.

  75. 75
    For learning reward machines in partially observable settings, the goal was to maximize the external reward supplied by the environment while using the machine as
    _____
    .
    Hint

    The learned machine stores task-relevant information from earlier events.

    Answer

    memory

    Explanation

    The learned reward machine's external state can serve as memory to help the agent maximize the environment's external reward.

1 of 75
Question 1 of 75

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent