mlsanityData to 14 Oct 2026

Contextual Graph Transformer: A Small Language Model for Enhanced Engineering Document Information Extraction

arXiv 2508.02532 ↗First posted 4 Aug 2025cs.CL cs.LGcited by 1

On the map: Retrieval-augmented generation → Knowledge-graph and structured-knowledge RAG

Abstract (arXiv)

Standard transformer-based language models, while powerful for general text, often struggle with the fine-grained syntax and entity relationships in complex technical, engineering documents. To address this, we propose the Contextual Graph Transformer (CGT), a hybrid neural architecture that combines Graph Neural Networks (GNNs) and Transformers for domain-specific question answering. CGT constructs a dynamic graph over input tokens using sequential, skip-gram, and semantic similarity edges, which is processed by GATv2Conv layers for local structure learning. These enriched embeddings are then passed to a Transformer encoder to capture global dependencies. Unlike generic large models, technical domains often require specialized language models with stronger contextualization and structure awareness. CGT offers a parameter-efficient solution for such use cases. Integrated into a Retrieval-Augmented Generation (RAG) pipeline, CGT outperforms baselines like GPT-2 and BERT, achieving 24.7% higher accuracy than GPT-2 with 62.4% fewer parameters. This gain stems from CGTs ability to jointly model structural token interactions and long-range semantic coherence. The model is trained from scratch using a two-phase approach: pretraining on general text followed by fine-tuning on domain-specific manuals. This highlights CGTs adaptability to technical language, enabling better grounding, entity tracking, and retrieval-augmented responses in real-world applications.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Knowledge-graph and structured-knowledge RAG, one of 15 directions in Retrieval-augmented generation. Builds on 14 of its 20 references that are in the map. First posted on arXiv 4 Aug 2025.

Builds on

14 of 20 references.

References · 14

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,361
  4. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  5. 2017Graph Attention Networkscited by 8,923
  6. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
  7. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
  8. 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,181
  9. 2021How Attentive are Graph Attention Networks?cited by 835
  10. 2019Latent Retrieval for Weakly Supervised Open Domain Question Answeringcited by 695
  11. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
  12. 2019LayoutLM: Pre-training of Text and Layout for Document Image Understandingcited by 553
2 more
  1. 2020LayoutLMv2: Multi-modal Pre-training for Visually-Rich Document Understandingcited by 408
  2. 2017Graph-based Neural Multi-Document Summarizationcited by 54

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2025A Survey of Graph Retrieval-Augmented Generation for Customized Large Language Models
  2. 2025DSRAG: A Domain-Specific Retrieval Framework Based on Document-derived Multimodal Knowledge Graph
  3. 2025GPR: Empowering Generation with Graph-Pretrained Retriever
  4. 2024Harnessing Large Language Models for Knowledge Graph Question Answering via Adaptive Multi-Aspect Retrieval-Augmentation
  5. 2026ContextRAG: Extraction-Free Hierarchical Graph Construction for Retrieval-Augmented Generation
  6. 2025CG-RAG: Research Question Answering by Citation Graph Retrieval-Augmented LLMs
  7. 2024Think-on-Graph 2.0: Deep and Faithful Large Language Model Reasoning with Knowledge-guided Retrieval Augmented Generation
  8. 2026RAGU: A Multi-Step GraphRAG Engine with a Compact Domain-Adapted LLM