Skip to main content
QUICK REVIEW

[Paper Review] Fast Wavenet Generation Algorithm.

Tom Le Paine, Pooya Khorrami|arXiv (Cornell University)|Nov 29, 2016
Algorithms and Data CompressionComputer Science2 references36 citations
TL;DR

This paper proposes Fast Wavenet, an O(L) complexity algorithm that accelerates autoregressive generation in WaveNet by caching dilated convolution results, eliminating redundant computations. The method reduces inference time significantly compared to the naive O(2^L) approach, with broad applicability to any model using dilated convolutions for online prediction.

ABSTRACT

This paper presents an efficient implementation of the Wavenet generation process called Fast Wavenet. Compared to a naive implementation that has complexity O(2^L) (L denotes the number of layers in the network), our proposed approach removes redundant convolution operations by caching previous calculations, thereby reducing the complexity to O(L) time. Timing experiments show significant advantages of our fast implementation over a naive one. While this method is presented for Wavenet, the same scheme can be applied anytime one wants to perform autoregressive generation or online prediction using a model with dilated convolution layers. The code for our method is publicly available.

Motivation & Objective

  • To address the high computational cost of autoregressive generation in WaveNet, which scales exponentially with network depth.
  • To eliminate redundant convolution operations during inference by reusing previously computed activations.
  • To enable efficient online prediction in models with dilated convolution layers, such as WaveNet.
  • To provide a generalizable optimization technique applicable beyond WaveNet to any autoregressive model with dilated convolutions.

Proposed method

  • The method caches intermediate activation values from dilated convolution layers to avoid recomputing them at each time step.
  • It exploits the hierarchical, tree-like structure of dilated convolutions to propagate cached results efficiently.
  • The algorithm maintains a running state of previously computed outputs, reducing redundant computation across autoregressive steps.
  • The approach is mathematically equivalent to the original WaveNet but achieves O(L) time complexity instead of O(2^L).
  • The optimization is implemented as a general inference-time transformation applicable to any dilated convolution-based autoregressive model.

Experimental results

Research questions

  • RQ1Can the computational complexity of autoregressive WaveNet inference be reduced from exponential to linear time?
  • RQ2How can redundant dilated convolution operations be eliminated during autoregressive generation?
  • RQ3To what extent can caching intermediate results accelerate inference in dilated convolution networks?
  • RQ4Is the proposed optimization generalizable to other models using dilated convolutions for online prediction?

Key findings

  • The proposed Fast Wavenet algorithm reduces inference time complexity from O(2^L) to O(L), enabling real-time autoregressive generation.
  • Timing experiments demonstrate significant speedups over the naive implementation, though exact benchmarks are not quantified in the provided text.
  • The method maintains the same model output as the original WaveNet, ensuring no degradation in generation quality.
  • The caching mechanism is effective across all layers, eliminating redundant computation without introducing approximation errors.
  • The optimization is general and can be applied to any model using dilated convolutions for autoregressive or online prediction tasks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.