Shenzhen Institute of Advanced Technology, Chinese Academy of Sciences(中国科学院深圳先进技术研究院);University of Chinese Academy of Sciences(中国科学院大学);The University of Sydney(悉尼大学);University of California, Irvine(加州大学欧文分校);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所)
Lei Zhang, Yunshui Li, Jiaming Li, Xiaobo Xia, Jiaxi Yang, Run Luo, Minzheng Wang, Longze Chen, Junhao Liu, Min Yang
Some recently developed code large language models (Code LLMs) have been pre-trained on repository-level code data (Repo-Code LLMs), enabling these models to recognize repository structures and utilize cross-file information for code completion. However, in real-world development scenarios, simply concatenating the entire code repository often exceeds the context window limits of these Repo-Code LLMs, leading to significant performance degradation. In this study, we conducted extensive preliminary experiments and analyses on six Repo-Code LLMs. The results indicate that maintaining the topological dependencies of files and increasing the code file content in the completion prompts can improve completion accuracy; pruning the specific implementations of functions in all dependent files does not significantly reduce the accuracy of completions. Based on these findings, we proposed a strategy named Hierarchical Context Pruning (HCP) to construct completion prompts with high informational code content. The HCP models the code repository at the function level, maintaining the topological dependencies between code files while removing a large amount of irrelevant code content, significantly reduces the input length for repository-level code completion. We applied the HCP strategy in experiments with six Repo-Code LLMs, and the results demonstrate that our proposed method can significantly enhance completion accuracy while substantially reducing the length of input. Our code and data are available at https://github.com/Hambaobao/HCP-Coder.
All-in-One Tuning and Structural Pruning for Domain-Specific LLMs
Northeastern University(东北大学);George Mason University(乔治梅森大学);GE HealthCare(GE医疗);University of Pennsylvania(宾夕法尼亚大学);University of Pittsburgh(匹兹堡大学);University of Florida(佛罗里达大学);Florida State University(佛罗里达州立大学)
Learn it or Leave it: Module Composition and Pruning for Continual Learning
Bosch Center for Artificial Intelligence(博世人工智能中心);LMU Munich(慕尼黑大学);Hochschule der Medien(慕尼黑应用科技大学);Karlsruhe University of Applied Sciences(卡尔斯鲁厄应用科技大学)
Z-Pruner: Post-Training Pruning of Large Language Models for Efficiency without Retraining
Department of Electrical and Computer Engineering, North South University, Dhaka, 1229, Bangladesh(电气与计算机工程系,北南大学,达卡,孟加拉国);Data Science and AI, University of Doha for Science and Technology, Doha, Qatar(数据科学与人工智能,多哈科学技术大学,多哈,卡塔尔)
ExpertWeaver: Unlocking the Inherent MoE in Dense LLMs with GLU Activation Patterns
Zhejiang University(浙江大学);Shanghai AI Laboratory(上海人工智能实验室);Shanghai Innovation Institute(上海创新研究院);Fudan University(复旦大学);Chinese University of Hong Kong(中国香港大学)
PRISM: Self-Pruning Intrinsic Selection Method for Training-Free Multimodal Data Selection
LMU Munich(慕尼黑大学);Munich Research Center, Huawei Technologies(慕尼黑研究中心,华为技术);METEOR;School of Computer Science, Wuhan University(武汉大学计算机学院);Munich Center for Machine Learning(慕尼黑机器学习中心)
Enhancing Knowledge Density via Hierarchical Context Pruning for Retrieval-Augmented Repository-Level Code Completion
MIIT Key Laboratory of Pattern Analysis and Machine Intelligence(信息科技模式分析与机器智能国家重点实验室);College of Computer Science and Technology(计算机科学与技术学院);Huaneng Information Technology Co Ltd(华能信息技术有限公司);Hunan Vanguard Group Corporation Co Ltd(湖南 Vanguard集团有限公司);Tsinghua University(清华大学);Zhejiang University(浙江大学);PowerChina Huadong Engineering Co Ltd(国家电网华东工程有限公司)
BioPars: A Pretrained Biomedical Large Language Model for Persian Biomedical Text Mining
Department of Computer Science, Faculty of Education, University of Kufa(计算机科学系,教育学院,科菲大学);Department of Computer Science, Florida State University(计算机科学系,佛罗里达州立大学);Department of Computer Engineering, Velayat University(计算机工程系,瓦莱yat大学);Department of Mechanical Engineering, Amirkabir University of Technology(机械工程系,阿米卡比尔技术大学);Department of Computer Engineering, Ferdowsi University of Mashhad(计算机工程系,法尔德大学)