Temporal-Difference Learning and Q-Learning · seed 1 · A4, ink-friendly. The answer key prints on its own page for grown-ups.
به انگلیسی

Learning values by bootstrapping

Computing · Machine Learning · ages 23-24
Name ______________________   Date ____________
  1. What does off-policy learning mean in Q-learning?

    • The target policy may differ from the behavior policy
    • The target policy must copy every exploratory behavior action
    • The behavior policy must avoid collecting exploratory data
  2. For a nonterminal transition from s to s', with reward r and discount gamma, what is the TD(0) target?

    • V(s) + gamma * V(s')
    • r + gamma * V(s)
    • r + gamma * V(s')
  3. Combining off-policy learning, bootstrapping and function approximation can amplify errors and cause divergence.

    Circle one:   True   False

  4. Use tabular Q-learning with alpha = 0.5 and gamma = 0.5. Initially Q(s,a) = 2. Reward 1 leads to a nonterminal state with next Q values 4 and 10; behavior next chooses the action valued 4. Later, update the same pair from a terminal transition with reward 6. What is Q(s,a) after both updates?

    • 4.25
    • 4
    • 5
  5. In tabular TD(0), V(s) = 2, reward r = 2, gamma = 0.5 and the nonterminal next-state estimate is 10. With alpha = 0.4, what is V(s) after one update? Use all pre-update values.

    • 3
    • 4
    • 6
  6. Does a TD update require the next-state estimate to be more accurate than the current estimate?

    • No. It uses that estimate without an accuracy guarantee
    • Yes. An independent test must rank the next estimate as better
    • Yes. The next estimate must equal the true value before use
  7. For the standard convergence result in finite tabular discounted Q-learning, which exploration requirement is needed?

    • Every state-action pair is sampled infinitely often
    • Only currently highest-valued actions are sampled infinitely often
    • Each state is visited once, then exploration is permanently disabled
  8. An off-policy learner with shared weights produces growing value estimates. Which conclusion is justified from that observation alone?

    • The observation proves that every reward supplied by the environment is incorrect
    • Instability is possible, but the observation does not identify its cause
    • The observation proves that the next-state estimates are already more accurate
LightMySky · lightmysky.comW1-mt_Z78E2llE0C-s1

Answer key

For grown-ups. Fold this page away before handing over the rest.

Learning values by bootstrapping W1-mt_Z78E2llE0C-s1

  1. The target policy may differ from the behavior policy · The behavior policy supplies experience. Q-learning's maximum target evaluates greedy next choices even when behavior chooses differently.
  2. r + gamma * V(s') · The target combines the observed reward with the discounted estimate of return remaining at the next state.
  3. True · This combination can be unstable. Shared predictions and estimated targets can feed errors into later updates, though divergence is not inevitable.
  4. 5 · Q-learning uses the maximum next value 10. The first target is 1 + 0.5 * 10 = 6, giving Q = 4. The terminal target is 6, giving Q = 4 + 0.5 * (6 - 4) = 5.
  5. 4 · The target is 2 + 0.5 * 10 = 7. The change is 0.4 * (7 - 2) = 2, giving new value 4.
  6. No. It uses that estimate without an accuracy guarantee · Bootstrapping uses an estimate in the target. It does not certify that estimate as more accurate, and a single update can move away from the true value.
  7. Every state-action pair is sampled infinitely often · The result requires continued sampling of every state-action pair, along with the other stated model and step-size conditions. A maximum target alone is insufficient.
  8. Instability is possible, but the observation does not identify its cause · Off-policy bootstrapping with shared weights can be unstable, but growth alone does not establish the cause. Check step sizes, rewards, sampling and implementation.
Worksheet · LightMySky