Reading between the Lines: Learning to Map High-Level Instructions to Commands
Paper · 2010 · S.R.K. Branavan, Luke Zettlemoyer and Regina Barzilay
Summary
A troubleshooting guide can tell a reader to open the Control Panel and leave the route there unstated. A person familiar with the interface can supply the missing steps. An instruction-following system has to discover them. The words identify a destination, while the controls available at the start may give little indication of how to reach it. Branavan and colleagues ask whether a system can learn to fill these gaps by following written instructions in a working interface, without a hand-built account of how its menus and windows behave.
The authors train a policy, a rule for choosing the next action from the current screen and the document. During training, it tries commands in Windows and records what happened. At later decisions, it can consult those records to see where a command might lead, sometimes through several additional steps. A menu-opening command can then receive credit for making a named object accessible farther along the route. The instructions influence which parts of the interface the system visits, so the records increasingly reflect the kinds of navigation that the documents require. A rough reward based on matches between document words and interface labels supplies feedback during ordinary training. The correct command sequences are reserved for evaluation and a separate training comparison.
On the held-out set containing high-level instructions, the system correctly interprets 61.5% of the high-level items. In that set, a high-level item corresponds to an average of 3.11 interface commands. Complete-document accuracy is lower, at 0.283, because a missed step can put the interface in a state where later steps are unavailable. On the separate low-level test set, where each instruction explicitly describes a command, action accuracy is 0.793 against 0.647 for the earlier system. Complete-document accuracy is 0.517 against 0.375. A same-size collection of transitions obtained by issuing random commands produces substantially weaker results on the high-level test set. What the system observes during training matters as much to this comparison as its ability to retain observations.
The authors also use the learned connections between words and commands to write out some of the missing steps. Among 60 tagged high-level test instructions, they find step-by-step descriptions for 33. Of these, 29 describe the necessary commands correctly. The authors make the code, data and annotations available. The experiments show how experience with an interface can supply some of the knowledge that instructional prose assumes its readers already have.
Deep dive: Reading between the Lines: Learning to Map High-Level Instructions to Commands
How a system learns the missing steps in Windows help instructions by recording what interface commands do and looking ahead to where they lead. · about 36 minutes to read
The problem and its context
An instruction can name a destination
A help document moves between levels of detail. One phrase can name a mouse operation and the object on which to perform it. The opening instruction of the same procedure can ask the reader to get to a particular part of the system, leaving the navigation implicit. Both are instructions in ordinary use. They pose different problems for a system that has to decide what to do next.
Consider the paper’s example of opening the Control Panel. That name can match an object encountered along a successful route. At the starting screen, however, a useful first move can be to open the Start menu. The name of that menu provides little lexical evidence for the move. The evidence comes from what becomes accessible after opening it and continuing through the interface. A system that scores commands solely by their fit to the current words and visible objects has a reason to choose the destination once it appears. It has much less reason to choose the steps that make the destination appear.
The paper uses low-level for an instruction that explicitly describes one executable command. A request to double-click the System object supplies both an operation and a target. A high-level instruction can call for one or more commands whose details the writer has left implicit. The distinction concerns what the writer has put into words. It depends on the available command vocabulary, since that vocabulary determines what counts as an executable step. It also depends on the starting screen, since the route to a named object can change with what is already open.
The overall output is an executable command sequence for a document. To produce it, the system has to determine which words belong with an operation, choose an operation and its arguments, and keep track of what remains to be interpreted. The interface changes as commands run. A correct association between a phrase and an object may be acted on only after some other part of the document has brought that object into view. Conversely, a command can contribute to the correct sequence while supplying very little evidence of a direct match to the phrase that motivated it.
This makes the task a form of grounded natural language understanding. The relevant interpretations have consequences in a setting that the system can inspect and act in. A linguistic association and its practical usefulness can therefore come apart. Recognizing the name of a settings panel helps identify a likely destination. Knowing how to make that panel available requires information about the interface.
What earlier approaches assumed
The paper describes a tradition of interpreting goal-level instructions with hand-engineered domain knowledge. The system starts with an account of the available operations, the conditions under which they can be used, and the effects they produce. Interpretation rules connect the instruction to that account. Logical inference can then supply steps the writer left out. Such an approach gives the interpreter a basis for considering actions that receive little support from the wording alone. Its starting point is a person’s explicit description of how the environment works.
Another line of work learned relationships between language and an observed setting. The immediate predecessor, Reinforcement Learning for Mapping Instructions to Actions, treated interpretation as a sequence of decisions and used feedback from execution to train those decisions. Its design assumed that each necessary command had a corresponding explicit expression in the document. The 2010 paper identifies a related assumption about direct correspondence in other grounded learning work, including Learning Semantic Correspondences with Less Supervision.
That assumption gives a learner a useful constraint. It can search for a stretch of wording to associate with each command. A command that would take the interface to the right place but lacks a matching phrase strains the same constraint. Adding more possible word–command associations would still leave the system with the problem of deciding which unmentioned steps to take and when to stop taking them.
The paper singles out work by Eisenstein and colleagues as a different approach to the relationship between text and domain knowledge. In the example it cites, written rules describe how a card game works, and the learner uses them to acquire information about the game. A troubleshooting guide serves a different purpose. It assumes familiar interface behavior and tells the reader what outcome a particular procedure calls for. Here, executing commands supplies evidence about the interface, while the documents direct the learner toward behavior worth observing.
A policy with access to partial experience
The authors situate their design between approaches to reinforcement learning. In reinforcement learning, a system chooses actions and adjusts its choices using feedback about their results. In the kind of model-based approach the paper discusses, the learner builds a representation of environment dynamics and derives a policy from it. The paper points to uses of this approach in dialogue management and notes the difficulty of relying on a compact prediction of an environment whose behavior varies widely across contexts. In its Windows example, the effect of selecting a File menu depends on the application in which that menu appears.
Policy learning offers a different starting point. The system can learn to choose among currently available actions without first constructing a comprehensive account of what each action does everywhere. The earlier instruction mapper adopts that strategy. The 2010 paper keeps its policy-learning framework and gives the policy access to observations about future states. The authors relate this use of information about what follows a decision to a concept from approximate dynamic programming.
The important distinction is between a prediction supported by past visits and a general rule about interface behavior. If the learner has already seen a sequence of menu operations reveal a relevant object, it can use that route as evidence. When a command has never been tried from the current state, the stored experience can be silent. Partial knowledge is useful because it helps score candidate actions in familiar parts of the interface while leaving the policy able to act on current evidence elsewhere.
The authors’ proposal addresses two problems together. The learner needs practical knowledge to interpret instructions that omit steps, and it needs a way to acquire the practical knowledge most relevant to those instructions. A training run serves both purposes. It tries an interpretation of a document and, by executing it, generates observations that can affect the interpretation of future documents.
The method, step by step
Following a document while changing the screen
The inputs are written instruction documents, an environment in which the learner can execute commands, and a reward function that scores a completed attempt. The desired output for each document is an ordered sequence of environment commands. Ordinary training gives the learner a way to try that sequence and observe the result. It leaves the sequence to be discovered.
A decision has a linguistic part and a practical part. The learner picks a span of document words and decides which command to associate with it. It observes the current state of the interface before making that decision. A direct instruction can be handled by pairing its words with the corresponding command, executing it, and marking those words as handled. For an instruction that gives a goal, preparatory commands can change the screen while leaving the words available for a later decision.
In the Control Panel example, suppose past visits have recorded that a route from the current screen eventually makes the Control Panel icon visible. The system can take that information into account while scoring the first command on the route. The name on the icon supplies evidence even before the icon is on the screen. The first command can open a menu, with the goal words still awaiting interpretation. At the next decision, the new screen determines which commands are available, and the learner can again consider their known consequences. This procedure makes a decision at each step, so an incomplete record of what comes later can still help with the immediate choice.
The diagram follows a training attempt. Its last step uses the feedback from the whole attempted interpretation, while the record of interface changes grows as commands are executed.
Learning to follow an instruction document
The steps in order.
Representing the screen and the text together
The mapping is formalized as a Markov decision process, or MDP. In this formulation, the current state and selected action determine the distribution of the next state. The state must capture enough information to express both what the interface currently permits and what remains to be done with the document. A screen alone would lose track of which words had already been assigned. A document and its assigned spans alone would leave out which objects are available to act on.
s = (E, d, W)
Here s is the mapping state observed at a decision. E is the state of the external environment, including the accessible objects and their properties. d is the document under interpretation. W records the spans of document words selected by earlier actions. The parentheses group these components into a tuple, which is an ordered collection of values.
s₀ = (E_d, d, ∅)
Here s₀ is the state at the start of an attempt. The subscript ₀ marks the initial position. E_d is the environment’s starting state for document d, and d is the same document as in the general state formula. The empty set symbol ∅ indicates that the record of used spans is empty.
a = (c, Wᵃ)
Here a is an action in the interpretation process. c is the selected environment command, and Wᵃ is the span of words selected by that action. The superscript ᵃ associates the span with the action. The tuple represents a single decision about both the document and the environment.
The available actions come from the candidate commands of the current environment and subspans of the words that remain unused. The interpreter can attach a command to a span that is separated from previously selected spans. This matters when the sentence mentions events in a different order from the one in which they must occur. The paper gives a File menu example in which the option to exit is mentioned before the instruction to open the menu. The action that opens the menu has to occur while the exit option is still unavailable.
The framework also accommodates words that carry no executable instruction. For those words, the command component can be null, so the interpreter can mark the words as handled without having to assign a real operation to them. The extension for high-level instructions permits the complementary case, where an operation happens without consuming any of the text.
|Wᵃ| = 0
Here Wᵃ is the word span attached to action a. The vertical bars give the number of words in the span, and 0 means that the span is empty. This choice allows the interpreter to leave all remaining words in place as it carries out a preparatory command. A null command handles words without requiring an interface operation. An empty span allows an interface operation without requiring words to be marked as handled.
That flexibility widens the search. In the earlier framework, consuming words gives each command a possible linguistic justification and also advances the attempt towards completion. An empty-span action may prepare the screen for a later action, or it may send the learner somewhere irrelevant. Another empty-span action can follow it. The authors use the consequences of candidate commands to guide these choices because listing all possible continuations at every decision would be impractical.
Updating both parts of the state
The current environment and the selected command determine the next environment state. The general formulation allows several outcomes for the same state and command. The GUI used in the experiments has deterministic transitions in the authors’ setup, so repeating a command from the same state has the same outcome.
E′ ∼ p(E′ | E, c)
Here E is the current environment state, c is the executed command, and E′ is the environment state after execution. The prime marks the successor. p(E′ | E, c) gives the distribution of successors conditional on E and c, and ∼ indicates a draw from that distribution. The system observes the successor after acting. It begins training without a specification of the transition function p.
W′ = W ∪ Wᵃ
Here W is the record of spans used before the action, Wᵃ is the span selected by action a, and W′ is the updated record. The union symbol ∪ adds the selected span to the record. With an empty selected span, the record stays as it was while the environment can change.
s′ = (E′, d, W′)
Here s′ is the new mapping state after the decision. E′ is the observed successor environment state, d is the document, and W′ is the new record of used spans. The transition of the full mapping state is denoted by p(s′ | s, a), where s and a are the prior mapping state and selected action. An interpretation continues until the words of the document have been mapped.
This separation explains why remembering interface transitions can help across documents. The same command can have the same effect on a given screen while the learner is interpreting different sets of words. A new document changes d and the record W. An observed effect of a command still belongs to the reusable part of the state description, E.
Scoring an action
The inherited policy assigns a score to each available interpretation action. The score is a weighted combination of features, which are measurements of properties that might make a candidate useful. A local feature can capture a relationship between the current wording and the current environment. The policy learns how much weight to put on such evidence.
p(a | s; θ) = exp(θ · φ(s, a)) / ∑ₐ′ exp(θ · φ(s, a′))
Here p(a | s; θ) is the policy’s probability for action a in mapping state s, with weights θ. The feature vector φ(s, a) describes the state and action. Both θ and φ(s, a) have n components, where n is the feature dimension. The dot · denotes their dot product, the sum of products of corresponding components. exp is the exponential function. The denominator sums the exponentiated scores over candidate actions a′ in the state, so the probabilities are normalized across the available choices.
The learner samples actions from its policy during training, with an additional exploration rule described below. In the paper’s description of action prediction, the policy selects the most probable action. Thus the probability distribution serves both to rank alternatives and to support experience with alternatives during learning. Even when a candidate has a plausible local match, training can reveal consequences that make it a poor choice for the document as a whole.
A complete attempt is represented by its history. This includes every decision and its resulting mapping state.
h = (s₀, a₀, …, sₘ₋₁, aₘ₋₁, sₘ)
Here h is a history for document d. Each s with a subscript is a mapping state, and each a with a subscript is an action. s₀ is the initial state, a₀ is the first action, and the ellipsis … stands for the intervening state–action pairs in order. m is the number of actions in the history. The last action is aₘ₋₁ from state sₘ₋₁, and sₘ is the resulting terminal state.
θ = arg maxθ 𝔼ₚ₍ₕ | θ₎[r(h)]
Here θ on the left is the weight vector sought by training. arg maxθ means to choose the weights that maximize the quantity that follows. 𝔼 denotes expectation, an average taken over possible histories h under p(h | θ), their probability distribution for those weights. r(h) is the real-valued reward assigned to history h. The objective is applied to the analysis of each training document d in the document set D. The reward concerns a history, so choices made early in the attempt can gain or lose support through their contribution to later events.
Recording a partial account of the environment
The paper augments the policy with a record of observed environment transitions. It denotes this partial transition representation by q(E′ | E, c), using E for the source environment state, c for the command and E′ for the successor. In the algorithm, the representation is updated by adding observed triples. For the deterministic GUI, a stored triple supplies a known outcome for that state and command. An unrecorded state–command pair gives the lookahead procedure no observed outcome to follow.
q ← q ∪ {(E′, E, c)}
Here q is the current collection of observed transitions. The arrow ← assigns the updated collection to q. The union ∪ adds the singleton set in braces, whose sole member is the tuple (E′, E, c). Its entries are the observed successor state E′, the state E before execution and the command c that was executed. They come from the current mapping step and its result. The transition record starts empty.
One way to collect these observations would be to operate the interface at random. The method instead uses the documents it is trying to interpret. It resets the environment to the starting state specified for a document, runs the policy on that document, and observes what the chosen commands do. Early choices often reflect poor interpretations. As the policy starts making better choices, it tends to record transitions that are more relevant to the instruction documents.
To see why this matters, picture a set of recorded states and the commands that connect them. From one current screen, a particular click can lead to a known next screen. From that screen, further known commands may lead to a state where some part of the instruction can be satisfied. A route with a missing observation stops yielding evidence where that observation is missing. A longer record helps only insofar as its entries connect the screens and commands that matter to the current document.
Giving the policy a view of possible continuations
The paper calls the added measurements lookahead features. They allow one candidate action to benefit from what the learner knows about states reachable after it. In the Control Panel illustration, past exploration has established that a particular candidate can lead through recorded states to a screen containing the named icon. The immediate effect of that candidate supplies only part of the evidence for choosing it. Its later consequence can improve its score.
The first lookahead property is the best reward that the system estimates can be achieved by a sequence passing through the state under consideration. Its estimate is restricted to what the transition record can support. A path that the system has never observed may offer a better continuation. A promising path in the record can still help distinguish candidate moves when their local features give little guidance.
The next property is the length of the sequence associated with that estimated reward. Reward and length are separate measurements. As a consequence, the policy can learn how much weight to give reachability and how much to give the amount of navigation involved. The formulation leaves that tradeoff to learning from the documents.
The final property is the average reward previously received at an environment state during the interpretation of documents. It carries information across attempts. A screen encountered repeatedly in rewarding interpretations may be a useful place to reach, even when its immediate relationship to the current wording is weak. This is a different signal from the estimated best continuation, which concerns what the known transition structure makes possible through the state.
The features can disagree. A familiar screen may have a favorable average from past attempts while the current document points elsewhere. A short known sequence may lead to a poor outcome. A route that looks promising can seem worse when omissions in the record hide its useful steps. Giving each measurement its own feature lets the learner adjust their respective influence.
p(a | s; q, θ) = exp(θ · φ(s, a, q)) / ∑ₐ′ exp(θ · φ(s, a′, q))
Here p(a | s; q, θ) is the probability of choosing action a in mapping state s with transition record q and weights θ. The vector φ(s, a, q) contains the local and lookahead measurements for the candidate. The dot · forms a weighted score, and exp exponentiates it. The denominator, written with ∑, totals the exponentiated scores for the available actions a′ in the same state, using the same record and weights.
The altered feature vector is the main change to the policy. The current screen and the document still matter at every decision. The transition record makes it possible to give weight to effects that are absent from the current screen but visible in past experience. When the current phrase explicitly names an operation and object, local evidence can still be strong. Lookahead can also help in that case by showing that one superficially plausible operation leads toward a better continuation.
Learning from attempted interpretations
Training begins with small random values for the weights and an empty transition record. The procedure passes through the document set repeatedly. For a given document, it restores that document’s initial environment state, selects actions and executes them. Each new observation can enter the record before features are computed for the next decision. After the attempt ends, the policy weights are updated using its reward.
Δ ← ∑ₜ [φ(sₜ, aₜ, q) − ∑ₐ′ φ(sₜ, a′, q) p(a′ | sₜ; q, θ)]
Here Δ is the feature-based direction for the weight update. The arrow ← assigns that direction. The outer ∑ₜ sums across decision times t in the sampled history. At time t, sₜ is the mapping state and aₜ is the action taken. The vector φ(sₜ, aₜ, q) gives the features for that action using the transition record q. The inner ∑ₐ′ sums over the candidate actions a′, each with features φ(sₜ, a′, q) weighted by its policy probability p(a′ | sₜ; q, θ) under parameters θ. The minus sign gives the selected action’s features relative to the policy’s expected features at the decision. The brackets group this comparison before it is summed over the attempt.
θ ← θ + r(h)Δ
Here θ is the current vector of policy weights, ← assigns its new value, and + adds the update to the current vector. r(h) is the reward for the sampled history h, and Δ is the direction computed from its decisions. Juxtaposition in r(h)Δ denotes multiplication of the vector by the scalar reward. This is the update as shown in the algorithm. The experimental implementation also uses a learning-rate schedule to control the size of stochastic gradient steps.
In a rewarding history, the update favors feature patterns associated with the chosen actions relative to the alternatives. A negative reward can move the weights in the opposite direction. A single attempt supplies feedback for all its choices, including preparatory commands whose contribution was indirect. This is policy-gradient learning because the update changes the parameters of the action policy in a direction estimated from sampled histories and their rewards.
The experiments encourage additional exploration with an epsilon-greedy strategy, using ε set to 0.1. The paper also identifies dead-end states by the lowest possible immediate reward and reduces the likelihood of actions known to lead to them. The transition record can consequently help redirect exploration even when it says little about a complete successful route. The authors disable the lookahead features for a fixed initial period because the earliest observations give sparse evidence. Those early attempts still supply experience for the record.
The authors describe a modified search-then-converge learning-rate schedule, with the rate tied to the fraction of training documents that receive positive reward during the current iteration. The algorithm presents repeated passes over the documents and describes training as continuing until total reward on the training documents converges. Through those passes, the two learned components affect each other. Policy weights influence what gets tried. Those trials add transitions, which change the information available to the policy when it scores later choices.
What the Windows setup supplies
The experimental environment runs Windows 2000 in a virtual machine. The learner’s state includes the visible user-interface objects and properties such as their labels and parent windows. The command set is left-click, right-click, double-click and type-into. Each command takes an interface object. Typing also takes the text to enter. The paper reports an average branching factor of 27.14 commands at a step of interpretation. The choice of word span adds a separate dimension to the decision.
For ordinary training, the reward approximates whether the document was followed. The authors assume that each sentence describes at least one command and that the relevant words match the label of the object involved. A history earns positive reward if there is a command with such a match for every sentence. Otherwise, it earns negative reward. In a sentence that calls for opening a named panel, a command involving the matching object can satisfy this evidence requirement. The intermediate command that opens access to it can matter through the rest of the history.
The reward gives the learner a reason to connect text to interface behavior without providing an annotated sequence for each attempt. Its usefulness depends on the text and interface having enough recognizable labels. It can be satisfied by a history containing a plausible label match even if the full task was mishandled. Evaluation therefore uses a separate comparison with manually annotated action sequences.
Experiments and results
Training data, test data and comparisons
The system trains on the dataset used by the earlier instruction mapper. That dataset contains low-level instructions and is divided into 70 training documents, 18 development documents and 40 test documents. The authors collect an additional test set of 60 documents from Microsoft’s Help and Support website. Every document in the additional set contains a high-level instruction. The paper reports an average of 1.03 high-level instructions per document for that set.
Across the datasets, the paper reports 188 documents, 7448 words and a vocabulary size of 739. The reported average number of actions per document is 10. These statistics describe the combined material. The training split comes from the low-level collection, and the newly collected guides are used to test interpretation when high-level instructions occur.
The earlier method is labeled BCZB09. Its reported results provide the comparison for the new method, and the paper gives results for both approaches with and without the annotation-based training condition. In the standard condition, the new method uses the reward based on sentence coverage and object-label matches. In the annotation condition, a history matching the annotation earns positive one, and other histories earn zero. The authors use this reward to simulate fully supervised training and describe its policy-gradient objective as equivalent to stochastic optimization of conditional likelihood.
This condition changes how experience is judged. The annotated history supplies direct evidence about the sequence the learner should reproduce. Using an annotation to compute a training reward is separate from using annotations to evaluate held-out outputs. All the reported accuracy comparisons rely on annotated sequences for evaluation.
What the accuracy measurements count
Action accuracy is the proportion of actions judged correct against the annotation. Document accuracy requires every action in the document to be correct. The high-level set also has a separate measurement of whether the high-level instructions were correctly interpreted. That measurement answers a different question from action accuracy across the set, since a goal-level phrase can give rise to several executable commands and the set also contains explicitly described steps.
The metrics are affected by execution order. A wrong action near the beginning can close off the route modeled by the reference sequence. Later instructions may be linguistically straightforward, yet the objects they mention may now be unavailable. Action accuracy therefore reflects some consequences of earlier decisions as well as the interpretation of each phrase. Document accuracy is especially demanding because success requires the entire run to hold together.
The values below retain the paper’s fractional scale. A value labeled “action accuracy” refers to the relevant test set’s actions. A value labeled “document accuracy” refers to complete test documents. The high-level instruction measurement is reported separately so its scope remains clear.
Results on the low-level test set
With the standard training reward, the earlier method has action accuracy of 0.647 and document accuracy of 0.375. The new method reaches 0.793 for actions and 0.517 for documents. The paper characterizes the low-level gain over the earlier approach as at least 14% in absolute terms for both types of evaluation.
With annotation-based training, the earlier system reaches 0.756 action accuracy and 0.525 document accuracy. The new system obtains 0.793 action accuracy and 0.650 document accuracy. At the reported precision, its action score is the same under both rewards, while its complete-document score rises with annotation-based training. Since the metrics count different units, this pattern is consistent with a change in how errors are distributed across documents. The aggregate figures leave that distribution open.
Complete-document accuracy on the low-level instruction test set
The new method leads under each training condition and reaches its highest document accuracy with annotations.
The numbers
| System or setting | document accuracy |
|---|---|
| BCZB09 | 0.375 |
| BCZB09 with annotations | 0.525 |
| New method | 0.517 |
| New method with annotations (this paper) | 0.650 |
The low-level improvement matters to the interpretation of the method. These test instructions already give words for the operations. A gain here can arise when useful evidence about later screens helps the policy choose among actions that fit the current wording to different degrees. The comparison is between complete systems, so it reports the benefit of the new setup as a whole. It leaves the contribution of each individual lookahead measurement to a separate question.
Results on the high-level test set
With the standard reward, the new method obtains 0.419 action accuracy over the high-level test set, 0.615 on its high-level instruction measure and 0.283 document accuracy. The authors express the high-level instruction result as 61.5%. They report that those instructions correspond to an average of 3.11 commands. This is evidence about executing the missing steps as part of an interpretation. A correct high-level item calls for the corresponding command sequence, even when the text expresses just the destination.
The earlier method with its ordinary training condition reaches 0.021 action accuracy, 0.022 on the high-level measure and 0.000 document accuracy. With annotation-based training, it reaches 0.035 action accuracy, 0.022 on the high-level measure and 0.000 document accuracy. Supplying annotated histories to the earlier method gives some improvement on overall actions. The high-level and complete-document results remain the same at the reported precision.
High-level instruction accuracy on the high-level instruction test set
The new method with the standard reward achieves the highest accuracy on instructions that leave commands implicit.
The numbers
| System or setting | high-level instruction accuracy |
|---|---|
| BCZB09 | 0.022 |
| BCZB09 with annotations | 0.022 |
| New method (this paper) | 0.615 |
| New method with annotations | 0.492 |
Under annotation-based training, the new system reaches 0.357 action accuracy, 0.492 on the high-level measure and 0.333 document accuracy. The choice of best setting thus depends on the question asked of the test. The standard reward yields the strongest reported action and high-level instruction scores. The annotation reward yields the strongest complete-document score. Reporting all three prevents the annotation comparison from being reduced to a single direction of change.
The results table uses a statistical significance threshold of p < 0.01 for starred values and defines each star relative to the cell immediately above it. This matters when reading the comparisons. For example, the high-level scores in the standard training row carry stars against the preceding baseline row. The marking applies to the stated cell comparisons, while the numerical results allow each condition to be compared descriptively across the table.
Why a correct goal can coexist with a low action score
A guide in the high-level test set often places a difficult navigation request near the beginning. Later text may explicitly describe the necessary clicks once the intended panel or window has opened. In a full run, failure to reach that screen can make all those subsequent choices inaccessible. The authors use this ordering to explain why the system can interpret 61.5% of the high-level instructions and still record 0.419 action accuracy over the documents that contain them.
The converse is also relevant to document accuracy. Correctly reaching an intermediate goal gives the learner access to the next part of the procedure, but each remaining choice still has to agree with the annotation. A document can contribute correct high-level interpretations and correct subsequent actions without counting as a complete success. The resulting picture is more informative than a single success rate. It separates whether the implicit route was recovered, how much correct execution was obtained, and whether the entire guide was followed as annotated.
The high-level test also assesses transfer within a shared environment. The learner is trained on text that explicitly describes individual commands. Its transition records and learned weights are then used on documents where some command sequences are left implicit. The evidence is that the training experience can support this change in wording and level of detail within the Windows task.
What the ablations show
Which transitions the system sees
The authors execute random commands to collect as many transitions as their instruction-guided record contains, then use the new collection in its place. This comparison holds the amount of stored transition information constant as described in the paper. It changes how the experience is obtained. The question is whether the success of lookahead comes from holding a record of interface behavior in general, or from holding observations acquired while trying to interpret instructions.
On the high-level test set, the randomly collected record yields 4.6% complete-document accuracy and 15% action accuracy. The instruction-guided system yields 28.3% complete-document accuracy and 41.9% action accuracy. These percentages are the values the authors give for this comparison.
Transition collection and action accuracy on the high-level instruction test set
Experience collected while following training documents supports more accurate actions than an equally large randomly collected record.
The numbers
| System or setting | action accuracy % |
|---|---|
| Random command exploration | 15 |
| Instruction-guided exploration (this paper) | 41.9 |
A collection can contain many valid observations yet offer little guidance at the decision points encountered in help documents. A recorded click and its outcome help with a later decision when they apply to the current screen or form part of a useful continuation. The size-matched experiment supports the authors’ claim that language-guided exploration produces more useful experience in this setting. The experiment measures the resulting accuracy and leaves open which individual transitions account for the difference.
The test also clarifies which dependency is bidirectional. The learner uses transition information to score an action. Its emerging approach to action selection also determines where it goes and which transitions it can record. Randomly collected experience removes that second link from the construction of the record. The reported loss in performance gives a practical indication of what that connection contributes.
How annotations affect exploration
The annotation comparison tests a different intervention. Reward is assigned according to agreement with the training annotations, so the learner receives a much more specific signal about the expected command sequence. On the low-level test set, the annotation reward helps the new system achieve its best complete-document accuracy. On the high-level test set, its action and high-level instruction scores are lower under that reward, alongside a higher document score.
The authors attribute the weaker high-level instruction score to reduced exploration. In their explanation, learning directly from annotated histories leads the system to visit a narrower part of the environment. The resulting transition record offers poorer support for the lookahead needed to handle high-level instructions. Annotations can identify the desired path for a training document, while successful handling of a different goal may require observations about routes that fall outside those annotated paths.
This explanation fits the separate random-exploration comparison, which shows that the usefulness of the stored observations matters. The annotation intervention itself changes both the feedback that trains the policy and the experience produced during training. Its scores show how the whole system responds to the new reward. They do not directly measure the coverage of routes in the resulting record or isolate the effect of changing coverage from the effect of changing the weights.
Turning recovered commands back into text
A separate analysis asks whether the word–command associations can yield a written expansion of a high-level instruction. The authors take the sequence inferred for that instruction and look for each command described explicitly in another document. When they find a low-level expression for each step, they put those expressions together in the order of the inferred commands. This produces a procedure that can be read as text.
For example, the Device Manager instruction in the paper is expanded into a path through My Computer, Control Panel, Administrative Tools and Computer Management before reaching Device Manager. Another example expands a request to open a network tool in the Control Panel into navigation from Start through Settings and the Control Panel to the relevant connections object. Both examples illustrate the same use of the learned associations. The goal expression and the step descriptions are connected through a command sequence.
The procedure finds expansions for 33 of the test set’s 60 tagged high-level instructions. The authors judge 29 of the expansions correct because they describe the necessary commands. Coverage and correctness measure different requirements here. To produce a textual expansion, the system needs an inferred procedure and a low-level description for each of its commands. To produce a correct expansion, those descriptions also have to spell out the required operations. A recovered route can be usable for execution even when the material available for describing it is incomplete.
This analysis examines the command–language associations from another direction. The original task goes from a document to operations. The expansion first recovers operations from the goal and then retrieves wording from occurrences where the commands were stated explicitly. Its outcome shows that some alignments are useful for both purposes. It provides no separate estimate of the effect of each lookahead feature. The controlled comparison addresses how transitions are collected, and the expansion addresses what can be recovered from the learned alignments.
Limitations
Limits the authors identify
The training reward is a proxy for task completion. A real completion check would answer whether the outcome specified by the help document had been achieved. The reward used here asks whether each sentence was associated with an executed command supported by an object-label match. A history can satisfy that condition in an environment state that fails the actual task. A task can also be completed by a command whose object label offers little textual overlap. The authors describe their reward as noisy and evaluate against annotated sequences separately.
The transition representation is incomplete by construction. A command whose effect has never been seen in the current state contributes no recorded route from that state. Estimated reward and path length depend on what earlier attempts happened to visit. The authors explicitly treat these estimates as approximate and note the poor quality of lookahead when observations are still sparse. The method’s success depends on useful coverage of a small part of the interface, with no requirement to learn every possible transition.
The paper identifies reference, quantification and conditional statements as phenomena that would need attention for a broader range of documents. Reference can require the interpreter to resolve which object a phrase denotes using earlier context. Quantification can change which set of objects an action applies to. A conditional statement can make a command appropriate only in certain circumstances. These are distinct from the problem of reaching a place whose name was supplied but whose route was omitted. The authors propose combining linguistic information with acquired environment knowledge as a direction for studying them.
The authors also point out the effect of cascading errors on the measured outcomes. The policy acts in the state produced by its own previous commands. If that state lacks the controls needed for the rest of the procedure, later words may cease to be executable along the annotated route. The evaluation captures the demand of running the whole procedure. It gives less direct information about how the same later phrases would be handled if the learner were placed in the correct state for each one.
Limits visible in the experimental setup
The environment is a particular Windows GUI with visible objects and their properties supplied as part of the state. This supplies structured information about labels and parent windows. The paper therefore studies how to use information about already accessible interface objects. A system working from screen images alone would also have to recover that information, and the results offer no measurement of that additional problem.
The tested interface has deterministic transitions. The general formulation allows stochastic outcomes, but the implementation described for these experiments records observed triples in a setting where the result of a fixed command in a fixed state is repeatable. In a variable environment, a previously observed successor could be one of several possible results. The experimental evidence concerns the simpler case, where a known transition can be used as direct evidence about what the action will do.
The command set and initial conditions also shape the difficulty. Executable operations are drawn from a defined interface vocabulary, and each document comes with a starting environment state. An open-ended request can present additional problems, including deciding where execution should begin or discovering an operation outside the supplied vocabulary. The reported branching factor describes the candidate commands available within this setup.
The distinction between sequence agreement and task completion matters at evaluation as well as training. A GUI can offer different routes to a destination. Agreement with a manually annotated route provides an operational test of the produced mapping, but it leaves open how well the method would score if any route that reached an equivalent end state were accepted. The paper reports agreement with annotations and discusses the difficulty of checking actual completion. It does not report a separate end-state evaluation of alternative successful routes.
The training and test material share the same kind of help documentation and the same underlying environment. The high-level test demonstrates that experience acquired from the low-level training documents can support some goal-level interpretation in that setting. Transfer to an unfamiliar application or operating system would depend on what the learner could observe there and whether its features were still informative. The experiments do not measure that transfer.
Finally, the paper’s analysis supports a claim about relevant experience without identifying a minimal set of mechanisms that would achieve the result. The learned transition record, the lookahead features, empty-span actions and exploration choices work together. The size-matched record comparison directly probes the source of the transition information. There is no separate removal experiment for each future-state measurement. It remains open how much of the observed gain comes from any individual measurement, and how that contribution varies between direct and goal-level instructions.
What came after
The later work citing this paper takes up related questions about how language connects to action, structured representations and external feedback. The connections vary in scope. Some studies also start from instructions and an interactive setting. Others carry the problem of learning from indirect evidence into a task with a different output. The titles establish those research directions, while the detailed experimental claims above concern the Windows study.
Instructions, observations and actions
Mapping Instructions and Visual Observations to Actions with Reinforcement Learning brings visual observations into a reinforcement-learning formulation of instruction following. The shared problem is deciding what to do when written instructions make sense only in relation to the current environment. The Windows system works with visible interface objects represented through their properties. The later work places visual observations alongside instructions as part of the input to action selection.
Mapping Natural Language Instructions to Mobile UI Action Sequences takes up a close counterpart of the Windows task in mobile interfaces. Its output is also an ordered series of interface actions. This connection matters because switching from desktop troubleshooting to mobile UI interaction changes the software setting while preserving the question of how language specifies a procedure. In both task descriptions, a useful interpretation has the form of an action sequence the interface can support.
Language Understanding for Text-based Games Using Deep Reinforcement Learning connects language understanding to reinforcement learning in a game whose interface is text. The Windows paper places the source of instructions in help documents and obtains feedback from operating a GUI. A text-based game makes language part of the interaction setting itself. The common line of inquiry is how language can inform a series of decisions whose quality depends on the results of acting.
Learning Language Games through Interaction places interaction at the center of learning language games. That connects to the Windows study’s use of attempted interpretations as occasions to acquire evidence. The Windows paper gives this evidence a concrete form by retaining the consequences of commands. The later work’s stated focus is the more general relationship between learning a language game and participating in it.
Indirect supervision and learned meanings
Environment-Driven Lexicon Induction for High-Level Instructions addresses the vocabulary of high-level instructions. Lexicon induction concerns learning which expressions are associated with which meanings or operations. The shared question is what the environment can tell a learner about phrases whose practical interpretation goes beyond an explicitly named command. The Windows study uses reachable states to help select a step and later uses word–command alignments to recover some step descriptions. The later paper makes the acquisition of a lexicon its stated object of study.
Weakly Supervised Learning of Semantic Parsers for Mapping Instructions to Actions studies the interpretation of instructions through semantic parsing, which assigns structured meanings to language. Its focus on weak supervision belongs to the same family of learning problems as the Windows paper’s use of a rough reward. In each setting, the learner has evidence about whether an interpretation is useful, and the learning problem includes recovering structure that the supervision leaves unspecified. The title of the later work locates that structure in a semantic parser for instructions and actions.
Semantic Parsing on Freebase from Question-Answer Pairs carries the question of indirect supervision into question answering over Freebase. Its training pairs supply a question and an answer. Those endpoints leave the intermediate interpretation to be learned. The parallel with instruction following is that an external result supplies evidence about a possible reading. The practical outputs differ, with an answer in the Freebase task and an executed procedure in the Windows task.
Lexical Generalization in CCG Grammar Induction for Semantic Parsing takes up generalization in the lexical component of a grammar learned for semantic parsing. The connection is the acquisition of reusable links between wording and meaning. In the Windows paper, evidence about such a link comes from how a phrase participates in an attempted procedure. The later work’s focus is lexical generalization within grammar induction, a different place to ask how learned associations can carry over to new wording.
From Natural Language Specifications to Program Input Parsers takes written specifications as input and aims to obtain program input parsers. The common interest is the passage from naturally written descriptions to something that has a formal role in software. A Windows help guide becomes a sequence executed in an existing interface. In the program-input setting, the specification concerns what an input parser should accept and interpret.
Surveys and broader settings
A Survey of Reinforcement Learning Informed by Natural Language puts work on language and reinforcement learning within a broader research area. The Windows study illustrates a particular role for language within that area. Instruction text directs the learner’s experience towards parts of the interface that may matter, and the resulting experience informs later interpretations. Both directions matter when considering how a language input can influence what an agent learns.
Autonomous Evaluation and Refinement of Digital Agents addresses evaluation and improvement in the broader setting of digital agents. Its topic connects to a distinction that is concrete in the Windows experiments. The learner needs feedback it can use during attempts, and the researcher needs a way to judge the eventual behavior. The Windows paper uses a proxy reward for the former and annotated sequences for the latter. The later work’s title places evaluation and refinement themselves at the center of the problem.
Large Language Model Instruction Following surveys progress and challenges in a broader literature on instruction following. The Windows study contributes a specific case to that history. An instruction denotes an outcome within a software environment, and recovering its practical meaning may require actions whose names appear nowhere in the instruction. That case makes the role of environment knowledge tangible. The learner’s next move depends on both what the writer asked for and what past interaction has shown to be possible from the current screen.
Cite
Cite as S.R.K. Branavan, Luke Zettlemoyer and Regina Barzilay. 2010. Reading between the Lines: Learning to Map High-Level Instructions to Commands. Proceedings of the 48th Annual Meeting of the Association for Computational Linguistics.
@inproceedings{branavan2010reading,
title = {{Reading between the Lines: Learning to Map High-Level Instructions to Commands}},
author = {S.R.K. Branavan, Luke Zettlemoyer and Regina Barzilay},
booktitle = {Proceedings of the 48th Annual Meeting of the Association for Computational Linguistics},
year = {2010},
url = {https://aclanthology.org/P10-1129/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/branavan-2010-reading-between-lines-learning-map/