SlideShare ist ein Scribd-Unternehmen logo
1 von 31
Downloaden Sie, um offline zu lesen
Web Science & Technologies
               University of Koblenz ▪ Landau, Germany




On the Spectral Evolution
   of Large Networks
        Jérôme Kunegis
Networks

                 …are everywhere
                                                                                               ip
                                                                                           r sh
                                                                                       tho
                                                                                     Au

                                                          ip
                                                       dsh
                                                Fr ien

                                                                                          t
                                                                                     Trus


                   o   n
             ic ati
         n
       mu                                                                                              e
Co
     m                                                                                            e nc
                                                               c
                                                                           ti   on         c   urr
                                                                      ra c             -oc
                                                               I   nte               Co


                       Jérôme Kunegis
                       kunegis@uni-koblenz.de        2 / 29
Social Network




               Person                Friendship




       Jérôme Kunegis
       kunegis@uni-koblenz.de   3 / 29
Trust Network


 Trust




         Jérôme Kunegis
         kunegis@uni-koblenz.de   4 / 29
Signed Social Network



    Friend
                                           Foe




         Jérôme Kunegis
         kunegis@uni-koblenz.de   5 / 29
Interaction Network




        Jérôme Kunegis
        kunegis@uni-koblenz.de   6 / 29
Recommender Systems


                                           :-(


  me


       Predict who I will add as friend next

Facebook's algorithm: find friends-of-friends

   → Problem: Rest of the network is ignored!

         Jérôme Kunegis
         kunegis@uni-koblenz.de   7 / 29
Outline


1.   Algebraic Link Prediction
2.   Spectral Transformations
3.   Learning Link Prediction




Take into account the whole network

          Jérôme Kunegis
          kunegis@uni-koblenz.de   8 / 29
Adjacency Matrix


                                 3


            1             2              4        5        6




                                                               1   2   3   4   5   6

Aij = 1 when i and j are connected                         1   0   1   0   0   0   0
Aij = 0 when i and j are not connected
                                                           2   1   0   1   1   0   0
                                                           3   0   1   0   1   0   0
                                                      A=
                                                           4   0   1   1   0   1   0
A is square and symmetric
                                                           5   0   0   0   1   0   1
                                                           6   0   0   0   0   1   0

                Jérôme Kunegis
                kunegis@uni-koblenz.de       9 / 29
Baseline: Friend of a Friend Model

    Count the number of ways a person can be found as
    the friend of a friend

    Matrix product AA = A2


                              2                                            3
        0   1   0   0   0   0   1     0      1   1   0     0
        1   0   1   1   0   0   0     3      1   1   1     0
A   2
      =
        0
        0
            1
            1
                0
                1
                    1
                    0
                        0
                        1
                            0
                            0
                              =
                                1
                                1
                                      1
                                      1
                                             2
                                             1
                                                 1
                                                 3
                                                     1
                                                     0
                                                           0
                                                           1
        0   0   0   1   0   1   0     1      1   0   2     0       1   2       4
        0   0   0   0   1   0   0     0      0   1   0     1




                    Jérôme Kunegis
                    kunegis@uni-koblenz.de               10 / 29
Friend of a Friend of a Friend
                                 3


        1                2               4            5                6



Compute the number of friends-of-friends-of-friends:
                                                  1   2    3   4   5       6
                                             3
                 0   1       0   0   0   0        0    3   1   1   1       0   1
                 1   0       1   1   0   0        3    2   4   5   1       1   2

    A3 =         0
                 0
                     1
                     1
                             0
                             1
                                 1
                                 0
                                     0
                                     1
                                         0
                                         0   =    1
                                                  1
                                                       4
                                                       5
                                                           2
                                                           4
                                                               4
                                                               2
                                                                   1
                                                                   4
                                                                           1
                                                                           0
                                                                               3
                                                                               4
                 0   0       0   1   0   1        1    1   1   4   0       2   5
                 0   0       0   0   1   0        0    1   1   0   2       0   6



                  Problem: A3 is not sparse!

            Jérôme Kunegis
            kunegis@uni-koblenz.de               11 / 29
Eigenvalue Decomposition




                           A = UΛUT


where
  U are the eigenvectors                   U TU = I
  Λ are the eigenvalues                    Λij = 0 when i ≠ j




        Jérôme Kunegis
        kunegis@uni-koblenz.de   12 / 29
Computing A3


Use the eigenvalue decomposition A = UΛUT

        A3 = UΛUT UΛUT UΛUT = UΛ3UT

Exploit U and Λ:

  U TU = I       because U contains eigenvectors
 (Λ )   = Λiik  because Λ contains eigenvalues
    k
      ii


Result: Just cube all eigenvalues!


         Jérôme Kunegis
         kunegis@uni-koblenz.de   13 / 29
Matrix Exponential
                                     3

        0.98                                                                0.76             0.22
           1                 2              4                5                 6                 7




       exp(A) = I + A + 1/2 A2 + 1/6 A3 + . . .
                                                1     2          3      4          5     6           7
       0   1     0   0   0       0   0     1 . 66   1 . 72   0 .93    0 . 98   0 . 28   0 . 06   0 . 01 1
       1   0     1   1   0       0   0     1. 72    3 . 57   2. 70    2 . 93   1. 04    0. 29    0 . 06 2
       0   1     0   1   0       0   0     0 . 93   2 .70    2. 86    2. 71    0 . 99   0 . 28   0 . 06 3
 exp   0   1     1   0   1       0   0   = 0 . 98   2 . 93   2 .71    3 . 63   1. 95    0 . 76   0 . 22 4
       0   0     0   1   0       1   0     0 . 28   1. 04    0 . 99   1 . 95   2 .35    1. 59    0 . 64 5
       0   0     0   0   1       0   1     0 . 06   0 . 29   0 .28    0 . 76   1 .59    2. 23    1 .38 6
       0   0     0   0   0       1   0     0. 01    0 . 06   0. 06    0 . 22   0 .64    1 . 38   1 .59 7




               Jérôme Kunegis
               kunegis@uni-koblenz.de                14 / 29
Spectral Transformations




   A2 = UΛ2UT                     Friend of a friend
   A = UΛ UT
     3            3
                                  Friend of a friend of a friend
exp(A) = Uexp(Λ)UT                Matrix exponential



                          …are link prediction functions!


         Jérôme Kunegis
         kunegis@uni-koblenz.de   15 / 29
Outline


  1.      Algebraic Link Prediction
  2.      Spectral Transformations
  3.      Learning Link Prediction




               Why does it work?

          Jérôme Kunegis
          kunegis@uni-koblenz.de   16 / 29
Looking at Real Facebook Data

Dataset:     Facebook New Orleans
             (Viswanath et al. 2009)


63,731 persons
1,545,686 friendship links with creation dates

Adjacency matrix At at time t                 (t = 1 . . . 75)

Compute all eigenvalue decompositions At = UtΛtUtT


           Jérôme Kunegis
           kunegis@uni-koblenz.de   17 / 29
Evolution of Eigenvalues

                       Constant eigenvalue
     (Λt)ii



                                             Growing eigenvalue




        Jérôme Kunegis
        kunegis@uni-koblenz.de     18 / 29
Eigenvector Evolution

Cosine similarity between (Ut)•i and (Ut+x)•i




                      Constant




                                            Sudden change




         Jérôme Kunegis
         kunegis@uni-koblenz.de   19 / 29
Eigenvector Permutation

Time split:            old edges A = UΛUT
                       new edges B = VDVT




Eigenvectors permute




                              |U•i∙   V•j|

             Jérôme Kunegis
             kunegis@uni-koblenz.de     20 / 29
Outline


1.     Algebraic Link Prediction
2.     Spectral Transformations
3.     Learning Link Prediction
     a) Learning by Extrapolation
     b) Learning by Curve Fitting




What spectral transformation is best?
          Jérôme Kunegis
          kunegis@uni-koblenz.de   21 / 29
a) Learning by Extrapolation                         CIKM 2010




 Extrapolate the growth of the spectrum

                                           Good when growth
                                              is irregular




                                           Potential problem:
                                               overfitting




        Jérôme Kunegis
        kunegis@uni-koblenz.de   22 / 29
b) Learning by Curve Fitting

                                    f
       A                                        B
      UΛUT                                      B
        Λ                                      UTBU



                                    f

                                 Diagonal


        Jérôme Kunegis
        kunegis@uni-koblenz.de       23 / 29
Curve Fitting


 (UTBU)ii




                                           Λii
        Jérôme Kunegis
        kunegis@uni-koblenz.de   24 / 29
Polynomial Curve Fitting

Fit a polynomial             a + bx + cx2 + dx3 + ex4




         Jérôme Kunegis
         kunegis@uni-koblenz.de   25 / 29
Other Curves                                                   ICML 2009




                                          Friend of a Friend
                                          a + bx + cx2
                                          Polynomial
                                          a + bx + cx2 + dx3 + ex4
                                          Nonnegative polynomial
                                          a + . . . + hx7 a, . . ., h ≥ 0
                                          Matrix exponential
                                          b exp(ax)
                                          Neumann kernel
                                          b / (1 − ax)
                                          Rank reduction
                                          ax if |x| ≥ x0, 0 otherwise



       Jérôme Kunegis
       kunegis@uni-koblenz.de   26 / 29
Evaluation Methodology



                              All edges E
          Training set Ea ∪ Eb
                          ˙                        Apply   Test set Ec

 Source set Ea     Learn           Target set Eb

                           Edge creation time




  3-way split of edge set by edge creation time


          Jérôme Kunegis
          kunegis@uni-koblenz.de         27 / 29
Experiments

 Precision of link prediction (1 = perfect)




                                 All datasets available at konect.uni-koblenz.de

        Jérôme Kunegis
        kunegis@uni-koblenz.de   28 / 29
Conclusion

●
    Observation
     ●
       Eigenvalue change, eigenvectors are constant

●
    Why?
     ●
       Graph kernels, triangle closing, the sum-over-paths model,
       rank reduction, etc.

●
    Application to recommender systems
     ●
       By learning the spectral transformation for a given dataset




             ACKNOWLEDGMENTS         →
                                                           Thank You!
            Jérôme Kunegis
            kunegis@uni-koblenz.de   29 / 29
Selected Publications

The Slashdot Zoo: Mining a social network with negative edges
J. Kunegis, A. Lommatzsch and C. Bauckhage
In Proc. World Wide Web Conf., pp. 741–750, 2009.
Learning spectral graph transformations for link prediction
J. Kunegis and A. Lommatzsch
In Proc. Int. Conf. on Machine Learning, pp. 561–568, 2009.
Spectral analysis of signed graphs for clustering, prediction and
visualization
J. Kunegis, S. Schmidt, A. Lommatzsch and J. Lerner
In Proc. SIAM Int. Conf. on Data Mining, pp. 559–570, 2010.
Network growth and the spectral evolution model
J. Kunegis, D. Fay and C. Bauckhage
In Proc. Conf. on Information and Knowledge Management,
pp. 739–748, 2010.

             Jérôme Kunegis
             kunegis@uni-koblenz.de   30 / 29
References

B. Viswanath, A. Mislove, M. Cha, K. P. Gummadi, On
the evolution of user interaction in Facebook. In Proc.
Workshop on Online Social Networks, pp. 37–42, 2009.




          Jérôme Kunegis
          kunegis@uni-koblenz.de   31 / 29

Weitere ähnliche Inhalte

Mehr von Jérôme KUNEGIS

Generating Networks with Arbitrary Properties
Generating Networks with Arbitrary PropertiesGenerating Networks with Arbitrary Properties
Generating Networks with Arbitrary Properties
Jérôme KUNEGIS
 
Preferential Attachment in Online Networks: Measurement and Explanations
Preferential Attachment in Online Networks:  Measurement and ExplanationsPreferential Attachment in Online Networks:  Measurement and Explanations
Preferential Attachment in Online Networks: Measurement and Explanations
Jérôme KUNEGIS
 
Predicting Directed Links using Nondiagonal Matrix Decompositions
Predicting Directed Links using Nondiagonal Matrix DecompositionsPredicting Directed Links using Nondiagonal Matrix Decompositions
Predicting Directed Links using Nondiagonal Matrix Decompositions
Jérôme KUNEGIS
 
Why Beyoncé Is More Popular Than Me – Fairness, Diversity and Other Measures
Why Beyoncé Is More Popular Than Me – Fairness, Diversity and Other MeasuresWhy Beyoncé Is More Popular Than Me – Fairness, Diversity and Other Measures
Why Beyoncé Is More Popular Than Me – Fairness, Diversity and Other Measures
Jérôme KUNEGIS
 
Fairness on the Web: Alternatives to the Power Law (WebSci 2012)
Fairness on the Web:  Alternatives to the Power Law (WebSci 2012)Fairness on the Web:  Alternatives to the Power Law (WebSci 2012)
Fairness on the Web: Alternatives to the Power Law (WebSci 2012)
Jérôme KUNEGIS
 
Searching Microblogs: Coping with Sparsity and Document Quality
Searching Microblogs: Coping with Sparsity and Document QualitySearching Microblogs: Coping with Sparsity and Document Quality
Searching Microblogs: Coping with Sparsity and Document Quality
Jérôme KUNEGIS
 

Mehr von Jérôme KUNEGIS (19)

Generating Networks with Arbitrary Properties
Generating Networks with Arbitrary PropertiesGenerating Networks with Arbitrary Properties
Generating Networks with Arbitrary Properties
 
Karriere Lounge – INFORMATIK 2013
Karriere Lounge – INFORMATIK 2013Karriere Lounge – INFORMATIK 2013
Karriere Lounge – INFORMATIK 2013
 
Eight Formalisms for Defining Graph Models
Eight Formalisms for Defining Graph ModelsEight Formalisms for Defining Graph Models
Eight Formalisms for Defining Graph Models
 
What Is the Added Value of Negative Links in Online Social Networks?
What Is the Added Value of Negative Links in Online Social Networks?What Is the Added Value of Negative Links in Online Social Networks?
What Is the Added Value of Negative Links in Online Social Networks?
 
KONECT – The Koblenz Network Collection
KONECT – The Koblenz Network CollectionKONECT – The Koblenz Network Collection
KONECT – The Koblenz Network Collection
 
Preferential Attachment in Online Networks: Measurement and Explanations
Preferential Attachment in Online Networks:  Measurement and ExplanationsPreferential Attachment in Online Networks:  Measurement and Explanations
Preferential Attachment in Online Networks: Measurement and Explanations
 
Predicting Directed Links using Nondiagonal Matrix Decompositions
Predicting Directed Links using Nondiagonal Matrix DecompositionsPredicting Directed Links using Nondiagonal Matrix Decompositions
Predicting Directed Links using Nondiagonal Matrix Decompositions
 
Online Dating Recommender Systems: The Split-complex Number Approach
Online Dating Recommender Systems: The Split-complex Number ApproachOnline Dating Recommender Systems: The Split-complex Number Approach
Online Dating Recommender Systems: The Split-complex Number Approach
 
Why Beyoncé Is More Popular Than Me – Fairness, Diversity and Other Measures
Why Beyoncé Is More Popular Than Me – Fairness, Diversity and Other MeasuresWhy Beyoncé Is More Popular Than Me – Fairness, Diversity and Other Measures
Why Beyoncé Is More Popular Than Me – Fairness, Diversity and Other Measures
 
Fairness on the Web: Alternatives to the Power Law (WebSci 2012)
Fairness on the Web:  Alternatives to the Power Law (WebSci 2012)Fairness on the Web:  Alternatives to the Power Law (WebSci 2012)
Fairness on the Web: Alternatives to the Power Law (WebSci 2012)
 
Fairness on the Web: Alternatives to the Power Law
Fairness on the Web:  Alternatives to the Power LawFairness on the Web:  Alternatives to the Power Law
Fairness on the Web: Alternatives to the Power Law
 
KONECT Cloud – Large Scale Network Mining in the Cloud
KONECT Cloud – Large Scale Network Mining in the CloudKONECT Cloud – Large Scale Network Mining in the Cloud
KONECT Cloud – Large Scale Network Mining in the Cloud
 
Searching Microblogs: Coping with Sparsity and Document Quality
Searching Microblogs: Coping with Sparsity and Document QualitySearching Microblogs: Coping with Sparsity and Document Quality
Searching Microblogs: Coping with Sparsity and Document Quality
 
Bad News Travel Fast: A Content-based Analysis of Interestingness on Twitter
Bad News Travel Fast: A Content-based Analysis of Interestingness on TwitterBad News Travel Fast: A Content-based Analysis of Interestingness on Twitter
Bad News Travel Fast: A Content-based Analysis of Interestingness on Twitter
 
On the Scalability of Graph Kernels Applied to Collaborative Recommenders
On the Scalability of Graph Kernels Applied to Collaborative RecommendersOn the Scalability of Graph Kernels Applied to Collaborative Recommenders
On the Scalability of Graph Kernels Applied to Collaborative Recommenders
 
Learning Spectral Graph Transformations for Link Prediction
Learning Spectral Graph Transformations for Link PredictionLearning Spectral Graph Transformations for Link Prediction
Learning Spectral Graph Transformations for Link Prediction
 
The Slashdot Zoo: Mining a Social Network with Negative Edges
The Slashdot Zoo:  Mining a Social Network with Negative EdgesThe Slashdot Zoo:  Mining a Social Network with Negative Edges
The Slashdot Zoo: Mining a Social Network with Negative Edges
 
Spectral Analysis of Signed Graphs for Clustering, Prediction and Visualization
Spectral Analysis of Signed Graphs for Clustering, Prediction and VisualizationSpectral Analysis of Signed Graphs for Clustering, Prediction and Visualization
Spectral Analysis of Signed Graphs for Clustering, Prediction and Visualization
 
Network Growth and the Spectral Evolution Model
Network Growth and the Spectral Evolution ModelNetwork Growth and the Spectral Evolution Model
Network Growth and the Spectral Evolution Model
 

Kürzlich hochgeladen

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
ssuserdda66b
 

Kürzlich hochgeladen (20)

Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 

On the Spectral Evolution of Large Networks (PhD Thesis by Jérôme Kunegis)

  • 1. Web Science & Technologies University of Koblenz ▪ Landau, Germany On the Spectral Evolution of Large Networks Jérôme Kunegis
  • 2. Networks …are everywhere ip r sh tho Au ip dsh Fr ien t Trus o n ic ati n mu e Co m e nc c ti on c urr ra c -oc I nte Co Jérôme Kunegis kunegis@uni-koblenz.de 2 / 29
  • 3. Social Network Person Friendship Jérôme Kunegis kunegis@uni-koblenz.de 3 / 29
  • 4. Trust Network Trust Jérôme Kunegis kunegis@uni-koblenz.de 4 / 29
  • 5. Signed Social Network Friend Foe Jérôme Kunegis kunegis@uni-koblenz.de 5 / 29
  • 6. Interaction Network Jérôme Kunegis kunegis@uni-koblenz.de 6 / 29
  • 7. Recommender Systems :-( me Predict who I will add as friend next Facebook's algorithm: find friends-of-friends → Problem: Rest of the network is ignored! Jérôme Kunegis kunegis@uni-koblenz.de 7 / 29
  • 8. Outline 1. Algebraic Link Prediction 2. Spectral Transformations 3. Learning Link Prediction Take into account the whole network Jérôme Kunegis kunegis@uni-koblenz.de 8 / 29
  • 9. Adjacency Matrix 3 1 2 4 5 6 1 2 3 4 5 6 Aij = 1 when i and j are connected 1 0 1 0 0 0 0 Aij = 0 when i and j are not connected 2 1 0 1 1 0 0 3 0 1 0 1 0 0 A= 4 0 1 1 0 1 0 A is square and symmetric 5 0 0 0 1 0 1 6 0 0 0 0 1 0 Jérôme Kunegis kunegis@uni-koblenz.de 9 / 29
  • 10. Baseline: Friend of a Friend Model Count the number of ways a person can be found as the friend of a friend Matrix product AA = A2 2 3 0 1 0 0 0 0 1 0 1 1 0 0 1 0 1 1 0 0 0 3 1 1 1 0 A 2 = 0 0 1 1 0 1 1 0 0 1 0 0 = 1 1 1 1 2 1 1 3 1 0 0 1 0 0 0 1 0 1 0 1 1 0 2 0 1 2 4 0 0 0 0 1 0 0 0 0 1 0 1 Jérôme Kunegis kunegis@uni-koblenz.de 10 / 29
  • 11. Friend of a Friend of a Friend 3 1 2 4 5 6 Compute the number of friends-of-friends-of-friends: 1 2 3 4 5 6 3 0 1 0 0 0 0 0 3 1 1 1 0 1 1 0 1 1 0 0 3 2 4 5 1 1 2 A3 = 0 0 1 1 0 1 1 0 0 1 0 0 = 1 1 4 5 2 4 4 2 1 4 1 0 3 4 0 0 0 1 0 1 1 1 1 4 0 2 5 0 0 0 0 1 0 0 1 1 0 2 0 6 Problem: A3 is not sparse! Jérôme Kunegis kunegis@uni-koblenz.de 11 / 29
  • 12. Eigenvalue Decomposition A = UΛUT where U are the eigenvectors U TU = I Λ are the eigenvalues Λij = 0 when i ≠ j Jérôme Kunegis kunegis@uni-koblenz.de 12 / 29
  • 13. Computing A3 Use the eigenvalue decomposition A = UΛUT A3 = UΛUT UΛUT UΛUT = UΛ3UT Exploit U and Λ:  U TU = I because U contains eigenvectors  (Λ ) = Λiik because Λ contains eigenvalues k ii Result: Just cube all eigenvalues! Jérôme Kunegis kunegis@uni-koblenz.de 13 / 29
  • 14. Matrix Exponential 3 0.98 0.76 0.22 1 2 4 5 6 7 exp(A) = I + A + 1/2 A2 + 1/6 A3 + . . . 1 2 3 4 5 6 7 0 1 0 0 0 0 0 1 . 66 1 . 72 0 .93 0 . 98 0 . 28 0 . 06 0 . 01 1 1 0 1 1 0 0 0 1. 72 3 . 57 2. 70 2 . 93 1. 04 0. 29 0 . 06 2 0 1 0 1 0 0 0 0 . 93 2 .70 2. 86 2. 71 0 . 99 0 . 28 0 . 06 3 exp 0 1 1 0 1 0 0 = 0 . 98 2 . 93 2 .71 3 . 63 1. 95 0 . 76 0 . 22 4 0 0 0 1 0 1 0 0 . 28 1. 04 0 . 99 1 . 95 2 .35 1. 59 0 . 64 5 0 0 0 0 1 0 1 0 . 06 0 . 29 0 .28 0 . 76 1 .59 2. 23 1 .38 6 0 0 0 0 0 1 0 0. 01 0 . 06 0. 06 0 . 22 0 .64 1 . 38 1 .59 7 Jérôme Kunegis kunegis@uni-koblenz.de 14 / 29
  • 15. Spectral Transformations A2 = UΛ2UT Friend of a friend A = UΛ UT 3 3 Friend of a friend of a friend exp(A) = Uexp(Λ)UT Matrix exponential …are link prediction functions! Jérôme Kunegis kunegis@uni-koblenz.de 15 / 29
  • 16. Outline 1. Algebraic Link Prediction 2. Spectral Transformations 3. Learning Link Prediction Why does it work? Jérôme Kunegis kunegis@uni-koblenz.de 16 / 29
  • 17. Looking at Real Facebook Data Dataset: Facebook New Orleans (Viswanath et al. 2009) 63,731 persons 1,545,686 friendship links with creation dates Adjacency matrix At at time t (t = 1 . . . 75) Compute all eigenvalue decompositions At = UtΛtUtT Jérôme Kunegis kunegis@uni-koblenz.de 17 / 29
  • 18. Evolution of Eigenvalues Constant eigenvalue (Λt)ii Growing eigenvalue Jérôme Kunegis kunegis@uni-koblenz.de 18 / 29
  • 19. Eigenvector Evolution Cosine similarity between (Ut)•i and (Ut+x)•i Constant Sudden change Jérôme Kunegis kunegis@uni-koblenz.de 19 / 29
  • 20. Eigenvector Permutation Time split: old edges A = UΛUT new edges B = VDVT Eigenvectors permute |U•i∙ V•j| Jérôme Kunegis kunegis@uni-koblenz.de 20 / 29
  • 21. Outline 1. Algebraic Link Prediction 2. Spectral Transformations 3. Learning Link Prediction a) Learning by Extrapolation b) Learning by Curve Fitting What spectral transformation is best? Jérôme Kunegis kunegis@uni-koblenz.de 21 / 29
  • 22. a) Learning by Extrapolation CIKM 2010 Extrapolate the growth of the spectrum Good when growth is irregular Potential problem: overfitting Jérôme Kunegis kunegis@uni-koblenz.de 22 / 29
  • 23. b) Learning by Curve Fitting f A B UΛUT B Λ UTBU f Diagonal Jérôme Kunegis kunegis@uni-koblenz.de 23 / 29
  • 24. Curve Fitting (UTBU)ii Λii Jérôme Kunegis kunegis@uni-koblenz.de 24 / 29
  • 25. Polynomial Curve Fitting Fit a polynomial a + bx + cx2 + dx3 + ex4 Jérôme Kunegis kunegis@uni-koblenz.de 25 / 29
  • 26. Other Curves ICML 2009 Friend of a Friend a + bx + cx2 Polynomial a + bx + cx2 + dx3 + ex4 Nonnegative polynomial a + . . . + hx7 a, . . ., h ≥ 0 Matrix exponential b exp(ax) Neumann kernel b / (1 − ax) Rank reduction ax if |x| ≥ x0, 0 otherwise Jérôme Kunegis kunegis@uni-koblenz.de 26 / 29
  • 27. Evaluation Methodology All edges E Training set Ea ∪ Eb ˙ Apply Test set Ec Source set Ea Learn Target set Eb Edge creation time 3-way split of edge set by edge creation time Jérôme Kunegis kunegis@uni-koblenz.de 27 / 29
  • 28. Experiments Precision of link prediction (1 = perfect) All datasets available at konect.uni-koblenz.de Jérôme Kunegis kunegis@uni-koblenz.de 28 / 29
  • 29. Conclusion ● Observation ● Eigenvalue change, eigenvectors are constant ● Why? ● Graph kernels, triangle closing, the sum-over-paths model, rank reduction, etc. ● Application to recommender systems ● By learning the spectral transformation for a given dataset ACKNOWLEDGMENTS → Thank You! Jérôme Kunegis kunegis@uni-koblenz.de 29 / 29
  • 30. Selected Publications The Slashdot Zoo: Mining a social network with negative edges J. Kunegis, A. Lommatzsch and C. Bauckhage In Proc. World Wide Web Conf., pp. 741–750, 2009. Learning spectral graph transformations for link prediction J. Kunegis and A. Lommatzsch In Proc. Int. Conf. on Machine Learning, pp. 561–568, 2009. Spectral analysis of signed graphs for clustering, prediction and visualization J. Kunegis, S. Schmidt, A. Lommatzsch and J. Lerner In Proc. SIAM Int. Conf. on Data Mining, pp. 559–570, 2010. Network growth and the spectral evolution model J. Kunegis, D. Fay and C. Bauckhage In Proc. Conf. on Information and Knowledge Management, pp. 739–748, 2010. Jérôme Kunegis kunegis@uni-koblenz.de 30 / 29
  • 31. References B. Viswanath, A. Mislove, M. Cha, K. P. Gummadi, On the evolution of user interaction in Facebook. In Proc. Workshop on Online Social Networks, pp. 37–42, 2009. Jérôme Kunegis kunegis@uni-koblenz.de 31 / 29