Simpler Context-Dependent Logical Forms via Model Projections

Reginald Long, Panupong Pasupat, Percy Liang

Introduction

Semantic parsing—the process of translating natural language into machine-executable code—faces a significant hurdle when dealing with context-dependent language. In scenarios where words like "it" or "the first one" refer to previous objects or actions, the number of potential logical interpretations grows exponentially. This paper introduces "model projections," a technique that simplifies complex, word-aligned models into efficient "flat" models. By focusing on the final result (denotation) rather than the step-by-step derivation, these simpler models can navigate massive search spaces more effectively and even help train more sophisticated parsers.

The Search Space Problem

The standard approach to training semantic parsers is learning from denotations. Instead of requiring human experts to write complex code for every sentence, the system learns by observing the outcome of a command. For instance, if a user says, "Pour the green beaker into the first one," the system looks at the resulting state of the beakers.

However, context-dependency introduces a "search beam" problem. Traditional "anchored" models attempt to align specific words to specific predicates (e.g., "green" to color(green)). While precise, this creates a search space so vast that the correct logical form often falls off the "beam"—the limited set of top candidates the computer tracks—before the process completes.

Proposed Models and Projections

The authors propose a hierarchy of three models to balance expressivity and efficiency:

  1. Model A (Anchored): A high-complexity model where text spans align with logical form components. It is expressive but computationally expensive.
  2. Model B (Floating): A mid-level model that discards word-level alignments, mapping entire utterances to logical forms to reduce the search space.
  3. Model C (Projected): The simplest model. It collapses all logical forms leading to the same "top-level" denotation into a single class, mapping utterances directly to "flat" logical forms (e.g., mix(beaker2)).

To bridge the gap between these models, the authors use model projections. They project the rich features of the complex Model A onto the simpler Model C. By defining the features of the simple model as the maximum of the features of all corresponding complex derivations, Model C inherits the "intelligence" of Model A without the search-time overhead.

Experimental Setup: New Grounded Datasets

To evaluate these models, the authors introduced three context-dependent datasets grounded in world states:

  • ALCHEMY: A chemistry task involving pouring and mixing liquids in beakers.
  • SCENE: A task where characters on a stage change clothes and move positions.
  • TANGRAMS: A geometric task involving the manipulation of various shapes.
Example of the ALCHEMY task: mapping a sequence of instructions to a final denotation.

These datasets require the system to track a history of actions across multiple utterances, testing its ability to handle ellipsis and anaphora.

Sample shapes from the TANGRAMS dataset.

Key Findings

The experiments revealed a striking efficiency-expressivity trade-off. While Model A is theoretically superior, its complexity makes it impractical for large search spaces. In the ALCHEMY dataset, Model C achieved 52.3% accuracy, whereas Model B plummeted to 3.7% because the correct answers were lost during the search. Model C's "oracle" accuracy—the frequency with which the correct answer appeared anywhere in the top 500 candidates—was a remarkable 80.9%, compared to just 5.5% for Model B.

Furthermore, the authors demonstrated the power of bootstrapping. By training the simple Model C first and using its parameters to initialize Model A, they achieved the "best of both worlds." This approach allowed the complex model to reach 100% accuracy on synthetic tasks even with small beam sizes where it previously failed.

Conclusion and Future Work

This research highlights that the primary bottleneck in semantic parsing is often the search for the correct logical form rather than the learning of the model itself. While Model C has limitations—such as an inability to express procedural commands like "repeat the first step"—its efficiency makes it a powerful tool for bootstrapping more expressive systems. Future work may explore non-linear projection methods, such as neural networks, to further recover the expressivity lost during the simplification process.

Summary updated

BibTeX
@inproceedings{long2016simpler,
  author = {Reginald Long and Panupong Pasupat and Percy Liang},
  title = {{Simpler Context-Dependent Logical Forms via Model Projections}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2016},
  doi = {10.18653/v1/p16-1138},
}
Figure