Graphspeech: Syntax-Aware Graph Attention Network for Neural Speech Synthesis

Rui Liu, Berrak Sisman, Haizhou Li

TL;DR

GraphSpeech is a novel neural text-to-speech (TTS) architecture that incorporates the grammatical structure of a sentence directly into the synthesis process. By representing syntax as a graph and using a specialized "syntax-aware" attention mechanism, the model produces speech with significantly more natural prosody and fewer spectral artifacts than standard Transformer-based models.

What Problem Does This Paper Address?

While modern end-to-end TTS models like Transformer TTS are excellent at modeling long-range dependencies in text, they typically treat the input as a "flat" sequence of characters or phonemes. In reality, human speech is deeply tied to syntax—the hierarchical structure of a sentence.

Where we pause, which words we emphasize, and how our pitch rises or falls (collectively known as prosody) are all dictated by how words relate to one another grammatically. Standard self-attention mechanisms treat every word-to-word relationship the same way initially, forcing the model to "re-learn" grammar from scratch. This often leads to unnatural-sounding speech, especially in long or complex sentences where the model loses track of the structural context.

Methods

The authors propose GraphSpeech, which moves beyond flat sequences by framing TTS as a graph-to-sequence problem. The architecture consists of three main components:

  1. Relation Encoder: This module takes a standard syntax dependency tree (generated by an external parser) and converts it into a "syntax graph." To ensure every node can communicate, they add reverse edges and self-loops. Crucially, they use a Bi-directional Gated Recurrent Unit (Bi-GRU) to encode the "shortest relation path" between any two tokens into a vector. This vector represents exactly how two words are grammatically linked (e.g., subject-to-verb).
  2. Graph Encoder (Syntax-Aware Attention): This is the heart of the paper. Instead of the standard Transformer attention, which only looks at the "content" of tokens, GraphSpeech uses a modified formula that incorporates the relation encodings. The attention score is broken down into four parts:
  3. Content-based addressing: The standard "what is this word?" check.
  4. Forward/Backward relation bias: How does the specific grammatical direction affect the relationship?
  5. Universal relation bias: A general structural offset.
  6. Decoder: A standard Transformer-based decoder that takes these syntactically-enriched embeddings and predicts Mel-spectrograms.

Datasets

  • LJSpeech: A standard benchmark consisting of 13,100 short audio clips (~24 hours) of a single speaker reading non-fiction books.
  • Stanza: An NLP toolkit used to extract the initial syntactic dependency trees from the input text.

Key Insights and Ideas

  • Self-Attention as a Graph: The authors argue that standard self-attention is essentially a Graph Neural Network (GNN) acting on a fully connected, unlabeled graph. By "labeling" the edges with syntactic relations, they turn a generic mechanism into a linguistically informed one.
  • Shortest Path Matters: In a syntax tree, the "distance" between two words isn't how many characters are between them, but how many hops they are apart in the tree. Using a GRU to summarize this path allows the model to understand that a subject and its distant verb are closely related, even if they are 10 words apart.
  • Explicit vs. Implicit: While Transformers can learn syntax implicitly, providing it explicitly as a structural prior allows the model to focus its parameters on the difficult task of rendering acoustic nuances rather than figuring out basic sentence structure.

Key Results

The researchers compared GraphSpeech against a state-of-the-art Transformer TTS baseline:

  • Objective Metrics: GraphSpeech achieved a lower Mel-spectrum distortion (MCD) (6.821 vs. 8.021) and a lower Root Mean Squared Error (RMSE) for prosody (1.625 vs. 1.782), indicating more accurate frequency and timing reproduction.
  • Subjective Quality: In Mean Opinion Score (MOS) tests, human listeners rated GraphSpeech at 4.01, significantly higher than the Transformer baseline's 3.86 (Ground truth was 4.45).
  • Preference: In "A/B" testing, listeners consistently preferred GraphSpeech, particularly noting its superior "naturalness" and better-timed pauses in complex sentences.

Limitations and Future Work

  • Dependency on Parsers: The system's performance is bottlenecked by the accuracy of the upstream syntax parser (Stanza). If the parser misidentifies a relationship, the speech synthesis may inherit that error.
  • Computational Complexity: Calculating the shortest path between every pair of nodes in a sentence adds a pre-processing overhead, though the authors implemented a batch-processing trick to mitigate this.
  • Single Speaker Limitation: The study was limited to a single-speaker dataset (LJSpeech). Future work could explore how syntactic graphs help in multi-speaker or highly emotional/expressive speech synthesis, where prosody varies even more wildly.

Summary updated

BibTeX
@inproceedings{liu2021graphspeech,
  author = {Rui Liu and Berrak Sisman and Haizhou Li},
  title = {{Graphspeech: Syntax-Aware Graph Attention Network for Neural Speech Synthesis}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2021},
  doi = {10.1109/icassp39728.2021.9413513},
}
Figure