VKVlad KulikovPublic / lectures
RL for LLM11 / 13

Module 11. RL for LLM agents: tools, environments, and long trajectories

Choose your answers and select “Check”. Numbers accept a decimal point, comma, or simple fraction. Answers and drafts are saved in this browser and shared between RU/EN.

Use the author’s worked answers to review open questions and code tasks yourself. Code does not run on this site.

Checked: 0 / 4 · Correct: 0

Question P01 · Full history and hidden state

Consider a POMDP with a fixed environment model and initial distribution. A complete log contains every action, observation, and received reward, but an access flag has never been directly observed. Does uncertainty about the flag prevent the complete log from being a Markov information state? How does a belief state differ, and what can change when the log is truncated?

Question P02 · A controller-generated token sequence

The model emits the symbolic action OPEN_RED, after which a controller serializes it into long JSON. Which tokens belong in the policy loss?

Question P03 · Collector truncation

A transition gives reward 0, the next value is 0.7, and γ=0.9\gamma=0.9. Collection stops, but the environment has not terminated. Compute the one-step critic target.

Question P04 · Semantic action probability

Two JSON strings parse to the same action and have probabilities 0.25 and 0.35. What is the semantic-action probability?

Question P05 · Turn probability ratio

The turn log-probability sums under current and behavior policies are −2.1-2.1 and −2.4-2.4. Compute the sequence ratio.

Question P06 · Synchronous straggler cost

Four rollouts take 1, 1, 2, and 8 seconds. What is utilization for four synchronous workers?

Question P07 · Branching without a state snapshot

An agent branches after a search call, but every branch queries the live search service again. Are the actions compared from one state?

Question P08 · A homogeneous group

All eight rewards in a rollout group equal 1. What remains after subtracting the group mean?

Question P09 · Repeatable inspect reward

Why is +0.1+0.1 for every inspect more dangerous than a first-visit bonus?

Question P10 · What an agent benchmark measures

A browser-controller replacement improves success without changing model weights. Can the gain be attributed to RL?

Question P11 · Online or offline first

The environment sends real emails and has no safe reset. Which initial training route is preferable?

Question P12 · Experiment passport

Name at least six fields needed to reproduce a multi-turn rollout.