wav2graph: A Framework for Supervised Learning Knowledge Graph from Speech

Khai Le-Duc, Quy-Anh Dang, Tan-Hanh Pham, Truong-Son HyarXiv 2024

Abstract

Knowledge graphs (KGs) enhance the performance of large language models (LLMs) and search engines by providing structured, interconnected data that improves reasoning and context-awareness. However, KGs only focus on text data, thereby neglecting other modalities such as speech. In this work, we introduce wav2graph, the first framework for supervised learning knowledge graph from speech data. Our pipeline are straightforward: (1) constructing a KG based on transcribed spoken utterances and a named entity database, (2) converting KG into embedding vectors, and (3) training graph neural networks (GNNs) for node classification and link prediction tasks. Through extensive experiments conducted in inductive and transductive learning contexts using state-of-the-art GNN models, we provide baseline results and error analysis for node classification and link prediction tasks on human transcripts and automatic speech recognition (ASR) transcripts, including evaluations using both encoder-based and decoder-based node embeddings, as well as monolingual and multilingual acoustic pre-trained models. All related code, data, and models are published online.

Introduction

Knowledge Graphs (KGs) serve as the backbone for modern AI, enabling advanced reasoning in Large Language Models (LLMs) and search engines. Historically, these graphs have been built from text-first sources like Wikipedia or news articles. However, a significant portion of human knowledge is captured in speech—such as medical consultations or customer service calls—which remains largely untapped due to the "modality gap." Speech is inherently messy, filled with disfluencies and prone to transcription errors. wav2graph is the first framework designed to bridge this gap by training KGs directly from speech data using supervised learning.

Methods

The wav2graph pipeline follows a structured three-step process to transform raw audio into structured knowledge:

The wav2graph pipeline: from audio signal to node attributes and relationships.
  1. KG Construction: Spoken utterances are transcribed via Automatic Speech Recognition (ASR). These transcripts are then linked to a Named Entity (NE) database to form a graph where nodes represent either utterances or specific entities (e.g., "Doctor" or "Hospital").
  2. Node Embedding: To make the graph machine-readable, nodes are converted into high-dimensional vectors. The study evaluated several embedding types, including random vectors, encoder-based models (like BERT variants), and decoder-based LLM embeddings (like Qwen2).
  3. GNN Training: Four types of Graph Neural Networks—SAGE, GCN, GAT, and SuperGAT—were trained on two primary tasks: Node Classification (identifying entity types) and Link Prediction (identifying relationships between nodes).
Example of a knowledge graph structure generated from medical transcripts.

Datasets

The researchers utilized the VietMed-NER dataset, the world’s largest spoken Named Entity Recognition dataset. It consists of real-world medical conversations in Vietnamese, featuring 18 distinct entity types. This provides a challenging, high-stakes domain for testing the framework's accuracy in both inductive (testing on new graphs) and transductive (predicting missing parts of known graphs) learning contexts.

Key Insights and Results

  • The Semantic Safety Net: A major finding was that high Word Error Rates (WER) in ASR (~29%) did not break the system. Because the framework uses pre-trained text embeddings, GNNs could often "understand" the general context and semantics even when specific words were transcribed incorrectly.
  • Model Performance: SAGE was the most effective for node classification, achieving a perfect 1.0 Average Precision (AP) and 1.0 AUC in inductive settings using human transcripts. On noisy ASR transcripts, SAGE remained robust with an AP of 0.8851. For link prediction on ASR data, the classic GCN was unexpectedly dominant, reaching a 0.9159 AP in transductive settings.
  • Embedding Efficiency: While high-dimensional LLM embeddings are popular, they sometimes suffered from the "curse of dimensionality" in this graph context, occasionally performing worse than smaller, more focused encoder models.

Conclusion and Future Work

wav2graph demonstrates that structured knowledge can be reliably extracted from speech, even when transcription is imperfect. The authors acknowledge that current performance on ASR transcripts was achieved in a zero-shot setting. Future work will focus on fine-tuning GNNs specifically for ASR-derived graphs and developing end-to-end "audio-to-graph" architectures to further streamline the process.

Summary updated

BibTeX
@misc{leduc2024wav,
  author = {Khai Le-Duc and Quy-Anh Dang and Tan-Hanh Pham and Truong-Son Hy},
  title = {{wav2graph: A Framework for Supervised Learning Knowledge Graph from Speech}},
  year = {2024},
  eprint = {2408.04174},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.04174},
}
Figure