Closed skojaku closed 1 month ago
Similarity matrix for the state vectors $x(t)$ over $t \in [1,1000]$. The colors on the top and left bars represent the community membership of the nodes being visited.
Code: #2
Many thanks for these first experiments!
I have been thinking about it this morning and wondered about the following.
For random walk/diffusive processes:
Thanks so much for the report! Very interesting indeed!
Question
Under what conditions do the trajectories of the state vector reflect the network's communities?
Areas for exploration:
Dimension of the state space
Coherence between community structure and the assignment of rotation matrices to edges
Dimension of an arbitrary value is interesting, and we could also try dimensions of 2 and 3 for proof of concepts.
Coherence Considerations
- Random case: Each edge has a random rotation matrix independent of the network structure.
- The most coherent case: No rotation is applied for movements within a community; a random rotation is applied when moving between different communities. Each pair of different community (r,s) has a unique random rotation matrix, which is then assigned to all the edges between communities r and s. Different pairs of communities have different random rotation matrices.
You probably have implemented it but not mentioned it here: for the balanced case, we also have the requirement that the product of the rotation matrices of all cycles is the identity (so e.g., when choosing the rotaiton matrix of $R{31}$, after choosing $R{12}$ and $R_{23}$, we can choose it to make the product identity, depending on how you implement the random walks, instead of choosing randomly).
- The state vector trajectory accurately represents community structure when there is no rotation within communities and random rotation between them.
- In this scenario, even if the walker returns to its original community, the state vector may differ based on the paths taken!
Great, it agrees with our theoretical results, though we are more on the other side of when there is no noise, the state vector at stationary should be the same.
- The state vector $x(t)$ summarizes previous trajectories, which might provide a useful perspective on social balance.
- Introducing random rotations to a few edges disrupts coherence, resulting in a seemingly random state vector trajectory.
This could integrate with Renaud's comments above -- by considering different scales, short versus long, we can potentially better capture the almost balanced case! One idea from me would be to compute the similarity matrix for $x(t)$ over the period $[0, \Delta t], [\Delta t, 2\Delta t], [2 \Delta t, 3\Delta t], ...$ and see how they changes, but please correct me if I am wrong.
Overall, thanks for the results! I will also explore more -- just wondering whether you have uploaded your code?
Many thanks for these first experiments!
I have been thinking about it this morning and wondered about the following.
For random walk/diffusive processes:
- In the case of nsigned network, the archetype for a community would be a connected component. Adding a few edges between the components, we expect the existence of two time scales: a fast scale for the dynamics inside communities, and slow scale for the dynamics across communities.
I may have overlooked something important and would like clarification on this comment. I understand that we are dealing with a discrete-time random walk, where the trajectory in vector space also operates in discrete time. The time scale is consistent both within and across communities. How can I accelerate the time scale within communities? Should I apply the rotation matrix multiple times?
- In the case of a signed graph, the archetype for a community would be strong balance: two clusters, with positive edges inside and negative across. In our rotation setting, this would correspond to a rotation of \pi between communities, and rotation of 0 inside the communities. A natural way to add a perturbation to this idealised setting would be to add to each edge a random value for the rotation, e.g. taken from a gaussian with a given \sigma controlling for the importance of noise. When there is no noise, we know that the asymptotic state is one where we have positive values in one cluster, and negative values in the other cluster. If sigma is small enough, the system should rapidly approach this type of configuration ("quasi-stationary state") before slowly approaching the asymptotic state (a vector of zero as the whole graph is not balanced anymore). We would then have a separation of time scales as well.
First of all, I'd like to clarify that a random rotation matrix in a high dimensional space is almost a rotation of $\pi/2$. It's not $pi$ though it at least produces communities orthogonal to each other, which are of zero similarities. Do we want to have communities of negative similarities?
Regarding how to add perturbation, I get an overall idea but am not 100% certain how to introduce a gaussian noise on a high-dimensional rotation matrix. Do you mean adding some gaussian noise on the identity matrix (which is zero rotation), and take QR decomposition to generate orthonormal basis (which is Q)?
- The latter can then be generalised with k groups, e.g. rotations of 2\pi/3 between groups for 3 groups, and the same perturbation scheme can be applied.
Sure!! Will do in the next expreiment.
Thanks so much for the report! Very interesting indeed!
Question
Under what conditions do the trajectories of the state vector reflect the network's communities?
Areas for exploration:
Dimension of the state space
Coherence between community structure and the assignment of rotation matrices to edges
Dimension of an arbitrary value is interesting, and we could also try dimensions of 2 and 3 for proof of concepts.
Coherence Considerations
- Random case: Each edge has a random rotation matrix independent of the network structure.
- The most coherent case: No rotation is applied for movements within a community; a random rotation is applied when moving between different communities. Each pair of different community (r,s) has a unique random rotation matrix, which is then assigned to all the edges between communities r and s. Different pairs of communities have different random rotation matrices.
You probably have implemented it but not mentioned it here: for the balanced case, we also have the requirement that the product of the rotation matrices of all cycles is the identity (so e.g., when choosing the rotaiton matrix of R 31 , after choosing R 12 and R 23 , we can choose it to make the product identity, depending on how you implement the random walks, instead of choosing randomly).
No, I implemented here without considering balance/imbalance. It's just a more general setting, where a network has a strong communities, and in what condition the trajectories reflect these communities. One of the condition would be via enforcing the balance condition as you mentioned, and I'll check this out in the next experiment!
- The state vector trajectory accurately represents community structure when there is no rotation within communities and random rotation between them.
- In this scenario, even if the walker returns to its original community, the state vector may differ based on the paths taken!
Great, it agrees with our theoretical results, though we are more on the other side of when there is no noise, the state vector at stationary should be the same.
Is this "no noise" case is where the edges between communities apply a householder projection to a state vector, and edges within communities apply no transformation?
- The state vector x ( t ) summarizes previous trajectories, which might provide a useful perspective on social balance.
- Introducing random rotations to a few edges disrupts coherence, resulting in a seemingly random state vector trajectory.
This could integrate with Renaud's comments above -- by considering different scales, short versus long, we can potentially better capture the almost balanced case! One idea from me would be to compute the similarity matrix for x ( t ) over the period [ 0 , Δ t ] , [ Δ t , 2 Δ t ] , [ 2 Δ t , 3 Δ t ] , . . . and see how they changes, but please correct me if I am wrong.
I'm not sure the question but here is my best guess! The similarity matrix in my results short the similarity over period [0,999]. So similarities of the state vector $x(t)$ for other different period [0, $\delta t$], [$\delta t$, $2\delta t$], [$2\delta t$, $3\delta t$] are on the diagonal block of the similarity matrix in my results.
Overall, thanks for the results! I will also explore more -- just wondering whether you have uploaded your code?
You can find my code in the PR #2 , which is also linked with this Issue thread! You can find the code by looking at the "File Changed" tab in the page. Alternatively, you can open it by switching to the branch the PR is based on.
Thanks for the replies! It helps a lot clear up my mind!!
Thanks Sadamori and all! Will respond in email.
Overview
Setting
Question
Coherence Considerations