Lune

ICLR2022Top-tier venue

GNN-LM: Language Modeling based on Global Contexts via GNN

Yuxian Meng, Shi Zong, Xiaoya Li, Xiaofei Sun, Tianwei Zhang, Fei Wu, Jiwei Li

Abstract

Inspired by the notion that *to copy is easier than to memorize*, in this work, we introduce GNN-LM, which extends the vanilla neural language model (LM) by allowing to reference similar contexts in the entire training corpus. We build a directed heterogeneous graph between an input context and its semantically related neighbors selected from the training corpus, where nodes are tokens in the input context and retrieved neighbor contexts, and edges represent connections between nodes. Graph neural networks (GNNs) are constructed upon the graph to aggregate information from similar contexts to decode the token. This learning paradigm provides direct access to the reference contexts and helps improve a model's generalization ability. We conduct comprehensive experiments to validate the effectiveness of the GNN-LM: GNN-LM achieves a new state-of-the-art perplexity of 14.8 on WikiText-103 (a 3.9 point improvement over its counterpart of the vanilla LM model), and shows substantial improvement on One Billion Word and Enwiki8 datasets against strong baselines. In-depth ablation studies are performed to understand the mechanics of GNN-LM.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

8 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Retrieval-Augmented Diffusion Models cites Generalization through Memorization: Nearest Neighbor Language Models
  • Decoupling Knowledge from Memorization: Retrieval-augmented Prompt Learning cites Generalization through Memorization: Nearest Neighbor Language Models
  • Decoupling Knowledge from Memorization: Retrieval-augmented Prompt Learning cites Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
  • Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrieval cites Generalization through Memorization: Nearest Neighbor Language Models
  • Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrieval cites Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
  • MeaCap: Memory-Augmented Zero-shot Image Captioning cites Retrieval-Augmented Diffusion Models
  • MeaCap: Memory-Augmented Zero-shot Image Captioning cites Generalization through Memorization: Nearest Neighbor Language Models
  • Domain Adaptive Code Completion via Language Models and Decoupled Domain Databases cites Generalization through Memorization: Nearest Neighbor Language Models
  • Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks cites Generalization through Memorization: Nearest Neighbor Language Models
  • Training Language Models with Memory Augmentation cites Generalization through Memorization: Nearest Neighbor Language Models
  • Training Language Models with Memory Augmentation cites Compressive Transformers for Long-Range Sequence Modelling
  • Training Language Models with Memory Augmentation cites Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. Retrieval-Augmented Diffusion ModelsAndreas Blattmann, Robin Rombach, Kaan Oktay, Jonas Müller et al.NeurIPS 2022 · 239 citations
  2. Decoupling Knowledge from Memorization: Retrieval-augmented Prompt LearningXiang Chen, Lei Li, Ningyu Zhang, Xiaozhuan Liang et al.NeurIPS 2022 · 68 citations
  3. Training Language Models with Memory AugmentationZexuan Zhong, Tao Lei, Danqi ChenEMNLP 2022 · 52 citations
  4. MeaCap: Memory-Augmented Zero-shot Image CaptioningZequn Zeng, Yan Xie, Hao Zhang, Chiyu Chen et al.CVPR 2024 · 38 citations
  5. Domain Adaptive Code Completion via Language Models and Decoupled Domain DatabasesZe Tang, Jidong Ge, Shangqing Liu, Tingwei Zhu et al.ASE 2023 · 29 citations

Builds on14

  1. Retrieval-Augmented Generation for Knowledge-Intensive NLP TasksPatrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni et al.NeurIPS 2020 · 19,162 citations
  2. Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text RetrievalLee Xiong, Chenyan Xiong, Ye Li, Kwok-Fung Tang et al.ICLR 2021 · 1,547 citations
  3. Generalization through Memorization: Nearest Neighbor Language ModelsUrvashi Khandelwal, Omer Levy, Dan Jurafsky, Luke Zettlemoyer et al.ICLR 2020 · 1,038 citations
  4. Compressive Transformers for Long-Range Sequence ModellingJack W. Rae, Anna Potapenko, Siddhant M. Jayakumar, Chloe Hillier et al.ICLR 2020 · 833 citations
  5. ELECTRA: Pre-training Text Encoders as Discriminators Rather Than GeneratorsKevin Clark, Minh-Thang Luong, Quoc V. Le, Christopher D. ManningICLR 2020 · 541 citations

Related papers

  1. Better Language Model with Hypernym Class PredictionHe Bai, Tong Wang, Alessandro Sordoni, Peng ShiACL 2022
  2. 'Hello, World!': Making GNNs Talk with LLMsSunwoo Kim, Soo Yong Lee, Jaemin Yoo, Kijung ShinEMNLP Findings 2025
  3. BLEG: LLM Functions as Powerful fMRI Graph-Enhancer for Brain Network AnalysisRui Dong, Zitong Wang, Jiaxing Li, Weihuang Zheng, Youyong KongCVPR Findings 2026
  4. Harnessing Language Model for Cross-Heterogeneity Graph Knowledge TransferJinyu Yang, Ruijia Wang, Cheng Yang, Bo Yan et al.AAAI 2025 · 4 citations
  5. Graph Language ModelsMoritz Plenz, Anette FrankACL 2024
Dusk over the sea between two cliffs drawn in fine vertical lines