fast transform algorithms via projection on a subalgebrapueschel/teaching/18-799f-cmu... ·...

17
Carnegie Mellon 1 Fast Transform Algorithms via Projection on a Subalgebra Yevgen Voronenko Frédéric de Mesmay Electrical and Computer Engineering Carnegie Mellon University

Upload: others

Post on 09-Apr-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Fast Transform Algorithms via Projection on a Subalgebrapueschel/teaching/18-799F-CMU... · 2009-03-31 · Carnegie Mellon 3 Related Work : Trigonometric Transform Algorithms Hong

Carnegie Mellon

1

Fast Transform Algorithms via Projection on a Subalgebra

Yevgen Voronenko Frédéric de Mesmay

Electrical and Computer EngineeringCarnegie Mellon University

Page 2: Fast Transform Algorithms via Projection on a Subalgebrapueschel/teaching/18-799F-CMU... · 2009-03-31 · Carnegie Mellon 3 Related Work : Trigonometric Transform Algorithms Hong

Carnegie Mellon

2

Introduction

Fast n log n algorithms are important for practical applications

Deriving such algorithms is typically tedious and not well understood process

We present a general method for mechanical derivation of new algorithms by projecting existing algorithms

We successfully obtain fast algorithms for all 16 types of DCTs/DSTs

Page 3: Fast Transform Algorithms via Projection on a Subalgebrapueschel/teaching/18-799F-CMU... · 2009-03-31 · Carnegie Mellon 3 Related Work : Trigonometric Transform Algorithms Hong

Carnegie Mellon

3

Related Work : Trigonometric Transform Algorithms

Hong and Vetterli, 1991“Basefield Transforms with Convolution Property”Algebraic projection (by human)

Frigo and Johnson, 1999“Fast Fourier Transform Compiler”Data-flow graph projection (by a computer)

Pueschel and Egner, 2002Symmetry Based Matrix FactorizationAutomatic algorithm derivation from a matrix (by a computer)

Pueschel and Moura, 2001—2006 Algebraic Theory of Signal ProcessingCooley-Tukey type algorithms for all 16 kinds of DCTs/DSTs

ASP allows to understand what’s going on and thus mechanically derive algorithms

Page 4: Fast Transform Algorithms via Projection on a Subalgebrapueschel/teaching/18-799F-CMU... · 2009-03-31 · Carnegie Mellon 3 Related Work : Trigonometric Transform Algorithms Hong

Carnegie Mellon

4

Outline

1. Introduction2. Embedding method3. Algorithm projection method

Page 5: Fast Transform Algorithms via Projection on a Subalgebrapueschel/teaching/18-799F-CMU... · 2009-03-31 · Carnegie Mellon 3 Related Work : Trigonometric Transform Algorithms Hong

Carnegie Mellon

5

Embedding Method: Problem statement

Given:Regular signal model (A, ΦA) + Fourier transform FA

Regular signal model (B, ΦB) + Fourier transform FB

B≤A

Find: Express FB using FA

Page 6: Fast Transform Algorithms via Projection on a Subalgebrapueschel/teaching/18-799F-CMU... · 2009-03-31 · Carnegie Mellon 3 Related Work : Trigonometric Transform Algorithms Hong

Carnegie Mellon

6

Embedding Method

Basic idea: embed B in ALet φ and Ψ be embeddings

Following diagram commutes

What we want What we have

Matrix equation

coordinatizedΨ −1

coordinatized φ

Challenge: coordinatize mappings φ and Ψ-1

Page 7: Fast Transform Algorithms via Projection on a Subalgebrapueschel/teaching/18-799F-CMU... · 2009-03-31 · Carnegie Mellon 3 Related Work : Trigonometric Transform Algorithms Hong

Carnegie Mellon

7

Example: DFTConsider

We have

Crucial parameters: basis in A, B, Ai, BiMultiple degrees of freedom

Page 8: Fast Transform Algorithms via Projection on a Subalgebrapueschel/teaching/18-799F-CMU... · 2009-03-31 · Carnegie Mellon 3 Related Work : Trigonometric Transform Algorithms Hong

Carnegie Mellon

8

Example: DCT-3Consider

We have

Page 9: Fast Transform Algorithms via Projection on a Subalgebrapueschel/teaching/18-799F-CMU... · 2009-03-31 · Carnegie Mellon 3 Related Work : Trigonometric Transform Algorithms Hong

Carnegie Mellon

9

Outline

1. Introduction2. Embedding method3. Algorithm Embedding method.

Page 10: Fast Transform Algorithms via Projection on a Subalgebrapueschel/teaching/18-799F-CMU... · 2009-03-31 · Carnegie Mellon 3 Related Work : Trigonometric Transform Algorithms Hong

Carnegie Mellon

10

Projection Method: Problem statement

Given:Regular signal model (A, ΦA) + Fourier transform FA

Cooley-Tukey type algorithm for FA made with sub-algebra C

Regular signal model (B, ΦB) + Fourier transform FB

B≤A

Find: Cooley-Tukey type algorithm for FB

Page 11: Fast Transform Algorithms via Projection on a Subalgebrapueschel/teaching/18-799F-CMU... · 2009-03-31 · Carnegie Mellon 3 Related Work : Trigonometric Transform Algorithms Hong

Carnegie Mellon

11

Reminder: Cooley-Tukey Type AlgorithmsAssume

coarse decomposition

complete decomposition

transform

Page 12: Fast Transform Algorithms via Projection on a Subalgebrapueschel/teaching/18-799F-CMU... · 2009-03-31 · Carnegie Mellon 3 Related Work : Trigonometric Transform Algorithms Hong

Carnegie Mellon

12

Fast Algorithms DFT and RDFTDecomposition:

Page 13: Fast Transform Algorithms via Projection on a Subalgebrapueschel/teaching/18-799F-CMU... · 2009-03-31 · Carnegie Mellon 3 Related Work : Trigonometric Transform Algorithms Hong

Carnegie Mellon

13

Algorithm Projection MethodBasic idea: embedding and Cooley-TukeyFollowing diagram commutes

The embedding

Matrix equation

coordinatized φChallenge: choose φ and Ψ-1 for sparse factorization

base change

The FA Cooley-Tukey

spectral permutationcoarse decompositionfine decompositioncoordinatizedΨ −1

Page 14: Fast Transform Algorithms via Projection on a Subalgebrapueschel/teaching/18-799F-CMU... · 2009-03-31 · Carnegie Mellon 3 Related Work : Trigonometric Transform Algorithms Hong

Carnegie Mellon

14

Algorithm Projection Steps

Algorithm derivation is mechanical rewriting of

apply left rules apply right rules

Step 1: Write down the embeddingStep 2: Coordinatize and obtain right / left rules Step 3: Plug in FA Cooley-Tukey and apply rules

right “pull” rulesleft “push” rules

But remember that E and C are chosen!

Page 15: Fast Transform Algorithms via Projection on a Subalgebrapueschel/teaching/18-799F-CMU... · 2009-03-31 · Carnegie Mellon 3 Related Work : Trigonometric Transform Algorithms Hong

Carnegie Mellon

15

Example: Embedding DFT4 into DFT8

Step 1: Write down the embedding

Step 2: Coordinatize, and obtain right/left rules

Step 3: Plug in Cooley-Tukey for DFT8, apply rules

Page 16: Fast Transform Algorithms via Projection on a Subalgebrapueschel/teaching/18-799F-CMU... · 2009-03-31 · Carnegie Mellon 3 Related Work : Trigonometric Transform Algorithms Hong

Carnegie Mellon

16

Example: Embed DCT-34 into RDFT-38

Step 1: Write down the embedding

Step 2: Coordinatize, and obtain right/left rules

Step 3: Plug in Cooley-Tukey for RDFT-38, apply rules

permutations

Page 17: Fast Transform Algorithms via Projection on a Subalgebrapueschel/teaching/18-799F-CMU... · 2009-03-31 · Carnegie Mellon 3 Related Work : Trigonometric Transform Algorithms Hong

Carnegie Mellon

17

Conclusion : Automatic Derivation of Algorithms

Mechanical formula rewriting rewrite rules

Number of rewrite rules is small Hard to derive by handGives new, composite algorithmsNice way to handle the ever growing number of transforms

Questions?