SlideShare a Scribd company logo
1 of 47
Download to read offline
1 KYOTO UNIVERSITY
KYOTO UNIVERSITY
An Introduction to Spectral Graph Theory
Ryoma Sato
2 / 47 KYOTO UNIVERSITY
Spectral graph theory studies engenvalues

Spectral graph theory studies graphs via the lens of
eigenvalues and eigenvectors of adjacency matrices

It seems magnesium exists


λ2
= 11.9 λ3
= 44.7
It seems there are four clusters
It seems this is a clique-like graph
List of
eigenvalues
3 / 47 KYOTO UNIVERSITY
Spectra connect combinatorics and algebra

Why important?

Spectral graph theory connects combinatorics and algebra
It also connects discrete and continuous mathematics
Graph = combinatorial
discrete
Matrix = algebraic
continuous
Spectral
Graph
Theory
4 / 47 KYOTO UNIVERSITY
Today’s topic: spectral clustering & GNN

Today’s topic

Basics: Laplacian and cuts

Investigate shapes of graphs
i.e., investigate the basis of Laplacian
* Spectral clustering
* Spectral hashing

Investigate signals on graphs
i.e., investigate representations based on the basis
* Graph neural networks
5 / 47 KYOTO UNIVERSITY
Basics
6 / 47 KYOTO UNIVERSITY
Laplacian = dI - A

We consider undirected d-regular graphs in this presentation

The Laplacian matrix of a graph is
Example of 3-regular graphs
All nodes have 3 neighbors
A: adjacency matrix
I: identity matrix
7 / 47 KYOTO UNIVERSITY
xT
Lx measures the smoothness of signal x

Let be a signal vector on G
is a value assigned to node v

measures the smoothness of signal x on G:

If and are similar for all edges , is small
If and are dissimilar for edges , is large
8 / 47 KYOTO UNIVERSITY
Min-max Theorem tells eigenvalue&vector

Min-max Theorem
For any symmetric matrix
is the minimum eigenvalue
is its corresponding eigenvector
9 / 47 KYOTO UNIVERSITY
Min-max Theorem tells eigenvalue&vector

Min-max Theorem
For any symmetric matrix
is the second minimum eigenvalue
is its corresponding eigenvector
10 / 47 KYOTO UNIVERSITY
Min-max Theorem tells eigenvalue&vector

Min-max Theorem
For any symmetric matrix
Proof Sketch: Do spectral decomposition.
is the third minimum eigenvalue
is its corresponding eigenvector
11 / 47 KYOTO UNIVERSITY
Eigen vectors are smooth signal vectors

What does the min-max theorem tell?
 The eigenvector v1
of L associated with the
smallest eigenvalue λ1
is the smoothest signal vector
 It is obvious that v1
= [1, 1, …, 1]T
is the smoothest and λ1
= 0
 The second eigenvector v2
is the next smoothest signal vector
 λ2
tells how smooth v2
is.
 next smoothest = smoothest vector x s.t. xT
v1
= 0
= smoothest vector x s.t. x is sum to zero
= almost half are positive & others neg
Completely smooth
xT
Lx = 0
12 / 47 KYOTO UNIVERSITY
Two component graph has zero second eigenvalue

Case 1: Two connected components
The second eigenvector does not incur any penalties
because no edges exist between the components
λ1
= 0
v1
= [1, 1, …, 1]T
λ2
= 0
v2
= [1, 1, …, 1, -1, -1, …, -1]T
The examples here are not regular, but almost similar arguments follow
13 / 47 KYOTO UNIVERSITY
Small purturbation does not destroy the results

Case 2: Two connected components plus an edge
An edge between the components causes a slight penalty
But the eigenvector is almost the same
λ1
= 0
v1
= [1, 1, …, 1]T
λ2
= 0.15
v2
= [1, 0.99, …, 0.97, -0.97, -0.98, …, -1]T
14 / 47 KYOTO UNIVERSITY
Eigenvectors cut the graph with small cut edges

Case 3: Four communities
The 2nd-4th eigenvectors cuts the graph into two parts
The 2nd one cuts the smallest number of edges
The 3rd one cuts the second smallest number of edges
The 4th one cuts the third smallest number of edges
1st 2nd 3rd 4th
15 / 47 KYOTO UNIVERSITY
Matrix factorization also explains eigenvectors

Another interpretation: matrix factorization

Small eigenvalues of L = dI - A corresponds to
large eigenvalues of A

If then
is the best rank-k approximation (cf. PCA)
community IDs
16 / 47 KYOTO UNIVERSITY
Spectra, revisited

Now, we can infer the shape of a graph solely from its spectra

↑ This graph has four small eigenvalues
→ 4 ways to cut the graph → 4 communities

↑ Any cut (other than a constant signal) causes a large penalty


λ2
= 11.9 λ3
= 44.7
It seems there are four clusters
It seems this is a clique-like graph
List of
eigenvalues
17 / 47 KYOTO UNIVERSITY
Spectral Clustering
18 / 47 KYOTO UNIVERSITY
We cluster nodes into k parts

Problem Setting: node clustering

In: A graph G
An integer k

Out: Cluster nodes into k sets

We also consider clustering of vectors
 In: vectors {x1
, x2
, …, xn
}
An integer k

Out: Cluster nodes into k sets

In this case, construct kNN graph → solve the graph version
Note that the positions
are not observable
(but can be recovered
by eigenvectors as we
will see shortly!)
19 / 47 KYOTO UNIVERSITY
Spectral clustering uses eigenvectors as features

Algorithm (Spectral Clustering)
1. Compute eigenvectors v1
, …, vn
of Laplacian
2. Let zi
= [v1,i
, …, vd,i
]T
R
∈ d
for each node i
d is a hyperparamter
3. Apply k-means to {z1
, z2
, …, zn
}
20 / 47 KYOTO UNIVERSITY
Eigenvectors are useful features for clustering

Input: Eigenvectors:
Output:
2nd 3rd
21 / 47 KYOTO UNIVERSITY
Eigenvectors are useful features for clustering

Input:

Simple k-means fail on non-spherical clusters
Simple k-means
without spectral clustering
22 / 47 KYOTO UNIVERSITY
Eigenvectors are useful features for clustering

Build a kNN graph
23 / 47 KYOTO UNIVERSITY
Eigenvectors are useful features for clustering

Extract eigenvectors
2nd 3rd
24 / 47 KYOTO UNIVERSITY
Eigenvectors are useful features for clustering

Extract features
2nd 3rd
z2
z3
25 / 47 KYOTO UNIVERSITY
Eigenvectors are useful features for clustering

Do k-means on spectra
2nd 3rd
z2
z3
26 / 47 KYOTO UNIVERSITY
Eigenvectors are useful features for clustering

Pull back the results
2nd 3rd
z2
z3
Use the assignment
27 / 47 KYOTO UNIVERSITY
Graph Signal Processing
28 / 47 KYOTO UNIVERSITY
Fundamental example: cycle

Let’s consider a cycle graph
29 / 47 KYOTO UNIVERSITY
First eigenvector is constant

Let’s consider a cycle graph

The first eigenvector is a constant vector as usual
1nd
30 / 47 KYOTO UNIVERSITY
Second eigenvector is cosine

Let’s consider a cycle graph

The second eigenvector is cos(2kπ/n) cos is indeed smooth!
This can be proved by high school math (addition theorem)
1st
2nd
31 / 47 KYOTO UNIVERSITY
Following eigenvectors are also trigonometric

Let’s consider a cycle graph
1st
2nd
3rd
4th
3rd
= sin(2kπ/n)
4th
= cos(4kπ/n)
and so on...
32 / 47 KYOTO UNIVERSITY
Take a random signal on the cycle

Let’s consider a signal on the cycle graph
1st
2nd
3rd
4th
and so on...
33 / 47 KYOTO UNIVERSITY
Represent the signal by the eigenvector basis

Represent the signal by a linear combination of the eigvecs
1st
2nd
3rd
4th
× 0.1
× 0.3
× 0.0
× 0.6
and so on...
34 / 47 KYOTO UNIVERSITY
Eigen representation is Fourier series

This is the discrete version of Fourier expansion!
1st
2nd
3rd
4th
× 0.1
× 0.3
× 0.0
× 0.6
and so on...
35 / 47 KYOTO UNIVERSITY
Fourier series for general graphs

A case of a general graph
1st 2nd 3rd 4th
× 0.53
× 0.03 × 0.54 × 0.28
36 / 47 KYOTO UNIVERSITY
Fourier series for general graphs

A case of a general graph
1st 2nd 3rd 4th
× 0.53
× 0.03 × 0.54 × 0.28
How to compute
these values?
37 / 47 KYOTO UNIVERSITY
Fourier transform can be done by vec-mat product

Spectral decomposition of Laplacian

Fourier transform:

Inverse transform:
 E.g., when y = [0.8, 0.2, 0, 0, …, 0]T
, x = 0.8 v1
+ 0.2 v2
38 / 47 KYOTO UNIVERSITY
Low-pass filter for a standard 1D signal

Low-pass filter for a 1D signal smooths the signal
[0.1, 0.0, 0.3, 0.6, 0.0, -0.4, -0.1, 0.2, ...]
Fourier transform Inverse transform
[1, 1, 1, 1, 0, 0, 0, 0, ….]
Low-pass filter
[0.1, 0.0, 0.3, 0.6, 0.0, 0.0, 0.0, 0.0, ...]
39 / 47 KYOTO UNIVERSITY
Low-pass filter for a graph signal

Low-pass filter for a graph signal smooths the signal
[0.03, 0.54, 0.53, 0.28, 0.02, 0.03, ...]
Fourier transform Inverse transform
[1, 1, 1, 1, 0, 0, 0, 0, ….]
Low-pass filter
[0.03, 0.54, 0.53, 0.28, 0.0, 0.0, ...]
40 / 47 KYOTO UNIVERSITY
A special low-pass filter f

Filter [1, 1, 1, 1, 0, 0, 0, …] strictly cuts out high-freq signals

Let’s consider a filter for some real value w

E.g., when

f can be seen a smooth low-pass filter (in a loose manner)
It is guaranteed that f1
>= |fn
|
41 / 47 KYOTO UNIVERSITY
Applying filter f = Mltiplying A, x and w

The results of applying f to x can be computed as follows
This is just multiplications of adjacency matrix A and x and w
Efficiently computable (by message passing)
Multiply f Fourier transform
Inverse transform
f = w(d - λ)
V VT
= I, L = V Λ VT
L = dI - A
42 / 47 KYOTO UNIVERSITY
Generalizing to vector signals

So far, we have considered a scalar value for each node

Let’s consider each node has a vector feature

Then, the aforementioned filter can be generalized to

W diagonal → each signal is handled independently
W full → signals are linearly mixed (we usually use this)
1-dim:
d-dim:
43 / 47 KYOTO UNIVERSITY
Graph Convolutional Networks
44 / 47 KYOTO UNIVERSITY
We classify each node into categories

Problem Setting: supervised node classification

In: A graph G
Feature vectors X

Out: Label of each node Y

We want a function that transforms X into Y

Assumption: Y is smooth on the graph
Labels are similar within a cluster
45 / 47 KYOTO UNIVERSITY
GCN does filtering and node-wise transformation

Graph Convolutional Networks
 Training of W1
& W2
: Do SGD just as standard neural networks
Filtering
Node-wise non-linear transformation
Filtering
Node-wise non-linear transformation
46 / 47 KYOTO UNIVERSITY
Conclusion
47 / 47 KYOTO UNIVERSITY
Spectral graph theory is useful

Spectral graph theory is a useful toolbox for graph analysis

If you want to know the shape of a graph,
investigate the eigenvalues and eigenvectors

If you want to analyze/manipulate graph signals,
use representations based on eigenvectors

λ2
= 11.9 λ3
= 44.7
It seems there are four clusters
List of
eigenvalues
Low pass

More Related Content

What's hot

Visualizing Data Using t-SNE
Visualizing Data Using t-SNEVisualizing Data Using t-SNE
Visualizing Data Using t-SNEDavid Khosid
 
変分推論法(変分ベイズ法)(PRML第10章)
変分推論法(変分ベイズ法)(PRML第10章)変分推論法(変分ベイズ法)(PRML第10章)
変分推論法(変分ベイズ法)(PRML第10章)Takao Yamanaka
 
PR-317: MLP-Mixer: An all-MLP Architecture for Vision
PR-317: MLP-Mixer: An all-MLP Architecture for VisionPR-317: MLP-Mixer: An all-MLP Architecture for Vision
PR-317: MLP-Mixer: An all-MLP Architecture for VisionJinwon Lee
 
【論文紹介】How Powerful are Graph Neural Networks?
【論文紹介】How Powerful are Graph Neural Networks?【論文紹介】How Powerful are Graph Neural Networks?
【論文紹介】How Powerful are Graph Neural Networks?Masanao Ochi
 
Faster R-CNN: Towards real-time object detection with region proposal network...
Faster R-CNN: Towards real-time object detection with region proposal network...Faster R-CNN: Towards real-time object detection with region proposal network...
Faster R-CNN: Towards real-time object detection with region proposal network...Universitat Politècnica de Catalunya
 
R-CNNの原理とここ数年の流れ
R-CNNの原理とここ数年の流れR-CNNの原理とここ数年の流れ
R-CNNの原理とここ数年の流れKazuki Motohashi
 
ブラックボックス最適化とその応用
ブラックボックス最適化とその応用ブラックボックス最適化とその応用
ブラックボックス最適化とその応用gree_tech
 
第10回 配信講義 計算科学技術特論A(2021)
第10回 配信講義 計算科学技術特論A(2021)第10回 配信講義 計算科学技術特論A(2021)
第10回 配信講義 計算科学技術特論A(2021)RCCSRENKEI
 
Variational AutoEncoder
Variational AutoEncoderVariational AutoEncoder
Variational AutoEncoderKazuki Nitta
 
Spectral clustering
Spectral clusteringSpectral clustering
Spectral clusteringSOYEON KIM
 
論文紹介-Multi-Objective Deep Reinforcement Learning
論文紹介-Multi-Objective Deep Reinforcement Learning論文紹介-Multi-Objective Deep Reinforcement Learning
論文紹介-Multi-Objective Deep Reinforcement LearningShunta Nomura
 
2014 3 13(テンソル分解の基礎)
2014 3 13(テンソル分解の基礎)2014 3 13(テンソル分解の基礎)
2014 3 13(テンソル分解の基礎)Tatsuya Yokota
 
(文献紹介)Deep Unrolling: Learned ISTA (LISTA)
(文献紹介)Deep Unrolling: Learned ISTA (LISTA)(文献紹介)Deep Unrolling: Learned ISTA (LISTA)
(文献紹介)Deep Unrolling: Learned ISTA (LISTA)Morpho, Inc.
 
ICML 2020 最適輸送まとめ
ICML 2020 最適輸送まとめICML 2020 最適輸送まとめ
ICML 2020 最適輸送まとめohken
 
ベイズ推論による機械学習入門 第4章
ベイズ推論による機械学習入門 第4章ベイズ推論による機械学習入門 第4章
ベイズ推論による機械学習入門 第4章YosukeAkasaka
 
DNNの曖昧性に関する研究動向
DNNの曖昧性に関する研究動向DNNの曖昧性に関する研究動向
DNNの曖昧性に関する研究動向Naoki Matsunaga
 
Domain Adaptation 発展と動向まとめ(サーベイ資料)
Domain Adaptation 発展と動向まとめ(サーベイ資料)Domain Adaptation 発展と動向まとめ(サーベイ資料)
Domain Adaptation 発展と動向まとめ(サーベイ資料)Yamato OKAMOTO
 
PRML上巻勉強会 at 東京大学 資料 第1章前半
PRML上巻勉強会 at 東京大学 資料 第1章前半PRML上巻勉強会 at 東京大学 資料 第1章前半
PRML上巻勉強会 at 東京大学 資料 第1章前半Ohsawa Goodfellow
 
整数計画法に基づく説明可能性な機械学習へのアプローチ
整数計画法に基づく説明可能性な機械学習へのアプローチ整数計画法に基づく説明可能性な機械学習へのアプローチ
整数計画法に基づく説明可能性な機械学習へのアプローチKentaro Kanamori
 

What's hot (20)

Visualizing Data Using t-SNE
Visualizing Data Using t-SNEVisualizing Data Using t-SNE
Visualizing Data Using t-SNE
 
変分推論法(変分ベイズ法)(PRML第10章)
変分推論法(変分ベイズ法)(PRML第10章)変分推論法(変分ベイズ法)(PRML第10章)
変分推論法(変分ベイズ法)(PRML第10章)
 
PR-317: MLP-Mixer: An all-MLP Architecture for Vision
PR-317: MLP-Mixer: An all-MLP Architecture for VisionPR-317: MLP-Mixer: An all-MLP Architecture for Vision
PR-317: MLP-Mixer: An all-MLP Architecture for Vision
 
【論文紹介】How Powerful are Graph Neural Networks?
【論文紹介】How Powerful are Graph Neural Networks?【論文紹介】How Powerful are Graph Neural Networks?
【論文紹介】How Powerful are Graph Neural Networks?
 
Faster R-CNN: Towards real-time object detection with region proposal network...
Faster R-CNN: Towards real-time object detection with region proposal network...Faster R-CNN: Towards real-time object detection with region proposal network...
Faster R-CNN: Towards real-time object detection with region proposal network...
 
R-CNNの原理とここ数年の流れ
R-CNNの原理とここ数年の流れR-CNNの原理とここ数年の流れ
R-CNNの原理とここ数年の流れ
 
Semantic segmentation
Semantic segmentationSemantic segmentation
Semantic segmentation
 
ブラックボックス最適化とその応用
ブラックボックス最適化とその応用ブラックボックス最適化とその応用
ブラックボックス最適化とその応用
 
第10回 配信講義 計算科学技術特論A(2021)
第10回 配信講義 計算科学技術特論A(2021)第10回 配信講義 計算科学技術特論A(2021)
第10回 配信講義 計算科学技術特論A(2021)
 
Variational AutoEncoder
Variational AutoEncoderVariational AutoEncoder
Variational AutoEncoder
 
Spectral clustering
Spectral clusteringSpectral clustering
Spectral clustering
 
論文紹介-Multi-Objective Deep Reinforcement Learning
論文紹介-Multi-Objective Deep Reinforcement Learning論文紹介-Multi-Objective Deep Reinforcement Learning
論文紹介-Multi-Objective Deep Reinforcement Learning
 
2014 3 13(テンソル分解の基礎)
2014 3 13(テンソル分解の基礎)2014 3 13(テンソル分解の基礎)
2014 3 13(テンソル分解の基礎)
 
(文献紹介)Deep Unrolling: Learned ISTA (LISTA)
(文献紹介)Deep Unrolling: Learned ISTA (LISTA)(文献紹介)Deep Unrolling: Learned ISTA (LISTA)
(文献紹介)Deep Unrolling: Learned ISTA (LISTA)
 
ICML 2020 最適輸送まとめ
ICML 2020 最適輸送まとめICML 2020 最適輸送まとめ
ICML 2020 最適輸送まとめ
 
ベイズ推論による機械学習入門 第4章
ベイズ推論による機械学習入門 第4章ベイズ推論による機械学習入門 第4章
ベイズ推論による機械学習入門 第4章
 
DNNの曖昧性に関する研究動向
DNNの曖昧性に関する研究動向DNNの曖昧性に関する研究動向
DNNの曖昧性に関する研究動向
 
Domain Adaptation 発展と動向まとめ(サーベイ資料)
Domain Adaptation 発展と動向まとめ(サーベイ資料)Domain Adaptation 発展と動向まとめ(サーベイ資料)
Domain Adaptation 発展と動向まとめ(サーベイ資料)
 
PRML上巻勉強会 at 東京大学 資料 第1章前半
PRML上巻勉強会 at 東京大学 資料 第1章前半PRML上巻勉強会 at 東京大学 資料 第1章前半
PRML上巻勉強会 at 東京大学 資料 第1章前半
 
整数計画法に基づく説明可能性な機械学習へのアプローチ
整数計画法に基づく説明可能性な機械学習へのアプローチ整数計画法に基づく説明可能性な機械学習へのアプローチ
整数計画法に基づく説明可能性な機械学習へのアプローチ
 

Similar to An Introduction to Spectral Graph Theory

Dimension Reduction Introduction & PCA.pptx
Dimension Reduction Introduction & PCA.pptxDimension Reduction Introduction & PCA.pptx
Dimension Reduction Introduction & PCA.pptxRohanBorgalli
 
A guide to Tensor and its applications in Machine Learning.pdf
A guide to Tensor and its applications in Machine Learning.pdfA guide to Tensor and its applications in Machine Learning.pdf
A guide to Tensor and its applications in Machine Learning.pdfVanessa Bridge
 
Tensor representations in signal processing and machine learning (tutorial ta...
Tensor representations in signal processing and machine learning (tutorial ta...Tensor representations in signal processing and machine learning (tutorial ta...
Tensor representations in signal processing and machine learning (tutorial ta...Tatsuya Yokota
 
Continutiy of Functions.ppt
Continutiy of Functions.pptContinutiy of Functions.ppt
Continutiy of Functions.pptLadallaRajKumar
 
Instance Based Learning in Machine Learning
Instance Based Learning in Machine LearningInstance Based Learning in Machine Learning
Instance Based Learning in Machine LearningPavithra Thippanaik
 
Multiplex Networks: structure and dynamics
Multiplex Networks: structure and dynamicsMultiplex Networks: structure and dynamics
Multiplex Networks: structure and dynamicsEmanuele Cozzo
 
Tensor Spectral Clustering
Tensor Spectral ClusteringTensor Spectral Clustering
Tensor Spectral ClusteringAustin Benson
 
Ireducible core and equal remaining obligations rule for mcst games
Ireducible core and equal remaining obligations rule for mcst gamesIreducible core and equal remaining obligations rule for mcst games
Ireducible core and equal remaining obligations rule for mcst gamesvinnief
 
FEA 2 marks unit 1 to 5
FEA 2 marks unit 1 to 5FEA 2 marks unit 1 to 5
FEA 2 marks unit 1 to 5gokulfea
 
013_20160328_Topological_Measurement_Of_Protein_Compressibility
013_20160328_Topological_Measurement_Of_Protein_Compressibility013_20160328_Topological_Measurement_Of_Protein_Compressibility
013_20160328_Topological_Measurement_Of_Protein_CompressibilityHa Phuong
 
Notes on Spectral Clustering
Notes on Spectral ClusteringNotes on Spectral Clustering
Notes on Spectral ClusteringDavide Eynard
 
A short and naive introduction to using network in prediction models
A short and naive introduction to using network in prediction modelsA short and naive introduction to using network in prediction models
A short and naive introduction to using network in prediction modelstuxette
 
Vectorise all the things - long version.pptx
Vectorise all the things - long version.pptxVectorise all the things - long version.pptx
Vectorise all the things - long version.pptxJodieBurchell1
 
05 Machine Learning - Supervised Fisher Classifier
05 Machine Learning - Supervised Fisher Classifier 05 Machine Learning - Supervised Fisher Classifier
05 Machine Learning - Supervised Fisher Classifier Andres Mendez-Vazquez
 
Proportional and decentralized rule mcst games
Proportional and decentralized rule mcst gamesProportional and decentralized rule mcst games
Proportional and decentralized rule mcst gamesvinnief
 
International journal of applied sciences and innovation vol 2015 - no 1 - ...
International journal of applied sciences and innovation   vol 2015 - no 1 - ...International journal of applied sciences and innovation   vol 2015 - no 1 - ...
International journal of applied sciences and innovation vol 2015 - no 1 - ...sophiabelthome
 
2012 mdsp pr09 pca lda
2012 mdsp pr09 pca lda2012 mdsp pr09 pca lda
2012 mdsp pr09 pca ldanozomuhamada
 
Webinar on Graph Neural Networks
Webinar on Graph Neural NetworksWebinar on Graph Neural Networks
Webinar on Graph Neural NetworksLucaCrociani1
 

Similar to An Introduction to Spectral Graph Theory (20)

Dimension Reduction Introduction & PCA.pptx
Dimension Reduction Introduction & PCA.pptxDimension Reduction Introduction & PCA.pptx
Dimension Reduction Introduction & PCA.pptx
 
A guide to Tensor and its applications in Machine Learning.pdf
A guide to Tensor and its applications in Machine Learning.pdfA guide to Tensor and its applications in Machine Learning.pdf
A guide to Tensor and its applications in Machine Learning.pdf
 
Tensor representations in signal processing and machine learning (tutorial ta...
Tensor representations in signal processing and machine learning (tutorial ta...Tensor representations in signal processing and machine learning (tutorial ta...
Tensor representations in signal processing and machine learning (tutorial ta...
 
Graph Partitioning and Spectral Methods
Graph Partitioning and Spectral MethodsGraph Partitioning and Spectral Methods
Graph Partitioning and Spectral Methods
 
Continutiy of Functions.ppt
Continutiy of Functions.pptContinutiy of Functions.ppt
Continutiy of Functions.ppt
 
13005810.ppt
13005810.ppt13005810.ppt
13005810.ppt
 
Instance Based Learning in Machine Learning
Instance Based Learning in Machine LearningInstance Based Learning in Machine Learning
Instance Based Learning in Machine Learning
 
Multiplex Networks: structure and dynamics
Multiplex Networks: structure and dynamicsMultiplex Networks: structure and dynamics
Multiplex Networks: structure and dynamics
 
Tensor Spectral Clustering
Tensor Spectral ClusteringTensor Spectral Clustering
Tensor Spectral Clustering
 
Ireducible core and equal remaining obligations rule for mcst games
Ireducible core and equal remaining obligations rule for mcst gamesIreducible core and equal remaining obligations rule for mcst games
Ireducible core and equal remaining obligations rule for mcst games
 
FEA 2 marks unit 1 to 5
FEA 2 marks unit 1 to 5FEA 2 marks unit 1 to 5
FEA 2 marks unit 1 to 5
 
013_20160328_Topological_Measurement_Of_Protein_Compressibility
013_20160328_Topological_Measurement_Of_Protein_Compressibility013_20160328_Topological_Measurement_Of_Protein_Compressibility
013_20160328_Topological_Measurement_Of_Protein_Compressibility
 
Notes on Spectral Clustering
Notes on Spectral ClusteringNotes on Spectral Clustering
Notes on Spectral Clustering
 
A short and naive introduction to using network in prediction models
A short and naive introduction to using network in prediction modelsA short and naive introduction to using network in prediction models
A short and naive introduction to using network in prediction models
 
Vectorise all the things - long version.pptx
Vectorise all the things - long version.pptxVectorise all the things - long version.pptx
Vectorise all the things - long version.pptx
 
05 Machine Learning - Supervised Fisher Classifier
05 Machine Learning - Supervised Fisher Classifier 05 Machine Learning - Supervised Fisher Classifier
05 Machine Learning - Supervised Fisher Classifier
 
Proportional and decentralized rule mcst games
Proportional and decentralized rule mcst gamesProportional and decentralized rule mcst games
Proportional and decentralized rule mcst games
 
International journal of applied sciences and innovation vol 2015 - no 1 - ...
International journal of applied sciences and innovation   vol 2015 - no 1 - ...International journal of applied sciences and innovation   vol 2015 - no 1 - ...
International journal of applied sciences and innovation vol 2015 - no 1 - ...
 
2012 mdsp pr09 pca lda
2012 mdsp pr09 pca lda2012 mdsp pr09 pca lda
2012 mdsp pr09 pca lda
 
Webinar on Graph Neural Networks
Webinar on Graph Neural NetworksWebinar on Graph Neural Networks
Webinar on Graph Neural Networks
 

More from joisino

キャッシュオブリビアスアルゴリズム
キャッシュオブリビアスアルゴリズムキャッシュオブリビアスアルゴリズム
キャッシュオブリビアスアルゴリズムjoisino
 
Metric Recovery from Unweighted k-NN Graphs
Metric Recovery from Unweighted k-NN GraphsMetric Recovery from Unweighted k-NN Graphs
Metric Recovery from Unweighted k-NN Graphsjoisino
 
Towards Principled User-side Recommender Systems
Towards Principled User-side Recommender SystemsTowards Principled User-side Recommender Systems
Towards Principled User-side Recommender Systemsjoisino
 
CLEAR: A Fully User-side Image Search System
CLEAR: A Fully User-side Image Search SystemCLEAR: A Fully User-side Image Search System
CLEAR: A Fully User-side Image Search Systemjoisino
 
Private Recommender Systems: How Can Users Build Their Own Fair Recommender S...
Private Recommender Systems: How Can Users Build Their Own Fair Recommender S...Private Recommender Systems: How Can Users Build Their Own Fair Recommender S...
Private Recommender Systems: How Can Users Build Their Own Fair Recommender S...joisino
 
Word Tour: One-dimensional Word Embeddings via the Traveling Salesman Problem...
Word Tour: One-dimensional Word Embeddings via the Traveling Salesman Problem...Word Tour: One-dimensional Word Embeddings via the Traveling Salesman Problem...
Word Tour: One-dimensional Word Embeddings via the Traveling Salesman Problem...joisino
 
最適輸送入門
最適輸送入門最適輸送入門
最適輸送入門joisino
 
ユーザーサイド情報検索システム
ユーザーサイド情報検索システムユーザーサイド情報検索システム
ユーザーサイド情報検索システムjoisino
 
最適輸送の解き方
最適輸送の解き方最適輸送の解き方
最適輸送の解き方joisino
 
Random Features Strengthen Graph Neural Networks
Random Features Strengthen Graph Neural NetworksRandom Features Strengthen Graph Neural Networks
Random Features Strengthen Graph Neural Networksjoisino
 
Fast Unbalanced Optimal Transport on a Tree
Fast Unbalanced Optimal Transport on a TreeFast Unbalanced Optimal Transport on a Tree
Fast Unbalanced Optimal Transport on a Treejoisino
 
グラフニューラルネットワークとグラフ組合せ問題
グラフニューラルネットワークとグラフ組合せ問題グラフニューラルネットワークとグラフ組合せ問題
グラフニューラルネットワークとグラフ組合せ問題joisino
 
死にたくない
死にたくない死にたくない
死にたくないjoisino
 

More from joisino (13)

キャッシュオブリビアスアルゴリズム
キャッシュオブリビアスアルゴリズムキャッシュオブリビアスアルゴリズム
キャッシュオブリビアスアルゴリズム
 
Metric Recovery from Unweighted k-NN Graphs
Metric Recovery from Unweighted k-NN GraphsMetric Recovery from Unweighted k-NN Graphs
Metric Recovery from Unweighted k-NN Graphs
 
Towards Principled User-side Recommender Systems
Towards Principled User-side Recommender SystemsTowards Principled User-side Recommender Systems
Towards Principled User-side Recommender Systems
 
CLEAR: A Fully User-side Image Search System
CLEAR: A Fully User-side Image Search SystemCLEAR: A Fully User-side Image Search System
CLEAR: A Fully User-side Image Search System
 
Private Recommender Systems: How Can Users Build Their Own Fair Recommender S...
Private Recommender Systems: How Can Users Build Their Own Fair Recommender S...Private Recommender Systems: How Can Users Build Their Own Fair Recommender S...
Private Recommender Systems: How Can Users Build Their Own Fair Recommender S...
 
Word Tour: One-dimensional Word Embeddings via the Traveling Salesman Problem...
Word Tour: One-dimensional Word Embeddings via the Traveling Salesman Problem...Word Tour: One-dimensional Word Embeddings via the Traveling Salesman Problem...
Word Tour: One-dimensional Word Embeddings via the Traveling Salesman Problem...
 
最適輸送入門
最適輸送入門最適輸送入門
最適輸送入門
 
ユーザーサイド情報検索システム
ユーザーサイド情報検索システムユーザーサイド情報検索システム
ユーザーサイド情報検索システム
 
最適輸送の解き方
最適輸送の解き方最適輸送の解き方
最適輸送の解き方
 
Random Features Strengthen Graph Neural Networks
Random Features Strengthen Graph Neural NetworksRandom Features Strengthen Graph Neural Networks
Random Features Strengthen Graph Neural Networks
 
Fast Unbalanced Optimal Transport on a Tree
Fast Unbalanced Optimal Transport on a TreeFast Unbalanced Optimal Transport on a Tree
Fast Unbalanced Optimal Transport on a Tree
 
グラフニューラルネットワークとグラフ組合せ問題
グラフニューラルネットワークとグラフ組合せ問題グラフニューラルネットワークとグラフ組合せ問題
グラフニューラルネットワークとグラフ組合せ問題
 
死にたくない
死にたくない死にたくない
死にたくない
 

Recently uploaded

module for grade 9 for distance learning
module for grade 9 for distance learningmodule for grade 9 for distance learning
module for grade 9 for distance learninglevieagacer
 
IDENTIFICATION OF THE LIVING- forensic medicine
IDENTIFICATION OF THE LIVING- forensic medicineIDENTIFICATION OF THE LIVING- forensic medicine
IDENTIFICATION OF THE LIVING- forensic medicinesherlingomez2
 
Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...
Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...
Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...Monika Rani
 
Call Girls Alandi Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Alandi Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Alandi Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Alandi Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑Damini Dixit
 
Chemical Tests; flame test, positive and negative ions test Edexcel Internati...
Chemical Tests; flame test, positive and negative ions test Edexcel Internati...Chemical Tests; flame test, positive and negative ions test Edexcel Internati...
Chemical Tests; flame test, positive and negative ions test Edexcel Internati...ssuser79fe74
 
Forensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdfForensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdfrohankumarsinghrore1
 
Zoology 5th semester notes( Sumit_yadav).pdf
Zoology 5th semester notes( Sumit_yadav).pdfZoology 5th semester notes( Sumit_yadav).pdf
Zoology 5th semester notes( Sumit_yadav).pdfSumit Kumar yadav
 
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRLKochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRLkantirani197
 
SAMASTIPUR CALL GIRL 7857803690 LOW PRICE ESCORT SERVICE
SAMASTIPUR CALL GIRL 7857803690  LOW PRICE  ESCORT SERVICESAMASTIPUR CALL GIRL 7857803690  LOW PRICE  ESCORT SERVICE
SAMASTIPUR CALL GIRL 7857803690 LOW PRICE ESCORT SERVICEayushi9330
 
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPirithiRaju
 
Conjugation, transduction and transformation
Conjugation, transduction and transformationConjugation, transduction and transformation
Conjugation, transduction and transformationAreesha Ahmad
 
Bacterial Identification and Classifications
Bacterial Identification and ClassificationsBacterial Identification and Classifications
Bacterial Identification and ClassificationsAreesha Ahmad
 
GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)Areesha Ahmad
 
STS-UNIT 4 CLIMATE CHANGE POWERPOINT PRESENTATION
STS-UNIT 4 CLIMATE CHANGE POWERPOINT PRESENTATIONSTS-UNIT 4 CLIMATE CHANGE POWERPOINT PRESENTATION
STS-UNIT 4 CLIMATE CHANGE POWERPOINT PRESENTATIONrouseeyyy
 
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...chandars293
 
COMPUTING ANTI-DERIVATIVES (Integration by SUBSTITUTION)
COMPUTING ANTI-DERIVATIVES(Integration by SUBSTITUTION)COMPUTING ANTI-DERIVATIVES(Integration by SUBSTITUTION)
COMPUTING ANTI-DERIVATIVES (Integration by SUBSTITUTION)AkefAfaneh2
 

Recently uploaded (20)

module for grade 9 for distance learning
module for grade 9 for distance learningmodule for grade 9 for distance learning
module for grade 9 for distance learning
 
IDENTIFICATION OF THE LIVING- forensic medicine
IDENTIFICATION OF THE LIVING- forensic medicineIDENTIFICATION OF THE LIVING- forensic medicine
IDENTIFICATION OF THE LIVING- forensic medicine
 
Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...
Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...
Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...
 
Call Girls Alandi Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Alandi Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Alandi Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Alandi Call Me 7737669865 Budget Friendly No Advance Booking
 
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
 
Chemical Tests; flame test, positive and negative ions test Edexcel Internati...
Chemical Tests; flame test, positive and negative ions test Edexcel Internati...Chemical Tests; flame test, positive and negative ions test Edexcel Internati...
Chemical Tests; flame test, positive and negative ions test Edexcel Internati...
 
Site Acceptance Test .
Site Acceptance Test                    .Site Acceptance Test                    .
Site Acceptance Test .
 
Forensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdfForensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdf
 
CELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdfCELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdf
 
Zoology 5th semester notes( Sumit_yadav).pdf
Zoology 5th semester notes( Sumit_yadav).pdfZoology 5th semester notes( Sumit_yadav).pdf
Zoology 5th semester notes( Sumit_yadav).pdf
 
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRLKochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
 
SAMASTIPUR CALL GIRL 7857803690 LOW PRICE ESCORT SERVICE
SAMASTIPUR CALL GIRL 7857803690  LOW PRICE  ESCORT SERVICESAMASTIPUR CALL GIRL 7857803690  LOW PRICE  ESCORT SERVICE
SAMASTIPUR CALL GIRL 7857803690 LOW PRICE ESCORT SERVICE
 
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
 
Clean In Place(CIP).pptx .
Clean In Place(CIP).pptx                 .Clean In Place(CIP).pptx                 .
Clean In Place(CIP).pptx .
 
Conjugation, transduction and transformation
Conjugation, transduction and transformationConjugation, transduction and transformation
Conjugation, transduction and transformation
 
Bacterial Identification and Classifications
Bacterial Identification and ClassificationsBacterial Identification and Classifications
Bacterial Identification and Classifications
 
GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)
 
STS-UNIT 4 CLIMATE CHANGE POWERPOINT PRESENTATION
STS-UNIT 4 CLIMATE CHANGE POWERPOINT PRESENTATIONSTS-UNIT 4 CLIMATE CHANGE POWERPOINT PRESENTATION
STS-UNIT 4 CLIMATE CHANGE POWERPOINT PRESENTATION
 
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
 
COMPUTING ANTI-DERIVATIVES (Integration by SUBSTITUTION)
COMPUTING ANTI-DERIVATIVES(Integration by SUBSTITUTION)COMPUTING ANTI-DERIVATIVES(Integration by SUBSTITUTION)
COMPUTING ANTI-DERIVATIVES (Integration by SUBSTITUTION)
 

An Introduction to Spectral Graph Theory

  • 1. 1 KYOTO UNIVERSITY KYOTO UNIVERSITY An Introduction to Spectral Graph Theory Ryoma Sato
  • 2. 2 / 47 KYOTO UNIVERSITY Spectral graph theory studies engenvalues  Spectral graph theory studies graphs via the lens of eigenvalues and eigenvectors of adjacency matrices  It seems magnesium exists   λ2 = 11.9 λ3 = 44.7 It seems there are four clusters It seems this is a clique-like graph List of eigenvalues
  • 3. 3 / 47 KYOTO UNIVERSITY Spectra connect combinatorics and algebra  Why important?  Spectral graph theory connects combinatorics and algebra It also connects discrete and continuous mathematics Graph = combinatorial discrete Matrix = algebraic continuous Spectral Graph Theory
  • 4. 4 / 47 KYOTO UNIVERSITY Today’s topic: spectral clustering & GNN  Today’s topic  Basics: Laplacian and cuts  Investigate shapes of graphs i.e., investigate the basis of Laplacian * Spectral clustering * Spectral hashing  Investigate signals on graphs i.e., investigate representations based on the basis * Graph neural networks
  • 5. 5 / 47 KYOTO UNIVERSITY Basics
  • 6. 6 / 47 KYOTO UNIVERSITY Laplacian = dI - A  We consider undirected d-regular graphs in this presentation  The Laplacian matrix of a graph is Example of 3-regular graphs All nodes have 3 neighbors A: adjacency matrix I: identity matrix
  • 7. 7 / 47 KYOTO UNIVERSITY xT Lx measures the smoothness of signal x  Let be a signal vector on G is a value assigned to node v  measures the smoothness of signal x on G:  If and are similar for all edges , is small If and are dissimilar for edges , is large
  • 8. 8 / 47 KYOTO UNIVERSITY Min-max Theorem tells eigenvalue&vector  Min-max Theorem For any symmetric matrix is the minimum eigenvalue is its corresponding eigenvector
  • 9. 9 / 47 KYOTO UNIVERSITY Min-max Theorem tells eigenvalue&vector  Min-max Theorem For any symmetric matrix is the second minimum eigenvalue is its corresponding eigenvector
  • 10. 10 / 47 KYOTO UNIVERSITY Min-max Theorem tells eigenvalue&vector  Min-max Theorem For any symmetric matrix Proof Sketch: Do spectral decomposition. is the third minimum eigenvalue is its corresponding eigenvector
  • 11. 11 / 47 KYOTO UNIVERSITY Eigen vectors are smooth signal vectors  What does the min-max theorem tell?  The eigenvector v1 of L associated with the smallest eigenvalue λ1 is the smoothest signal vector  It is obvious that v1 = [1, 1, …, 1]T is the smoothest and λ1 = 0  The second eigenvector v2 is the next smoothest signal vector  λ2 tells how smooth v2 is.  next smoothest = smoothest vector x s.t. xT v1 = 0 = smoothest vector x s.t. x is sum to zero = almost half are positive & others neg Completely smooth xT Lx = 0
  • 12. 12 / 47 KYOTO UNIVERSITY Two component graph has zero second eigenvalue  Case 1: Two connected components The second eigenvector does not incur any penalties because no edges exist between the components λ1 = 0 v1 = [1, 1, …, 1]T λ2 = 0 v2 = [1, 1, …, 1, -1, -1, …, -1]T The examples here are not regular, but almost similar arguments follow
  • 13. 13 / 47 KYOTO UNIVERSITY Small purturbation does not destroy the results  Case 2: Two connected components plus an edge An edge between the components causes a slight penalty But the eigenvector is almost the same λ1 = 0 v1 = [1, 1, …, 1]T λ2 = 0.15 v2 = [1, 0.99, …, 0.97, -0.97, -0.98, …, -1]T
  • 14. 14 / 47 KYOTO UNIVERSITY Eigenvectors cut the graph with small cut edges  Case 3: Four communities The 2nd-4th eigenvectors cuts the graph into two parts The 2nd one cuts the smallest number of edges The 3rd one cuts the second smallest number of edges The 4th one cuts the third smallest number of edges 1st 2nd 3rd 4th
  • 15. 15 / 47 KYOTO UNIVERSITY Matrix factorization also explains eigenvectors  Another interpretation: matrix factorization  Small eigenvalues of L = dI - A corresponds to large eigenvalues of A  If then is the best rank-k approximation (cf. PCA) community IDs
  • 16. 16 / 47 KYOTO UNIVERSITY Spectra, revisited  Now, we can infer the shape of a graph solely from its spectra  ↑ This graph has four small eigenvalues → 4 ways to cut the graph → 4 communities  ↑ Any cut (other than a constant signal) causes a large penalty   λ2 = 11.9 λ3 = 44.7 It seems there are four clusters It seems this is a clique-like graph List of eigenvalues
  • 17. 17 / 47 KYOTO UNIVERSITY Spectral Clustering
  • 18. 18 / 47 KYOTO UNIVERSITY We cluster nodes into k parts  Problem Setting: node clustering  In: A graph G An integer k  Out: Cluster nodes into k sets  We also consider clustering of vectors  In: vectors {x1 , x2 , …, xn } An integer k  Out: Cluster nodes into k sets  In this case, construct kNN graph → solve the graph version Note that the positions are not observable (but can be recovered by eigenvectors as we will see shortly!)
  • 19. 19 / 47 KYOTO UNIVERSITY Spectral clustering uses eigenvectors as features  Algorithm (Spectral Clustering) 1. Compute eigenvectors v1 , …, vn of Laplacian 2. Let zi = [v1,i , …, vd,i ]T R ∈ d for each node i d is a hyperparamter 3. Apply k-means to {z1 , z2 , …, zn }
  • 20. 20 / 47 KYOTO UNIVERSITY Eigenvectors are useful features for clustering  Input: Eigenvectors: Output: 2nd 3rd
  • 21. 21 / 47 KYOTO UNIVERSITY Eigenvectors are useful features for clustering  Input:  Simple k-means fail on non-spherical clusters Simple k-means without spectral clustering
  • 22. 22 / 47 KYOTO UNIVERSITY Eigenvectors are useful features for clustering  Build a kNN graph
  • 23. 23 / 47 KYOTO UNIVERSITY Eigenvectors are useful features for clustering  Extract eigenvectors 2nd 3rd
  • 24. 24 / 47 KYOTO UNIVERSITY Eigenvectors are useful features for clustering  Extract features 2nd 3rd z2 z3
  • 25. 25 / 47 KYOTO UNIVERSITY Eigenvectors are useful features for clustering  Do k-means on spectra 2nd 3rd z2 z3
  • 26. 26 / 47 KYOTO UNIVERSITY Eigenvectors are useful features for clustering  Pull back the results 2nd 3rd z2 z3 Use the assignment
  • 27. 27 / 47 KYOTO UNIVERSITY Graph Signal Processing
  • 28. 28 / 47 KYOTO UNIVERSITY Fundamental example: cycle  Let’s consider a cycle graph
  • 29. 29 / 47 KYOTO UNIVERSITY First eigenvector is constant  Let’s consider a cycle graph  The first eigenvector is a constant vector as usual 1nd
  • 30. 30 / 47 KYOTO UNIVERSITY Second eigenvector is cosine  Let’s consider a cycle graph  The second eigenvector is cos(2kπ/n) cos is indeed smooth! This can be proved by high school math (addition theorem) 1st 2nd
  • 31. 31 / 47 KYOTO UNIVERSITY Following eigenvectors are also trigonometric  Let’s consider a cycle graph 1st 2nd 3rd 4th 3rd = sin(2kπ/n) 4th = cos(4kπ/n) and so on...
  • 32. 32 / 47 KYOTO UNIVERSITY Take a random signal on the cycle  Let’s consider a signal on the cycle graph 1st 2nd 3rd 4th and so on...
  • 33. 33 / 47 KYOTO UNIVERSITY Represent the signal by the eigenvector basis  Represent the signal by a linear combination of the eigvecs 1st 2nd 3rd 4th × 0.1 × 0.3 × 0.0 × 0.6 and so on...
  • 34. 34 / 47 KYOTO UNIVERSITY Eigen representation is Fourier series  This is the discrete version of Fourier expansion! 1st 2nd 3rd 4th × 0.1 × 0.3 × 0.0 × 0.6 and so on...
  • 35. 35 / 47 KYOTO UNIVERSITY Fourier series for general graphs  A case of a general graph 1st 2nd 3rd 4th × 0.53 × 0.03 × 0.54 × 0.28
  • 36. 36 / 47 KYOTO UNIVERSITY Fourier series for general graphs  A case of a general graph 1st 2nd 3rd 4th × 0.53 × 0.03 × 0.54 × 0.28 How to compute these values?
  • 37. 37 / 47 KYOTO UNIVERSITY Fourier transform can be done by vec-mat product  Spectral decomposition of Laplacian  Fourier transform:  Inverse transform:  E.g., when y = [0.8, 0.2, 0, 0, …, 0]T , x = 0.8 v1 + 0.2 v2
  • 38. 38 / 47 KYOTO UNIVERSITY Low-pass filter for a standard 1D signal  Low-pass filter for a 1D signal smooths the signal [0.1, 0.0, 0.3, 0.6, 0.0, -0.4, -0.1, 0.2, ...] Fourier transform Inverse transform [1, 1, 1, 1, 0, 0, 0, 0, ….] Low-pass filter [0.1, 0.0, 0.3, 0.6, 0.0, 0.0, 0.0, 0.0, ...]
  • 39. 39 / 47 KYOTO UNIVERSITY Low-pass filter for a graph signal  Low-pass filter for a graph signal smooths the signal [0.03, 0.54, 0.53, 0.28, 0.02, 0.03, ...] Fourier transform Inverse transform [1, 1, 1, 1, 0, 0, 0, 0, ….] Low-pass filter [0.03, 0.54, 0.53, 0.28, 0.0, 0.0, ...]
  • 40. 40 / 47 KYOTO UNIVERSITY A special low-pass filter f  Filter [1, 1, 1, 1, 0, 0, 0, …] strictly cuts out high-freq signals  Let’s consider a filter for some real value w  E.g., when  f can be seen a smooth low-pass filter (in a loose manner) It is guaranteed that f1 >= |fn |
  • 41. 41 / 47 KYOTO UNIVERSITY Applying filter f = Mltiplying A, x and w  The results of applying f to x can be computed as follows This is just multiplications of adjacency matrix A and x and w Efficiently computable (by message passing) Multiply f Fourier transform Inverse transform f = w(d - λ) V VT = I, L = V Λ VT L = dI - A
  • 42. 42 / 47 KYOTO UNIVERSITY Generalizing to vector signals  So far, we have considered a scalar value for each node  Let’s consider each node has a vector feature  Then, the aforementioned filter can be generalized to  W diagonal → each signal is handled independently W full → signals are linearly mixed (we usually use this) 1-dim: d-dim:
  • 43. 43 / 47 KYOTO UNIVERSITY Graph Convolutional Networks
  • 44. 44 / 47 KYOTO UNIVERSITY We classify each node into categories  Problem Setting: supervised node classification  In: A graph G Feature vectors X  Out: Label of each node Y  We want a function that transforms X into Y  Assumption: Y is smooth on the graph Labels are similar within a cluster
  • 45. 45 / 47 KYOTO UNIVERSITY GCN does filtering and node-wise transformation  Graph Convolutional Networks  Training of W1 & W2 : Do SGD just as standard neural networks Filtering Node-wise non-linear transformation Filtering Node-wise non-linear transformation
  • 46. 46 / 47 KYOTO UNIVERSITY Conclusion
  • 47. 47 / 47 KYOTO UNIVERSITY Spectral graph theory is useful  Spectral graph theory is a useful toolbox for graph analysis  If you want to know the shape of a graph, investigate the eigenvalues and eigenvectors  If you want to analyze/manipulate graph signals, use representations based on eigenvectors  λ2 = 11.9 λ3 = 44.7 It seems there are four clusters List of eigenvalues Low pass