Learning Language Games through Interaction
Paper · 2016 · Sida I. Wang, Percy Liang and Christopher D. Manning
Summary
A new interface often asks users to learn which commands it understands. Learning Language Games through Interaction asks how much of that work the computer can take on. The authors built SHRDLURN, a game in which a player sees a target arrangement of colored blocks and can reach it only by typing instructions. The computer sees the current arrangement and can change it, but the target is hidden from it. Each instruction brings up a ranked list of possible results. The player picks the result they want, advancing the game and giving the computer a lesson it can use on the next turn. What the player confirms is an arrangement of blocks. Several different commands in the computer's internal action language might have produced it.
The computer starts each game without a dictionary for the player's words or examples paired with their internal meanings. It does start with a grammar of possible block operations. A log-linear parser scores the operations by pairing pieces of the player's wording with pieces of an action, a task known as semantic parsing. It searches for promising actions, runs them against the board, and updates its scores after each accepted result. The authors also test a pragmatic ranking rule. If the player has already used a particular command reliably for removing red blocks, a new command that shares its verb but changes the color word has less reason to mean the very same thing. The rule makes that inference by asking which wording a cooperative player would choose for each candidate action.
The authors collected 10,223 utterances from 100 people who completed SHRDLURN through Amazon Mechanical Turk. Of those utterances, 8874 had a selected result. Breaking both the wording and the actions into reusable parts improved online accuracy over remembering complete pairs or breaking down only the wording. On the 10 players who needed the least scrolling, pragmatic ranking improved online accuracy by 8% relative to the best version without it. It helped players who used precise, consistent commands and could hurt those whose choices gave it a weaker basis for inferring a convention.
Many players simplified their wording during play, and those who used a steady vocabulary and put familiar pieces together tended to need less scrolling. Some succeeded with invented expressions or positional numbers, even when those expressions differed from the computer's internal grammar. The authors present this division of work as a way to study interfaces that improve through use. The computer learns a person's conventions while that person discovers which distinctions the interface can act on. That prospect matters for new domains and low-resource languages, where an interface may have little language-specific training material to begin with.
Deep dive: Learning Language Games through Interaction
Learning Language Games through Interaction studies how a computer learns a player's commands from feedback in a game with colored blocks. · about 37 minutes to read
The problem and its context
A goal that neither participant can reach alone
The starting point is Wittgenstein's example of a builder and an assistant who use a small vocabulary to pass building materials. A word does its job because the participants use it as part of a shared activity. The same activity could work with a different vocabulary, provided the participants coordinated on its use. SHRDLURN turns that observation into a learning problem. The participants have a practical reason to coordinate and begin without any agreed wording for doing so.
The experiment separates knowledge from control. The person can see where the board is supposed to end up. The computer can produce changes to the board. To get anywhere efficiently, the person has to indicate a useful next change in a form the computer can interpret. The computer has to learn from that person's choices while those choices are still being made. A phrase can become useful halfway through a game, once both sides have settled on how to use it. That leaves room for conventions particular to a player, even among players who begin with ordinary words from the same language.
The feedback channel is part of the problem. Imagine a board on which the leftmost stack is also the only stack with a red block on top. Taking the top block off the leftmost stack yields the same board as taking the top block off every stack topped with red. A player who selects that board has confirmed the change. The choice leaves open whether position or color mattered. Another board can separate those possibilities. This gives the parser a reason to carry several plausible interpretations forward, and it gives repeated interaction a role that a list of already interpreted commands would bypass.
The person faces a related uncertainty. They can see the offered boards, yet the system keeps its internal action expressions out of view. A player might discover that a word for the left edge works consistently by trying it in different arrangements. They have less direct evidence about whether an instruction involving a numbered interior column is even expressible in the computer's grammar. The interface thus makes people learn about what the computer can do while the computer learns about the words people use to request it.
The authors call the setting interactive learning through language games, or ILLG. They want competence at the language to matter to competence at the activity. SHRDLURN gives this goal a concrete measure. Reaching the target matters, and so does how far down the list the player must look on the way there. A convention that reliably brings the right board to the top saves effort even when a determined player could have found it by browsing.
What earlier approaches supplied
The paper places this problem within research on language grounded in an environment. It points to work on playing games, giving instructions to robots, and following navigation directions. In these settings, interpreting words can have a visible consequence outside the utterance. For SHRDLURN, the consequence is easy to show on screen and easy for a person to select. The paper identifies semantic parsing as a common means of turning a linguistic input into something executable, including in Weakly Supervised Learning of Semantic Parsers for Mapping Instructions to Actions.
A parser can be designed to work out an explicit derivation showing how pieces of a sentence contribute to pieces of its logical form. The authors discuss that tradition alongside work on learning synchronous grammars and learning from question–answer pairs. Their concern is the search burden when a learner has neither labeled logical forms nor an initial lexicon. A possible action can have many proposed derivations. SHRDLURN searches over action expressions and scores them using co-occurring pieces of structure without requiring a separate account of how each word entered the derivation. The paper relates this choice to the looser treatment of linguistic structure in Compositional Semantic Parsing on Semi-Structured Tables.
The authors also distinguish two senses of learning online. An optimization procedure can make updates example by example even if its eventual role is to produce a system trained before use. In ILLG, the order of examples is also the order in which competence is measured. Immediately before each labeled response, the computer has only the earlier responses to work from. A useful update is one that helps it understand what the person says next. The authors cite earlier uses of online gradient updates in parsing, including Online Learning of Relaxed CCG Grammars for Parsing to Logical Form.
Pragmatics provides a different kind of prior knowledge. The paper draws on work that treats a listener as reasoning about the speaker's choice of expression. It situates this idea in the Gricean tradition and in probabilistic language games. In the earlier work as characterized by the authors, pragmatic reasoning typically works with a base interpreter that has already been trained. Here the literal interpreter is being revised throughout the interaction, and the speaker's possible conventions are only beginning to emerge. The distinction matters because a ranking rule has to work with an incomplete interpretation of the language. One antecedent is Predicting Pragmatic Reasoning in Language Games.
The discussion also distinguishes the purpose of the learning from the purpose of the pragmatic reasoning. In the work the paper cites on learning in Rational Speech Acts, learning helps improve the account of how speakers and listeners reason. In SHRDLURN, reasoning about the speaker is used to make early interpretations more useful while the underlying action associations are still forming. The authors also score features of structured utterances and actions, whereas some of the cited work takes words and objects as categories. The comparison is with Learning in the Rational Speech Acts Model.
The method, step by step
From a command to a board change
A SHRDLURN board is a row of vertical stacks of colored blocks. The player sees a starting board and a target board. On a turn, the parser takes the typed command and generates possible block operations. It tries those operations on the current board and presents the results in order of plausibility. If the player accepts a result, that board becomes the starting point for the next turn. Matching the target completes the task. A player can also try wording without accepting any of the displayed results.
The internal action language is compositional. A complex action can be assembled from operators that select stacks and an operation that changes those stacks. For instance, with(red) identifies stacks topped with red. leftmost can narrow that collection to its leftmost member, and remove takes the top block off the selected stack. The expression remove(leftmost(with(red))) therefore combines a color criterion with a positional criterion. Another person might express the same request with the position before the color or vice versa. The grammar tells the computer how to execute the expression in either case, while the parser has to learn which words predict it.
Other selectors let the same machinery express broader operations. The paper gives an example in which with(brown) supplies a set of stacks, leftmost singles out a member, and not selects the complement. add then places an orange block on the selected stacks. In this expression the exclusion concerns the leftmost of the brown-topped stacks. Computing the complement after the positional selection is what gives the expression its meaning. The order and nesting of the operators are part of the action, even though the interface presents only the resulting board.
This arrangement gives the computer useful prior structure. It knows what the operators do and how they can be combined before a player types anything. What it has to acquire is a way to connect an expression in that player's language with an operation in its own. A game that teaches basic operations early makes this starting point more useful. Early tasks need shorter expressions, giving participants a chance to establish words for operations and colors before the search has to assemble more elaborate combinations.
From a typed command to an online update
The steps in order.
Representing actions and their consequences
The formal setting distinguishes the set of possible boards from the set of possible actions. An action is a logical form, an expression in the computer's grammar with an executable meaning. Its denotation is the board obtained by running it in the current state. The distinction is important because the same action can affect different stacks on different boards, and different actions can have the same effect on a particular board.
yᵢ = exec(s, zᵢ)
Here s is the current board, zᵢ is the action at position i in the ranked candidates, and exec carries out that action on that board. The resulting board is yᵢ. The ordered candidate actions are denoted by Z, their displayed successor boards by Y, and the goal board by t. The human's input is x. When the player chooses yᵢ, the interaction continues from that board. The computer's first guess counts as correct for the turn if the chosen result is the first in the list.
The target is intentionally absent from the input to the parser. In a task with intervening steps, several boards might be defensible places to go next. The interaction records the one the player adopts. Even if the player could reach the target by another route, the currently selected board is the feedback available to the computer. This makes the unit of learning an utterance and its accepted consequence in context, rather than an entire start-to-target solution.
Scoring a possible meaning
The basic parser assigns a score to each pairing of an utterance with an action. Its evidence consists of features, each of which records some recurring property of the pairing. A feature might join the word for removing with the remove predicate. Another might join a color phrase with a more specific piece of an action tree, such as a color appearing as the argument to a selection operator. The learner can give these features different weights. An action supported by several features can therefore be plausible even if the complete utterance has never occurred with that action.
pθ(z ∣ x) ∝ exp(θᵀφ(x, z))
Here pθ(z ∣ x) is the parser's probability for action z given utterance x, using the current weights θ. The vector φ(x, z) describes the features of the pair. The superscript ᵀ means transpose, so θᵀφ(x, z) is the dot product, the sum of the feature values weighted by their corresponding parameters. exp takes the exponential of that score. The sign ∝ means the exponential gives relative weights, which become probabilities after normalization across the actions being considered. The paper describes both vectors as having d components, where d counts the feature dimensions.
The score is a property of the utterance and logical form. Execution is where the board enters. A high score for a color-based action can persist across boards, even though the stacks that it selects change. This is one reason to learn associations with an internal action representation rather than remembering the particular board images a player previously accepted. It also clarifies the role of the current state in learning. The state helps decide which actions are compatible with the feedback, even though the literal expression for scoring an action does not condition directly on the state.
On the utterance side, the features are built from words and sequences. A single word gives a unigram, adjacent words give bigrams or trigrams, and a skip-trigram can register separated words within a pattern. A gap can preserve a useful relation even when the intervening word varies. The parser can therefore score a familiar word, a familiar adjacent expression, and a recognizable pattern with an intervening position all within the same system. These are varieties of the n-gram.
On the logical-form side, predicates and their arguments make a tree. The operator at the root of a removal action describes the change, while another operator below it may describe the selection. Looking at just the root can help recognize a removal across many environments. Looking farther down lets the system distinguish a removal specified by a color from one specified by a position, or recognize a color within a particular selection construction. The authors call the resulting structural features tree-grams.
ψ(h, 0) = {h}
Here ψ returns tree-gram features, h is the predicate at the current point in the action tree, and 0 is the base depth. The braces enclose a set. At that depth the feature records the predicate itself.
ψ(h, d) = {(h, i, ψ(h.i, d − 1)) ∣ i = 1, 2, 3}
Here d is the tree depth remaining, distinct from the use of d for the number of feature dimensions. The symbol i indexes an argument position, and h.i denotes the argument of h at that position. The triple records the current predicate, the argument position, and the feature description obtained recursively at depth d − 1. The vertical bar specifies the argument indices in the paper's definition. The authors use depths 0, 1, 2, 3.
The parser pairs the utterance features with the logical-form features by taking their cross product. A word is therefore allowed to contribute to more than one aspect of an action. Consider a command that has one term for the operation and another for the color. On an early turn, both words will occur alongside both aspects of a candidate that produces the chosen board. The feature construction permits all those associations. The weight updates have to identify the useful ones from patterns across turns. If the operation word survives a change in color while the color word changes with it, later feedback can help separate their contributions.
The approach can also pick up a useful association that looks odd as a linguistic analysis. A positional expression may reliably occur when the intended operation involves a particular edge of the board. It can become a valuable feature even if its isolated words fail to name that edge in ordinary use. The parser has no requirement to recover the player's grammatical explanation for the expression. Its practical test is whether the association supports the right action in subsequent contexts.
Searching the grammar and ranking the results
The grammar supplies more combinations than the parser can afford to pursue as equally promising. It uses beam search, which preserves only a limited set of high-scoring candidates at each size. Size is the number of predicates in the logical form. Starting from small expressions, the parser uses grammar rules to build larger expressions out of the available parts. For each size from 1 to 8 predicates, it keeps the 100 logical forms with the highest current score. The final beam contains survivors from across those sizes.
The early decisions in this search affect which later combinations are possible. If the system drops a smaller expression, it can lose the route to a useful larger expression that contains it. This can happen precisely when the parser is most in need of feedback, since early weights give it little basis for choosing which constructions deserve a place on the beam. The curriculum is a response to this dependency. A simple command has a chance to establish useful features before those same features have to support a more complex candidate built around it.
After search, the computer executes the surviving actions. From the player's perspective, multiple routes to the same board amount to the same option. For display, a board receives the probability of its highest-scoring action. This treats the board's strongest interpretation as the evidence for putting it near the top. It also prevents a board from rising in rank merely because the action grammar supplies many ways to produce it.
The authors tried adding probabilities across all the actions that produced a board for display. That approach gave excessive weight to an empty arrangement, which many different actions could produce. They therefore use the strongest individual interpretation for ordering the choices. The learning calculation has a different purpose. When the player endorses a board, the parser can credit every candidate that explains it rather than committing to the one that happened to rank highest.
Updating from a selected board
Imagine that a player selects a board compatible with both a color-based removal and a position-based removal. The parser knows that a compatible action accounts for the observed result. It still has to estimate how much support to give each explanation. The loss assigns probability to the outcome by summing the probabilities of actions with the right execution result.
pθ(y ∣ x, s) = Σ_{z : exec(s, z) = y} pθ(z ∣ x)
Here pθ(y ∣ x, s) is the probability assigned to the selected successor board y for utterance x and current board s. The symbol Σ indicates a sum. The condition under it restricts the sum to actions z that produce y when executed by exec from s. Each term pθ(z ∣ x) is the parser's probability for that action. In the implementation, generating and pruning candidates supplies the practical search space for this calculation.
ℓ(θ, x, y) = −log pθ(y ∣ x, s) + λR(θ)
Here ℓ is the loss on the accepted example with starting board s understood from the turn. The term −log takes the negative logarithm, so a higher probability for the selected board contributes a smaller penalty. R(θ) denotes the regularization penalty on the weights, and λ sets the weight of that penalty. The other symbols denote the weights θ, utterance x, and accepted board y.
The system takes a single gradient step after feedback using AdaGrad. A gradient estimates how changing each weight would change the loss. AdaGrad keeps a step size for each feature, so the update need not move all affected weights by the same amount. The change becomes available for the next prediction. An utterance for which the player views the list and then declines to make a selection lacks the accepted result required by this loss.
The update uses the clicked board as evidence without converting it into an annotated command. This matters when familiar wording applies to unfamiliar combinations. Suppose the player has established an operation and a selector separately. The relevant feature weights can favor a combination of the two, but only if the grammar can form it and the beam keeps it. The learning rule, the feature representation, and the candidate search therefore each have a different role in whether the next response improves.
Reasoning about the wording the player chose
Early learning can give too much credit to a feature by association. In the paper's example, the learner first sees a request to remove red and receives feedback consistent with remove(with(red)). It increases support for the word remove occurring with the operation remove. It can also increase support for that word occurring with the predicate red, because the features pair utterance pieces with action pieces broadly. When the player next asks to remove cyan, the shared verb can make the red action look better than its competitors.
A person might approach the ambiguity by considering the expression that was already working. If the intended change were removing red, the player could have reused the established command. Their decision to vary the wording suggests a difference in intent. The paper connects this line of reasoning to mutual exclusivity, discussed in psycholinguistics and language acquisition. The cited study concerns children's tendency to interpret a new label as referring to something without an established label. In SHRDLURN, a similar preference can reduce the pull of a familiar action when its familiar expression has been replaced.
The pragmatic procedure represents a speaker who chooses a useful utterance for a given action. This imagined speaker considers how well the literal parser would understand a candidate wording and how likely that wording is in general. The listener then works backward from the wording actually used. It asks which action would have made the wording a reasonable choice for the speaker.
S(x ∣ z) ∝ (pθ(z ∣ x)p(x))ᵝ
Here S(x ∣ z) is the speaker's probability of choosing utterance x for action z. The term pθ(z ∣ x) is the literal parser's probability of recovering z from x, and p(x) is the prior probability of the utterance. The exponent β is a parameter with β ≥ 1; raising scores to this power can sharpen the speaker's preferences. The proportionality sign indicates that these weights are normalized over possible utterances for the given action.
L(z ∣ x) ∝ S(x ∣ z)p(z)
Here L(z ∣ x) is the pragmatic listener's probability that z is intended when it hears x. The factor S(x ∣ z) says how likely the speaker would be to choose precisely that utterance for the candidate action. The factor p(z) is the prior probability of the action. The listener normalizes these products across actions for the given utterance.
The example can be pictured as a grid with utterances on rows and actions on columns. The literal parser puts its probabilities across each row. With uniform utterance priors and β = 1, the speaker calculation instead normalizes down each column. This asks how good each row is as a way to indicate the action in that column. The known expression for red can dominate its column even when the new expression also received substantial literal support for red. With a uniform action prior, the listener normalizes across the rows of that speaker grid, placing the proposed meanings for the new utterance back in competition. In the authors' example the cyan action now ranks above the red action for the new wording.
The inference is comparative. It can demote an action that already has a better-established name even when the new wording by itself supplies little evidence about its meaning. Success still depends on candidate actions being available and on the player's habits making the comparison appropriate. A person who deliberately uses several synonyms for the same command gives the listener a reason, over time, to revise the literal associations. The pragmatic preference makes the system more reluctant to adopt that interpretation at first.
In the variant with pragmatics, listener probabilities change the order of the actions used to present choices. The literal parser is still trained from the selected outcome using its own loss. A pragmatic guess can thus help with the current response while the gradient update remains tied to the player-confirmed board. The experiments can compare the use of pragmatic ranking while retaining the same underlying form of learning from denotations.
Making the pragmatic calculation online
The ideal speaker calculation is expensive because its normalizer ranges over things the player could have said. Calculating it afresh would require running the current parser over the possible utterances for each candidate action. The authors approximate the relevant population of utterances using the utterances already encountered. They then reuse scores recorded when those examples were processed. This avoids rerunning the whole history whenever the player types again.
Q(z) = Σᵢ p_{θᵢ}(z ∣ xᵢ)ᵝ
Here Q(z) is the accumulated speaker-normalization estimate for action z. The sum Σᵢ runs over prior examples in the history available at prediction time. The utterance at example i is xᵢ, and θᵢ denotes the literal parser weights just after the update on that example. The term p_{θᵢ}(z ∣ xᵢ) is the parser's probability for that action under those weights. The exponent β is the same sharpening parameter used for the speaker.
Because each term uses the parameters current when the example was processed, it can differ from the value obtained by parsing the old utterance again today. The authors' approximation assumes that an old estimate is useful because both its own update and the current weights have had the opportunity to account for that example. Its practical role is to record how much the literal parser has tended to favor each action across the player's earlier expressions.
The listener also needs a prior for actions that reflects what the player has actually chosen. A selected board may have several explanations, so the system records fractional credits. Each compatible action gets its share of the probability after restricting attention to candidates that produce the chosen outcome.
C(z) ← C(z) + pθ(z ∣ x, exec(s, z) = y)
Here C(z) is the running count for action z, and ← means to replace the stored count by the expression on the right. The added term is a posterior probability for z restricted to actions that execute from starting board s to selected board y for utterance x. The literal parser weights in this term are θ after the current example's gradient update. An incompatible action has zero posterior weight. Among compatible actions, the weights are proportional to the exponentials of their literal scores and are normalized within that set.
The estimated prior P(z) comes from adding a smoothing amount α to the counts before normalization. Smoothing leaves a route for an action with little or no previous credit to enter the ranking. The parameter α controls how heavily the estimate depends on the accumulated choices. The estimates P and Q have different meanings. P estimates how common an action has been among the player's accepted outcomes, whereas Q measures how readily the literal parser has assigned that action to the expressions it has heard.
L(z ∣ x) ∝ pθ(z ∣ x)ᵝ P(z) / Q(z)
Here L(z ∣ x) describes the online pragmatic weighting in terms of the factors discussed by the authors. The sharpened current literal probability is pθ(z ∣ x)ᵝ, the smoothed prior is P(z), and the historical normalizing factor is Q(z). The slash indicates division, and the proportionality sign indicates normalization across candidates. The history and the prior together determine how strongly past usage reinforces or tempers the literal preference for each action.
When the player responds, the literal weights are updated first. The system then updates the two histories using the current example and the revised parser. The order gives the accommodation a turn-by-turn interpretation. The chosen board informs the current update, and the resulting weights and counts inform the ranking when a new utterance arrives. It also makes clear which part of pragmatic inference is approximate: the speaker's alternatives are represented by examples from the game, scored at different stages in learning.
Experiments and results
Games, attempts, and feedback
The authors recruited 100 workers on Amazon Mechanical Turk and paid each 3 dollars to play. All 100 completed the game under identical settings. The computer began afresh for every player, allowing the authors to examine what different people could teach under the same initial conditions. Players received brief guidance on the controls. The authors withheld example commands so that players would have room to decide on their own vocabulary and syntax.
Each game contained 50 block tasks, grouped into 5 levels of 10 tasks, with later levels requiring more complex operations. A task specifies a target board and may take multiple accepted changes to reach. Players could also submit trial utterances without accepting an option. The paper reports an average of 89 utterances to complete a game. Across the collection it reports 10,223 utterances with their starting boards, of which 8874 have a chosen successor board. These corpus counts distinguish all logged inputs from those that furnished feedback for learning and evaluation.
The data collection took 6 hours in total on the platform. The authors report that the platform's work timer indicated around an hour per game on average and note that the timer does not account for workers doing other things at the same time. Some workers reported confusion and used strings with little discernible connection to the board change they selected. The study still includes these games. They represent one way people responded to an interface whose intended use they had to discover.
The authors make the code, data, and experiments available on CodaLab. They also identify client code on GitHub and a playable demonstration. The interaction records are especially relevant to the experiment because they preserve the order in which a player supplied commands and chose results. That order determines what information the parser has at each prediction.
Two measures of success
For the human side of the experiment, the authors count how far down the ranked list a player goes to select a result. A scroll count on an example is the position of the choice. Lower counts indicate that the user was offered their chosen board sooner. Since a low-ranked result can be much farther down the list than most results, a few difficult turns can have a large effect on an average.
Players could finish this version of SHRDLURN by browsing deeply enough. The authors report that all actions could be found within the first 125 list positions. They identify 22 of the 100 players as having completed mostly by scrolling without teaching a language the parser could use. These players commonly entered arbitrary letters, words, digits, or phrases and then looked through the list for a workable board. The gap in scrolling between that group and the others makes the practical cost of the strategy visible.
Average scrolls per utterance by player group in SHRDLURN
Players outside the mostly scrolling group reached their selected results with less browsing.
The numbers
| System or setting | scrolls per utterance |
|---|---|
| Players who mostly scrolled | 21.6 |
| Other players (this paper) | 7.4 |
For the comparison of computer strategies, the authors use online accuracy. This asks whether the top prediction gives the board the player selected, using the weights available immediately before that example's update. The label is consulted for scoring and then for learning. The next example is predicted using whatever has been learned so far. The resulting score describes performance through a single chronological pass over the labeled interactions.
Online accuracy = (1/T) Σⱼ 𝟙[y⁽ʲ⁾ = exec(s⁽ʲ⁾, z⁽ʲ⁾)]
Here T is the number of labeled utterances from the player. The sum Σⱼ runs over the labeled turns from j = 1 to T. The indicator 𝟙 contributes 1 when its bracketed equality holds and 0 otherwise. The observed board at turn j is y⁽ʲ⁾, the starting board is s⁽ʲ⁾, and the predicted action is z⁽ʲ⁾. The function exec runs the predicted action on that turn's board. The factor 1/T averages the correct first predictions over the sequence.
z⁽ʲ⁾ = argmax_z p_{θ⁽ʲ⁻¹⁾}(z ∣ x⁽ʲ⁾)
Here argmax_z selects the action z with the highest score under the indicated probability. The utterance on the current turn is x⁽ʲ⁾, and θ⁽ʲ⁻¹⁾ denotes the parameter vector from before learning from that turn. The expression gives the literal prediction. For the pragmatic ranking comparison, the listener score determines the first choice, while the same execution test compares that choice with the player's board.
Online accuracy gives different information from scroll count. An appropriate board that appears just below the top and one buried far down the list both count as missed first predictions. Their costs to a person differ. Conversely, a correct first prediction is credited even when another logical form could also have produced that board. The accuracy measure is about what the ranked response achieves for the turn, with the player's recorded selection as the standard.
What the computer learns sooner
The authors compare a baseline that memorizes pairs of whole expressions and whole logical forms, a half variant that uses word-sequence features with complete logical forms, and a full variant that combines word-sequence features with logical-form fragments. The experiments use a learning rate of 0.1 for the main setup, selected by cross-validation. The memorization baseline uses a large learning rate. In the pragmatic experiments, the count smoothing parameter is α = 1 and the sharpening parameter is β = 3.
The full parser outperformed both baselines in the average online accuracy comparison. The authors report that compositional features improved the ranking of the selected results over the sequence of play. The practical advantage is that the same part of an action can receive support from several distinct training examples. An operation learned in one command can contribute to a new combination as soon as its other pieces give the parser enough evidence.
Pragmatics showed its clearest benefit for the 10 players with the least scrolling. The authors report an 8% relative improvement in online accuracy for that group over the best non-pragmatic variant. This is a comparison on the recorded sequence of labeled choices for the players selected by scroll performance. Across less successful players the advantage did not persist, and the pragmatic variants sometimes reduced accuracy. The per-player comparisons examine this pattern for both the full and half feature representations.
What people learned during play
Most players wrote in English, with different degrees of adherence to its usual word order and grammatical conventions. The authors report that 5 players invented languages for the game. They also describe a player who used Polish and another who used Polish notation. Successful play could therefore arise from a convention invented for the task as well as from familiar language pared down to a few reliable expressions.
The paper examines commands from different points in play. Some players settled on one verb after initially alternating between terms for deletion. Others dropped articles or omitted material that the shared board made easy to infer. One player used an article in each of their first 20 utterances and omitted it from their final 75. The authors also describe changes in precision, such as giving the parser a clearer description of which blocks an operation should affect. This process can require adding a useful distinction even when it removes other words.
Good results also appeared with language that only partly resembled the action grammar. Among the 10 most successful players by scrolling, 7 used numbers in some way and 3 used expressions that matched the logical language. A number can work as part of a recognizable edge reference if the relevant tasks call for selecting the leftmost or rightmost stack. The parser can learn a phrase associated with one of those selectors without deriving a general system for interpreting column numbers.
The authors observed poorer performance from players who tried to describe the desired board as a pattern or to specify changes with a row-and-column coordinate system. These strategies made distinctions that were difficult to recover using the available operations. Another difficulty arose when players ran words together. The parser takes spaces as cues to word boundaries, so recurring pieces inside a continuous string are hard for its features to reuse. The authors identify 3 players who wrote without spaces between words and report an average of 14.15 scrolls for one such player. This is a consequence of how the system performs tokenization, the division of input into units for processing.
What the ablations show
Reusing words and reusing parts of actions
The memorization baseline asks how far the system can get by associating a complete utterance with a complete action. A large learning rate lets a previously rewarded pairing acquire substantial weight quickly. This is a reasonable strategy for commands that recur in exactly the same form. If a player changes a color or inserts a word, however, the new utterance is a different entry for this baseline. It has no direct way to reuse what the old entry said about the unchanged pieces.
The half variant can carry something forward when individual words or short sequences recur. It can learn that certain words are evidence for a particular complete action, and so can recognize new wording for that action. On the output side, each complete logical form remains its own unit. Evidence for a removal action defined by one color need not support another removal action defined by a different color. That is the remaining restriction when the paper compares the half variant with the full parser.
The full parser can transfer evidence among actions that share predicates or larger fragments. Because the full parser outperforms the half variant in online accuracy, breaking the input into word patterns accounts for only part of the benefit. Making the output compositional helps too. The structure the authors supplied on the action side is doing work in the evaluation. The comparison supports the combined use of compositional features under the study's search and curriculum. It leaves open which feature depths or skip patterns account for the improvement, since the reported comparison changes the representation in broader steps.
The source of the advantage is also distinct from matching the player's sentence structure exactly. The grammar defines how the possible actions fit together. The features can exploit that organization even if players attach unusual words to the pieces or use a familiar phrase with a different surface structure. This helps explain why a constrained formal grammar and varied human wording coexist in the more successful games.
Changing the ranking while retaining the literal update
The pragmatic comparison changes the decision the player would see at the top of the list while keeping the literal learning objective in place. It tests an inference from the history of the exchange. If a player's expressions are stable, a candidate action supported well by an established wording has less claim on a new wording that differs from it. That inference is available before the player supplies the next correction, when the literal associations may still be weak.
The authors' per-player comparisons make the variation behind the aggregate result visible. They distinguish high-ranked players by scrolling from those whose selections generally took more browsing. The strongest players give the pragmatic premise something concrete to exploit. When users reserve expressions for particular changes, an utterance's relation to the alternatives helps decide its meaning. When the relationship between a typed string and a selected board is weak, the additional inference can move a plausible result down the list.
This comparison is especially informative beside the feature comparison. Compositional features can help whenever a reusable association is present somewhere in the wording and action. The pragmatic rule additionally depends on how a person chooses among possible expressions. Two people could use the same stock of recognizable words and differ in whether the inference helps. A player who switches freely among synonyms creates a different history from a player who treats a change of wording as a change of meaning. The subgroup result shows the circumstances under which the pragmatic assumption paid off in these games.
Other comparisons within the interaction
The authors' trial of summing probabilities for the display gives a qualitative comparison of ranking procedures. It shows that the number of actions compatible with an outcome can distort the choices the user sees. With summed scores, the empty arrangement drew too much probability because it could be produced by many actions. Using the maximum for display makes it possible for a board supported by one particularly good interpretation to rank ahead of a board supported by many weak ones. The paper describes the failure mode of the alternative without giving a separate accuracy result for it.
The human-strategy analysis compares naturally occurring behavior. It relates reduced scrolling to concise, consistent language and examines what players changed as they gained experience. These observations complement the parser variants, since they show the kinds of input on which reusable associations and pragmatic reasoning have something to learn. They do not isolate individual habits experimentally. A player who settles on a steady verb may also get better at choosing achievable subgoals or learn which objects the parser can describe. The observed association concerns the strategies as players used them together.
Limitations
Limits stated by the authors
The authors explicitly qualify what online accuracy measures. It takes the player-selected board as the label. That is informative about language understanding when the command and the choice express a consistent intention. Some players chose useful boards after entering strings that supplied little evidence of the intended change. On those turns, reproducing a choice means predicting a recorded response. A missed prediction gives little basis for diagnosing a misunderstanding of the wording itself, since the wording may have been incidental to the choice.
The pragmatic account relies on a cooperative speaker whose expression has been chosen to communicate an action efficiently. The authors recognize that some players do not behave this way and that synonyms and flexible word order are normal features of real language. A richer game could give a speaker reasons to alternate between expressions. In SHRDLURN, stable wording made the interface easier to use, so the game gave players an incentive to adopt the very behavior the pragmatic ranker was designed to exploit. Its benefit is conditional on that communicative setting.
The paper discusses circumstances in which the pragmatic correction could become less important. For β = 1, with a well-specified literal parser and enough observations of a small inventory of possible actions, the speaker's normalization can approach the action prior. In that case the factors in the listener's calculation approximately cancel and it behaves much like the literal parser. The authors emphasize that their games are far from that regime. Most utterances and logical forms occur only once. Their observation about the limit is an argument under stated conditions, separate from the empirical finding that pragmatics can help early in some games.
The online normalization is also approximate by design. Only encountered utterances stand in for the speaker's alternatives. Their scores were obtained at different points in learning and can diverge from the scores the current parser would assign them. The approximation reduces the amount of computation needed when a new command arrives. Its premise can be weaker when the parser's understanding changes substantially after early examples or when an utterance history represents only a narrow part of what the player might say.
Candidate search introduces another limit the authors acknowledge. A required logical form can disappear from consideration because an intermediate expression has been pruned. The curriculum helps the parser acquire basic associations before the most complicated tasks. It does not guarantee that search can always recover the necessary action. A missing interpretation can reflect inadequate search coverage as well as a weak mapping from words to meanings.
Limits that follow from the setup
The learning starts from scratch in a particular sense. The computer begins without a shared lexicon or annotations for the user's language. Its world, objects, action grammar, feature templates, and feedback mechanism are already available. The paper shows how a player can teach names and combinations for capabilities the developers have supplied. It gives no corresponding evidence about acquiring new operations from a user's description. Descriptions involving arbitrary coordinates reveal this boundary especially clearly, because the system can succeed on edge cases where coordinates align with an existing operator without learning what the rest of the coordinate system means.
The game also supplies a way to correct the computer that other settings may lack. A wrong guess is followed by a visible list of alternatives, and a player can often recognize their intended board even when it is ranked poorly. That provides feedback and allows the task to continue. Search errors would matter differently in a setting where producing each alternative is expensive or where users cannot directly inspect and compare the consequences. In SHRDLURN the possible successor boards are both the interface and the supervision mechanism.
The same convenience weakens game completion as a test of language learning. Because scrolling can substitute for instruction, a finished game demonstrates that the player reached the targets by some available route. The scroll metric captures part of the price of bypassing the language, while online accuracy captures agreement at the top of the list. Neither measure verifies that the parser recovered the player's intended logical form when several forms have the same effect. That ambiguity follows directly from the study's decision to let people select outcomes.
The replay of recorded interactions also supports a narrower conclusion than a comparison in which each player separately lives with every ranking strategy. Holding the sequence of examples fixed lets the authors compare first predictions on that history. A different ranking during live play could change the words people try next, the corrections they make, or the board they select. The reported contrast on the 10 highest-ranked players identifies a benefit on their observed histories. The comparisons do not estimate all the effects of deploying the pragmatic rule in a new live interaction.
The observations about human language are constrained by the participant group and game design. Most people wrote in English, despite the freedom to choose other conventions. The use of Polish and invented expressions illustrates that this parser can associate unfamiliar strings with compatible actions in individual games. It does not measure how the approach would perform across languages with different word structures and writing conventions. The difficulty with commands written without spaces shows how a seemingly modest assumption about the input can limit what the system learns.
Finally, the curriculum bundles a progression of tasks with the accumulation of evidence. Later performance reflects both a more experienced pair of participants and different challenges. The paper gives reasons the curriculum should help with early pruning and acquisition of basic terms. Its comparisons leave open how much of the final performance depends on that task order. Likewise, the individual examples of people becoming more economical in their wording show adaptation during play, while leaving its durability after the game unmeasured. The authors' suggestion that interfaces might improve through repeated use remains broader than the particular interaction they evaluated.
What came after
Grounding language in other activities
Later citing work takes up related questions in settings where the meaning of language depends on what participants can observe and do. The connection to SHRDLURN is easiest to see by asking where each task locates that dependence. In SHRDLURN, a typed command is grounded through the board that follows it. A study of grounding in a simulated environment puts the relationship between language and the surrounding world at the center as well. Its setting extends the question beyond changes to rows of block stacks. Grounded Language Learning in a Simulated 3D World.
BabyAI puts sample efficiency at the center of a platform for studying grounded language learning. The question aligns with SHRDLURN's concern about learning quickly enough to be helpful during an activity. In the block game, each accepted result is a learning opportunity, and the order of these opportunities matters because predictions are assessed before their labels are used. BabyAI's stated focus makes the amount of experience needed for grounding a subject of study in its own right. BabyAI.
A related direction considers what the acting system is able to carry out. In SHRDLURN, the action grammar defines the changes a command can bring about, and a player's language is most effective when it can express those changes. The robotic affordances work places that relationship in robotics, where the grounding question concerns what a robot can do in the situation. The link is about the constraints on actionable language. The block grammar provides a deliberately simple instance of those constraints. Do As I Can, Not As I Say.
Cooperation, instruction, and adaptation
Work on executing instructions in situated collaboration takes up the link between a communicated instruction and action in a shared situation. SHRDLURN imposes a strong division of roles: the person knows the target and the computer controls the board. Removing this division from the definition of the research question leaves room to ask how situated collaborators carry out instructions in other forms of joint activity. That broader focus continues the inquiry into what instructions do for participants pursuing a goal together. Executing Instructions in Situated Collaborative Interactions.
CoDraw uses collaborative drawing as a testbed for grounded, goal-directed communication. The shared point of interest is an activity with a visible product. A board arrangement gives the participants in SHRDLURN something concrete to coordinate on, even when the player's wording has yet to acquire a settled interpretation. A drawing offers another kind of outcome around which participants can organize their language. This changes the task in which the consequences of communication can be examined. CoDraw.
Continual adaptation is another direction in the citing literature. In SHRDLURN, adaptation is part of ordinary use: each partner behaves in light of what earlier turns have made possible. The computer reweights associations, while many players settle on wording that makes their requests easier to recover. The later work puts continued adaptation and communication efficiency together as its subject. That framing carries forward the question of how interacting partners can become easier for each other to understand over time. Continual Adaptation for Efficient Machine Communication.
Reasoning about what a speaker would say
Work on unified pragmatic instruction generation and following brings the two directions of instruction use together. SHRDLURN already connects them in its ranking calculation. It represents what wording a speaker might choose and uses that representation to interpret a command the person actually typed. The later work's joint focus on generating and following instructions shows how the relation can be studied with the production of instructions as a task alongside their interpretation. Unified Pragmatic Models for Generating and Following Instructions.
The later treatment of pragmatics in language grounding addresses the phenomena, tasks, and approaches that arise across this area. SHRDLURN contributes a case in which pragmatic behavior emerges from people trying to make an interface work for them. The particular inference is that a cooperative player may have chosen a different expression because they wanted a different action. The broader treatment situates pragmatic reasoning alongside other grounding tasks and phenomena, extending the question of how an interpreter can use the speaker's choices as evidence about meaning. Pragmatics in Language Grounding.
Cite
Cite as Sida I. Wang, Percy Liang and Christopher D. Manning. 2016. Learning Language Games through Interaction. Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers).
@inproceedings{wang2016learning,
title = {{Learning Language Games through Interaction}},
author = {Sida I. Wang, Percy Liang and Christopher D. Manning},
booktitle = {Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
year = {2016},
doi = {10.18653/v1/p16-1224},
eprint = {1606.02447},
archivePrefix = {arXiv},
url = {https://doi.org/10.18653/v1/p16-1224}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/wang-2016-learning-language-games-through-interaction/
References
- Y. Artzi and L. Zettlemoyer. 2013. Weakly supervised learning of semantic parsers for mapping instructions to actions. Transactions of the Association for Computational Linguistics (TACL) 1:49–62. our card
- J. Berant, A. Chou, R. Frostig, and P. Liang. 2013. Semantic parsing on Freebase from question-answer pairs. In Empirical Methods in Natural Language Processing (EMNLP). our card
- S. Branavan, H. Chen, L. S. Zettlemoyer, and R. Barzilay. 2009. Reinforcement learning for mapping instructions to actions. In Association for Computational Linguistics and International Joint Conference on Natural Language Processing (ACL-IJCNLP). pages 82–90. our card
- S. Branavan, L. Zettlemoyer, and R. Barzilay. 2010. Reading between the lines: Learning to map high-level instructions to commands. In Association for Computational Linguistics (ACL). pages 1268–1277. our card
- N. Cesa-Bianchi and G. Lugosi. 2006. Prediction, learning, and games. Cambridge University Press. OpenAlex ↗ · Scholar ↗
- D. L. Chen. 2012. Fast online lexicon learning for grounded language acquisition. In Association for Computational Linguistics (ACL). OpenAlex ↗ · Scholar ↗
- D. L. Chen and R. J. Mooney. 2011. Learning to interpret natural language navigation instructions from observations. In Association for the Advancement of Artificial Intelligence (AAAI). pages 859–865. OpenAlex ↗ · Scholar ↗
- J. Duchi, E. Hazan, and Y. Singer. 2010. Adaptive subgradient methods for online learning and stochastic optimization. In Conference on Learning Theory (COLT). OpenAlex ↗ · Scholar ↗
- M. Frank and N. D. Goodman. 2012. Predicting pragmatic reasoning in language games. Science 336:998–998. our card
- H. Giles. 2008. Communication accommodation theory. Sage Publications, Inc. OpenAlex ↗ · Scholar ↗
- D. Golland, P. Liang, and D. Klein. 2010. A game-theoretic approach to generating spatial descriptions. In Empirical Methods in Natural Language Processing (EMNLP). OpenAlex ↗ · Scholar ↗
- N. Goodman and D. Lassiter. 2015. Probabilistic Semantics and Pragmatics: Uncertainty in Language and Thought. The Handbook of Contemporary Semantic Theory, 2nd Edition Wiley-Blackwell. OpenAlex ↗ · Scholar ↗
- H. P. Grice. 1975. Logic and conversation. Syntax and semantics 3:41–58. OpenAlex ↗ · Scholar ↗
- M. E. Ireland, R. B. Slatcher, P. W. Eastwick, L. E. Scissors, E. J. Finkel, and J. W. Pennebaker. 2011. Language style matching predicts relationship initiation and stability. Psychological Science 22(1):39–44. OpenAlex ↗ · Scholar ↗
- G. Jäger. 2008. Game theory in semantics and pragmatics. Technical report, University of Tübingen. OpenAlex ↗ · Scholar ↗
- T. Kollar, S. Tellex, D. Roy, and N. Roy. 2010. Grounding verbs of motion in natural language commands to robots. In International Symposium on Experimental Robotics (ISER). OpenAlex ↗ · Scholar ↗
- T. Kwiatkowski, L. Zettlemoyer, S. Goldwater, and M. Steedman. 2010. Inducing probabilistic CCG grammars from logical form with higher-order unification. In Empirical Methods in Natural Language Processing (EMNLP). pages 1223–1233. our card
- P. Liang, M. I. Jordan, and D. Klein. 2011. Learning dependency-based compositional semantics. In Association for Computational Linguistics (ACL). pages 590–599. OpenAlex ↗ · Scholar ↗
- E. Markman and G. F. Wachtel. 1988. Children’s use of mutual exclusivity to constrain the meanings of words. Cognitive Psychology 20:125–157. OpenAlex ↗ · Scholar ↗
- C. Matuszek, N. FitzGerald, L. Zettlemoyer, L. Bo, and D. Fox. 2012. A joint model of language and perception for grounded attribute learning. In International Conference on Machine Learning (ICML). pages 1671–1678. our card
- W. Monroe and C. Potts. 2015. Learning in the Rational Speech Acts model. In Proceedings of 20th Amsterdam Colloquium. our card
- P. Pasupat and P. Liang. 2015. Compositional semantic parsing on semi-structured tables. In Association for Computational Linguistics (ACL). our card
- H. Reckman, J. Orkin, and D. Roy. 2010. Learning meanings of words and constructions, grounded in a virtual game. In Conference on Natural Language Processing (KONVENS). OpenAlex ↗ · Scholar ↗
- N. J. Smith, N. D. Goodman, and M. C. Frank. 2013. Learning and using language via recursive pragmatic reasoning about other agents. In Advances in Neural Information Processing Systems (NIPS). OpenAlex ↗ · Scholar ↗
- S. Tellex, R. Knepper, A. Li, D. Rus, and N. Roy. 2014. Asking for help using inverse semantics. In Robotics: Science and Systems (RSS). OpenAlex ↗ · Scholar ↗
- S. Tellex, T. Kollar, S. Dickerson, M. R. Walter, A. G. Banerjee, S. J. Teller, and N. Roy. 2011. Understanding natural language commands for robotic navigation and mobile manipulation. In Association for the Advancement of Artificial Intelligence (AAAI). OpenAlex ↗ · Scholar ↗
- A. Vogel, M. Bodoia, C. Potts, and D. Jurafsky. 2013. Emergence of gricean maxims from multi-agent decision theory. In North American Association for Computational Linguistics (NAACL). pages 1072–1081. our card
- A. Vogel and D. Jurafsky. 2010. Learning to follow navigational directions. In Association for Computational Linguistics (ACL). pages 806–814. OpenAlex ↗ · Scholar ↗
- T. Winograd. 1972. Understanding Natural Language. Academic Press. OpenAlex ↗ · Scholar ↗
- L. Wittgenstein. 1953. Philosophical Investigations. Blackwell, Oxford. OpenAlex ↗ · Scholar ↗
- Y. W. Wong and R. J. Mooney. 2007. Learning synchronous grammars for semantic parsing with lambda calculus. In Association for Computational Linguistics (ACL). pages 960–967. our card
- L. S. Zettlemoyer and M. Collins. 2005. Learning to map sentences to logical form: Structured classification with probabilistic categorial grammars. In Uncertainty in Artificial Intelligence (UAI). pages 658–666. our card
- L. S. Zettlemoyer and M. Collins. 2007. Online learning of relaxed CCG grammars for parsing to logical form. In Empirical Methods in Natural Language Processing and Computational Natural Language Learning (EMNLP/CoNLL). pages 678–687. our card