Skip to main content
QUICK REVIEW

[Paper Review] Kymatio: Scattering Transforms in Python

Mathieu Andreux, Tomás Angles|arXiv (Cornell University)|Dec 28, 2018
Computational Physics and Python ApplicationsComputer Science13 references77 citations
TL;DR

Kymatio provides a user-friendly, high-performance Python implementation of the scattering transform in 1D, 2D, and 3D, with GPU support and compatibility with PyTorch and TensorFlow/Keras. It emphasizes code quality, documentation, and depth-first computation to reduce memory usage while remaining differentiable.

ABSTRACT

The wavelet scattering transform is an invariant signal representation suitable for many signal processing and machine learning applications. We present the Kymatio software package, an easy-to-use, high-performance Python implementation of the scattering transform in 1D, 2D, and 3D that is compatible with modern deep learning frameworks. All transforms may be executed on a GPU (in addition to CPU), offering a considerable speed up over CPU implementations. The package also has a small memory footprint, resulting inefficient memory usage. The source code, documentation, and examples are available undera BSD license at https://www.kymat.io/

Motivation & Objective

  • Introduce a Python implementation of the scattering transform that is easy to use and well-documented.
  • Provide GPU-accelerated, memory-efficient 1D/2D/3D scattering transforms compatible with popular deep learning frameworks.
  • Offer a unified API and frontends to facilitate integration into modern ML pipelines.
  • Demonstrate depth-first computation and differentiability to enable efficient reconstruction and generative modeling workflows.

Proposed method

  • Define zeroth-, first-, and second-order scattering coefficients using wavelet and lowpass filters with a modulus nonlinearity.
  • Use Morlet wavelets in 1D/2D and solid harmonic wavelets in 3D with a suitable nonlinearity (|t| or its 3D analogue).
  • Compute convolutions via fast Fourier transforms with periodic padding and apply depth-first traversal to reduce intermediate storage.
  • Provide Pythonic interfaces with PyTorch and TensorFlow/Keras frontends that mirror nn.Module usage and support CPU/GPU execution.
  • Limit higher-order coefficients to second order to balance accuracy and computational load.
  • Ensure compatibility with modern DL workflows and maintain a small memory footprint through downsampling of intermediate results.

Experimental results

Research questions

  • RQ1How can the scattering transform be efficiently implemented in Python across 1D, 2D, and 3D data?
  • RQ2Can the scattering transform be made differentiable and easily integrable into PyTorch and TensorFlow/Keras pipelines?
  • RQ3What architectural decisions (e.g., depth-first computation) reduce memory usage for large-scale or GPU-limited settings?
  • RQ4How does Kymatio compare to existing scattering implementations in terms of usability, GPU support, and API consistency?
  • RQ5What are practical applications and examples that demonstrate the utility of a Python scattering library?

Key findings

  • Kymatio delivers a Python-based, end-to-end implementation of the scattering transform for 1D, 2D, and 3D data.
  • The package supports CPU and GPU execution with noticeable speedups on GPUs.
  • The API is compatible with PyTorch and TensorFlow/Keras, enabling easy integration into deep learning workflows.
  • The project emphasizes code quality, extensive tests, minimal dependencies, and comprehensive documentation.
  • Depth-first computation reduces memory overhead, making the transform practical in limited-memory environments such as GPUs.
  • Kymatio is open-source under a BSD license and includes tutorials, examples, and real-world application demos.

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.