Can Sequence-to-Sequence Transformers Naturally Understand Sequential Instructions?

Xiang Zhou, Aditya Gupta, Shyam Upadhyay, Mohit Bansal, Manaal FaruquiSEM @ ACL 2023

TL;DR

This paper investigates how well pre-trained sequence-to-sequence transformers, like T5, can understand multi-step instructions when only given supervision for the final outcome. They find that performance on intermediate steps can be surprisingly poor, especially for certain types of instructions. The authors explore two methods to improve this: uniformly distributing supervision across all steps and using contrastive learning, with mixed but promising results.

What Problem Does This Paper Address?

Many real-world tasks, from cooking to giving directions, involve following a sequence of instructions. While powerful transformer models have excelled at various natural language understanding tasks, collecting detailed, step-by-step annotations for every instruction in a sequence can be prohibitively expensive and time-consuming. This creates a challenge: can we train these models to understand sequential instructions effectively when we only have access to the final outcome (i.e., "final-step supervision")? This paper aims to understand the limitations of current transformer models in this scenario and explore ways to improve their ability to track and understand intermediate states in a sequence.

Methods

The core of this research involves evaluating pre-trained transformer models, specifically T5-base, on a sequential instruction understanding task.

  • Baseline Evaluation: The primary experiment involves training T5 models using only "final-step supervision," meaning the model only sees the correct final state after all instructions have been executed. This is then compared to a scenario where the model is trained with "all-step supervision" (gold labels for every intermediate step).
  • Uniformly Sampled Supervision: To mitigate the issue of poor intermediate step performance, the authors explore an alternative annotation strategy. Instead of concentrating all supervision on the final step, they uniformly sample labels across all intermediate steps. This aims to provide more consistent learning signals throughout the instruction sequence.
  • Contrastive Learning: For scenarios where collecting even uniformly sampled intermediate labels is not feasible, the paper proposes a contrastive learning approach. This method leverages the inherent correlation between consecutive states and the instruction that caused the change. It trains the model to match embeddings representing the difference between states with embeddings representing the instruction, encouraging a better understanding of the sequential dynamics without explicit intermediate step supervision.

Datasets

The experiments are conducted on the SCONE dataset, which comprises three distinct subtasks:

  • ALCHEMY: Focuses on mixing colored chemicals in beakers, highlighting the ellipsis phenomenon.
  • SCENE: Involves describing people's movement in a scene, emphasizing object coreference.
  • TANGRAMS: Requires manipulating tangram pieces, focusing on action coreference.

Each example in SCONE consists of 5 steps. The paper uses these datasets to evaluate the models' performance on both final states and all intermediate states.

Key Insights and Ideas

  • Final-step supervision is not enough: Even powerful models like T5 struggle to reliably understand intermediate steps when only trained on the final outcome. This suggests that simply knowing the end result doesn't automatically teach the model how to get there sequentially.
  • Instruction type matters: The performance drop on intermediate steps is not uniform across all tasks. Tasks with more interdependent instructions (like SCENE and TANGRAMS, where changing instruction order breaks coreference) seem to encourage better sequential understanding, even with limited supervision, compared to tasks where instructions are more independent (like ALCHEMY).
  • Uniform supervision helps intermediate steps: Distributing supervision across all steps significantly improves performance on intermediate states, though it may slightly degrade performance on the final step. This highlights a trade-off that might be acceptable depending on the application's focus.
  • Contrastive learning shows promise but is not a silver bullet: The contrastive learning approach can significantly improve intermediate step performance on tasks where it's particularly weak (like ALCHEMY), but it doesn't offer substantial gains on tasks where performance is already decent and can even lead to a slight drop in final-step accuracy on some subtasks.

Key Results

  • When trained with only final-step supervision, T5-base achieved decent final-step accuracy (accfinal) on all SCONE subtasks. However, its accuracy on all intermediate steps (accall) was significantly lower, especially on ALCHEMY (dropping from 58.0% to 22.3%).
  • Using uniformly sampled supervision across all steps improved accall substantially on all subtasks, but led to a drop in accfinal on ALCHEMY and SCENE.
  • The contrastive learning approach improved accall on ALCHEMY from 58.0% to 72.4%, making it comparable to its accfinal. It also showed a small improvement on TANGRAMS. However, it did not improve accall on SCENE and even led to a drop in accfinal.

Limitations and Future Work

  • Limited Model and Dataset Scope: The study primarily uses T5-base models and the SCONE dataset. The authors acknowledge that larger models (like GPT-3) might exhibit different behaviors, and generalizing findings to other datasets requires careful consideration of their properties relative to ALCHEMY vs. SCENE/TANGRAMS.
  • Contrastive Learning Challenges: The contrastive learning method shows mixed results. The authors hypothesize that the lack of precise regularization to capture fine-grained state differences might be the reason for the limited improvement on strong baselines. They also observed that the contrastive loss can overfit during training, leading to a significant gap between training and development set accuracies.
  • Future Directions: The paper suggests further exploration into more sophisticated regularization techniques for contrastive learning, potentially including hard negatives, auto-encoder style reconstruction losses, or other methods to better capture the nuances of state transitions. Investigating how these findings generalize to other transformer architectures and datasets is also a clear path forward.

Summary updated

BibTeX
@inproceedings{zhou2023can,
  author = {Xiang Zhou and Aditya Gupta and Shyam Upadhyay and Mohit Bansal and Manaal Faruqui},
  title = {{Can Sequence-to-Sequence Transformers Naturally Understand Sequential Instructions?}},
  booktitle = {SEM @ ACL},
  year = {2023},
  url = {https://openreview.net/forum?id=knq5bnc8fC},
}
Figure