describing the steps to accomplish tasks. Generating a procedural text from visual observation (e.g., an image or a video) has various real-world applications. Voice support system [Nouri+ SIGIR20] Robotic Assistant [Bollini+ 12] High-level applications Multimedia Archive Procedural Text Generation Cut Chicken Stir-fry Chicken Database Cut Chicken.. Stir-fry it..
sequence (taken by users) Output: Procedural text (steps are corresponded to images) Step1 Step2 Cut the chicken. Add seasoning. Put oil into the pan. Add the chicken. Add the cabbage to the pan. Steam it. Step3 Image Sequence Procedural Text 3 t
From natural language understanding, some studies have represented it as a tree or graph structure: • Recipe Flow Graph [Mori+ LREC14] • SIMMR [Jermsurawong+ EMNLP15] t Step 1 Boil pasta Step 2 Cut vegetables Step 4 Serve on a plate Step 3 Stir-fry it 4
Objective: We investigate the impact of explicitly introducing such a structure on the task of procedural text generation from an image sequence Contributions: • Propose a new dataset: visual SIMMR (vSIMMR). • Propose a novel structure-aware procedural text generation model 6 Merging tree Inputs Procedural text Step 1 Cut the .… Step 2 Stir-fry the …. Step 3 Put them …. Step 4 Cover them ….
the most popular domain among how-to domains. 7 Vision and Language SIMMR Flow Graph Language Ingredient Recognition Vision Kitchen Action Recognition Im2recipe RecipeQA
Generated procedural texts must be coherent Inputs are divided into two resources: language and vision Visual information Title and ingredient Finished dish image [Kiddon+ EMNLP16] Attention mechanism [Bosselut+ NAACL16] Reinforcement learning [Salvador+ CVPR19] Cooking video [Ushiku+ IJCNLP17], [Shi+ ACL19] Image sequence [Nishimura+ INLG19] [Chandu+ ACL19] Structure-aware version
vision and language version of SIMMR 2. vSIMMR is about 8 times larger than SIMMR • SIMMR: 260 recipe-tree pairs / vSIMMR: 2106 pairs 10 Merging tree Procedural text Image sequence Cut the tomatoes. Stir-fry the pumpkin. Put them on the tomatoes. Cover them with ketchup and mayonnaise. Image 1 Tomatoes Pumpkin Ketchup Mayonnaise 1 2 3 4 Image 2 Image 3 Image 4 Materials Step 1 (a) SIMMR (b) vSIMMR (ours) Step 2 Step 3 Step 4 Step 1 Step 2 Step 3 Step 4
Mayonnaise Material-to-step LPM Cut the tomatoes. Stir-fry the pumpkin. Put them on the tomatoes. Cover them with ketchup and mayonnaise. Step-to-step LPM Link Probability Matrix Calculation Structured Decoder Process (i) Process (ii) Gumbel Softmax Resampling Process (iii) P mat→v ̂ P mat→v Merging tree Procedural Text ̂ P v→v P v→v Structure-Aware Procedural Text Generation Model (Section 4.1) Tree Re-prediction (Section 4.2) Re-predicted Material-to-step LPM Step 1 Step 2 Step 3 Step 4 Re-predicted Step-to-step LPM Step 4 Step 3 Step 2 Step 1 Step 4 Step 3 Step 2 Step 1 Order constraint Order constraint (4.1) An Overview of Our Method Two parts: 1. Structure-aware procedural text generation model (i) Link Probability Matrix (LPM) Calculation (ii) Gumbel Softmax Resampling (iii)Structured Decoder 2. Tree re-prediction module 11
be predicted from a probability matrix. Because a processed material cannot merged by returning to a previous step, a step-to-step link has an order constraint. Material-to-step Step-to-step Order constraint Tomatoes Pumpkin Ketchup Mayonnaise
the pumpkin. Put them on the tomatoes. Cover them with ketchup and mayonnaise. 15 Merging Tree Procedural Text Generator Procedural Text Step 1 Step 2 Step 3 Step 4
pumpkin. Put them on the tomatoes. Cover them with ketchup and mayonnaise. Procedural Text Step 1 Step 2 Step 3 Step 4 Material-to-step Step-to-step Tree Re-prediction Step 1 Step 2 Step 3 Step 4 Step 1 Step 2 Step 3 Step 4
Procedural text generation loss: • Merging tree prediction loss: • (only labeled) compared with the ground truth • Merging tree re-prediction loss: • (labeled) compared with the ground truth • (unlabeled) compared with the argmax of merging tree VAE losses ( VAE) for Semi-Supervised Learning • Tree2image VAE: • Step2image VAE: Total loss: Ltext Ltp Ltc β Lt2i Ls2i λ* ∈ {0.001,0.01,0.1} L = Ltext + Ltp + λtc Ltc + λt2i Lt2i + λs2i Ls2i 17
[Huang+ NAACL16]: baseline of visual storytelling (ViST) • GLAC Net [Kim+ arXiv18]: SoTA model at ViST Workshop. • SSiD [Chandu+ ACL19] • SSiL [Chandu+ ACL19] • RetAttn [Nishimura+ INLG19] Ablations: • Half model: does not calculate tree re-prediction loss • Full model: calculates tree re-prediction loss Note: For a fair comparison, we add a module to incorporate ingredient vectors into the models. 19
perspectives: • Fluency (F) • Ingredient use (IU) • Image fitting (IF) The proposed method clearly outperforms the baseline in all metrics. Baseline Full Tie F 26.7 62.5 10.8 IU 30.8 66.7 2.5 IF 31.7 45.0 23.3 Baseline Full Tie F 16.7 70.0 13.3 IU 26.7 73.3 0.0 IF 36.7 50.0 13.3 all 120 recipes longest 30 recipes 22
explicitly introducing such a structure on the task of procedural text generation from an image sequence Proposed Dataset / Method: • Proposed a new dataset: visual SIMMR (vSIMMR). • Proposed a novel structure-aware procedural text generation model Experiments / Results: • Three criteria • automatic evaluation • human evaluation • qualitative analysis. • Proposed models generate coherent procedural texts in a versatile manner
for various text generation tasks. Machine translation tree2seq [Eriguchi+ ACL16]: effectiveness of encoding a syntax tree. Source code summarization [Ahmad+ ACL20]: generates source code summarization using Transformer. tree2seq [Eriguchi+ ACL16]
web tool Rules: 1. Based on images, annotate merging trees. 2. If some materials can not be seen in an image (e.g., seasoning), allow to refer to procedural texts. Image sequence Merging tree Procedural text
“ॏཁޠʹணͨࣸ͠ਅྻ͔Βͷखॱॻੜ ”ɼࣗવݴޠॲཧ Vol. 27 (2) International Conferences 1. Taichi Nishimura, Suzushi Tomori, Hayato Hashimoto, Atsushi Hashimoto, Yoko Yamakata, Jun Harashima, Yoshitaka Ushiku, Shinsuke Mori, “Visual Grounding Annotation of Recipe Flow Graph”, In LREC2020. 2. Taichi Nishimura, Atsushi Hashimoto, Shinsuke Mori, “Procedural Text Generation from an Image Sequence”, In INLG2019. 3. Taichi Nishimura, Atsushi Hashimoto, Yoko Yamakata, Shinsuke Mori, “Frame Selection for Producing Recipe with Pictures from an Execution Video of a Recipe”, In CEA2019 [Best Paper Award]