Value-based Search in Execution Space for Mapping Instructions to Programs

Dor Muhlgay, Jonathan Herzig, Jonathan Berant

Abstract

Dor Muhlgay, Jonathan Herzig, Jonathan Berant. Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers).

2019.

Introduction

The goal of semantic parsing is to translate human language instructions into machine-readable programs. A significant challenge arises when training models under weak supervision, where only the initial world state and the final target state (denotation) are provided, rather than the "gold" programs themselves. While simple beam search suffices for short instructions, it struggles with "long-horizon" tasks where the sequence of instructions is complex and the search space of possible programs explodes. In these scenarios, rewards are sparse; a single error in a long sequence leads to total failure.

An example of a long-horizon instruction-following task from the SCONE dataset, showing initial state, a sequence of instructions, and the target state.

Methodology: VBSIX

To address these challenges, the authors introduce VBSIX (Value-based Beam Search in eXecution space). This algorithm incorporates two primary innovations to streamline search during training:

1. Searching in Execution Space

Traditional search explores sequences of code tokens. However, multiple distinct code sequences can result in the identical world state. By searching in "execution space," the algorithm treats states with identical execution results as the same node in a graph. This approach effectively compresses the search space by avoiding redundant exploration of functionally equivalent paths.

2. Value-based Critic

The second innovation is the use of a critic network to guide the search. Unlike standard models that only evaluate a program at its completion, the critic estimates the "expected future reward" of a partial execution by comparing the current state to the known target state.

The VBSIX framework maps utterances to programs by maintaining a program stack and tracking world state transitions.

The search process utilizes an AC-Score, which combines:

  • Actor Score: The probability assigned to the path by the current policy.
  • Critic Score: The estimated likelihood that the current path will reach the target goal.

This allows the model to prioritize promising paths relative to the target, even when the underlying policy is still being learned.

Evaluation and Results

The researchers evaluated VBSIX on the SCONE dataset, which includes three domains: Scene (moving people), Alchemy (mixing chemicals), and Tangram (manipulating shapes). The evaluation focused on sequences of five instructions, representing a significantly harder search problem than previous benchmarks.

VBSIX demonstrated substantial performance improvements over standard Maximum Marginal Likelihood (MML) baselines:

  • Accuracy Gains: In the "Scene" domain, VBSIX achieved 28.2% accuracy on 5-utterance sequences, a massive leap from the 7.2% achieved by standard MML.
  • Bootstrapping Success: VBSIX proved robust in finding correct programs even when starting from a weak initial model, whereas standard beam search often failed to discover any valid programs for complex examples.
  • Ablation Studies: Results confirmed that both execution space search and the value-based critic are essential components, as neither alone achieved the same level of performance.

Discussion and Limitations

A key insight of this work is that target states are often underutilized in training; VBSIX leverages them to prune unsuccessful paths early. Furthermore, treating the search space as a graph (execution space) rather than a tree (program space) provides natural compression.

However, some limitations remain. The current formulation assumes a deterministic environment, where actions have predictable outcomes. Adapting VBSIX to stochastic environments would require further complexity. Additionally, the critic network relies on the target state, which is unavailable at test time. While this helps "guide search during training," the model must rely solely on its learned policy during deployment. Future work could explore scaling these techniques to open-domain programming or more complex robotic tasks.

Summary updated

BibTeX
@inproceedings{muhlgay2019value,
  author = {Dor Muhlgay and Jonathan Herzig and Jonathan Berant},
  title = {{Value-based Search in Execution Space for Mapping Instructions to Programs}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2019},
  url = {https://openreview.net/forum?id=H1VFkmW_ZS},
}
Figure