Introduction
While image captioning has seen significant progress, generating a coherent sequence of instructional text from a series of images—a task known as Visual Storytelling (ViST)—remains a formidable challenge. In procedural tasks like cooking, the logical flow is paramount; steps must follow a strict chronological order (e.g., chopping before sautéing). Standard neural networks often lack the global structure required for such long-term coherence. Researchers from Carnegie Mellon University address this by introducing Finite State Machines (FSMs) to scaffold neural text generation, ensuring that generated recipes follow realistic cooking "phases."
The Recipe Storyboard Dataset
To facilitate research in this domain, the authors introduced the Recipe Storyboard Dataset. This benchmark contains 16,441 cooking recipes and 160,479 photos scraped from platforms like instructables.com and snapguide.com. Unlike general storytelling datasets, this collection focuses on goal-oriented content where transitions between narrative phases are critical for success.
Methodology: Scaffolding Structure
The core innovation lies in modeling the high-level "phases" of a recipe (e.g., preheating, prepping, baking) using K-means clustering on a large recipe corpus. These phases are then organized into a Finite State Machine (FSM) to guide the text decoder.
Two primary models were developed:
- SSiD (Scaffolding Structure in Decoder): This model feeds the current FSM phase directly into the text decoder, acting as a "compass" for the AI.
- SSiL (Scaffolding Structure in Loss): A multi-task learning approach that penalizes the model if its generated sequence deviates from the logical phase flow of the ground truth.
The authors found that "soft" state representations—probabilities of being in various phases—outperformed "hard" assignments, better capturing the ambiguity of steps that might bridge multiple cooking stages.
Key Results and Insights
The SSiL model, utilizing soft phases, emerged as the superior approach. It achieved a METEOR score of 0.31 and a BLEU score of 16.38, significantly outperforming the "Glocal" attention baseline (0.25 METEOR, 10.74 BLEU). Human evaluations corroborated these findings, with judges preferring the SSiL model 72.5% of the time for structural coherence.
A key insight was the improvement in "Context Maintenance." By explicitly modeling states, the network learned to use referring expressions more accurately (e.g., referring to a previously mentioned "baking pan" as "it"), creating a more natural narrative thread.
Limitations and Future Directions
While the FSM-scaffolded models show marked improvement in coherence, they still face challenges with entity precision, occasionally hallucinating ingredients like "sugar" due to common co-occurrences in training data. Future work aims to extend this scaffolding technique to other procedural domains such as DIY repairs or gardening and explore more complex state-transition models like Hidden Markov Models (HMMs).
Summary updated