[Paper Review] Equivalence between LINE and Matrix Factorization
This paper establishes that LINE, a popular network embedding method, is mathematically equivalent to matrix factorization: LINE(1st) factorizes a matrix derived from doubled Pointwise Mutual Information (PMI) of vertex pairs in undirected networks, while LINE(2nd) factorizes a matrix based on PMI between vertex-context pairs in directed networks. The equivalence reveals that both variants implicitly factor distinct proximity matrices, providing a theoretical foundation for extensions of LINE.
LINE [1], as an efficient network embedding method, has shown its effectiveness in dealing with large-scale undirected, directed, and/or weighted networks. Particularly, it proposes to preserve both the local structure (represented by First-order Proximity) and global structure (represented by Second-order Proximity) of the network. In this study, we prove that LINE with these two proximities (LINE(1st) and LINE(2nd)) are actually factoring two different matrices separately. Specifically, LINE(1st) is factoring a matrix M (1), whose entries are the doubled Pointwise Mutual Information (PMI) of vertex pairs in undirected networks, shifted by a constant. LINE(2nd) is factoring a matrix M (2), whose entries are the PMI of vertex and context pairs in directed networks, shifted by a constant. We hope this finding would provide a basis for further extensions and generalizations of LINE.
Motivation & Objective
- To formally establish the theoretical equivalence between LINE network embedding and matrix factorization.
- To identify the specific matrices implicitly factorized by LINE(1st) and LINE(2nd) in undirected and directed networks, respectively.
- To provide a unified theoretical framework that explains the behavior of LINE by linking it to matrix factorization.
- To offer a basis for future generalizations and improvements of LINE through its matrix factorization interpretation.
Proposed method
- Prove that LINE(2nd), which preserves second-order proximity in directed networks, implicitly factorizes a matrix $M^{(2)}$ whose entries are the PMI of vertex-context pairs, shifted by a constant.
- Prove that LINE(1st), which preserves first-order proximity in undirected networks, implicitly factorizes a matrix $M^{(1)}$ whose entries are the doubled PMI of vertex pairs, shifted by a constant.
- Use negative sampling with a degree-proportional distribution to simplify the optimization objective and derive the implicit matrix factorization form.
- Derive the optimal dot product between vertex embeddings as a function of PMI and sampling parameters, showing that $\overrightarrow{v_j}^T \overrightarrow{v_i} = 2PMI(v_i,v_j) - \log k$.
- Apply theoretical results from Skip-Gram with Negative Sampling to show that LINE(1st) and LINE(2nd) are analogous to implicit matrix factorization under the same principle.
- Validate the equivalence by demonstrating that the learned embeddings satisfy the matrix factorization objective through derivation of the embedding update rule.
Experimental results
Research questions
- RQ1Is LINE(1st) equivalent to the factorization of a specific matrix derived from network statistics?
- RQ2Is LINE(2nd) equivalent to the factorization of a matrix based on vertex-context relationships in directed networks?
- RQ3Can the implicit matrix factorization underlying LINE be formally derived and characterized?
- RQ4How do the PMI and degree statistics relate to the learned embeddings in LINE?
- RQ5What is the theoretical basis for combining LINE(1st) and LINE(2nd) embeddings via concatenation?
Key findings
- LINE(1st) is mathematically equivalent to factorizing a matrix $M^{(1)}$ where each entry $M^{(1)}_{ij}$ is equal to twice the Pointwise Mutual Information (PMI) of vertices $v_i$ and $v_j$, minus a constant $\log k$.
- LINE(2nd) is equivalent to factorizing a matrix $M^{(2)}$ where each entry $M^{(2)}_{ij}$ corresponds to the PMI between vertex $v_i$ and context $v_j$, shifted by a constant.
- The equivalence holds under the assumption that negative sampling follows a degree-proportional distribution, simplifying the derivation while preserving the core optimization structure.
- The derived embedding dot product $\overrightarrow{v_j}^T \overrightarrow{v_i}$ directly corresponds to $2PMI(v_i,v_j) - \log k$, confirming the PMI-based interpretation of LINE(1st).
- The theoretical equivalence provides a principled understanding of why LINE performs well and enables future extensions based on matrix factorization theory.
- The results generalize the understanding of LINE beyond heuristic design, showing it as a form of implicit matrix factorization with clear statistical grounding.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.