Elamur Research

Grounding Language with Points and Paths in Continuous Spaces

Paper · 2014 · Jacob Andreas and Dan Klein

Summary

A color name can tell us what a shade might look like even if we have never seen it. A market headline can tell us how an index moved, and spoken directions can tell us where to draw a route. In each case, the words constrain measurements in the world. The challenge is to learn those constraints from examples and use them to produce a new interpretation from the words alone. Jacob Andreas and Dan Klein study this problem by representing the meaning of a description as a point or a path in a continuous space. A color is a point in hue, saturation, and value. A market history is a curve of index values over time. A route is a sequence of positions on a map.

The authors start with color, where words in a name contribute to a single prediction. They then extend the approach to descriptions that have several events. A market headline can mention a recovery before the drop that preceded it, so reading order gives only part of the evidence about which stretch of the curve each phrase describes. During training, the system sees the headline and a segmented curve, and it learns which pieces of text belong with which pieces of the curve. For navigation, the same general machinery connects utterances to stretches of a route and predicts positions relative to named landmarks. Across all these tasks, the system learns numerical contributions from lexical features. The path tasks add a separate decision about where those contributions apply.

On the color test, the full system picks the correct shade over a randomly drawn alternative with a selection accuracy of 0.81, compared with 0.78 for a baseline that uses the last word of the name. The full system also has lower saturation and value errors, while the last-word baseline has lower hue error. On the chronological market test, the full system reaches 0.61 selection accuracy, compared with 0.59 for a system that assigns the entire headline to the second day. The full system has higher squared prediction error, so the advantage depends on how the output is judged. On the Map Task Corpus, the system reaches 0.51 transition recall and 0.43 transition precision. It matches the recall of a comparison system that searches a set of routes constrained in advance, with somewhat lower precision.

The experiments show how far a common approach can go when the relevant measurements are already available and the state space is simple enough to describe directly. They also locate a recurring difficulty. The system can learn what a word suggests about a shade, a movement, or a position and still apply that information to the wrong part of the output. The stock and navigation error analyses show why deciding where a phrase applies is a separate problem from learning what it contributes.

Deep dive: Grounding Language with Points and Paths in Continuous Spaces

How Grounding Language with Points and Paths in Continuous Spaces learns to turn color names, market headlines, and directions into coordinates. · about 36 minutes to read

The problem and its context

From formal expressions to measurements

Work on semantic parsing had often treated interpretation as translation into a discrete formal language. A sentence could be mapped to a logical expression, or a question could be turned into a query to run against a database. The paper describes subsequent work that learned this translation together with interpretation against a symbolic database. In these settings, the output expressions offer a way to specify what the sentence says about entities and their relationships. Andreas and Klein ask what an interpretation procedure should produce when the evidence and the desired answer are themselves measurements. The earlier database-query work is an example of the formal translation setting they describe. Learning to Parse Database Queries Using Inductive Logic Programming

The authors place their approach alongside research on perceptual grounding, where the use of a word is tied to observable properties. The work they review includes studies that combine textual and visual evidence to represent words, identify the scene associated with a description, or find the particular objects or movements referred to in a scene. That research provides ways to ask whether a description fits something already observed. The question here is whether the evidence supplied by text can also be used to construct an output. A system that gives a plausible score to a given color and a system that supplies a color when presented with only its name are solving related problems. The latter needs a representation in which it can propose coordinates as well as score them. Prior work on learning to parse and perceive had already learned simple color predicates, which gives the authors a point of comparison for their interest in fine-grained shades and combinations of modifiers. Jointly Learning to Parse and Perceive

The distinction becomes more consequential for language about movement. An interpretation procedure might be asked to choose which of several observed histories a headline describes. It might also be asked to give the history that it would expect from that headline. The second version needs a way to express degrees of change and multiple phases. Even when the headline gives a good general account of the day, many possible curves fit its wording. A probability distribution over the curves is a natural way to represent that latitude. It lets the system attach higher probability to some possibilities while keeping others available, and it gives the authors a basis for both generating and evaluating an output.

What changes when the meaning unfolds in time

The color case isolates a question in lexical semantics. A reader may recognize the base color in dark pastel blue and also use the other words to adjust the expected shade. The paper describes dark as lowering value and pastel as lowering saturation while raising value. A learner that sees enough color names and their coordinates can try to infer these contributions. The desired behavior is that knowing the parts helps with a combination that was absent from training. The authors situate this question alongside prior linguistic and philosophical work on color composition and computational work on grounding color predicates.

In a market headline, lexical contributions still matter. A word can suggest that the index fell, and a modifier can indicate the severity or timing of the change. The input also needs to be divided into pieces that concern different parts of the history. In the example the authors use to introduce the task, a recovery is described in relation to a preceding drop. The word after supplies evidence about their chronology even when the headline names the recovery first. A system that attaches the right numerical tendencies to the words can still generate an implausible history if the recovery and drop are assigned to the wrong intervals.

The paper describes work on the relationship between language and time series as having concentrated more on generating descriptions from data. It also distinguishes its use of financial headlines from research that uses financial language to predict later outcomes. The target in this study is the trajectory that the headline describes. A chronological split can make the evaluation more demanding by putting the test examples later in the collection, but the headline remains a description of the target history. That choice makes the task an experiment in grounding descriptions.

Navigation introduces the same question about event order and adds a change of reference frame. A movement relative to a landmark can have a similar meaning wherever the landmark is located, even though its actual coordinates differ from map to map. The input is also much longer and less formal than a newspaper headline. The paper describes spoken dialogues containing repeated information, hesitations, and occasional mistakes. Some utterances refer back to a landmark. Others describe a destination by relating it to features around it. For the interpreter, recognizing the name of a landmark is only one part of deciding what to do with the utterance.

Earlier navigation work, as the paper presents it, had used reinforcement learning to choose map actions and had learned to associate sentences with commands under weak supervision. Other approaches learned a parser whose output was a logical form specifying the route. Andreas and Klein keep the division into meaningful pieces but learn a direct association between phrases and numerical aspects of the route. The comparison with earlier work therefore concerns both the supervision available during learning and the form in which the interpreter expresses the answer. Reinforcement Learning for Mapping Instructions to Actions, Weakly Supervised Learning of Semantic Parsers for Mapping Instructions to Actions

Why the authors treat these as one problem

Each domain offers a way to observe the grounding directly as a small collection of real-valued quantities. The color list supplies coordinates. The financial records supply a sequence of values. The routes give positions relative to known landmarks on a map. The authors restrict their attention to these cases so they can study how words combine, how text divides into events, and how the events line up with the observations. Those are already substantial learning problems even when the coordinates have been chosen in advance.

The paper takes a structural idea from event semantics. Parts of an utterance give information about an event, and several properties can apply to the same event. Here an event serves as a unit for attaching evidence to part of a path. A phrase can express a tendency about the size or direction of a change, while the alignment determines which interval receives that tendency. The interpretation stays close to the observed quantities, and the same division of labor can be examined on either a financial curve or a route.

The progression across tasks is important. Color shows what can be learned when all the words describe one vector. The stock task adds the problem of deciding which phrases belong to which preidentified day. Navigation keeps the alignment problem and scales it to long sequences of utterances, where exhaustive consideration of possible correspondences becomes impractical. In this way the experiments test a common representation under increasingly demanding conditions without requiring every task to share the same features or inference procedure.

The method, step by step

What the learner sees

During training, the learner receives a text and its observed grounding. The text is represented by one or more constituency trees. Such a tree groups words into nested constituents, giving the system a way to consider a complete phrase or clause as a unit. The paper obtains these trees from the Berkeley Parser. In the path tasks, the observed grounding comes with boundaries between segments. The learner can see where a segment ends and what values it contains. The correspondence between language and those segments is the unknown part. The paper uses the parsed text again at prediction time, when it needs to produce a grounding for a new input. The map setting also supplies the locations of the landmarks that serve as reference points. Parsing, Improved Inference for Unlexicalized Parsing

The trees and groundings are converted to feature vectors. For text, the authors use the label at the root of the tree and the lemmas at the leaves. The root label records the kind of constituent being represented. A lemma represents a word in its base form, which allows the feature representation to pool evidence from forms of the same word. Grounding features include the last element of a segment. Stocks also use the curvature of a quadratic fitted to the segment. This feature gives the system a way to distinguish a curved trajectory from one whose direction is described well by an overall change. The feature representation is deliberately small relative to the observations it summarizes. Lemma

That compression matters at both ends of the procedure. During learning, a phrase can be associated with an endpoint or a tendency in the curve without learning a separate weight for every measurement. During prediction, the system has to interpret its predicted features as a point or path in the original domain. A feature vector can leave several shapes possible. The paper assumes that a suitable reconstruction is available and gives a concrete rule for choosing a route on the map. This puts part of the definition of an acceptable output in the choice of features and the reconstruction procedure.

Learning and predicting groundings from text

The steps in order.

Learning and predicting groundings from textStep 1: Parse the input text into constituents1. Parse the input text into constituentsStep 2: Represent text and observed segments as features2. Represent text and observed segments as featuresStep 3: Propose text spans for path alignment3. Propose text spans for path alignmentStep 4: Learn lexical weights and alignment scores4. Learn lexical weights and alignment scoresStep 5: Infer grounding features for new text5. Infer grounding features for new textStep 6: Reconstruct a point or path6. Reconstruct a point or path

The alignment stages apply to the path tasks. For color, the whole name contributes to one vector, so the lexical prediction is already a point in the target space. In stocks, a tree supplies candidates of several sizes. In navigation, the transcribed discourse already comes divided into utterances, which become the candidates. These choices determine what a single alignment decision can move from one part of a grounding to another.

Predicting a point from the color name

Color provides the simplest setting in which to learn the contribution of individual words. The output coordinates are hue, saturation, and value, collectively called HSV. Hue represents the dimension used to distinguish many basic color categories. Saturation and value capture other aspects that modifiers can change. A word can have effects on several coordinates, and those effects can differ in sign. The paper’s example of pastel makes this concrete because its expected influence on saturation and on value goes in different directions.

The authors use a linear predictor. The feature vector for a name selects the relevant learned weights, and these weights add up to a predicted color. The sparse prior reflects the authors’ expectation that a word will frequently be informative about only some of the coordinates. Sparsity favors weights that are zero. For a useful color modifier, that still leaves room for effects on several axes. The authors motivate additive composition with directional vocabulary. Familiar terms can describe a direction between named directions by combining their contributions. The proposal is that a similar form of combination can account for a useful share of the variation in color descriptions.

The probability expression places more weight on colors close to the lexical prediction.

p(T, V) ∝ exp(−‖θₜᵀT − V‖²)

Here p(T, V) is the joint probability expression for the feature representation of the name and its color. T is the vector of tree features, and V is the vector of grounding features, which in this case gives the color coordinates. θₜ holds the text-to-grounding weights, and the superscript ᵀ denotes a transpose. The subscript ₜ identifies the weights associated with the text prediction. The product θₜᵀT is the predicted color vector. The bars ‖ ‖ denote the length of the difference vector, and the superscript ² squares that length. The minus sign puts larger discrepancies at lower scores, exp is the exponential function, and ∝ indicates proportionality.

The learning statement chooses text weights by minimizing the aggregate residual over the observed name and color pairs. Written using the squared discrepancy from the probability expression, its regression fit has the form below. The sparse prior is the additional condition under which the authors identify the fit as Lasso regression.

argmin over θₜ of Σ₍T,V₎ ‖θₜᵀT − V‖²

The operator argmin selects the value of the weights θₜ that minimizes the expression. The sum Σ₍T,V₎ runs over the training pairs, each with a text feature vector T and its observed color vector V. The product θₜᵀT uses the transposed weights to predict the coordinates, and ‖θₜᵀT − V‖² measures the squared length of the residual. The expression shows the fit to the observations. The prior favors a sparse set of fitted weights, which is the role of shrinkage in the authors’ account of the color learner.

For a new name, the highest-scoring color is the vector given by the fitted regression.

argmax over V of p(T, V) = θₜᵀT

The operator argmax returns the value of V at which the joint expression p(T, V) is highest for the fixed input T. On the right, θₜᵀ is the transpose of the learned weights and T is the new name’s feature vector. The equation follows because the exponent attains its highest value when the predicted and candidate vectors coincide. This gives the system a concrete output even when there are no candidate swatches to choose from.

The same definition also supports the paper’s selection test. Once the candidate coordinates are supplied, the system can score each against the text prediction. A name with an unfamiliar combination can still have an informative vector if the system has seen its component words in other combinations. A name with little usable lexical evidence instead depends heavily on what the regression predicts in the absence of a strong contribution. That difference is important when reading the color error analysis.

Assigning different phrases to different events

For paths, a whole sentence can describe several pieces of the output. The authors let any subtree of a sentence’s parse compete for an alignment. They also allow a subtree with a single constituent removed. This second type of candidate lets a phrase supply evidence about one event even when a nested constituent supplies evidence about another. The candidates are derived from the parse, so the inventory reflects how words are grouped. An alignment that uses several candidates must also respect the relevant bracketing and global restrictions.

V = (V₁, V₂, …, Vₘ)

Here V represents the grounding sequence in feature space. Each Vⱼ is a vector describing one segment, the subscript ⱼ gives its position in the sequence, and m is the number of segments. The parentheses and commas mark an ordered sequence, and … indicates the intervening segment vectors. The placement of a segment in this sequence is the order in the grounding, which can differ from the order in which the corresponding phrase appears in the text.

The authors give each candidate a latent alignment variable and a latent constraint vector. A latent variable is a quantity inferred by the system rather than being marked in the data. The alignment variable chooses a path segment, or indicates that the candidate is unaligned. The constraint vector says what features the candidate would favor if attached to a segment. It can express what the phrase suggests independently of where the event belongs. The observed paths provide evidence about both unknowns during training.

The probabilities are represented using a factor graph. A factor is a function that scores a local combination of variables. Multiplying the factors gives a score for a full assignment, which can then be used to calculate probabilities. With latent variables present, the probability of the visible text and grounding accounts for the possible hidden assignments. A separate global factor can eliminate combinations of alignments that violate the rules of the task. This organization keeps the scoring of words, the placement of events, and the agreement with the observed path explicit.

Scoring neighboring alignment decisions

The alignment factor scores a candidate’s assignment together with the preceding assignment. It uses a log-linear form, which means that the exponential of a weighted feature score supplies a positive quantity that can be normalized over the candidate assignments.

ψₜₐ(Tᵢ, Aᵢ, Aᵢ₋₁) =
  exp(θₐᵀϕₐ(Tᵢ, Aᵢ, Aᵢ₋₁)) /
  Σ₍A′ᵢ,A′ᵢ₋₁₎ exp(θₐᵀϕₐ(Tᵢ, A′ᵢ, A′ᵢ₋₁))

The symbol ψₜₐ names the factor that connects text with alignment. Tᵢ represents text candidate i, Aᵢ is its alignment choice, and Aᵢ₋₁ is the preceding choice. The subscript ᵢ₋₁ denotes the immediately preceding position in the candidate order. The function ϕₐ computes alignment features from the candidate and the pair of choices, and θₐ is the corresponding weight vector. Its transpose θₐᵀ gives a weighted sum when multiplied by the features. The numerator applies exp, the exponential function, to the score of the current pair. The denominator sums those positive scores over the alternatives A′ᵢ and A′ᵢ₋₁, with primes marking the choices enumerated by the sum. Division supplies the normalization.

The alignment features combine the text features with indicators of whether the current and preceding candidates are aligned, and with an alignment-index difference when both are aligned. Combining them in this way gives the learner weights for the association between a lexical or syntactic cue and an alignment pattern. It can therefore learn that particular wording favors an assignment associated with a different event order. There is a notation inconsistency worth preserving when reading the feature specification. The factor takes neighboring assignments as inputs, while the feature list writes the index difference using A₁ and Aᵢ₋₁. The first symbol there denotes the alignment with subscript ₁ as printed, and the second denotes the preceding alignment.

Turning words into constraints on the path

A separate factor gives a high score when a candidate’s constraint vector is close to the prediction made from its text features.

ψₜ꜀(Tᵢ, Cᵢ) = exp(−‖θₜᵀTᵢ − Cᵢ‖²)

Here ψₜ꜀ is the factor that connects text and constraints. The subscript ᵢ indexes a candidate, Tᵢ contains its text features, and Cᵢ is the numerical constraint associated with it. The transposed text weights θₜᵀ give the lexical prediction when multiplied by Tᵢ. The norm ‖ ‖ gives the length of the discrepancy, ² squares it, and exp gives the exponential of the negative result. This is the same form of preference used in the color task, now applied to an intermediate vector that represents what the phrase predicts about its event.

A prediction factor couples that constraint to the grounding. The factor only applies the constraint to the segment selected by the alignment.

ψₐ꜀ᵥ(Aᵢ, Cᵢ, Vⱼ) = {
  1                         if Aᵢ ≠ j
  exp(−‖Cᵢ − Vⱼ‖²)          if Aᵢ = j
}

The symbol ψₐ꜀ᵥ names the factor connecting alignment, constraint, and grounding. Aᵢ is the choice for candidate i, Cᵢ is its constraint, and Vⱼ is the feature vector for segment j. The braces list the cases, ≠ marks different indices, and = marks a match. The factor value 1 leaves the total product unchanged when the candidate is assigned elsewhere. For a match, exp applies the exponential to a negative squared norm, giving a higher score to closer agreement between Cᵢ and Vⱼ. The sign and the norm have the same roles as in the text-to-constraint factor.

This separation lets one describe a failure precisely. The text factor may correctly associate a phrase with a downward trajectory, but the alignment can attach that constraint to the wrong day. Conversely, an alignment can place a phrase on the right day while the lexical predictor gives the wrong sign or exaggerates the size of the move. The general construction can let several pieces of text contribute to one segment. Particular applications can restrict when that happens.

The global factor is written as follows.

ψₐ*(A₁, A₂, …)

Here ψₐ* names the factor that evaluates the alignment as a whole, with the star distinguishing it from the local factors. The A terms are the assignments for the indexed candidates, and … includes the remaining assignments. This factor can rule out a combination even if the neighboring pairs, considered individually, receive good scores. For instance, local scores alone cannot ensure that every word is covered. For the stocks task, the global rules are chosen to make direct summation over admissible alignments feasible.

When there is a single text unit and a single grounding vector, the paper relates the resulting factorization back to the color regression. This connection explains why the authors begin with color. The lexical association between text and numerical features remains the core prediction problem. The factors added for a path decide when to apply such predictions and how to reconcile them with the features of the selected stretches.

Learning with daily segments in the stock task

For stocks, the authors take each day as an event segment. During training, a chart identifies the two days and supplies measurements for each. The alignment rules require coverage of every terminal of the parse tree, meaning that all the words must be accounted for. They also forbid two constituents from being assigned to the same segment. Together with the candidate structure, these rules limit how a headline can be partitioned and assigned. The paper gives the resulting number of terms as quadratic in sentence length.

The authors estimate the weights with expectation–maximization. The expectation step uses the current weights to assess which hidden correspondences are plausible. The maximization step updates the weights using the information averaged over those correspondences. This makes it possible to learn from pairs whose headline and curve are known but whose word-to-segment links are unmarked. In the regression part, a plausible assignment of a phrase to a day contributes evidence that the features of that day are associated with the phrase.

The expectation step forms two quantities from the candidate features and their assigned segment features.

M = E[Σᵢ TᵢTᵢᵀ],  N = E[Σᵢ TᵢVₐᵢᵀ]

M is the expected sum of outer products of candidate text vectors with themselves. N is the expected sum of outer products of text vectors with the grounding vectors to which they are assigned. E denotes expectation under the current inference over hidden assignments, and Σᵢ sums the contributions indexed by candidate i. Tᵢ is a column of text features, and Tᵢᵀ is its transposed row. In Vₐᵢᵀ, the subscript stands for the assignment Aᵢ, so the term is the transposed feature vector of the segment chosen for that candidate. An outer product records every pairwise product between the entries of the column and the row.

The update for the text weights uses those expected quantities.

θₜ = M⁻¹N

The symbol θₜ denotes the updated text-to-grounding weights. M⁻¹ is the matrix inverse of the expected text feature product M, and N is the expected text and grounding feature product. Multiplication gives the printed regression update. Its structure shows how evidence about the alignment enters the weights. A candidate’s text vector contributes information in relation to the grounding vector selected for it, with uncertain selections handled through the expectation.

The alignment weights have their own objective, based on the expected log scores of the normalized factors.

E[Σᵢ log(
  exp(θₐᵀϕₐ(Tᵢ, Aᵢ, Aᵢ₋₁)) /
  Σ₍A′ᵢ,A′ᵢ₋₁₎ exp(θₐᵀϕₐ(Tᵢ, A′ᵢ, A′ᵢ₋₁))
)]

The E again averages over the current distribution of hidden choices. The outer sum Σᵢ ranges over the candidate positions, and log takes the logarithm of each local normalized score. θₐᵀ is the transpose of the alignment weight vector, ϕₐ returns alignment features, and Tᵢ is the text candidate. The unprimed terms Aᵢ and Aᵢ₋₁ identify the alignment decisions being scored. Their primed counterparts identify the alternative pairs being summed in the denominator. The two exponentials exp map linear scores to positive values, and their normalization gives the same local alignment factor used in the graph.

The authors maximize this objective with L-BFGS, a numerical optimization procedure. This update changes the relative preference for configurations of candidate assignments. The regression update changes the values that the candidates suggest about the curve. At prediction time, the learned factors can be used to infer the distribution of groundings conditional on the headline. A possible way to divide the headline is useful to the extent that its parts make compatible predictions about the day segments and its alignment receives a good score.

Making position relative to a landmark

Navigation uses utterances as the text units. The authors find explicit landmark mentions with string matching and give each utterance a single landmark. When an utterance contains no explicit landmark name, it inherits the landmark from the preceding utterance. This supplies a reference position for the numerical constraint. A direction associated with a familiar phrase can then be learned as a displacement relative to its landmark, even when examples place the landmark in different parts of the map.

ψₐ꜀ᵥ(Aᵢ, Cᵢ, Vⱼ) = {
  1                             if Aᵢ ≠ j
  exp(−‖lᵢ + Cᵢ − Vⱼ‖²)         if Aᵢ = j
}

ψₐ꜀ᵥ scores agreement between an utterance constraint and a path segment when they are aligned. Aᵢ is the alignment assigned to utterance i, Cᵢ is its relative constraint, and Vⱼ gives the grounding features of segment j. The new term lᵢ is the location of the landmark assigned to the utterance. The plus sign translates the relative constraint into the map’s coordinates, after which subtraction gives the discrepancy with Vⱼ. The braces distinguish the case Aᵢ ≠ j, whose multiplicative contribution is 1, from Aᵢ = j, where the negative squared length inside exp gives an agreement score.

The map task also changes what inference is practical. The discourse is already divided, so the system can use each utterance as a candidate without considering its internal parse constituents as additional candidates. But there are many utterances and many possible assignments, and the sparse restriction used in the stocks experiment is unavailable for this setup. The authors therefore approximate the relevant distributions by sampling. The graph still expresses local relationships among text, constraints, alignments, and path segments. Its larger size makes the direct calculation of all the alignment possibilities impractical.

For training, a Gibbs sampler successively resamples the alignments, constraints, and learned weights. The principle is to update one part of the current assignment using the values held by the other parts and to repeat that process so the sequence of assignments gives information about the underlying distribution. The weight updates are themselves difficult to sample exactly. The paper uses an inner Metropolis–Hastings procedure with a Gaussian proposal distribution for them. The proposal offers candidate values of the weights, and the sampling procedure determines which moves to accept. The authors use the mean of the sampled weight distribution as an approximation to its mode, the location of greatest posterior density.

At prediction time the learned weights are fixed. The sampler now varies the alignments, the constraints, and the grounding vectors for the new directions.

E[V]

V denotes the grounding sequence, and E denotes expectation over the predictive sampling procedure with the weights held fixed. This is the mean of the predicted grounding features. To obtain a route from those features, the authors produce the shortest path that the features permit. This final step gives the evaluation a drawable path on which to count transitions between landmarks. It also makes clear which part of the solution is learned from language and which part comes from how the paper converts predicted coordinates into a route.

Experiments and results

Color names and held-out shades

The color data come from English Wikipedia’s List of Colors. According to the paper, a name is kept if each word in it occurs three or more times in the training corpus. It reports 419 colors and randomly divides them into a 377-item training set and a 42-item test set. The grounding for each name is its HSV triple. At test time the input is a color name, and the authors evaluate both the predicted coordinates and the ability to recognize the right color in a pair of swatches.

In the selection test, one candidate has the recorded coordinates and the other is randomly drawn from the test set. The reported accuracy is the fraction of cases in which the recorded color receives the higher probability. The coordinate evaluation instead measures the average magnitude of the absolute prediction error separately for hue, saturation, and value. Keeping the axes separate allows a gain on a modifier-sensitive dimension to be seen even if the hue prediction gets worse.

One baseline outputs random values for the coordinates. The other uses only the last word of the name, which the paper says almost always indicates a hue category. The latter is a consequential comparison because a substantial amount of information can already be present in that last word. The full system has access to the lexical features of the whole name. The paper also reports the result of an informal trial in which a colleague performed the color selection task.

Held-out Wikipedia color names by selection accuracy

The full system improves on both baselines, and the colleague selects the correct color most often.

Held-out Wikipedia color names by selection accuracyRandom: 0.50Random0.50Last word: 0.78Last word0.78Full system (this paper): 0.81Full system (this paper)0.81Human: 0.86Human0.86
The numbers
System or settingselection accuracy
Random0.50
Last word0.78
Full system (this paper)0.81
Human0.86

On the held-out color selection test, the last-word baseline has accuracy 0.78 and the full system reaches 0.81. The authors report the improvement over the baseline as statistically significant at p < 0.05 using a paired sign test. A paired test compares outcomes on the same instances, so the evidence comes from where the systems differ in their decisions. The informal human result is 0.86 selection accuracy. The paper uses it for orientation and treats its scope as that of an informal comparison.

The coordinate results qualify the selection gain. The full system’s absolute hue error on the color test is 0.07, while the last-word baseline’s is 0.05 and the random baseline’s is 0.30. For saturation, the full system’s error is 0.21, compared with 0.26 for the last-word baseline and 0.38 for random prediction. For value, the corresponding errors are 0.13, 0.17, and 0.39. Thus the strongest system for picking the recorded shade also has lower error on the dimensions the paper associates with many modifiers. The final word remains particularly valuable for hue.

The two evaluations ask different questions. In selection, a prediction can favor the recorded shade as long as it separates it from the sampled alternative. Coordinate error measures how far from the recorded value the prediction falls along each axis. A system can benefit from better saturation and value estimates in selection even if its hue estimate moves away from the target. Reporting both tests makes it possible to see which aspects of the numerical prediction support the result. Evaluation & benchmarks

Market headlines and their observed curves

The financial data pair headlines from MarketWatch’s Market Snapshot column with hourly stock charts. The period described runs between 2001 and 2012. After excluding weekends and dates with incomplete stock records, the authors obtain 2218 headline and time-series pairs. Each example uses two days of data concatenated in time order. The earlier day can provide a segment for wording about preceding events, while the later day can accommodate the headline’s description of the current day.

The experiment uses a 90%/10% train/test split, with the complete test portion occurring after the training portion chronologically. One baseline has no text and learns the overall tendency in the training data. The second uses the headline but fixes the alignment so that the entire tree predicts the second day. This gives the second baseline access to lexical clues and makes it useful for assessing what changes when the system has the freedom to distinguish phrases and assign them to different days.

As with color, there is a selection test and an absolute prediction test. In selection, the system must prefer the actual history paired with the headline to a randomly chosen alternative. For prediction error, the authors sum the squared deviations between the predicted and reference values along each curve, and the table reports the mean of those sums. Squaring places substantial weight on large misses. A system can consequently do well by that metric if it keeps its curves close to typical observed values, even when its outputs capture less of what differentiates one headline from another.

MarketWatch chronological test by stock-history selection accuracy

The learned alignment improves selection over the fixed alignment, and the informal human result remains higher.

MarketWatch chronological test by stock-history selection accuracyNo text: 0.51No text0.51Fixed alignment: 0.59Fixed alignment0.59Full system (this paper): 0.61Full system (this paper)0.61Human: 0.72Human0.72
The numbers
System or settingselection accuracy
No text0.51
Fixed alignment0.59
Full system (this paper)0.61
Human0.72

The full system attains 0.61 selection accuracy on the chronological stock test. The fixed-alignment baseline attains 0.59, and the no-text baseline attains 0.51. The paper reports a paired sign test with p < 0.05 for the improvement over the baseline. Its informal human comparison yields 0.72 on stock-history selection. As in the color experiment, the system has to discriminate the reference from a sampled alternative. The human comparison indicates room for better selection under that setup.

The prediction errors order the systems differently. On the chronological stock test, the no-text baseline has mean summed squared error 0.0012, the fixed-alignment baseline has 0.0011, and the full system has 0.0018. The authors explain that when the full system goes wrong, it can predict a trajectory whose values are far from the observations. Its selection result establishes an advantage in identifying the described history from this kind of pair. The regression error establishes that the same system is less accurate at reconstructing the hourly values by the paper’s squared-error criterion.

The paper illustrates a successful prediction with a headline in which the ending level and continuing economic worries are described in separate spans. The predicted interpretation attaches the lower ending to the current day and uses the expression of persistence to draw information about the previous day. The estimated curve follows the approximate direction of the observed one. This example shows what the extra alignment machinery can produce. The reported metrics score the resulting curves and choices, so the illustration is also one of the places where the reader can inspect the inferred event structure directly.

Spoken directions on a map

The navigation experiment uses the Map Task Corpus, which contains 128 dialogues across 16 maps. The spoken instructions are transcribed and divided into utterances using prosodic cues. In the evaluation, the system receives a new sequence of directions and produces a continuous path in the plane. The paper follows the transition-based evaluation used by Vogel and Jurafsky. It describes the corpus and the test procedure without specifying a train/test split for the reported navigation table.

A transition is a movement between landmarks, and the score checks for transitions also present in the reference route. Precision is the fraction of transitions in the predicted route that are correct. Recall is the fraction of reference transitions that the prediction recovers. The paper also reports F1, which summarizes precision and recall together. This evaluation gives a numerical basis for comparing routes generated in a continuous space with routes constructed by a discrete search procedure. Both kinds of output can be judged by the landmark transitions they make.

The paper presents two comparison systems. The policy-gradient approach of Branavan and colleagues learns to use language to choose actions. The system of Vogel and Jurafsky searches routes with prior knowledge that a route passes on one of four sides of a landmark. Andreas and Klein allow positions throughout the plane. The input includes known landmark locations, and the association between the words and positions near those landmarks has to be learned. The prior restriction in the earlier search problem matters because it gives the procedure a small set of alternatives around a referenced feature. Reinforcement Learning for Mapping Instructions to Actions

Map Task Corpus route predictions by transition F1

Continuous grounding exceeds the policy-gradient system and trails the discrete route-search system.

Map Task Corpus route predictions by transition F1Branavan et al.: 0.36Branavan et al.0.36Vogel and Jurafsky: 0.48Vogel and Jurafsky0.48Andreas and Klein (this paper): 0.45Andreas and Klein (this paper)0.45
The numbers
System or settingF1
Branavan et al.0.36
Vogel and Jurafsky0.48
Andreas and Klein (this paper)0.45

On the Map Task navigation evaluation, the policy-gradient comparison has precision 0.31, recall 0.44, and F1 0.36. The discrete system of Vogel and Jurafsky has precision 0.46, recall 0.51, and F1 0.48. The continuous system has precision 0.43, recall 0.51, and F1 0.45. Thus it recovers the same fraction of reference transitions as the discrete comparison, while a smaller fraction of the transitions it proposes are correct. Against the policy-gradient comparison, it has higher values on all the reported measures.

The authors emphasize the closeness of the continuous result given the difference in the permitted routes. The transition scores give substance to that observation. Recovering a transition shows that the path makes a corresponding move between landmarks. The score is less specific about the geometry of the route between those landmarks. The table therefore supports a comparison of the routes at the resolution chosen for evaluation, with the difference in search assumptions remaining relevant to how the results are interpreted.

What the ablations show

What the modifiers contribute

The last-word comparison in the color experiment gives the clearest controlled test of lexical coverage. The restricted predictor still has the word that usually establishes the hue. The full predictor gets access to the rest of the name, including words that can change saturation or value. Its advantage on those axes and on selection is consistent with the authors’ account of why modifiers matter. The hue result supplies a useful counterweight. The strongest cue for hue is frequently already in the restricted input, and adding words does not guarantee a better estimate for every coordinate.

The baselines test two different questions. Random prediction establishes a reference for how frequently a system can choose the right shade without useful lexical information. The last-word baseline tests what is gained beyond an informative part of the name. The latter supports an interpretation about composition because it retains a strong color cue while removing the other words. It measures the effect of those words as a group. The paper does not run separate comparisons for sparsity, root labels, or the individual modifier types, so the gains cannot be assigned to any one of those choices.

The error examples show why having several words can help in some cases and confuse the estimate in others. The authors describe training combinations such as Japanese indigo, lavender indigo, and electric indigo. With evidence concentrated in a small set of combinations, the learner associates indigo with a bright purple. Some of the properties recurring in the examples may belong to a modifier or to the conventional shade selected by a whole name. The regression has to infer a base contribution from the combinations it observes. The paper also reports a case in which teal is predicted as bright red, illustrating the behavior the authors associate with an absence of usable lexical evidence.

What the alignment comparison isolates

For stocks, the no-text baseline shows what can be achieved by learning a typical pattern from the training charts. Giving the system the text of the headline and fixing it to the second day improves the ability to recognize the described chart. Allowing alternative spans and placements improves selection further. This comparison tests the package of changes involved in learned alignment. Flexible segmentation, assignment to both days, and the scoring of event order work together in the full system. The experiment leaves their individual effects unresolved.

The learned weights provide a different view of the stock experiment. The paper breaks the representation of overall daily change into a sign feature and a magnitude feature. In its examples, rise has a learned sign weight of 0.27 and lifted has 0.66. Swoon has a sign weight of −0.57 and slammed has −0.36. The sign weight for sharply is −0.22, and the paper prints 0.28 for its magnitude weight in the column scaled by ·10³. These are fitted feature weights. They give a way to inspect what evidence individual words add, with the effect in a particular headline also depending on the remaining features and the alignment.

The paper’s trajectory examples show that those weights can be reasonable even when a complete prediction goes wrong. A curved segment can account for some of the shape implied by a term such as rebound. This gives the learner a way to explain a change of motion without dividing the text into separate event descriptions. The authors connect that flexibility to a tendency to infer too few events. In their example involving losing, the predicted loss extends across the time span that ought to contain distinct behavior. The error concerns the reach of a plausible lexical interpretation.

The squared-error result helps delimit what the alignment comparison shows. At the level of pairwise selection, the extra structure helps the system use distinctions in the headline that are unavailable under a fixed assignment. For absolute curve reconstruction, the full system’s larger errors outweigh those advantages. The learned weights and the illustrated success and failure help explain how plausible descriptions of changes can still produce very different curves from the reference.

Where landmark alignment fails

The navigation analysis likewise identifies alignment as a common source of error. A speaker may mention a landmark that the route already passed. In another case the destination may lie in open space, with several landmarks jointly establishing where to go. A system that relies on one named reference point per utterance can treat such mentions as instructions to approach the named feature. The result can recover some of the correct transitions while adding movements the reference route never makes.

The navigation comparisons are comparisons between complete systems. They change the output space, the search or inference procedure, and the way language is connected to the route. Their scores establish the relative performance of those complete approaches under the chosen metric. The error analysis adds a more local account by identifying the kinds of utterances that lead the continuous system toward superfluous visits. A direct test of the landmark heuristic, the relative coordinate factor, or the sampling procedure would require a comparison that changes one of those choices while holding the others fixed. The paper reports no such navigation comparison.

Limitations

Limits identified by the authors

The authors call the assumption of pre-segmented training paths a strong one. A training example already has the path boundaries that separate candidate events, so the learner can search among segment indices. Discovering boundaries from measurements would add another inference problem. In the finance setup, the day division provides a straightforward rule, but different events can occur within the same day. The linguistic analysis also assumes that evidence for an event comes from a syntactically local span and that a span provides information about at most one segment. The training setup thus supplies part of the structure whose correspondence with language the system learns.

They also identify a gap between the small state spaces in the paper and a richer account of the world. A large state vector might describe the properties of several objects, in which case a noun phrase would need to select the relevant object and its coordinates or attributes. The experiments avoid that general argument-resolution problem. Navigation provides known landmarks and a heuristic for mentions, an application-specific means of assigning a reference point. The authors describe reference and the perceptual work needed to build more complex state spaces as separate challenges for extending the approach.

The paper further acknowledges the tradeoff in inference. A global condition can express useful restrictions on alignments, but a general condition can couple many choices and make their joint probabilities expensive to compute. Direct summation is feasible for stocks because the permitted assignments are restricted. Navigation relies on sampling, including an approximation within the weight updates. The choice to use a posterior mean as a stand-in for a mode is another approximation explicitly described by the authors. The navigation experiment evaluates the result of this procedure as a whole.

The authors’ treatment of the human trials also sets their scope. The color trial uses a colleague, and the financial comparison is informal. These observations give a point of reference for the selection tasks. They establish neither a precise upper bound nor the range of performance that would be obtained across readers with varying knowledge of the vocabulary, market language, or available alternatives.

Limits visible in the experimental setup

A word-frequency filter and a random split of a single color list define a restricted test of lexical composition. The evaluation can show how the procedure handles the held-out names in that collection. It leaves open how the same weights would work across separately constructed color lists, different naming conventions, or genuinely novel vocabulary. The paper’s own discussion makes the last point especially relevant. It describes a frequency requirement for the retained names and also reports an error on teal in a category of cases with unseen lexical material. The experimental description does not explain how that example relates to the stated filter, so it supports the qualitative error account more clearly than a precise claim about the test vocabulary.

The color axes and the stock features also shape the kinds of meaning the system can express. The lexical predictor adds the contributions of features. Its ability to express how one word changes the effect of another depends on the information already present in those features. In stocks, endpoints and curvature summarize a trajectory in relatively few quantities, and two day segments bound the available event placements. Fine timing and the shape of changes inside a segment can remain undetermined even if the headline receives a plausible interpretation. The reconstruction reports how the system fills in an observed space from those constraints.

The stock selection setup uses a random alternative. It shows how often the grounder ranks the reference higher under that sampling rule. A comparison in which the candidates shared the same broad direction but differed in timing or magnitude could test a different aspect of grounding. The paper reports no such controlled selection test. Its error on the complete curves already demonstrates the need to keep ranking and numerical reconstruction separate. Likewise, the chronological ordering of the data establishes how the examples were split, while the aim of every prediction is still to recover the movement described by a headline.

The reported experiments also leave the accuracy of the hidden event structure mostly implicit. The full system can improve at picking a curve when the latent alignments are helpful, and the illustrations give examples where the interpretation of a span is plausible or visibly mistaken. There is no separate evaluation against labeled span boundaries and event orders. The numerical results therefore support the usefulness of the induced structure for the endpoint tasks under the paper’s conditions. They do not measure how frequently its internal partition agrees with an independent analysis of a headline or dialogue.

Finally, the map experiment evaluates movement at the resolution of landmark transitions. Different continuous routes can yield the same transition sequence. The precision and recall values therefore leave off-route distance, the exact side on which a landmark was passed, and the geometry of intervening stretches unresolved. The shortest-path reconstruction further supplies a particular choice wherever the inferred features allow several routes. These features of the setup explain why comparable recall is a result about recovered transitions, while a fuller comparison of route geometry would require different measurements.

What came after

The later citing work points to related questions about composition, instruction following, and color. The titles establish the direction of each connection. They give limited grounds for claims about whether a particular factor, feature set, or inference procedure was carried over.

Neural Module Networks (2015) provides a point of comparison for how a system can organize a computation into parts. In the points-and-paths paper, the parts are text constituents or utterances with numerical constraints and alignment decisions. The later title puts modules at the center of the computation. The connection is at the level of structured interpretation. The citation alone leaves open which parts of the earlier grounding machinery informed the later design.

Alignment-Based Compositional Semantics for Instruction Following (2015) names the closest overlap with the navigation study. It brings alignment and composition together for instruction following. In the earlier experiment, deciding where each utterance applies is essential to turning a dialogue into a route, and the landmark errors show the consequences of getting that decision wrong. The later title identifies alignment as a basis for a compositional account of instructions. It leaves open the form of its grounded outputs and the extent to which its alignments correspond to continuous segments.

A Bayesian Model of Grounded Color Semantics (2015) returns to the domain that Andreas and Klein use to study lexical composition apart from event order. The later title identifies a Bayesian treatment of how color language is grounded. The earlier study approaches that domain through a sparse regression from names to HSV coordinates and tests both coordinate prediction and color selection. The citing relationship establishes a connection between the two treatments of grounded color language. The details of their relationship, including the choice of coordinates and the composition of modifiers in the later work, remain unspecified.

Cite

Cite as Jacob Andreas and Dan Klein. 2014. Grounding Language with Points and Paths in Continuous Spaces. Proceedings of the Eighteenth Conference on Computational Natural Language Learning.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.3115/v1/w14-1607

@inproceedings{andreas2014grounding,
  title = {{Grounding Language with Points and Paths in Continuous Spaces}},
  author = {Jacob Andreas and Dan Klein},
  booktitle = {Proceedings of the Eighteenth Conference on Computational Natural Language Learning},
  year = {2014},
  doi = {10.3115/v1/w14-1607},
  url = {https://doi.org/10.3115/v1/w14-1607}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/andreas-2014-grounding-language-points-paths-continuous/