Automatically generating human-readable text describing the functionality of a program is the intent of source code summarization. Although neural language models achieve significant performance in this field, they are limited by their inability to access external knowledge. To address this limitation, an emerging trend is combining neural models with external knowledge through retrieval methods. Previous methods have relied on the sentence-level retrieval paradigm on the encoder side. However, this paradigm is coarse-grained, noise-filled and cannot directly take advantage of the high-quality retrieved summary tokens on the decoder side. In this paper, we propose a fine-grained Token-level retrieval-augmented mechanism (Tram) on the decoder side rather than the encoder side to enhance the performance of neural models and produce more low-frequency tokens in generating summaries. Furthermore, to overcome the challenge of token-level retrieval in capturing contextual code semantics, we also propose integrating code semantics into individual summary tokens. The results of extensive experiments and human evaluation show that our token-level retrieval-augmented approach significantly improves performance and is more interpretable.
Rethinking All Evidence: Enhancing Trustworthy Retrieval-Augmented Generation via Conflict-Driven Summarization
University of Chinese Academy of Sciences(中国科学院大学);Chinese Academy of Sciences(中国科学院);National University of Defense Technology(国防科技大学);Chongqing University of Technology(重庆理工大学)
Enhancing Vulnerability Reports with Automated and Augmented Description Summarization
Department of Computer Science at the University of Central Florida(佛罗里达中央大学计算机科学系);Department of Computer Science at Northeastern Illinois University(北伊利诺伊大学计算机科学系);Department of Computer Science at Qatar University(卡塔尔大学计算机科学系);Ewha Womans University(成均馆大学)
MovieTeller: Tool-augmented Movie Synopsis with ID Consistent Progressive Abstraction
Central Universities(中央高校);National Natural Science Foundation of China(中国国家自然科学基金委员会);Research Fund for International Scientists of National Natural Science Foundation of China(中国国家自然科学基金委员会国际科学家研究基金)
A Data Science Approach to Calcutta High Court Judgments: An Efficient LLM and RAG-powered Framework for Summarization and Similar Cases Retrieval
A.K.Choudhury School of IT(A.K.Choudhury信息科技学院);University of Calcutta(加尔各答大学);Department of Computer Science(计算机科学系);Bangabasi Morning College(Bangabasi晨学院)
Retrieval-Augmented Generation in Medicine: A Scoping Review of Technical Implementations, Clinical Applications, and Ethical Considerations
Duke–NUS Medical School(杜克-新加坡国立大学医学院);University of Cambridge(剑桥大学);The University of Tokyo(东京大学);Singapore General Hospital(新加坡中央医院);University of Geneva(日内瓦大学);Duke School of Medicine(杜克大学医学院);Duke Clinical Research Institute(杜克临床研究所);Singapore Eye Research Institute(新加坡眼科研究所);Singapore National Eye Center(新加坡国家眼科中心);Stanford University(斯坦福大学);Singapore Health Services(新加坡保健服务集团);National University of Singapore(新加坡国立大学)
Ten Headache Specialists versus Artificial Intelligence for Clinical Literature Summarization: A Critical Evaluation and Comparison
Stanford University Palo Alto CA USA(斯坦福大学);Department of Neurology Mayo Clinic Rochester MN USA(梅奥诊所神经科);Department of Neurology Dalhousie University Halifax Canada(达尔豪斯大学神经科);Jefferson Headache Center Department of Neurology Thomas Jefferson University PA USA(泰勒大学神经科);Beth Israel Deaconess Medical Center Boston MA USA(贝斯以色列医疗中心);Department of Neurology University of Florida Gainesville FL USA(佛罗里达大学神经科);University of Colorado School of Medicine Department of Pediatrics Division of Child Neurology Aurora CO USA(科罗拉多医学院儿科部儿童神经科);Department of Medicine Mount Sinai Hospital Icahn School of Medicine at Mount Sinai New York NY USA(西奈医院医学部);Department of Neurology Mayo Clinic Scottsdale AZ USA(梅奥诊所Scottsdale分部);Harvard Medical School Boston MA USA(哈佛医学院);Department of Neurology Mount Sinai Hospital Icahn School of Medicine at Mount Sinai New York NY USA(西奈医院神经科)