{"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/an-adapted-large-language-model-facilitates","title":"Diabetica: Adapting Large Language Model to Enhance Multiple Medical Tasks in Diabetes Care and Management","arxiv_id":"2409.13191","date":"2024-09-20","proceeding":null,"authors":["Lai Wei","Zhen Ying","Muyang He","Yutong Chen","Qian Yang","Yanzhe Hong","Jiaping Lu","Kaipeng Zheng","Shaoting Zhang","Xiaoying Li","Weiran Huang","Ying Chen"],"abstract":"Diabetes is a chronic disease with a significant global health burden, requiring multi-stakeholder collaboration for optimal management. Large language models (LLMs) have shown promise in various healthcare scenarios, but their effectiveness across diverse diabetes tasks remains unproven. Our study introduced a framework to train and validate diabetes-specific LLMs. We first developed a comprehensive data processing pipeline that includes data collection, filtering, augmentation and refinement. This created a high-quality, diabetes-specific dataset and evaluation benchmarks from scratch. Fine-tuned on the collected training dataset, our diabetes-specific LLM family demonstrated state-of-the-art proficiency in processing various diabetes tasks compared to other LLMs. Furthermore, clinical studies revealed the potential applications of our models in diabetes care, including providing personalized healthcare, assisting medical education, and streamlining clinical tasks. Generally, our introduced framework helps develop diabetes-specific LLMs and highlights their potential to enhance clinical practice and provide personalized, data-driven support for diabetes management across different end users. Our codes, benchmarks and models are available at https://github.com/waltonfuture/Diabetica.","url_abs":"https://arxiv.org/abs/2409.13191v2","url_pdf":"https://arxiv.org/pdf/2409.13191v2.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":"an-adapted-large-language-model-facilitates","repo_url":"https://github.com/waltonfuture/Diabetica","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"language-modeling","task_name":"Language Modeling"},{"task_slug":"language-modelling","task_name":"Language Modelling"},{"task_slug":"large-language-model","task_name":"Large Language Model"},{"task_slug":"management","task_name":"Management"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2409.13191","atlas_url":"https://app.syntology.ai/?focus=2409.13191","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2409.13191"}},"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":"deterministic:regex_extraction","url":"https://github.com/waltonfuture/Diabetica","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":6,"unverified":6},"by_repo_kind":{"official":{"samples":12,"ran":6,"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":0,"samples":[{"code_sha256_prefix":"beb4cc20f42f3629","entry":"get_bucket_sizes","repo":"waltonfuture/Diabetica","repo_kind":"official","path":"swift/swift/torchacc_utils.py","file_url":"https://github.com/waltonfuture/Diabetica/blob/HEAD/swift/swift/torchacc_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"beb4cc20f42f3629"}},{"code_sha256_prefix":"8c8fad569d130782","entry":"internlm_output","repo":"waltonfuture/Diabetica","repo_kind":"official","path":"evaluation/dialog_eval.py","file_url":"https://github.com/waltonfuture/Diabetica/blob/HEAD/evaluation/dialog_eval.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8c8fad569d130782"}},{"code_sha256_prefix":"c84bfcc880d6de13","entry":"lcs_length","repo":"waltonfuture/Diabetica","repo_kind":"official","path":"evaluation/fill-in-the-blank_eval.py","file_url":"https://github.com/waltonfuture/Diabetica/blob/HEAD/evaluation/fill-in-the-blank_eval.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c84bfcc880d6de13"}},{"code_sha256_prefix":"e19a76ab5b628fd0","entry":"rouge_l","repo":"waltonfuture/Diabetica","repo_kind":"official","path":"evaluation/fill-in-the-blank_eval.py","file_url":"https://github.com/waltonfuture/Diabetica/blob/HEAD/evaluation/fill-in-the-blank_eval.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e19a76ab5b628fd0"}},{"code_sha256_prefix":"abd4580ad6ddeee5","entry":"yi_chat_output","repo":"waltonfuture/Diabetica","repo_kind":"official","path":"evaluation/dialog_eval.py","file_url":"https://github.com/waltonfuture/Diabetica/blob/HEAD/evaluation/dialog_eval.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"abd4580ad6ddeee5"}},{"code_sha256_prefix":"972fff3fa5cde36f","entry":"yi_chat_output","repo":"waltonfuture/Diabetica","repo_kind":"official","path":"evaluation/mcq_eval.py","file_url":"https://github.com/waltonfuture/Diabetica/blob/HEAD/evaluation/mcq_eval.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"972fff3fa5cde36f"}},{"code_sha256_prefix":"2966975168bef617","entry":"check_model_is_id","repo":"waltonfuture/Diabetica","repo_kind":"official","path":"swift/swift/hub/check_model.py","file_url":"https://github.com/waltonfuture/Diabetica/blob/HEAD/swift/swift/hub/check_model.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2966975168bef617"}},{"code_sha256_prefix":"fc8f0da4acefd1b7","entry":"compute_bleu","repo":"waltonfuture/Diabetica","repo_kind":"official","path":"evaluation/fill-in-the-blank_eval.py","file_url":"https://github.com/waltonfuture/Diabetica/blob/HEAD/evaluation/fill-in-the-blank_eval.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fc8f0da4acefd1b7"}},{"code_sha256_prefix":"97f780e147e59a1a","entry":"lora_state_dict","repo":"waltonfuture/Diabetica","repo_kind":"official","path":"swift/swift/tuners/lora_layers.py","file_url":"https://github.com/waltonfuture/Diabetica/blob/HEAD/swift/swift/tuners/lora_layers.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"97f780e147e59a1a"}},{"code_sha256_prefix":"4423e6e9ffc341a3","entry":"pad_and_split_batch","repo":"waltonfuture/Diabetica","repo_kind":"official","path":"swift/swift/torchacc_utils.py","file_url":"https://github.com/waltonfuture/Diabetica/blob/HEAD/swift/swift/torchacc_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4423e6e9ffc341a3"}},{"code_sha256_prefix":"7d6a411808e4f527","entry":"qwen_chat_output","repo":"waltonfuture/Diabetica","repo_kind":"official","path":"evaluation/dialog_eval.py","file_url":"https://github.com/waltonfuture/Diabetica/blob/HEAD/evaluation/dialog_eval.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7d6a411808e4f527"}},{"code_sha256_prefix":"8fa41a2365f42792","entry":"qwen_chat_output","repo":"waltonfuture/Diabetica","repo_kind":"official","path":"evaluation/mcq_eval.py","file_url":"https://github.com/waltonfuture/Diabetica/blob/HEAD/evaluation/mcq_eval.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8fa41a2365f42792"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}