Goal-Oriented Script Construction

Qing Lyu, Li Zhang, Chris Callison-BurcharXiv 2021

TL;DR

This paper introduces Goal-Oriented Script Construction (GOSC), a new task where models must generate a complete, ordered sequence of steps to achieve a specific goal. To support this, the authors released a massive multilingual dataset crawled from wikiHow covering 18 languages and demonstrated that while current Transformer models can perform the task, they face a significant trade-off between content accuracy and logical ordering.

What Problem Does This Paper Address?

In AI, a "script" is a standardized sequence of events for a stereotypical activity—like the steps involved in "going to a restaurant" or "changing a tire." While script knowledge is vital for task-oriented agents (like Alexa or Siri), previous research has focused on fragmented evaluations, such as predicting a single missing event (the "Narrative Cloze" test) or choosing the next event in a sequence.

The authors argue that these tasks don't capture a model's ability to understand a process holistically. Furthermore, most existing script datasets are small-scale, crowdsourced, and almost exclusively in English. This paper addresses these gaps by proposing a high-level task—constructing an entire script from scratch—and providing the first large-scale multilingual benchmark for it.

Methods

The authors evaluate two primary approaches to GOSC:

  1. Generation-based: Using mT5 (a massively multilingual T5 model), the model is prompted with a goal and trained to generate the entire sequence of steps as a single string. This treats script construction as a sequence-to-sequence translation problem.
  2. Retrieval-based Pipeline: This approach breaks the task into two distinct modules:
  3. Step Inference: A model (mBERT or XLM-R) ranks a pool of candidate steps based on their relevance to the goal.
  4. Step Ordering: A second model performs pairwise comparisons between the retrieved steps to determine their chronological order.

The authors also explore Multitask Learning (MTL), where the inference and ordering models share an encoder, and Cross-Lingual Zero-Shot Transfer, where a model trained on English data is applied directly to other languages.

Figure 3: Our Step-Inference-Ordering pipeline for the GOSC Retrieval task. An example ordered script is shown with example steps in the input and output. Those that appear in the ground-truth script is in bold.

Datasets

  • Multilingual wikiHow Corpus: The core contribution is a dataset of how-to articles in 18 languages (including English, Chinese, Spanish, Arabic, and more). It contains over 112,000 articles for English and thousands for smaller languages.
  • Transfer Learning Corpora: To test how well the models generalize, the authors evaluated them on four external English datasets: OMICS, SMILE, DeScript, and the KAIROS Schema Learning Corpus (which focuses on complex military and political scenarios).

Key Insights and Ideas

  • The Generation vs. Retrieval Trade-off: Human evaluations revealed a fascinating split. Generation models (mT5) produce very fluent, well-ordered scripts but are prone to "hallucination"—generating irrelevant or repetitive steps. Retrieval models are much more accurate regarding the actual content (since they pick from a pool of real steps) but struggle significantly with getting the order right.
  • Commonplace Knowledge is Universal: Models trained on "commonplace" wikiHow activities (like "how to draw") showed surprising "zero-shot" performance on vastly different domains. For instance, a model trained on wikiHow could reasonably order events in a "Roadside IED attack" scenario from the KAIROS dataset.
  • Cross-Lingual Synergy: For low-resource languages, the authors found that zero-shot transfer from English often outperformed training on the limited native-language data available. This suggests that the underlying logic of "how things are done" transcends linguistic boundaries.

Key Results

The task proved challenging for state-of-the-art models. In the retrieval setting, the best systems achieved roughly 30% accuracy in step selection and a Kendall’s $\tau$ of ~0.2 for ordering (where 1.0 is a perfect match to the ground truth).

Performance across languages

As shown in the charts above, performance varied significantly across languages. Interestingly, the XLM-R C0 (cross-lingual zero-shot) variation often provided the most stable ordering performance across the board, particularly in languages with less training data.

Limitations and Future Work

The authors identify several hurdles for future research:

  • Semantic Redundancy: Retrieval models often pick two steps that mean the same thing (e.g., "change strings" and "put on new strings"). Future systems need better paraphrasing detection to filter these out.
  • Evaluation Metrics: Standard NLP metrics like BERTScore or BLEU don't account for the chronological logic required in scripts. The authors suggest that future work should focus on developing better automated metrics for procedural text.
  • Granularity: The models currently struggle to maintain a consistent level of detail, sometimes jumping from very broad steps to extremely specific ones within the same script.

Summary updated

BibTeX
@misc{lyu2021goal,
  author = {Qing Lyu and Li Zhang and Chris Callison-Burch},
  title = {{Goal-Oriented Script Construction}},
  year = {2021},
  eprint = {2107.13189},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.13189},
}
Figure