﻿# Roman-empire: graph nodes are word occurrences, not a vocabulary of unique words

Interpret the Roman-empire heterophilous benchmark through word-occurrence identity, syntactic-role targets and the distinction between stored and bidirected edges.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-roman-empire-token-occurrence-graph-semantics/
Language: en

## Identify the observation represented by a node

The [author repository](https://github.com/yandex-research/heterophilous-graphs) introduces Roman-empire as a word-dependency graph derived from a Wikipedia article. The important identity is an occurrence in the text rather than a unique spelling in a vocabulary. Repeated words can therefore occupy different nodes. A preprocessing step that deduplicates equal surface forms does not merely compress storage: it merges observations that originally belonged to different textual contexts and can have different graph neighborhoods.

## Preserve the meaning of the target

The [DGL dataset description and implementation](https://www.dgl.ai/dgl_docs/en/2.2.x/_modules/dgl/data/heterophilous_graphs.html) identifies syntactic roles as node targets and describes sequential and dependency connections. A neighbor can perform a different linguistic role even when the edge is meaningful. Poor agreement between adjacent class labels therefore does not imply corrupted annotation. Interpret a message-passing model against the relation and target definition rather than assuming that every useful graph must connect mostly same-class examples.

## Separate raw storage from message directions

The original repository explains that its undirected relationships are stored once. A directed graph framework may need a bidirectional conversion to expose both message directions. The inspected DGL reader performs that conversion. Before applying an additional transform, inspect the loader output and edge multiplicities. Repeating a conversion without understanding its deduplication behavior can alter normalization or inflate apparent edge counts, making a model comparison partly about graph construction instead of architecture.

## Retain the supplied split identity

The [PyG dataset documentation](https://pytorch-geometric.readthedocs.io/en/latest/generated/torch_geometric.datasets.HeterophilousGraphDataset.html) describes the benchmark collection and loader interface. Record the chosen split column and preprocessing alongside a result. A different mask can change the observed supervision even when all word nodes remain in the same graph. Keep benchmark graph visibility distinct from label visibility, and do not infer that every visible node target is authorized training input merely because the loader contains it.

## Inspect a text-local example before scaling

Trace a repeated word at separate positions and check that it remains separate after export or token normalization. Then inspect sequential and syntactic connections for a small region, without replacing the supplied target with a newly inferred label. The existing [entity-group guide](/journal/data-guide-entity-group-split-design/) and [software reproducibility guide](/journal/software-stack-reproducibility/) support related identity and experiment records. This makes the benchmark useful for studying how models combine unlike neighboring roles, while avoiding an accidental conversion into a different vocabulary-level graph task.
