Incorporating Task-Specific Concept Knowledge into Script Learning

Chenkai Sun, Tie Xu, Chengxiang Zhai, Heng Ji

Introduction

Script learning is a fundamental task in artificial intelligence, focused on generating a sequence of procedural steps to achieve a specific goal. While traditional "goal-to-script" models generate entire processes from scratch, real-world scenarios often require context-aware script completion. This involves adapting to user-specific preferences and accounting for steps already completed (history).

An example of goal-oriented script completion where the model must account for the "Washing by Hand" preference and the history of filling the sink and adding detergent.

Existing Large Language Models (LLMs) frequently fail in these contexts, exhibiting issues such as step repetition or the "hallucination" of irrelevant entities. To address these limitations, we present TETRIS, a framework that integrates task-specific concept knowledge to ground the generation process.

The TETRIS Framework

The TETRIS framework (Goal-Oriented Script Completion) introduces two primary innovations: the Task Concept Dictionary (TCD) and Script-Oriented Contrastive Learning (SOCL).

The TETRIS architecture: Task concepts are retrieved or generated to form a prompt, while SOCL uses negative sampling to refine the model's understanding of procedural logic.

Task Concept Dictionary (TCD)

The TCD serves as a structured knowledge base that maps goals to essential concepts—typically nouns representing objects or entities involved in the task. These concepts are acquired through two methods:

  1. Concept Retrieval & Aggregation (CRA): The system retrieves concepts from similar tasks within the dictionary.
  2. Concept Generation (CG): A specialized model "brainstorms" relevant concepts for goals not present in the TCD. These concepts act as "anchors," providing a semantic prompt that keeps the language model focused on the relevant domain.

Script-Oriented Contrastive Learning (SOCL)

To prevent common procedural errors like looping, TETRIS utilizes SOCL. This technique involves training the model on "hard negative" examples—scripts intentionally corrupted by repeating history steps or inserting incorrect concepts. By using a triplet loss objective, the model learns to distinguish valid continuations from these flawed alternatives.

Experimental Results

The researchers evaluated TETRIS using a dataset derived from WikiHow, covering domains such as Food & Entertaining, Finance & Business, and Cars & Other Vehicles.

Quantitative Performance

TETRIS consistently outperformed standard BART and GPT-2 baselines. Notably, in the Finance domain, the CG+SOCL model improved the BLEU-4 score from a baseline of 2.92 to 4.02. The inclusion of concept prompts proved particularly effective in low-resource or highly specialized domains.

Human Evaluation

Human judges rated the outputs of the CRA-2 model significantly higher than the BART baseline. In terms of "Correctness," the model scored 2.52 compared to the baseline's 1.72, demonstrating a marked improvement in the practical utility of the generated scripts.

Discussion and Future Directions

A key finding of this work is the "Gold Gap": models using perfectly accurate ground-truth concepts perform significantly better than those using retrieved or generated ones. This suggests that the bottleneck for script generation currently lies in concept identification.

Future work will explore extending the TCD to include action semantics (verbs) and testing the framework's performance in cross-lingual settings. Additionally, integrating TETRIS into dynamic environments—where the "history" is updated in real-time by physical sensors—remains a promising avenue for robotic planning applications.

Summary updated

BibTeX
@inproceedings{sun2023incorporating,
  author = {Chenkai Sun and Tie Xu and Chengxiang Zhai and Heng Ji},
  title = {{Incorporating Task-Specific Concept Knowledge into Script Learning}},
  booktitle = {EACL},
  year = {2023},
  doi = {10.18653/v1/2023.eacl-main.220},
}
Figure