walk modularity graph partitioning based on a
play

Walk Modularity: Graph partitioning based on a generalization of - PowerPoint PPT Presentation

Background Walk Modularity Example Graphs Benchmark Test Conclusions Walk Modularity: Graph partitioning based on a generalization of modularity David Mehrle 1 Amy Strosser 1 Carnegie Mellon University Mount St. Marys University


  1. Background Walk Modularity Example Graphs Benchmark Test Conclusions Walk Modularity: Graph partitioning based on a generalization of modularity David Mehrle 1 Amy Strosser 1 Carnegie Mellon University Mount St. Mary’s University dmehrle@cmu.edu amstrosser@email.msmary.edu 1 This research was supported by a National Science Foundation Research Experiences for Undergraduates Grant (Award #1062128) hosted by the Rochester Institute of Technology with co-funding from the Department of Defense

  2. Background Walk Modularity Example Graphs Benchmark Test Conclusions Graph Theory Background Consider an undirected graph G with n vertices and m edges Adjacency matrix is the n × n symmetric matrix A with � 1 nodes i and j are connected by an edge A ij = 0 otherwise

  3. Background Walk Modularity Example Graphs Benchmark Test Conclusions Modularity Communities should have more edges within them than the number of edges you would expect based on random chance.

  4. Background Walk Modularity Example Graphs Benchmark Test Conclusions Modularity Definition: Modularity (Newman, 2004) Q = 1 � ( A ij − P ij ) δ ( c i , c j ) 2 m i , j Compares actual vs. expected number of edges within clusters A ij edges actually fall between vertices i and j Expect P ij = k i k j 2 m edges between vertices i and j k i is the degree of vertex i c i is the group to which vertex i belongs � 1 c i = c j δ ( c i , c j ) = 0 otherwise

  5. Background Walk Modularity Example Graphs Benchmark Test Conclusions Walk Modularity Definition: Walk Modularity 1 � � � ( A ℓ ) ij − ( P ℓ ) ij Q ℓ = δ ( c i , c j ) 2 m ℓ i , j Compares actual vs. expected number of walks of length ℓ ( A ℓ ) ij is the number of walks of length ℓ between i and j ( P ℓ ) ij is the expected number of walks of length ℓ between i , j m ℓ is the number of walks of length ℓ in the graph

  6. Background Walk Modularity Example Graphs Benchmark Test Conclusions Walk Partitioning Partition the graph into two communities by maximizing Q ℓ Define the partition vector s by � +1 vertex i in cluster 1 s i = − 1 vertex i in cluster 2 Let B ℓ = A ℓ − P ℓ Note δ ( c i , c j ) = 1 2 (1 + s i s j ) � � � � ( A ℓ ) ij − ( P ℓ ) ij + s T B ℓ s Q ℓ = (1 + s i s j ) = ( B ℓ ) ij � �� � i , j i , j maximize � �� � constant There are 2 n possible choices for s , brute force is not practical We can find an approximate optimal solution

  7. Background Walk Modularity Example Graphs Benchmark Test Conclusions Maximizing Walk-Modularity Expand in terms of orthonormal eigenvectors u i of B ℓ : n � a i = u T s = a i u i , i s i =1 To maximize Q ℓ , concentrate as much weight as possible on largest eigenvalue   �� � n � � Q ℓ = s T B ℓ s = a i u T  = ( u T i s ) 2 β i B ℓ a j u j i i =1 i j If β is largest eigenvalue of A ℓ − P ℓ , with eigenvector u , choose s : � +1 u i ≥ 0 s i = − 1 u i < 0

  8. Background Walk Modularity Example Graphs Benchmark Test Conclusions Embedded K 20 Erd˝ os-R´ enyi random graph on 500 nodes with embedded K 20 Probability of edge between 2 nodes in random graph is 10% Probability of edge between node in random graph and node in K 20 is 5%

  9. Background Walk Modularity Example Graphs Benchmark Test Conclusions Embedded K 20 Partitioned using ℓ = 1, regular modularity

  10. Background Walk Modularity Example Graphs Benchmark Test Conclusions Embedded K 20 Partitioned using ℓ = 2, walks of length 2

  11. Background Walk Modularity Example Graphs Benchmark Test Conclusions Embedded K 20 Partitioned using ℓ = 3, walks of length 3

  12. Background Walk Modularity Example Graphs Benchmark Test Conclusions Embedded K 20 Partitioned using ℓ = 4, walks of length 4 Rule of thumb for choosing ℓ : ℓ ≈ diameter of G

  13. Background Walk Modularity Example Graphs Benchmark Test Conclusions Dolphin Network (Lusseau 2003) A group of 62 dolphins were tracked over ten years The group split in two after one of the dolphins departed A standard test used in literature for graph partitioning algorithms

  14. Background Walk Modularity Example Graphs Benchmark Test Conclusions Dolphin Network Modularity partition, ℓ = 1 ± 1 indicates the observed partitioning of the dolphin network Red nodes are incorrectly placed relative to observed �� �� �� �� �� �� � � � �� �� �� �� � �� � �� �� �� � �� � �� �� � � �� �� �� �� � � � �� � � � �� �� � �� � �� � �� �� � �� �� �� �� � �� �� �� �� �� �� �� �� �� ��

  15. Background Walk Modularity Example Graphs Benchmark Test Conclusions Dolphin Network Q 8 walk-modularity partition, walks of length 8 ± 1 indicates the observed partitioning of the dolphin network Red nodes are incorrectly placed relative to observed �� �� �� �� �� �� � � � �� �� �� �� � �� � �� �� �� � �� � �� �� � � �� �� �� �� � � � �� � � � �� �� �� � � �� �� � �� � �� �� �� �� � �� �� �� �� �� �� �� �� �� ��

  16. Background Walk Modularity Example Graphs Benchmark Test Conclusions Dolphin Network Q 10 walk-modularity partition, walks of length 10 ± 1 indicates the observed partitioning of the dolphin network Red nodes are incorrectly placed relative to observed �� �� �� �� �� �� � � � �� �� �� �� � �� � �� �� �� � �� � �� � �� � �� �� �� �� � � �� � � � � �� �� � �� � �� �� � �� � �� �� �� �� � �� �� �� �� �� �� �� �� �� ��

  17. Background Walk Modularity Example Graphs Benchmark Test Conclusions Multiple Communities Recursively divide each community with spectral methods For each subdivision, consider change in walk-modularity ∆ Q ℓ = Q ℓ final − Q ℓ initial � �� � � �� � after subdivide before subdivide If splitting up a community gives ∆ Q ℓ < 0, don’t subdivide If all nodes are in single community, don’t subdivide

  18. Background Walk Modularity Example Graphs Benchmark Test Conclusions Benchmark Tests (Lancichinetti et al. 2008) Benchmark test for community detection algorithms designed by Lancichinetti et. al. 2008 Joins communities based on a mixing parameter, µ Moves edges between communities with probability µ The following slides have a community generated with ¯ n = 500 , µ = 0 . 15 , k = 25 Each vertex is placed within a single well-defined community

  19. Background Walk Modularity Example Graphs Benchmark Test Conclusions Benchmark Test The communities as defined by the test generator

  20. Background Walk Modularity Example Graphs Benchmark Test Conclusions Benchmark Test (Modularity) The communities as found by edge-modularity ( ℓ = 1)

  21. Background Walk Modularity Example Graphs Benchmark Test Conclusions Benchmark Test ( ℓ = 8) The communities as found by walk-modularity ( ℓ = 8)

  22. Background Walk Modularity Example Graphs Benchmark Test Conclusions Computational Complexity Same asymptotic complexity as modularity, O ( n 2 ) Power method to find leading eigenvector of B ℓ B ℓ x n x 1 ∈ R n random x n +1 = � B ℓ x n � , Repeated multiplication against vector avoids computing matrix powers ( A ℓ − P ℓ ) x = A · A · A · · · A x − P · P · P · · · P x � �� � � �� � ℓ times , O ( n 2 ) ℓ times , O ( n 2 ) Comparably fast in practice as well, above tests < 1 s for most ℓ

  23. Background Walk Modularity Example Graphs Benchmark Test Conclusions Conclusions In most of our real-world and benchmark tests so far, walk- modularity performs significantly better than edge-modularity Comparable speed both asymptotically and practically Very similar to modularity, which is often used in practice

  24. Background Walk Modularity Example Graphs Benchmark Test Conclusions Acknowledgements Thank you to . . . Dr. Anthony Harkin, for mentoring and suggestions Dr Darren Narayan, for organizing the REU Rochester Institute of Technology the National Science Foundation, for grant #1062128 the Department of Defense, for co-funding The AMS and MAA for organizing the JMM

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend