Knowledge Graph Embeddings 2D Map: TransE vs RotatE Link Prediction
A 2D top-down map of a toy knowledge graph of cities, countries and continents. Drag to pan, scroll to zoom, and compare how TransE (translation) and RotatE (rotation) score and rank candidate tail entities for the same link-prediction query.
A small knowledge graph of continents, countries and capital cities lives here as points on a 2D embedding map, the same way production knowledge-graph-embedding systems place entities in vector space. Two relations connect them — capital_of and part_of — and two scoring models compete to predict missing links: TransE, which represents a relation as a translation vector added to the head, and RotatE, which represents it as a rotation about the origin. Pick a head entity and a relation, switch between the two models, and watch the predicted point, the ranked candidate list and the true tail's rank change live, making visible exactly why the choice of relation operator matters for real link prediction.
A 2D top-down map of a toy knowledge graph of cities, countries and continents. Drag to pan, scroll to zoom, and compare how TransE (translation) and RotatE (rotation) score and rank candidate tail entities for the same link-prediction query.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install