NLP-AKG: Few-Shot Construction of NLP Academic Knowledge Graph Based on LLM

Jiayin Lan, Jiaqi Li, Baoxin Wang, Ming Liu, Dayong Wu, Shijin Wang, Bing QinarXiv 2025 · DOI

Introduction

Large Language Models (LLMs) have revolutionized how we interact with scientific literature. However, when faced with complex, multi-paper queries, standard Retrieval-Augmented Generation (RAG) systems often fall short. These systems typically rely on shallow metadata or isolated keywords, failing to capture the deep conceptual links—such as shared methodologies or specific innovations—that define the scientific landscape. This paper introduces NLP-AKG, a comprehensive academic knowledge graph for the NLP domain, and a novel "sub-graph community summary" method to enhance scientific QA.

Constructing the NLP-AKG

Building a high-quality academic knowledge graph (KG) traditionally requires extensive human annotation. The authors overcome this by leveraging LLMs as few-shot extractors to map the "semantic guts" of over 60,000 papers from the ACL Anthology.

The construction pipeline involves several key stages:

  1. Semantic Extraction: Using few-shot prompting, the system extracts 15 distinct entity types from parsed PDFs, including high-level concepts like Problem, Method, and Innovation.
  2. Table Interpretation: LLMs are used to parse complex, hierarchical tables to extract precise Datasets, Metrics, and Results.
  3. Refinement: To ensure data quality, an XLNet model identifies extraction errors, and K-means clustering merges synonymous entities (e.g., "F1-score" and "F1").
  4. Relationship Mapping: Citation contexts are classified to distinguish between "direct use" of a resource and general "task-related" mentions.

A Semantic Schema for Research

Unlike existing academic graphs that focus on metadata (authors, dates), NLP-AKG explicitly links the core components of research. This allows the system to answer nuanced questions like, "Which papers use GNNs to solve emotion recognition problems?"

The NLP-AKG schema, illustrating the relationships between metadata and deep semantic entities like Problem, Method, and Innovation.

Sub-graph Community Summary for QA

To leverage this graph for QA, the authors introduce a "sub-graph community summary" method. When a user asks a question, the system identifies the query intent, maps it to specific KG paths, and retrieves a "community" of related papers and entities. It then generates intermediate summaries for these sub-graph communities before aggregating them into a final, coherent answer.

This approach prevents the "lost in the middle" problem common in long-context LLM windows by synthesizing information at the community level before final generation.

Performance and Insights

The resulting graph is massive, containing over 620,000 entities and 2.2 million relations, with extraction accuracy exceeding 93%. In comparative evaluations on datasets like QASPER and a custom multi-paper QA set, the NLP-AKG approach consistently outperformed vanilla GPT-4 and standard RAG baselines. On the multi-paper dataset, it achieved an F1-score of 0.7768, demonstrating its superior ability to synthesize information across multiple documents.

Conclusion

NLP-AKG demonstrates that shifting from document-centric retrieval to idea-centric knowledge graphs significantly improves the precision of LLMs in scientific domains. Future work will focus on dynamic graph updates to keep pace with the rapid growth of NLP literature and extending this framework to other technical fields.

Summary updated

BibTeX
@misc{lan2025nlp,
  author = {Jiayin Lan and Jiaqi Li and Baoxin Wang and Ming Liu and Dayong Wu and Shijin Wang and Bing Qin},
  title = {{NLP-AKG: Few-Shot Construction of NLP Academic Knowledge Graph Based on LLM}},
  year = {2025},
  eprint = {2502.14192},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.14192},
}
Figure