liveBook · Manning

Transductive learning

As explained in Knowledge Graphs and LLMs in Action

Transductive learning learns representations or predictions for the specific nodes and graph structure observed during training rather than a general rule for unseen nodes.

Transductive learning optimizes embeddings or predictions for a fixed set of nodes and the graph structure observed during training. It suits static graphs where new nodes are not expected, and can infer labels or edges among known nodes. section 11.1.1

Figure 11.1 The node embedding problem. The goal of the task is to learn an encoding function, encode(x), that maps nodes to a multidimensional embedding space. These embeddings are optimized so that distances in the embedding space reflect relevant aspects of the original graph, such as the relative positions of the nodes.
figure

The node-embedding view makes the objective concrete: map observed nodes into a multidimensional space whose distances preserve relevant graph relationships. section 11.1.1

Use transductive learning when the graph’s membership is stable:

  • Classify unlabeled nodes from patterns learned across partially labeled nodes. section 11.1.1
  • Predict new edges between nodes already observed during training. section 11.1.1
  • Recommend existing products to existing users from their past interactions. section 11.1.1

Fixed graph, changing relationships

A shallow embedding model can represent members of a known karate club and learn relationships among them. If a new member joins, the lookup table cannot automatically provide an embedding; retraining is required. section 11.3.2

The central trade-off is generalization. Transductive methods can fit the observed graph well but do not learn a reusable rule for unseen nodes. Inductive methods instead learn parametric mappings from node features and can apply them to nodes absent during training. section 11.1.1

How Knowledge Graphs and LLMs in Action covers it

How deep it goes
Defines fixed-node optimization and contrasts it with inductive mappings, but stops short of implementation details.
Examples
Uses partially labeled nodes, known-node edge prediction, e-commerce recommendations, and a karate club membership example.
What it assumes
Assumes graph nodes, edges, embeddings, and training data, while contrasting fixed-node learning with generalization to unseen nodes.
What you can do after
Evaluate whether a graph-learning problem can tolerate retraining when new nodes appear.
How it connects
Connects node embeddings, shallow embeddings, inductive learning, node features, and graph neural networks.

Also explained in

Compare how 3 books explain transductive learning →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Knowledge Graphs and LLMs in Action. The section links point to the parts of the book it draws on.