Augmenting Knowledge Graph Hierarchies Using Neural Transformers
Sanat Sharma, Mayank Poddar, Jayant Kumar, Kosta Blank, Tracy King
TL;DR
The problem addressed is the flat, limited hierarchies in domain-specific knowledge graphs, which hinder semantic organization and downstream recommendations. The authors propose a transformer-based pipeline that defines top-level $L_1$ categories, uses few-shot prompting for node-to-category classification, and expands the hierarchy with a generator module employing either cyclical or one-shot strategies, supported by an auto-ingest workflow. Key contributions include achieving 98% coverage for intents and 99% for colors, a comparative analysis of generation strategies, and a human-in-the-loop evaluation confirming relevance and correctness. The findings demonstrate a production-ready method to enrich KG hierarchies, improving navigation, semantic relationships, and SEO-related connections, with Adobe Express color pages as an early user-facing application.
Abstract
Knowledge graphs are useful tools to organize, recommend and sort data. Hierarchies in knowledge graphs provide significant benefit in improving understanding and compartmentalization of the data within a knowledge graph. This work leverages large language models to generate and augment hierarchies in an existing knowledge graph. For small (<100,000 node) domain-specific KGs, we find that a combination of few-shot prompting with one-shot generation works well, while larger KG may require cyclical generation. We present techniques for augmenting hierarchies, which led to coverage increase by 98% for intents and 99% for colors in our knowledge graph.
