Abstract
We propose a novel alignment mechanism to deal with procedural reasoning on a newly released multimodal QA dataset, named RecipeQA. Our model is solving the textual cloze task which is a reading comprehension on a recipe containing images and instructions. We exploit the power of attention networks, cross-modal representations, and a latent alignment space between instructions and candidate answers to solve the problem. We introduce constrained max-pooling which refines the max-pooling operation on the alignment matrix to impose disjoint constraints among the outputs of the model. Our evaluation result indicates a 19% improvement over the baselines.
Introduction: Procedural Reasoning in Multimodal Contexts
Procedural reasoning—the ability to understand and follow a sequence of steps to achieve a specific goal—is a fundamental human cognitive skill. However, it remains a significant challenge for artificial intelligence, particularly when instructions are found in informal, user-generated content like online cooking recipes. These recipes often rely on multimodal context, where text and images complement each other to convey meaning.
This research addresses the textual cloze task within the RecipeQA dataset. In this task, a model is presented with a recipe consisting of textual instructions and accompanying images. A sequence of steps is provided with one step omitted, and the model must select the correct missing step from four multiple-choice candidates. The primary technical hurdle is the lack of direct supervision; the model is not told which candidate answer aligns with which specific recipe instruction, necessitating a latent alignment approach.
Methodology
The authors propose a structured output prediction framework centered on a latent alignment space. The architecture consists of several key components:
1. Multimodal Representations
Textual instructions and candidate answers are encoded using BERT embeddings followed by an LSTM. To maintain awareness of the procedural order, one-hot position encodings are concatenated to these representations. For visual data, the model utilizes either ResNet50 or LXMERT. LXMERT is particularly effective as it facilitates rich cross-modal attention between text and images.
2. Similarity Matrix and Constrained Max-Pooling
The model generates a cosine similarity matrix between the candidate answers and the recipe steps. To prevent the model from redundantly aligning multiple answers to the same instruction, the authors introduce constrained max-pooling. This iterative operation enforces a disjoint constraint, ensuring that each candidate answer is mapped to a unique recipe step.
3. Training Objectives
The network is optimized using custom loss functions designed to maximize the similarity score of the correct answer's alignment while simultaneously suppressing the scores of incorrect candidates.
Dataset: RecipeQA
The study utilizes RecipeQA, a multimodal machine comprehension dataset derived from internet cooking recipes. The focus is on the textual cloze task split, which includes 7,837 training, 961 validation, and 963 test examples.
Key Insights and Results
The experimental results yield several critical insights into multimodal procedural reasoning:
- Effectiveness of Latent Alignment: The success of the constrained max-pooling approach demonstrates that explicit step-by-step alignment labels are not strictly necessary. Structural biases can effectively guide a model to learn these mappings latently.
- Cross-Modal Synergy: Integrating visual information via LXMERT significantly reduces ambiguity. Visual context helps resolve linguistic challenges like co-reference resolution (e.g., determining what "it" refers to by looking at the image).
- Robustness of Simple Vision Models: Interestingly, ResNet50 outperformed the more complex ResNet101. The authors suggest that higher-capacity models may overfit to the noise inherent in unconstrained, user-generated images, whereas ResNet50 provides more robust, abstract representations.
Performance Summary
The proposed Multimodal + LXMERT model achieved 47.5% accuracy on the test set, marking a ~19% absolute improvement over the previous best baseline (Multimodal Impatient Reader at 29.07%). While this is a substantial gain, a gap remains compared to human performance, which stands at 73.6%.
Limitations and Future Work
Despite the improvements, qualitative analysis shows the model occasionally struggles with the logical order of events, sometimes selecting a valid procedural step that does not fit the specific sequence requested. Furthermore, low-quality or misleading user images can occasionally degrade performance.
Future research will focus on explicitly incorporating question order into the model architecture to improve sequencing. The authors also intend to explore more complex attention mechanisms and apply latent alignment techniques to a broader range of NLP tasks.
Summary updated