FoodGPT: A Large Language Model in Food Testing Domain with Incremental Pre-training and Knowledge Graph Prompt

Zhixiao Qi,Yijiong Yu,Meiqi Tu,Junyi Tan,Yongfeng Huang
2023-08-20
Abstract:Currently, the construction of large language models in specific domains is done by fine-tuning on a base model. Some models also incorporate knowledge bases without the need for pre-training. This is because the base model already contains domain-specific knowledge during the pre-training process. We build a large language model for food testing. Unlike the above approach, a significant amount of data in this domain exists in Scanning format for domain standard documents. In addition, there is a large amount of untrained structured knowledge. Therefore, we introduce an incremental pre-training step to inject this knowledge into a large language model. In this paper, we propose a method for handling structured knowledge and scanned documents in incremental pre-training. To overcome the problem of machine hallucination, we constructe a knowledge graph to serve as an external knowledge base for supporting retrieval in the large language model. It is worth mentioning that this paper is a technical report of our pre-release version, and we will report our specific experimental data in future versions.
Computation and Language
What problem does this paper attempt to address?
The paper aims to address the issue of constructing large language models (LLMs) in the field of food detection. Specifically, researchers have found that existing foundational models lack sufficient knowledge in certain specific domains (such as food detection), leading to suboptimal performance when directly fine-tuning these foundational models. Therefore, they propose FoodGPT, a large language model specifically designed for the field of food detection. To enhance the model's performance in this domain, the research team adopted an incremental pre-training approach to inject more domain-specific knowledge, including processing scanned documents, structured data, and utilizing knowledge graphs to reduce hallucinations that may occur during machine-generated content. Additionally, the paper discusses how instruction fine-tuning can further optimize the model and describes the construction of an external knowledge graph to assist the model in generating more accurate data outputs. Overall, the main goal of this paper is to improve the professionalism and accuracy of language models in the field of food detection through a series of technical innovations.