{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/fire-food-image-to-recipe-generation","title":"FIRE: Food Image to REcipe generation","arxiv_id":"2308.14391","date":"2023-08-28","proceeding":null,"authors":["Prateek Chhikara","Dhiraj Chaurasia","Yifan Jiang","Omkar Masur","Filip Ilievski"],"abstract":"Food computing has emerged as a prominent multidisciplinary field of research in recent years. An ambitious goal of food computing is to develop end-to-end intelligent systems capable of autonomously producing recipe information for a food image. Current image-to-recipe methods are retrieval-based and their success depends heavily on the dataset size and diversity, as well as the quality of learned embeddings. Meanwhile, the emergence of powerful attention-based vision and language models presents a promising avenue for accurate and generalizable recipe generation, which has yet to be extensively explored. This paper proposes FIRE, a novel multimodal methodology tailored to recipe generation in the food computing domain, which generates the food title, ingredients, and cooking instructions based on input food images. FIRE leverages the BLIP model to generate titles, utilizes a Vision Transformer with a decoder for ingredient extraction, and employs the T5 model to generate recipes incorporating titles and ingredients as inputs. We showcase two practical applications that can benefit from integrating FIRE with large language model prompting: recipe customization to fit recipes to user preferences and recipe-to-code transformation to enable automated cooking processes. Our experimental findings validate the efficacy of our proposed approach, underscoring its potential for future advancements and widespread adoption in food computing.","url_abs":"https://arxiv.org/abs/2308.14391v2","url_pdf":"https://arxiv.org/pdf/2308.14391v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"fire-food-image-to-recipe-generation","repo_url":"https://github.com/prateekchhikara/fire","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"decoder","task_name":"Decoder"},{"task_slug":"language-modelling","task_name":"Language Modelling"},{"task_slug":"large-language-model","task_name":"Large Language Model"},{"task_slug":"recipe-generation","task_name":"Recipe Generation"},{"task_slug":"retrieval","task_name":"Retrieval"}],"methods":[{"method_slug":"absolute-position-encodings","method_name":"Absolute Position Encodings"},{"method_slug":"adafactor","method_name":"Adafactor"},{"method_slug":"adam","method_name":"Adam"},{"method_slug":"attention","method_name":"Attention"},{"method_slug":"attention-dropout","method_name":"Attention Dropout"},{"method_slug":"blip","method_name":"BLIP"},{"method_slug":"bpe","method_name":"BPE"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"dropout","method_name":"Dropout"},{"method_slug":"glu","method_name":"Gated Linear Unit"},{"method_slug":"inverse-square-root-schedule","method_name":"Inverse Square Root Schedule"},{"method_slug":"label-smoothing","method_name":"Label Smoothing"},{"method_slug":"layer-normalization","method_name":"Layer Normalization"},{"method_slug":"linear-layer","method_name":"Linear Layer"},{"method_slug":"multi-head-attention","method_name":"Multi-Head Attention"},{"method_slug":"position-wise-feed-forward-layer","method_name":"Position-Wise Feed-Forward Layer"},{"method_slug":"residual-connection","method_name":"Residual Connection"},{"method_slug":"sentencepiece","method_name":"SentencePiece"},{"method_slug":"softmax","method_name":"Softmax"},{"method_slug":"t5","method_name":"T5"},{"method_slug":"transformer","method_name":"Transformer"},{"method_slug":"vision-transformer","method_name":"Vision Transformer"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2308.14391","atlas_url":"https://app.syntology.ai/?focus=2308.14391","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2308.14391"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/prateekchhikara/fire","reach":{"status":"ok"}}],"summary":{"ran_draft_wrong":2,"ran":10,"unverified":4},"by_repo_kind":{"official":{"samples":16,"ran":12,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":16,"samples":[{"code_sha256_prefix":"365a7f250f4b06f4","entry":"Embedding","repo":"prateekchhikara/fire","repo_kind":"official","path":"ingredients/modules/transformer_decoder.py","file_url":"https://github.com/prateekchhikara/fire/blob/HEAD/ingredients/modules/transformer_decoder.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"365a7f250f4b06f4"}},{"code_sha256_prefix":"2f3bc129645ecd7a","entry":"LayerNorm","repo":"prateekchhikara/fire","repo_kind":"official","path":"ingredients/modules/transformer_decoder.py","file_url":"https://github.com/prateekchhikara/fire/blob/HEAD/ingredients/modules/transformer_decoder.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2f3bc129645ecd7a"}},{"code_sha256_prefix":"e89d49529d710a20","entry":"collate_fn","repo":"prateekchhikara/fire","repo_kind":"official","path":"ingredients/data_loader.py","file_url":"https://github.com/prateekchhikara/fire/blob/HEAD/ingredients/data_loader.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e89d49529d710a20"}},{"code_sha256_prefix":"6a8674a68a7db5d5","entry":"compute_score","repo":"prateekchhikara/fire","repo_kind":"official","path":"ingredients/sample.py","file_url":"https://github.com/prateekchhikara/fire/blob/HEAD/ingredients/sample.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6a8674a68a7db5d5"}},{"code_sha256_prefix":"56b988b67b6cecaa","entry":"convert_state_dict_type","repo":"prateekchhikara/fire","repo_kind":"official","path":"ingredients/modules/utils.py","file_url":"https://github.com/prateekchhikara/fire/blob/HEAD/ingredients/modules/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"56b988b67b6cecaa"}},{"code_sha256_prefix":"a880612041826caf","entry":"get_ingredient","repo":"prateekchhikara/fire","repo_kind":"official","path":"ingredients/build_vocab.py","file_url":"https://github.com/prateekchhikara/fire/blob/HEAD/ingredients/build_vocab.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a880612041826caf"}},{"code_sha256_prefix":"5df75078e59cecb3","entry":"get_instruction","repo":"prateekchhikara/fire","repo_kind":"official","path":"ingredients/build_vocab.py","file_url":"https://github.com/prateekchhikara/fire/blob/HEAD/ingredients/build_vocab.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5df75078e59cecb3"}},{"code_sha256_prefix":"91f2b648e36c2a8e","entry":"label2onehot","repo":"prateekchhikara/fire","repo_kind":"official","path":"ingredients/model.py","file_url":"https://github.com/prateekchhikara/fire/blob/HEAD/ingredients/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"91f2b648e36c2a8e"}},{"code_sha256_prefix":"d374e9511067d495","entry":"make_positions","repo":"prateekchhikara/fire","repo_kind":"official","path":"ingredients/modules/transformer_decoder.py","file_url":"https://github.com/prateekchhikara/fire/blob/HEAD/ingredients/modules/transformer_decoder.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d374e9511067d495"}},{"code_sha256_prefix":"de9c28f6b9e040d1","entry":"mask_from_eos","repo":"prateekchhikara/fire","repo_kind":"official","path":"ingredients/model.py","file_url":"https://github.com/prateekchhikara/fire/blob/HEAD/ingredients/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"de9c28f6b9e040d1"}},{"code_sha256_prefix":"dd645dd5e899d0af","entry":"remove_plurals","repo":"prateekchhikara/fire","repo_kind":"official","path":"ingredients/build_vocab.py","file_url":"https://github.com/prateekchhikara/fire/blob/HEAD/ingredients/build_vocab.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"dd645dd5e899d0af"}},{"code_sha256_prefix":"534435ed7c89bc0d","entry":"softIoU","repo":"prateekchhikara/fire","repo_kind":"official","path":"ingredients/utils/metrics.py","file_url":"https://github.com/prateekchhikara/fire/blob/HEAD/ingredients/utils/metrics.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"534435ed7c89bc0d"}},{"code_sha256_prefix":"c1ac4e0ae35aedcf","entry":"get_loader","repo":"prateekchhikara/fire","repo_kind":"official","path":"ingredients/data_loader.py","file_url":"https://github.com/prateekchhikara/fire/blob/HEAD/ingredients/data_loader.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c1ac4e0ae35aedcf"}},{"code_sha256_prefix":"386f2329c6d5f6fb","entry":"load_and_resize","repo":"prateekchhikara/fire","repo_kind":"official","path":"ingredients/utils/ims2file.py","file_url":"https://github.com/prateekchhikara/fire/blob/HEAD/ingredients/utils/ims2file.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"386f2329c6d5f6fb"}},{"code_sha256_prefix":"1d91513c97318e88","entry":"load_ensemble_for_inference","repo":"prateekchhikara/fire","repo_kind":"official","path":"ingredients/modules/utils.py","file_url":"https://github.com/prateekchhikara/fire/blob/HEAD/ingredients/modules/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1d91513c97318e88"}},{"code_sha256_prefix":"dd6d760ba3b02284","entry":"load_model_state","repo":"prateekchhikara/fire","repo_kind":"official","path":"ingredients/modules/utils.py","file_url":"https://github.com/prateekchhikara/fire/blob/HEAD/ingredients/modules/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"dd6d760ba3b02284"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}