Capturing Structural Locality in Non-parametric Language Models
Frank F. Xu, Junxian He, Graham Neubig, Vincent Josua Hellendoorn
摘要
Structural locality is a ubiquitous feature of real-world datasets, wherein data points are organized into local hierarchies. Some examples include topical clusters in text or project hierarchies in source code repositories. In this paper, we explore utilizing this structural locality within non-parametric language models, which generate sequences that reference retrieved examples from an external source. We propose a simple yet effective approach for adding locality information into such models by adding learned parameters that improve the likelihood of retrieving examples from local neighborhoods. Experiments on two different domains, Java source code and Wikipedia text, demonstrate that locality features improve model efficacy over models without access to these features, with interesting differences. We also perform an analysis of how and where locality features contribute to improved performance and why the traditionally used contextual similarity metrics alone are not enough to grasp the locality structure.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Neuro-Symbolic Language Modeling with Automaton-augmented Retrieval 引用了 Generalization through Memorization: Nearest Neighbor Language Models
- CodePlan: Repository-Level Coding using LLMs and Planning 引用了 Repository-Level Prompt Generation for Large Language Models of Code
- CodePlan: Repository-Level Coding using LLMs and Planning 引用了 Language Models are Few-Shot Learners
- Monitor-Guided Decoding of Code LMs with Static Analysis of Repository Context 引用了 Generalization through Memorization: Nearest Neighbor Language Models
- Monitor-Guided Decoding of Code LMs with Static Analysis of Repository Context 引用了 Repository-Level Prompt Generation for Large Language Models of Code
- Monitor-Guided Decoding of Code LMs with Static Analysis of Repository Context 引用了 Big code != big vocabulary: open-vocabulary models for source code
- Repository-Level Prompt Generation for Large Language Models of Code 引用了 Generalization through Memorization: Nearest Neighbor Language Models
- Repository-Level Prompt Generation for Large Language Models of Code 引用了 Language Models are Few-Shot Learners
- Domain Adaptive Code Completion via Language Models and Decoupled Domain Databases 引用了 Neuro-Symbolic Language Modeling with Automaton-augmented Retrieval
- Domain Adaptive Code Completion via Language Models and Decoupled Domain Databases 引用了 Generalization through Memorization: Nearest Neighbor Language Models
- Extracting Training Data from Large Language Models 引用了 Language Models are Few-Shot Learners
引用它的顶会 Paper5
- Repository-Level Prompt Generation for Large Language Models of CodeDisha Shrivastava, Hugo Larochelle, Daniel TarlowICML 2023 · 184 次引用
- Neuro-Symbolic Language Modeling with Automaton-augmented RetrievalUri Alon, Frank F. Xu, Junxian He, Sudipta Sengupta 等ICML 2022 · 79 次引用
- CodePlan: Repository-Level Coding using LLMs and PlanningRamakrishna Bairi, Atharv Sonwane, Aditya Kanade, Vageesh D. C. 等FSE 2024 · 67 次引用
- Monitor-Guided Decoding of Code LMs with Static Analysis of Repository ContextLakshya A. Agrawal, Aditya Kanade, Navin Goyal, Shuvendu K. Lahiri 等NeurIPS 2023 · 55 次引用
- Domain Adaptive Code Completion via Language Models and Decoupled Domain DatabasesZe Tang, Jidong Ge, Shangqing Liu, Tingwei Zhu 等ASE 2023 · 29 次引用
它引用的 Paper7
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- Extracting Training Data from Large Language ModelsNicholas Carlini, Florian Tramèr, Eric Wallace, Matthew Jagielski 等USENIX Security 2021 · 2,866 次引用
- Generalization through Memorization: Nearest Neighbor Language ModelsUrvashi Khandelwal, Omer Levy, Dan Jurafsky, Luke Zettlemoyer 等ICLR 2020 · 1,038 次引用
- Big code != big vocabulary: open-vocabulary models for source codeRafael-Michael Karampatsis, Hlib Babii, Romain Robbes, Charles Sutton 等ICSE 2020 · 140 次引用
- Structural Language Models of CodeUri Alon, Roy Sadaka, Omer Levy, Eran YahavICML 2020 · 115 次引用
相关 Paper
- GNN-LM: Language Modeling based on Global Contexts via GNNYuxian Meng, Shi Zong, Xiaoya Li, Xiaofei Sun 等ICLR 2022 · 46 次引用
- Why do Nearest Neighbor Language Models Work?Frank F. Xu, Uri Alon, Graham NeubigICML 2023 · 33 次引用
- SSS: Editing Factual Knowledge in Language Models towards Semantic Sparse SpaceHuazheng Wang, Haifeng Sun, Jingyu Wang, Qi Qi 等ACL Findings 2024
- Retrieve-and-Sample: Document-level Event Argument Extraction via Hybrid Retrieval AugmentationYubing Ren, Yanan Cao, Ping Guo, Fang Fang 等ACL 2023 · 32 次引用
- Adaptation Approaches for Nearest Neighbor Language ModelsRishabh Bhardwaj, George Polovets, Monica SunkaraACL Findings 2023 · 7 次引用
