Networks with Signed Edges

Slides:



Advertisements
Similar presentations
Mining of Massive Datasets Jure Leskovec, Anand Rajaraman, Jeff Ullman Stanford University Note to other teachers and users of these.
Advertisements

Leting Wu Xiaowei Ying, Xintao Wu Aidong Lu and Zhi-Hua Zhou PAKDD 2011 Spectral Analysis of k-balanced Signed Graphs 1.
Λ14 Διαδικτυακά Κοινωνικά Δίκτυα και Μέσα Positive and Negative Relationships Chapter 5, from D. Easley and J. Kleinberg book.
Λ14 Διαδικτυακά Κοινωνικά Δίκτυα και Μέσα Strong and Weak Ties Chapter 3, from D. Easley and J. Kleinberg book.
Jure Leskovec, CMU Lars Backstrom, Cornell Ravi Kumar, Yahoo! Research Andrew Tomkins, Yahoo! Research.
The Structure of Networks with emphasis on information and social networks T-214-SINE Summer 2011 Chapter 3 Ýmir Vigfússon.
Based on chapter 3 in Networks, Crowds and markets (by Easley and Kleinberg) Roy Mitz Supervised by: Prof. Ronitt Rubinfeld November 2014 Strong and weak.
J. Leskovec, D. Huttenlocher, J. Kleinberg Paper Review by Rachel Katz S IGNED N ETWORKS IN S OCIAL M EDIA.
Selected Topics in Data Networking
Propagation of Trust and Distrust Antti Sorjamaa Propagation of Trust and Distrust R. Guha, R. Kumar, P. Raghavan and A. Tomkins New York, 2004 Antti Sorjamaa.
Guha et al (WWW 2004). Growing economic motivation to spread information & DISINFORMATION. Open standards and low barrier to publication on the Web. Unscrupulous.
1 Yuxiao Dong *$, Jie Tang $, Sen Wu $, Jilei Tian # Nitesh V. Chawla *, Jinghai Rao #, Huanhuan Cao # Link Prediction and Recommendation across Multiple.
Directional triadic closure and edge deletion mechanism induce asymmetry in directed edge properties.
Web Projections Learning from Contextual Subgraphs of the Web Jure Leskovec, CMU Susan Dumais, MSR Eric Horvitz, MSR.
Network Measures Social Media Mining. 2 Measures and Metrics 2 Social Media Mining Network Measures Klout.
An Experimental Comparison of Click Position-Bias Models Nick Craswell Onno Zoeter Michael Taylor Bill Ramsey Microsoft Research.
Jure Leskovec Stanford University. Large on-line applications with hundreds of millions of users The Web is my “laboratory” for understanding the pulse.
Using Transactional Information to Predict Link Strength in Online Social Networks Indika Kahanda and Jennifer Neville Purdue University.
Know your Neighbors: Web Spam Detection Using the Web Topology Presented By, SOUMO GORAI Carlos Castillo(1), Debora Donato(1), Aristides Gionis(1), Vanessa.
Web Science Course Lecture: Social Networks - * Dr. Stefan Siersdorfer 1 * Figures from Easley and Kleinberg 2010 (
Online Social Networks and Media Homophilly Networks with Positive and Negative ties.
Predicting Positive and Negative Links in Online Social Networks
Λ14 Διαδικτυακά Κοινωνικά Δίκτυα και Μέσα Networks and Surrounding Contexts Chapter 4, from D. Easley and J. Kleinberg book.
Today Ensemble Methods. Recap of the course. Classifier Fusion
Online Social Networks and Media
Measuring Behavioral Trust in Social Networks
+ Big Data, Network Analysis Week How is date being used Predict Presidential Election - Nate Silver –
Jure Leskovec Kevin J. Lang Anirban Dasgupta Michael W. Mahoney WWW’ 2008 Statistical Properties of Community Structure in Large Social and Information.
Jure Leskovec (Stanford), Daniel Huttenlocher and Jon Kleinberg (Cornell)
Supervised Random Walks: Predicting and Recommending Links in Social Networks Lars Backstrom (Facebook) & Jure Leskovec (Stanford) Proc. of WSDM 2011 Present.
Antisocial Behavior in Online Discussion Communities Authors: Justin Cheng, Cristian Danescu-Niculescu-Mizily, Jure Leskovec Presented by: Ananya Subburathinam.
Social Networks Strong and Weak Ties
Negative Link Prediction and Its Applications in Online Political Networks Mehmet Yigit Yildirim Mert Ozer Hasan Davulcu.
Effects of User Similarity in Social Media Ashton Anderson Jure Leskovec Daniel Huttenlocher Jon Kleinberg Stanford University Cornell University Avia.
Sofus A. Macskassy Fetch Technologies
Biological networks CS 5263 Bioinformatics.
User Joining Behavior in Online Forums
Lecture 9 Measures and Metrics.
Predicting Positive and Negative Links in Online Social Networks
Edge Weight Prediction in Weighted Signed Networks
Social and Information Network Analysis: Review of Key Concepts
Community detection in graphs
Social Balance & Transitivity
Lecture 10 Measures and Metrics.
The Structure of Information Networks
Using Friendship Ties and Family Circles for Link Prediction
Section 8.6 of Newman’s book: Clustering Coefficients
Models of Network Formation
Lecture 13 Network evolution
Learning Emoji Embeddings Using Emoji Co-Occurrence Network Graph
Models of Network Formation
Why Social Graphs Are Different Communities Finding Triangles
The Structure of Information Networks
+ – If we look at any two people in the group in isolation,
Models of Network Formation
Structural balance.
Models of Network Formation
Social Balance & Transitivity
Jinhong Jung, Woojung Jin, Lee Sael, U Kang, ICDM ‘16
Clustering Coefficients
Emotions in Social Networks: Distributions, Patterns, and Models
CS 594: Empirical Methods in HCC Social Network Analysis in HCI
Networks with Signed Edges
CS224w: Social and Information Network Analysis
Support Vector Machines and Kernels
GANG: Detecting Fraudulent Users in OSNs
Lecture 21 Network evolution
Practical Applications Using igraph in R Roger Stanton
Affiliation Network Models of Clusters in Networks
Analysis of Large Graphs: Overlapping Communities
Presentation transcript:

Networks with Signed Edges CS224W: Social and Information Network Analysis Jure Leskovec, Stanford University http://cs224w.stanford.edu

Today: Signed Networks - + Networks with positive and negative relationships Our basic unit of investigation will be signed triangles First we will talk about undirected nets then directed Plan for today: Model: Consider two soc. theories of signed nets Data: Reason about them in large online networks Application: Predict if A and B are linked with + or - - + 11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

Signed Networks Networks with positive and negative relationships Consider an undirected complete graph Label each edge as either: Positive: friendship, trust, positive sentiment, … Negative: enemy, distrust, negative sentiment, … Examine triples of connected nodes A, B, C 11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

Theory of Structural Balance Start with the intuition [Heider ’46]: Friend of my friend is my friend Enemy of enemy is my friend Enemy of friend is my enemy Look at connected triples of nodes: - + - + + - Unbalanced Balanced Consistent with “friend of a friend” or “enemy of the enemy” intuition Inconsistent with the “friend of a friend” or “enemy of the enemy” intuition 11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

Balanced/Unbalanced Networks Graph is balanced if every connected triple of nodes has: all 3 edges labeled +, or exactly 1 edge labeled + Unbalanced Balanced 11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

Local Balance  Global Factions Balance implies global coalitions [Cartwright-Harary] If all triangles are balanced, then either: The network contains only positive edges, or Nodes can be split into 2 sets where negative edges only point between the sets + L R - + 11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

– + – + + – + Analysis of Balance B D A C E R L Every node in L is enemy of R – B D + – + Any 2 nodes in L are friends + Any 2 nodes in R are friends A – + R C E L Friends of A Enemies of A 11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

Example: International Relations Positive edge: alliance Negative edge: animosity Separation of Bangladesh from Pakistan in 1971: US supports Pakistan. Why? USSR was enemy of China China was enemy of India India was enemy of Pakistan US was friendly with China China vetoed Bangladesh from U.N. B – –? – P I + – +? C + – U R 11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

Balance in General Networks Def 1: Local view Fill in the missing edges to achieve balance Def 2: Global view Divide the graph into two coalitions The 2 defs. are equivalent! - + Balanced? 11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

Is a Signed Network Balanced? Graph is balanced if and only if it contains no cycle with an odd number of negative edges. How to compute this? Find connected components on + edges For each component create a super-node Connect components A and B if there is a negative edge between the members Assign super-nodes to sides using BFS 11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

Signed Graph: Is it Balanced? 11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

Positive Connected Components 11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

Reduced Graph on Super-Nodes 11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

BFS on Reduced Graph Using BFS assign each node a side Graph is unbalanced if any two super-nodes are assigned the same side L R R L L L R Unbalanced! 11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

Real Large Signed Networks [CHI ‘10] Real Large Signed Networks Each link AB is explicitly tagged with a sign: Epinions: Trust/Distrust Does A trust B’s product reviews? (only positive links are visible) Wikipedia: Support/Oppose Does A support B to become Wikipedia administrator? Slashdot: Friend/Foe Does A like B’s comments? Other examples: Online multiplayer games + – MAKE IT DIRECTED 11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

Balance in Our Network Data [CHI ‘10] Balance in Our Network Data Does structural balance hold? + x – Triad Epinions Wikipedia Balance P(T) P0(T) 0.87 0.62 0.70 0.49  0.07 0.05 0.21 0.10 0.32 0.08 0.007 0.003 0.011 0.010  + - + Real data + – + - x x - x x P(T) … probability of a triad P0(T)… triad probability if the signs would be random x Shuffled data 11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

Global Structure of Signed Nets Intuitive picture of social network in terms of densely linked clusters How does structure interact with links? Embeddedness of link (A,B): Number of shared neighbors Suggest the “coalitions” structure of networks

Global Factions: Embeddedness [CHI ‘10] Global Factions: Embeddedness Epinions Embeddedness of ties: Positive ties tend to be more embedded Positive ties tend to be more clumped together Public display of signs (votes) in Wikipedia further attenuates this Wikipedia 11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

Global Structure of Signed Nets [CHI ‘10] Global Structure of Signed Nets Clustering: +net: More clustering than baseline –net: Less clustering than baseline Size of connected component: +/–net: Smaller than the baseline + - Suggest tha “coalitions” structure of networks 11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

Evolving Directed Networks [CHI ‘10] Evolving Directed Networks New setting: Links are directed and created over time How many  are now explained by balance? Only half (8 out of 16) Is there a better explanation? Yes. Status.     - + - +     B X A  + - +  -    - + - +     16 *2 signed directed triads 11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

Alternate Theory: Status [CHI ‘10] Alternate Theory: Status Links are directed and created over time Status theory [Davis-Leinhardt ‘68, Guha et al. ’04, Leskovec et al. ‘10] Link A  B means: B has higher status than A Link A  B means: B has lower status than A Status and balance give different predictions: + – X X - + - + A B A B Balance: + Status: – Balance: + Status: – 11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

+ + ?   Theory of Status Edges are directed [CHI ‘10] Theory of Status Edges are directed Edges are created over time X has links to A and B Now, A links to B (triad A-B-X) How does sign of A-B depend signs of X? We need to formalize: Links are embedded in triads: Provides context for signs Users are heterogeneous in their linking behavior X + + A B ? X   A B 11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

16 Types of Context Link (A,B) appears in the context (A,B; X) [CHI ‘10] 16 Types of Context Link (A,B) appears in the context (A,B; X) 16 different contextualized links: 11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

Generative (Receptive) Surprise [CHI ‘10] Generative (Receptive) Surprise Give a better explanation of what we really do (2 slides): For every node compute the baseline Identify all the edges that close same type of triads Compute surprise Surprise: How much behavior of user deviates from baseline in context t: (A1, B1; X1),…, (An, Bn; Xn) … instances of contextualized link t k of them closed with a plus pg(Ai)… generative baseline of Ai empirical prob. of Ai giving a plus Then: generative surprise of triad type t: B X - A Vs. B X A  Std. rnd. var.: 11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

- + - + Status: Two Examples Two basic examples: X X A B A B Gen. surprise of A: — Rec. surprise of B: — Gen. surprise of A: — Rec. surprise of B: — 11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

END END (when I spent 15 min for finishing up the previous lecture) 11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

Consistency with Status [CHI ‘10] Consistency with Status Determine node status: Assign X status 0 Based on signs and directions of edges set status of A and B Surprise is status-consistent, if: Gen. surprise is status-consistent if it has same sign as status of B Rec. surprise is status-consistent if it has the opposite sign from the status of A Surprise is balance-consistent, if: If it completes a balanced triad X + + +1 A B +1 Status-consistent if: Gen. surprise > 0 Rec. surprise < 0 11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

Status vs. Balance (Epinions) [CHI ‘10] Status vs. Balance (Epinions) Predictions: Sg(ti) Sr(ti) Bg Br Sg Sr t3 t15 t2 t14 t16 11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

From Local to Global Structure [WWW ‘10] From Local to Global Structure Both theories make predictions about the global structure of the network Structural balance – Factions Find coalitions Status theory – Global Status Flip direction and sign of minus edges Assign each node a unique status so that edges point from low to high + + - 3 2 1 11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

From Local to Global Structure [WWW ‘10] From Local to Global Structure Fraction of edges of the network that satisfy Balance and Status? Observations: No evidence for global balance beyond the random baselines Real data is 80% consistent vs. 80% consistency under random baseline Evidence for global status beyond the random baselines Real data is 80% consistent, but 50% consistency under random baseline 11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

Predicting Edge Signs Edge sign prediction problem [WWW ‘10] Predicting Edge Signs u v + ? – Edge sign prediction problem Given a network and signs on all but one edge, predict the missing sign Machine Learning Formulation: Predict sign of edge (u,v) Class label: +1: positive edge -1: negative edge Learning method: Logistic regression Dataset: Original: 80% +edges Balanced: 50% +edges Evaluation: Accuracy and ROC curves Features for learning: Next slide 11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

Features for Learning For each edge (u,v) create features: [WWW ‘10] Features for Learning For each edge (u,v) create features: Triad counts (16): Counts of signed triads edge uv takes part in Node degree (7 features): Signed degree: d+out(u), d-out(u), d+in(v), d-in(v) Total degree: dout(u), din(v) Embeddedness of edge (u,v) - + + + u v - - + - 11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

Edge Sign Prediction Classification Accuracy: [WWW ‘10] Edge Sign Prediction Epin Classification Accuracy: Epinions: 93.5% Slashdot: 94.4% Wikipedia: 81% Signs can be modeled from local network structure alone Trust propagation model of [Guha et al. ‘04] has 14% error on Epinions Triad features perform less well for less embedded edges Wikipedia is harder to model: Votes are publicly visible Slash Wiki 11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

Balance and Status: Complete Model + + - - + - + + - - + - + + - - + - + + - - + -

Generalization Do people use these very different linking systems by obeying the same principles? How generalizable are the results across the datasets? Train on row “dataset”, predict on “column” Nearly perfect generalization of the models even though networks come from very different applications 11/18/2018 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

Concluding Remarks Signed networks provide insight into how social computing systems are used: Status vs. Balance Different role of reciprocated links Role of embeddedness and public display Sign of relationship can be reliably predicted from the local network context ~90% accuracy sign of the edge

Concluding Remarks More evidence that networks are globally organized based on status People use signed edges consistently regardless of particular application Near perfect generalization of models across datasets Many further directions: Status difference of nodes A and B [ICWSM ‘10]: A<B A=B A>B Status difference (A-B)