{"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/llm-neo-parameter-efficient-knowledge","title":"LLM-Neo: Parameter Efficient Knowledge Distillation for Large Language Models","arxiv_id":"2411.06839","date":"2024-11-11","proceeding":null,"authors":["Runming Yang","Taiqiang Wu","Jiahao Wang","Pengfei Hu","Ngai Wong","Yujiu Yang"],"abstract":"In this paper, we propose a novel LLM-Neo framework that efficiently transfers knowledge from a large language model (LLM) teacher to a compact student. Initially, we revisit the knowledge distillation (KD) and low-rank adaption (LoRA), and argue that they share the same paradigm. Inspired by this observation, we explore the strategy that combines LoRA and KD to enhance the efficiency of knowledge transfer. We first summarize some guidelines for this design and further develop the LLM-Neo. Experimental results on compressing Llama 2 and Llama 3 show that LLM-Neo outperforms various baselines. Further analysis demonstrates the robustness of the proposed LLM-Neo on variants of LoRA. The trained models have been available at \\href{https://huggingface.co/collections/yang31210999/llm-neo-66e3c882f5579b829ff57eba}{this repository}.","url_abs":"https://arxiv.org/abs/2411.06839v1","url_pdf":"https://arxiv.org/pdf/2411.06839v1.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":"llm-neo-parameter-efficient-knowledge","repo_url":"https://github.com/wutaiqiang/shadow-ft","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"llm-neo-parameter-efficient-knowledge","repo_url":"https://github.com/yang3121099/LLM-Neo","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"knowledge-distillation","task_name":"Knowledge Distillation"},{"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":"transfer-learning","task_name":"Transfer Learning"}],"methods":[{"method_slug":"knowledge-distillation","method_name":"Knowledge Distillation"},{"method_slug":"llama","method_name":"LLaMA"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2411.06839","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2411.06839"}},"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/yang3121099/LLM-Neo","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/wutaiqiang/shadow-ft","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran":3,"ran_draft_wrong":2,"unverified":7},"by_repo_kind":{"listed":{"samples":12,"ran":5,"repositories":2}},"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":"dbea5358be6b5ad0","entry":"create_score_evaluation_response","repo":"wutaiqiang/shadow-ft","repo_kind":"listed","path":"src/llamafactory/api/chat.py","file_url":"https://github.com/wutaiqiang/shadow-ft/blob/HEAD/src/llamafactory/api/chat.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"dbea5358be6b5ad0"}},{"code_sha256_prefix":"52a9ebcf2e9dee87","entry":"dictify","repo":"wutaiqiang/shadow-ft","repo_kind":"listed","path":"src/llamafactory/api/common.py","file_url":"https://github.com/wutaiqiang/shadow-ft/blob/HEAD/src/llamafactory/api/common.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"52a9ebcf2e9dee87"}},{"code_sha256_prefix":"53c3bbf282e709d0","entry":"generate_config","repo":"yang3121099/LLM-Neo","repo_kind":"listed","path":"script_Neo.py","file_url":"https://github.com/yang3121099/LLM-Neo/blob/HEAD/script_Neo.py","link_basis":"first_harvest_node","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":"53c3bbf282e709d0"}},{"code_sha256_prefix":"57583cf880d95444","entry":"jsonify","repo":"wutaiqiang/shadow-ft","repo_kind":"listed","path":"src/llamafactory/api/common.py","file_url":"https://github.com/wutaiqiang/shadow-ft/blob/HEAD/src/llamafactory/api/common.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"57583cf880d95444"}},{"code_sha256_prefix":"db48bb761b48a5cc","entry":"load_template","repo":"yang3121099/LLM-Neo","repo_kind":"listed","path":"script_Neo.py","file_url":"https://github.com/yang3121099/LLM-Neo/blob/HEAD/script_Neo.py","link_basis":"first_harvest_node","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":"db48bb761b48a5cc"}},{"code_sha256_prefix":"3ea4e6fb53ccc417","entry":"calculate_sigma","repo":"wutaiqiang/shadow-ft","repo_kind":"listed","path":"src/shadow/weight_similarity.py","file_url":"https://github.com/wutaiqiang/shadow-ft/blob/HEAD/src/shadow/weight_similarity.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":"3ea4e6fb53ccc417"}},{"code_sha256_prefix":"3cc89cab52ef5a93","entry":"find_model_paths","repo":"wutaiqiang/shadow-ft","repo_kind":"listed","path":"src/shadow/apply_diff.py","file_url":"https://github.com/wutaiqiang/shadow-ft/blob/HEAD/src/shadow/apply_diff.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":"3cc89cab52ef5a93"}},{"code_sha256_prefix":"b6a79e0495117aeb","entry":"is_linear_param","repo":"wutaiqiang/shadow-ft","repo_kind":"listed","path":"src/shadow/apply_diff.py","file_url":"https://github.com/wutaiqiang/shadow-ft/blob/HEAD/src/shadow/apply_diff.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":"b6a79e0495117aeb"}},{"code_sha256_prefix":"96b3633872d001db","entry":"load_selected_weights","repo":"wutaiqiang/shadow-ft","repo_kind":"listed","path":"src/shadow/weight_similarity_multi.py","file_url":"https://github.com/wutaiqiang/shadow-ft/blob/HEAD/src/shadow/weight_similarity_multi.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":"96b3633872d001db"}},{"code_sha256_prefix":"cd84d166484baaeb","entry":"load_selected_weights_optimized","repo":"wutaiqiang/shadow-ft","repo_kind":"listed","path":"src/shadow/weight_similarity.py","file_url":"https://github.com/wutaiqiang/shadow-ft/blob/HEAD/src/shadow/weight_similarity.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":"cd84d166484baaeb"}},{"code_sha256_prefix":"d7d5006bffa278f0","entry":"load_weights","repo":"wutaiqiang/shadow-ft","repo_kind":"listed","path":"src/shadow/apply_diff.py","file_url":"https://github.com/wutaiqiang/shadow-ft/blob/HEAD/src/shadow/apply_diff.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":"d7d5006bffa278f0"}},{"code_sha256_prefix":"518a3e369c05351c","entry":"parse_safetensors_index","repo":"wutaiqiang/shadow-ft","repo_kind":"listed","path":"src/shadow/weight_similarity.py","file_url":"https://github.com/wutaiqiang/shadow-ft/blob/HEAD/src/shadow/weight_similarity.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":"518a3e369c05351c"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}