Compositional Data and Task Augmentation for Instruction Following

Soham Dan, Xinran Han, Dan Roth

Abstract

Standard end-to-end models for instruction following often fail to capture the underlying spatial logic of complex tasks, leading to poor generalization and overfitting. This paper explores two "knowledge-free" strategies—compositional data augmentation and auxiliary task augmentation—to improve the grounding and compositional reasoning of models in the "Blocks World" domain. By pre-training on synthetic atomic instructions and incorporating spatial reasoning tasks like quadrant prediction, the proposed approach significantly enhances performance, particularly when training data is scarce.

Introduction: The Challenge of Spatial Grounding

In robotic instruction following, models must translate natural language into physical actions. A typical task in the "Blocks World" environment involves moving blocks based on relative spatial descriptions, such as "Take the farthest left block and put it on top of the nearest block."

Illustration of a spatial instruction following task in the Blocks World environment.

Current state-of-the-art models often struggle with these tasks because they lack a deep understanding of spatial primitives. Instead of learning what "leftmost" or "nearest" means, they tend to memorize specific patterns within the training data. This lack of robust grounding is most evident in unlabeled datasets where blocks are anonymous and must be identified solely through their spatial relationships to other landmarks.

Methodology: Augmenting Data and Tasks

To address these limitations, the researchers propose two strategies that do not require additional human labeling:

1. Compositional Data Augmentation

The authors employ a curriculum learning approach. The model is first pre-trained on "atomic" instructions—simple, synthetic examples generated from templates that focus on a single spatial concept (e.g., "Move the northwest corner block to the center"). This allows the model to master basic primitives before attempting the complex, multi-step instructions found in standard datasets.

2. Task Augmentation (Auxiliary Tasks)

The neural architecture is extended with auxiliary "heads" that provide explicit supervision for spatial components during training. These tasks include:

  • Quadrant Task: Predicting which quadrant of the board contains the source or target block.
  • Anchor Task: Predicting relative directions between blocks (e.g., determining if one block is to the left of another).

These auxiliary signals are generated programmatically from the environment state, forcing the model's shared backbone to develop more meaningful internal spatial representations.

Key Results and Discussion

The proposed augmentations lead to substantial improvements across several metrics. On unlabeled datasets, the approach achieved a ~10% relative improvement in mean block distance for both source and target predictions.

Mean block error for source and target prediction across different training data percentages and augmentation strategies.

As shown in the results, the benefits of these strategies are particularly pronounced when training data is limited. For example, models trained on only 40% of the data with full augmentation often outperformed baseline models trained on the entire dataset. Furthermore, on a diagnostic subset designed to test specific spatial keywords, the augmented model reduced the error from 6.42 to 1.08, indicating a genuine acquisition of spatial concepts rather than simple pattern matching.

Conclusion

This work demonstrates that end-to-end supervision is often insufficient for complex compositional tasks. By providing models with "hints" through synthetic data and auxiliary spatial tasks, we can build more robust and data-efficient systems for instruction following. Future research may explore the scalability of these techniques to more complex 3D environments and the integration of physically grounded representations into large-scale language models.

Summary updated

BibTeX
@inproceedings{dan2021compositional,
  author = {Soham Dan and Xinran Han and Dan Roth},
  title = {{Compositional Data and Task Augmentation for Instruction Following}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.findings-emnlp.178},
}
Figure