Next Word Suggestion using Graph Neural Network
Abisha Thapa Magar, Anup Shakya
TL;DR
The paper tackles next-word prediction by encoding global context with Graph Convolutional Networks and leveraging local context with LSTMs. It builds a word co-occurrence graph from a custom Wikipedia corpus and trains a GCNL to obtain global-context embeddings and a Many-to-One LSTM on 1–10 gram sequences derived from these embeddings. The graph convolution update is $h^{i+1} = \sigma(W^{i} h^{i} A)$, aggregating information from one-hop neighborhoods. Results indicate context embeddings improve over a random-embedding baseline but generalization remains limited due to small data and resource constraints, motivating future work with more GNN variants and embedding analyses.
Abstract
Language Modeling is a prevalent task in Natural Language Processing. The currently existing most recent and most successful language models often tend to build a massive model with billions of parameters, feed in a tremendous amount of text data, and train with enormous computation resources which require millions of dollars. In this project, we aim to address an important sub-task in language modeling, i.e., context embedding. We propose an approach to exploit the Graph Convolution operation in GNNs to encode the context and use it in coalition with LSTMs to predict the next word given a local context of preceding words. We test this on the custom Wikipedia text corpus using a very limited amount of resources and show that this approach works fairly well to predict the next word.
