All models

recbole.LINE

LINE, a network embedding method for very large graphs, here in RecBole's recommender form.

Graphs and geometry · 4 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (7 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Family
LINE
Parameters
336.3K
Operations
4
Framework
PyTorch
Recurrent
No
Published
WWW 2015
Cited by
5,973 (as of 26 November 2026)
Authors
Jian Tang, Meng Qu, Mingzhe Wang and others
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m8636
Graph hash
b0e38a7bc57ae9a4b6589430fb4940c4532e29a5c8ab8cabba8761ec703e5514
Skeleton hash
7d6cc1b179dc5a6d4491790bf874041c21f612413588971e437bec6ed6bd2c2b
Architecture hash
051afb0eab192fcdc8d74888fd231f37dbf849edc524cac77e336ea1f13e5606
Diagram SHA-256
6abfc0215f570ed0f42c9370a5ddb830b70ccda5fd70d6e28392f46387471c2d
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

LINE, short for Large-scale Information Network Embedding, is a method for embedding very large information networks into low-dimensional vector spaces. Such embeddings are useful in tasks such as visualization, node classification and link prediction. The paper's starting point is that most graph embedding methods existing at the time did not scale to real-world information networks, which usually contain millions of nodes.

LINE is meant for arbitrary types of information networks, whether undirected, directed or weighted. It optimizes an objective function that preserves both the local and the global network structures. An edge-sampling algorithm addresses a limitation of classical stochastic gradient descent and improves both the effectiveness and the efficiency of the inference.

The paper reports experiments on language networks, social networks and citation networks, and states that the method can learn the embedding of a network with millions of vertices and billions of edges in a few hours on a typical single machine. The authors' toolkit lets the user choose the order of proximity, 1 for first order and 2 for second order, with 2 as the default.

Key idea. LINE embeds very large networks by optimizing an objective that preserves local and global network structures, using an edge-sampling algorithm for efficient inference.

  • LINE
  • Large-scale Information Network Embedding
  • network embedding
  • graph embedding
  • node embedding
  • edge sampling
  • information network
  • RecBole

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{tang2015linelargescaleinformationnetwork,
      title={LINE: Large-scale Information Network Embedding}, 
      author={Jian Tang and Meng Qu and Mingzhe Wang and Ming Zhang and Jun Yan and Qiaozhu Mei},
      year={2015},
      eprint={1503.03578},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      doi={https://doi.org/10.1145/2736277.2741093},
      url={https://arxiv.org/abs/1503.03578}, 
}