Tweet Along @dgleich                                                                                                      ...
Tweet Along @dgleichThere’s information inside the spectra      Words in dictionary definitions                      Inter...
Tweet Along @dgleichOverviewGraphs and their matricesData for our experimentsComputing spectra for large networksIssues wi...
Tweet Along @dgleich              GRAPHS            As well as things we            AND THEIR           already know about...
Tweet Along @dgleichMatrices from graphsAdjacency matrix                                Not covered                       ...
Tweet Along @dgleichWhy are we interested in the spectra?ModelingProperties  Moments of the adjacencyAnomaliesRegularities...
Tweet Along @dgleichSpectral bounds from Gerschgorin       (from a slightly different approach)2/24/2011                  ...
Tweet Along @dgleichSemi-circle lawWigner’s semi-circle law Eigenvalues of a random symmetric matrix where each entry is i...
Tweet Along @dgleichErdős–Rényi Semi-circlesThe eigenvalues of the adjacency matrix for  n=1000, averaged over 10 trialsSe...
Tweet Along @dgleichPrevious resultsFarkas et al. : Significant deviation from the  semi-circle law for the adjacency matr...
Tweet Along @dgleichIn comparison …We use “exact” computation of spectra, instead of approximation.We study “all” of the s...
Tweet Along @dgleich            DATA2/24/2011   Stanford ICME seminar                   12
Tweet Along @dgleichData sources SNAP               Various                       100s-100,000s SNAP-p2p           Gnutell...
Tweet Along @dgleichBig graphsArxiv             86376               1035126      Co-authorshipDblp              9356      ...
Tweet Along @dgleichModelsPreferential AttachmentStart graph with a k-node clique. Add a new node and  connect to k random...
Tweet Along @dgleich                COMPUTING                 SPECTRA OF            LARGE NETWORKS2/24/2011              S...
Tweet Along @dgleichMatlab!Always a great starting point.  My desktop has 24GB of RAM (less than $2500 now!)24GB/8 bytes (...
Tweet Along @dgleichScaLAPACKLAPACK with distributed memory dense matricesScalapack uses a 2d block-cyclic dense matrix di...
Tweet Along @dgleichEigenvalues with ScaLAPACKMostly the same approach as in LAPACK1. Reduce to tridiagonal form   (most t...
Tweet Along @dgleichAlternativesUse ARPACK to get extremaUse ARPACK to get interior around                via the folded s...
Tweet Along @dgleich            ISSUES WITH            COMPUTING                SPECTRA2/24/2011          Stanford ICME se...
Tweet Along @dgleichBugs - Matlabeig(A)Returns incorrect eigenvectors                                                 Seem...
Tweet Along @dgleichBug – ScaLAPACK defaultsudo apt-get install scalapack-openmpiAllocate 36000x36000 local matrixRun on 4...
Tweet Along @dgleichBug - LAPACKScalapack MRRRCompare standard lapack/blas to atlas performanceResult: correct output from...
Tweet Along @dgleichMoralAlways test your software.Extensively.2/24/2011                Stanford ICME seminar             ...
Tweet Along @dgleich(Super)-ComputersRedsky  2x Intel Nehalem 2.9 GHz/8 core  12 GB/node  22TB memory total  used up to 50...
Tweet Along @dgleichAdding MPI tasks vs. using threadsMost math libraries have threaded versions   (Intel MKL, AMD ACML)Is...
Tweet Along @dgleich    Strong Parallel Scaling                                             Time  Time in hours           ...
Tweet Along @dgleich            EXAMPLES2/24/2011       Stanford ICME seminar                   29
Tweet Along @dgleichA $40,000 matrix computation2/24/2011     Stanford ICME seminar                 30/36
Tweet Along @dgleichSpikes?2/24/2011   Stanford ICME seminar                 31/36
Tweet Along @dgleichNullspaces of the adjacency matrix So unit eigenvalues of the normalized Laplacian are null-  vectors ...
Tweet Along @dgleichStanford’s Facebook Network                                       Data from Mason Porter2/24/2011     ...
Tweet Along @dgleichMovies of spectra…As these models evolve, what do the spectra look like?2/24/2011                Stanf...
Tweet Along @dgleich2/24/2011   Stanford ICME seminar                 35/36
Code will be available eventually. Image from good financial cents.2/24/2011                            Stanford ICME semi...
Upcoming SlideShare
Loading in...5
×

Spectra of Large Network

1,031

Published on

A seminar presentation from Stanford on spectra of large networks. This work is preliminary, so please check for recent versions and contact me for more information.

Published in: Technology, Education
3 Comments
1 Like
Statistics
Notes
No Downloads
Views
Total Views
1,031
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
15
Comments
3
Likes
1
Embeds 0
No embeds

No notes for slide

Spectra of Large Network

  1. 1. Tweet Along @dgleich Spectra of Large Networks David F. Gleich Sandia National Laboratories iCME la/opt seminar 24 February 2011Thanks to Ali Pinar, Jaideep Ray, Tammy Supported by Sandia’s John von Neumann postdoctoral fellowshipKolda, C. Seshadhri, Rich Lehoucq, and and the DOE Office of Science’s ASCR Graphs project.Jure Leskovec for helpful discussions.Sandia National Laboratories is a multi-program laboratory managed and operated by Sandia Corporation, a wholly owned subsidiary of Lockheed Martin Corporation, for the U.S. Department of Energy’s National Nuclear Security Administration under contract DE-AC04-94AL85000.2/24/2011 Stanford ICME seminar 1/36
  2. 2. Tweet Along @dgleichThere’s information inside the spectra Words in dictionary definitions Internet router network 111,000 vertices, 2.7M edges 192k vetices, 1.2M edges Also noted in a study of smaller graphs by Banerjee and Jost (2009)2/24/2011 Stanford ICME seminar 2/36
  3. 3. Tweet Along @dgleichOverviewGraphs and their matricesData for our experimentsComputing spectra for large networksIssues with computing spectraMany examples of graph spectraConclusion Future work Images taken from Stanford, flickr, and Purdue, respectively2/24/2011 Stanford ICME seminar 3/36
  4. 4. Tweet Along @dgleich GRAPHS As well as things we AND THEIR already know about graph spectra. MATRICES2/24/2011 Stanford ICME seminar 4
  5. 5. Tweet Along @dgleichMatrices from graphsAdjacency matrix Not covered  Signless Laplacian matrix  if   Incidence matrix (It is incidentally discussed) Seidel matrixLaplacian matrix  Random walk matrix    Modularity matrix  Normalized Laplacian matrix    Everything is undirected.2/24/2011 Stanford ICME seminar 5/36
  6. 6. Tweet Along @dgleichWhy are we interested in the spectra?ModelingProperties Moments of the adjacencyAnomaliesRegularitiesNetwork Comparison Fay et al. 2010 – Weighted Spectral Density The network is as19971108 from Jure’s snap collect (a few thousand nodes) and we insert random connections from 50 nodes2/24/2011 Stanford ICME seminar 6/36
  7. 7. Tweet Along @dgleichSpectral bounds from Gerschgorin    (from a slightly different approach)2/24/2011 Stanford ICME seminar 7/36
  8. 8. Tweet Along @dgleichSemi-circle lawWigner’s semi-circle law Eigenvalues of a random symmetric matrix where each entry is independent have a semi-circle densityErdős–Rényi graphs obey a special case Image from Mathworld2/24/2011 Stanford ICME seminar 8/36
  9. 9. Tweet Along @dgleichErdős–Rényi Semi-circlesThe eigenvalues of the adjacency matrix for n=1000, averaged over 10 trialsSemi-circle with outlier if average degree is large enough. Observed by Farkas and in the book “Network Alignment” edited by Brandes (Chapter 14)2/24/2011 Stanford ICME seminar 9/36
  10. 10. Tweet Along @dgleichPrevious resultsFarkas et al. : Significant deviation from the semi-circle law for the adjacency matrixMihail and Papadimitriou : Leading eigenvalues of the adjacency matrix obey a power-law based on the degree-sequenceChung et al. : Normalized Laplacian still obeys a semi-circle lawBanerjee and Jost : Study of types of patterns that emerge in evolving graph models – explain many features of the spectra2/24/2011 Stanford ICME seminar 10/36
  11. 11. Tweet Along @dgleichIn comparison …We use “exact” computation of spectra, instead of approximation.We study “all” of the standard matrices over a range of large networks.Our “large” is bigger.We look at a few different random graph models.2/24/2011 Stanford ICME seminar 11/36
  12. 12. Tweet Along @dgleich DATA2/24/2011 Stanford ICME seminar 12
  13. 13. Tweet Along @dgleichData sources SNAP Various 100s-100,000s SNAP-p2p Gnutella Network 5-60k, ~30 inst. SNAP-as-733 Autonomous Sys. ~5,000, 733 inst. SNAP-caida Router networks ~20,000, ~125 inst. Pajek Various 100s-100,000s Models Copying Model 1k-100k 9 inst. 324 gs Pref. Attach 1k-100k 9 inst. 164 gs Forest Fire 1k-100k 9 inst. 324 gs Mine Various 2k-500k Newman Various Arenas Various Porter Facebook 100 schools, 5k-60k IsoRank, Natalie Protein-Protein <10k , 4 graphs Thanks to all who make data available2/24/2011 Stanford ICME seminar 13/36
  14. 14. Tweet Along @dgleichBig graphsArxiv 86376 1035126 Co-authorshipDblp 9356 356290 Co-authorshipDictionary(*) 111982 2750576 Word definitionsInternet(*) 124651 414428 RoutersItdk0304 190914 1215220 Routersp2p-Gnutella(*) 62561 295756 Peer-to-peerPatents(*) 230686 1109898 CitationsRoads 126146 323900 RoadsWordnet(*) 75606 240036 Word relationshipWeb-NotreDame 325729 2994268 Web2/24/2011 Stanford ICME seminar 14/36
  15. 15. Tweet Along @dgleichModelsPreferential AttachmentStart graph with a k-node clique. Add a new node and connect to k random nodes, chosen proportional to degree.Copying modelStart graph with a k-node clique. Add a new node and pick a parent uniformly at random. Copy edges of parent and make an error with probability  Forest FireStart graph with a k-node clique. Add a new node and pick a parent uniformly at random. Do a random “bfs’/”forest fire” and link to all nodes “burned”2/24/2011 Stanford ICME seminar 15/36
  16. 16. Tweet Along @dgleich COMPUTING SPECTRA OF LARGE NETWORKS2/24/2011 Stanford ICME seminar 16
  17. 17. Tweet Along @dgleichMatlab!Always a great starting point. My desktop has 24GB of RAM (less than $2500 now!)24GB/8 bytes (per double) = 3 billion numbers ~ 50,000-by-50,000 matrixPossibilities D = eig(A) – needs twice the memory for A,D [V,D] = eig(A) – needs three times the memory for A,D,VThese limit us to ~38000 and ~31000 respectively.2/24/2011 Stanford ICME seminar 17/36
  18. 18. Tweet Along @dgleichScaLAPACKLAPACK with distributed memory dense matricesScalapack uses a 2d block-cyclic dense matrix distribution2/24/2011 Stanford ICME seminar 18/36
  19. 19. Tweet Along @dgleichEigenvalues with ScaLAPACKMostly the same approach as in LAPACK1. Reduce to tridiagonal form (most time consuming part)2. Distribute tridiagonals to all processors3. Each processor finds all eigenvalues4. Each processor computes a subset of eigenvectorsUsing the MRRR algorithm steps 3 and 4 are more intricateand faster. MRRR due to Parlett and Dhillon; implemented in ScaLAPACK by Christof Vomel.2/24/2011 Stanford ICME seminar 19/36
  20. 20. Tweet Along @dgleichAlternativesUse ARPACK to get extremaUse ARPACK to get interior around   via the folded spectrum  Farkas et al. used this approach.2/24/2011 Stanford ICME seminar 20/36
  21. 21. Tweet Along @dgleich ISSUES WITH COMPUTING SPECTRA2/24/2011 Stanford ICME seminar 21
  22. 22. Tweet Along @dgleichBugs - Matlabeig(A)Returns incorrect eigenvectors Seems to be the result of a bug in Intel’s MKL library.2/24/2011 Stanford ICME seminar 22/36
  23. 23. Tweet Along @dgleichBug – ScaLAPACK defaultsudo apt-get install scalapack-openmpiAllocate 36000x36000 local matrixRun on 4 processorsCode crashes2/24/2011 Stanford ICME seminar 23/36
  24. 24. Tweet Along @dgleichBug - LAPACKScalapack MRRRCompare standard lapack/blas to atlas performanceResult: correct output from atlasResult: incorrect output from lapackHypothesis: lapack contains a known bug that’s apparently in the default ubuntu lapack2/24/2011 Stanford ICME seminar 24/36
  25. 25. Tweet Along @dgleichMoralAlways test your software.Extensively.2/24/2011 Stanford ICME seminar 25/36
  26. 26. Tweet Along @dgleich(Super)-ComputersRedsky 2x Intel Nehalem 2.9 GHz/8 core 12 GB/node 22TB memory total used up to 500 nodes/ 6 TB memoryHopper (I) 2x AMD quad-core 2.4 GHz/8 cores 16 GB/nodeCielo (testbed) 20 nodes2/24/2011 Stanford ICME seminar 26/36
  27. 27. Tweet Along @dgleichAdding MPI tasks vs. using threadsMost math libraries have threaded versions (Intel MKL, AMD ACML)Is it better to use threads or MPI tasks?It depends. Threads Ranks TimeThreads Ranks Time-T Time-E 1 64 1412.51 36 1271.4 339.0 4 16 1881.44 16 1058.1 456.6 16 4 Omitted. Normalized Laplacian for 36k-by-36k co-author graph of CondMat2/24/2011 Stanford ICME seminar 27/36
  28. 28. Tweet Along @dgleich Strong Parallel Scaling Time  Time in hours Good strong scaling up to 325,000 vertices Estimated time for 500,000 nodes 9 hours with 925 nodes (7400 procs)   2/24/2011 Stanford ICME seminar 28/36
  29. 29. Tweet Along @dgleich EXAMPLES2/24/2011 Stanford ICME seminar 29
  30. 30. Tweet Along @dgleichA $40,000 matrix computation2/24/2011 Stanford ICME seminar 30/36
  31. 31. Tweet Along @dgleichSpikes?2/24/2011 Stanford ICME seminar 31/36
  32. 32. Tweet Along @dgleichNullspaces of the adjacency matrix So unit eigenvalues of the normalized Laplacian are null- vectors of the adjacency matrix.2/24/2011 Stanford ICME seminar 32/36
  33. 33. Tweet Along @dgleichStanford’s Facebook Network Data from Mason Porter2/24/2011 Stanford ICME seminar 33/36
  34. 34. Tweet Along @dgleichMovies of spectra…As these models evolve, what do the spectra look like?2/24/2011 Stanford ICME seminar 34/36
  35. 35. Tweet Along @dgleich2/24/2011 Stanford ICME seminar 35/36
  36. 36. Code will be available eventually. Image from good financial cents.2/24/2011 Stanford ICME seminar 36 of <Total>
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×