{"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/learning-a-foundation-language-model-for","title":"K2: A Foundation Language Model for Geoscience Knowledge Understanding and Utilization","arxiv_id":"2306.05064","date":"2023-06-08","proceeding":null,"authors":["Cheng Deng","Tianhang Zhang","Zhongmou He","Yi Xu","Qiyuan Chen","Yuanyuan Shi","Luoyi Fu","Weinan Zhang","Xinbing Wang","Chenghu Zhou","Zhouhan Lin","Junxian He"],"abstract":"Large language models (LLMs) have achieved great success in general domains of natural language processing. In this paper, we bring LLMs to the realm of geoscience with the objective of advancing research and applications in this field. To this end, we present the first-ever LLM in geoscience, K2, alongside a suite of resources developed to further promote LLM research within geoscience. For instance, we have curated the first geoscience instruction tuning dataset, GeoSignal, which aims to align LLM responses to geoscience-related user queries. Additionally, we have established the first geoscience benchmark, GeoBench, to evaluate LLMs in the context of geoscience. In this work, we experiment with a complete recipe to adapt a pre-trained general-domain LLM to the geoscience domain. Specifically, we further train the LLaMA-7B model on 5.5B tokens of geoscience text corpus, including over 1 million pieces of geoscience literature, and utilize GeoSignal's supervised data to fine-tune the model. Moreover, we share a protocol that can efficiently gather domain-specific data and construct domain-supervised data, even in situations where manpower is scarce. Meanwhile, we equip K2 with the abilities of using tools to be a naive geoscience aide. Experiments conducted on the GeoBench demonstrate the effectiveness of our approach and datasets on geoscience knowledge understanding and utilization.We open-source all the training data and K2 model checkpoints at https://github.com/davendw49/k2.","url_abs":"https://arxiv.org/abs/2306.05064v2","url_pdf":"https://arxiv.org/pdf/2306.05064v2.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":"learning-a-foundation-language-model-for","repo_url":"https://github.com/davendw49/k2","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"language-modeling","task_name":"Language Modeling"},{"task_slug":"language-modelling","task_name":"Language Modelling"}],"methods":[{"method_slug":"align","method_name":"ALIGN"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2306.05064","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2306.05064"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+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/davendw49/k2","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran_draft_wrong":1,"unverified":8},"by_repo_kind":{"official":{"samples":9,"ran":1,"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":"a4f5d0414a1cf9c6","entry":"translate_state_dict_key","repo":"davendw49/k2","repo_kind":"official","path":"export_state_dict_checkpoint.py","file_url":"https://github.com/davendw49/k2/blob/HEAD/export_state_dict_checkpoint.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"a4f5d0414a1cf9c6"}},{"code_sha256_prefix":"0624efb8425a5620","entry":"extract_choice_id_ls","repo":"davendw49/k2","repo_kind":"official","path":"evaluation/post_process.py","file_url":"https://github.com/davendw49/k2/blob/HEAD/evaluation/post_process.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0624efb8425a5620"}},{"code_sha256_prefix":"50198895164ddbbc","entry":"get_device_map","repo":"davendw49/k2","repo_kind":"official","path":"evaluation/run_eval.py","file_url":"https://github.com/davendw49/k2/blob/HEAD/evaluation/run_eval.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"50198895164ddbbc"}},{"code_sha256_prefix":"4ddbf2105586113c","entry":"get_device_map","repo":"davendw49/k2","repo_kind":"official","path":"generation/generate.py","file_url":"https://github.com/davendw49/k2/blob/HEAD/generation/generate.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"4ddbf2105586113c"}},{"code_sha256_prefix":"a2f49e13f6e13d6b","entry":"permute","repo":"davendw49/k2","repo_kind":"official","path":"export_state_dict_checkpoint.py","file_url":"https://github.com/davendw49/k2/blob/HEAD/export_state_dict_checkpoint.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"a2f49e13f6e13d6b"}},{"code_sha256_prefix":"69584c56b509e799","entry":"process_choice","repo":"davendw49/k2","repo_kind":"official","path":"evaluation/post_process.py","file_url":"https://github.com/davendw49/k2/blob/HEAD/evaluation/post_process.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"69584c56b509e799"}},{"code_sha256_prefix":"dca2f99f88fc9f71","entry":"process_tf","repo":"davendw49/k2","repo_kind":"official","path":"evaluation/post_process.py","file_url":"https://github.com/davendw49/k2/blob/HEAD/evaluation/post_process.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"dca2f99f88fc9f71"}},{"code_sha256_prefix":"4777200bcd5f0b55","entry":"run_generate","repo":"davendw49/k2","repo_kind":"official","path":"evaluation/run_eval.py","file_url":"https://github.com/davendw49/k2/blob/HEAD/evaluation/run_eval.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"4777200bcd5f0b55"}},{"code_sha256_prefix":"6e275f232bbfb9b6","entry":"unpermute","repo":"davendw49/k2","repo_kind":"official","path":"export_state_dict_checkpoint.py","file_url":"https://github.com/davendw49/k2/blob/HEAD/export_state_dict_checkpoint.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"6e275f232bbfb9b6"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}