ETDNet: Edge-Type Decoupling in Temporal Graphs
- ETDNet is a temporal-graph neural architecture that decouples intra-time-step and inter-time-step edges to preserve distinct structural and temporal semantics.
- It constructs a full-history graph where nodes represent entity occurrences and separate edge types capture local context and temporal propagation.
- Empirical results on Waymo and Elliptic++ demonstrate that dedicated attention modules for structure and time yield improved prediction accuracy.
Searching arXiv for the ETDNet paper and closely related context papers mentioned in the provided data. arXiv Search Query: "Full-History Graphs with Edge-Type Decoupled Networks for Temporal Reasoning" Edge-Type Decoupled Network (ETDNet) is a temporal-graph neural architecture introduced alongside the full-history graph (FHG) representation for reasoning over evolving relational data in which prediction depends jointly on who interacts with whom and how those interactions unfold over time. Its motivating applications are driver-intention prediction in traffic and fraud detection in Bitcoin transaction networks. The defining premise is that temporal graphs should not be handled merely as a sequence of snapshots, because same-time interactions and cross-time continuity encode different semantics. ETDNet therefore operates on a single graph containing the entire observed history, and processes two disjoint edge families with separate modules: intra-time-step edges for structural context and inter-time-step edges for temporal propagation (Mohammed et al., 5 Aug 2025).
1. Conceptual basis and problem setting
ETDNet is designed for temporal reasoning on evolving relational data where plain sequence models are inadequate because each entity’s trajectory is influenced by other entities, while many temporal graph methods remain constrained by a sequence of snapshots. In a typical snapshot pipeline, one runs a GNN separately at each time step and then feeds snapshot embeddings into an RNN or Transformer. The ETDNet paper argues that this is limiting for two stated reasons: aggregating events into snapshots can blur fine-grained ordering and long-range temporal signals, and distant temporal dependencies may require many stacked graph or temporal layers, aggravating over-smoothing and over-squashing (Mohammed et al., 5 Aug 2025).
A second motivation is semantic heterogeneity. ETDNet treats instantaneous relational structure and temporal continuity as fundamentally different categories of edges. Same-time interactions encode local relational context, such as nearby vehicles or contemporaneous transaction flow. Cross-time edges encode persistence, causality, or propagation. The architecture’s central claim is therefore not merely that edges matter, but that different edge semantics should not be forced through the same message function.
A common misconception is to conflate ETDNet with the full-history graph itself. The paper distinguishes them explicitly. The full-history graph is the graph construction that internalizes time into topology, whereas ETDNet is the neural encoder that learns on that graph. The representation and the network are separate contributions, although the paper’s empirical argument is that they are most effective when aligned.
2. Full-history graph formulation
The full-history graph unfolds the entire observation window into a single graph. Time is defined on a discrete set
Entities are partitioned into dynamic entities and static entities . For each dynamic entity and each time step where it exists, the graph contains a node with feature vector
Each static entity is represented once with feature . The intended node set is
The graph contains two disjoint edge families. Intra-time-step edges
0
connect entities coexisting in the same time step. Inter-time-step edges
1
connect temporally successive events. The canonical case is a self-link 2, but the paper explicitly generalizes temporal edges to cross-entity hand-offs such as 3. The resulting graph is
4
This construction internalizes time into graph topology itself. Paths along 5 are acyclic and ordered forward in time, while 6 remains local to a time step and may contain cycles. A plausible implication is that temporal causality becomes explicit at the graph level rather than being imposed only by recurrent or Transformer-style ordering outside the graph.
| Element | Formal definition | Semantics |
|---|---|---|
| Dynamic node | 7 | Entity occurrence at time 8 |
| Static node | 9 | Time-invariant context |
| Intra-time-step edge | 0 | Same-frame structure |
| Inter-time-step edge | 1 | Temporal continuity or propagation |
The distinction between self-temporal edges and cross-entity temporal hand-offs is especially important. In traffic, 2 is used as a self-chain across frames. In Elliptic++, 3 connects a transaction to later transactions that spend its outputs. ETDNet is therefore not restricted to per-entity temporal traces; it can encode directed temporal flow between distinct entities.
3. Architecture and update mechanism
ETDNet stacks 4 identical layers. The initial embedding is
5
At each layer, one branch performs structural aggregation over 6, another performs temporal aggregation over 7, and a fusion layer combines both messages with the previous embedding. The architecture is called edge-type decoupled because the two edge families are processed with separate modules and separate parameters rather than inside a single aggregation rule (Mohammed et al., 5 Aug 2025).
| Component | Operates on | Function |
|---|---|---|
| Step Attention (SA) | 8 | Structural aggregation within a time step |
| History Attention (HA) | 9 | Temporal attention over reachable history |
| Fusion Layer (FL) | Previous state + SA + HA | Residual learned combination |
Step Attention
For a dynamic node 0, the intra-step neighborhood is
1
SA uses 2 stacked sublayers, each with 3 attention heads, so a single ETD layer can expand the same-timestep receptive field to 4 hops. For head 5 and sublayer 6, the attention score is
7
with normalization
8
and head-specific message
9
After concatenating heads, SA applies output projection, residual addition, and LayerNorm:
0
After 1 sublayers, the structural message is
2
The module is GAT-like in form, but its scope is restricted to the intra-time-step edge family 3, and its internal 4-stack is intended to capture richer same-frame structure before temporal fusion.
History Attention
For the current node 5, HA attends over a bounded predecessor set
6
This is not limited to the same entity’s past when 7 contains cross-entity temporal flow. The reachable predecessors are ordered by time and zero-padded to length 8, forming a 9 sequence tensor 0.
For each temporal head 1,
2
followed by scaled dot-product attention
3
The final temporal message is
4
Causality is not enforced by an explicit Transformer mask. It is enforced structurally, because only predecessors with 5 are included in 6. This makes HA a local-window temporal self-attention over the node’s reachable history in 7, not a global all-node temporal attention.
Fusion Layer
The fusion layer combines the previous embedding, the structural message, and the temporal message:
8
The paper describes this as a learned, concatenative, residual, nonlinear fusion. It is not a purely additive merge and not an explicit sigmoid gate, even though the prose refers informally to adaptive weighting.
A concise schematic summary given in the paper is
9
This is schematic rather than the exact layerwise recurrence, but it captures the intended decomposition.
4. Optimization, implementation, and computational profile
ETDNet is trained in a supervised, task-dependent manner. On Waymo, the task is joint driver-intention classification with two outputs per dynamic node at the current frame: speed class and direction class. The loss is described as the sum of two cross-entropy losses, one for speed and one for direction. On Elliptic++, the task is binary node classification over transactions with unknown-labeled nodes masked out, and the optimization objective is described as masked binary cross-entropy. The algorithm section summarizes this as “dual-CE for traffic; masked-BCE for fraud” (Mohammed et al., 5 Aug 2025).
The paper states default hyperparameters
0
with dropout 1 after each fusion layer. Optimization uses Adam with learning rate 2, weight decay 3, batch size 4 for traffic and 5 for fraud, dropout 6, and early stopping on validation macro-F1 with patience 7. Unknown nodes in Elliptic++ remain in the graph but are excluded from the loss, which is important for transductive learning under partial labels.
The manuscript also contains an implementation inconsistency. In the sensitivity discussion, the authors state that they “therefore set 8, heads 9, 0” for Waymo and similarly 1, heads 2, 3 for Elliptic++. An earlier Waymo implementation paragraph instead states 4, 5, 6, 7. The discrepancy is explicit in the paper and should be noted in any reproduction.
The computational profile is described as sparse attention over 8 and window-bounded attention over 9, with time complexity
0
and memory complexity
1
per dynamic entity. The comparison table also contrasts ETDNet’s memory as
2
against memory-bank methods such as TGN with
3
Empirically, the paper reports 4M parameters for ETDNet versus 5M for TGN and 6M for TGAT, and states that ETDNet is faster per epoch than those temporal baselines on both datasets.
5. Datasets, tasks, and empirical evidence
The paper evaluates ETDNet on two domains with markedly different temporal semantics: traffic maneuvers and financial transaction flow (Mohammed et al., 5 Aug 2025).
Waymo Open Motion Dataset
Scenes are sampled at 7 Hz and last 8 seconds. The first 9 seconds (0 frames) are used as history, and the future 1 seconds are used to derive maneuver labels. Each scene becomes a full-history graph with about 2 nodes on average: 3 dynamic vehicle instances across time and 4 static lane elements. Intra-time-step edges number about 5k per frame and connect vehicle pairs within 6 meters plus vehicle-lane contacts. Temporal edges are self-chain links connecting each vehicle across consecutive frames. Node features are 7-dimensional, comprising 8 kinematic and 9 map-relative features. Labels use speed classes 00 and direction classes 01. Evaluation uses macro-F1 for speed and direction plus joint accuracy.
Elliptic++
The graph contains 02 monthly Bitcoin transaction snapshots. Each node is a transaction with 03 static features and labels licit, illicit, or unknown. The temporal split is months 04–05 for training, 06–07 for validation, and 08–09 for test. The paper states that it builds “one full-history graph per month,” including all transactions up to and including the current month. A transaction appears once and is never deleted. Domain edges 10 connect each transaction bidirectionally to the 11 addresses that spend its outputs in that month. Temporal edges 12 connect a transaction 13 to every transaction 14 that spends an output of 15 in the following month. This dataset therefore uses cross-entity temporal edges rather than self-links. Metrics are ROC-AUC, AUPRC, and illicit-class F1, with the F1 threshold selected on the validation window.
Quantitative results
| Dataset | ETDNet | Strongest baseline noted |
|---|---|---|
| Waymo | 16 speed F1, 17 direction F1, 18 joint accuracy | TGN: 19 joint accuracy |
| Elliptic++ | 20 ROC-AUC, 21 AUPRC, 22 illicit F1 | DyGFormer: 23 ROC-AUC; stronger than TGN on F1 |
On Waymo, the gain over the strongest baseline is 24 percentage points in joint accuracy, with gains of 25 and 26 points in speed and direction F1 respectively. On Elliptic++, the most pronounced improvements appear in class-imbalance-sensitive metrics: AUPRC rises from 27 to 28, and illicit F1 from 29 to 30. The abstract compares ETDNet to TGN at 31 F1, whereas the main table shows DyGFormer as slightly stronger than TGN on F1; in either case, the ETDNet result remains substantially higher.
Ablations and sensitivity
The ablations support the decoupled design. On Waymo, full ETDNet achieves 32 joint accuracy, compared with 33 for SA only, 34 for HA only, 35 for late fusion, and 36 when HA is replaced by mean pooling. On Elliptic++, full ETDNet achieves 37 illicit F1, compared with 38 for SA only, 39 for HA only, 40 for late fusion, and 41 for HA mean pool. These results indicate that both edge families matter, the temporal-attention mechanism matters beyond mean aggregation, and fusing after every layer is better than late fusion.
The paper does not include a standalone ablation directly comparing the full-history graph representation against a snapshot-graph representation under an otherwise identical architecture. It also states in discussion that “mixing all edges in a single kernel drops performance,” but there is no explicit all-edges-single-aggregator ablation table beyond branch-removal and late-fusion comparisons. This absence is important when interpreting what has been demonstrated directly.
Sensitivity analyses indicate relative robustness to the number of layers, attention heads, and history length. On Waymo, 42 performs best, while 43 and 44 are slightly worse. On Elliptic++, 45 months is best, with only small drops at 46 and 47. The paper interprets this as evidence that performance improves until the window covers the most informative real-time span, after which older history dilutes attention.
6. Interpretation, related paradigms, and limitations
The paper’s clearest conceptual claim is that ETDNet addresses heterogeneous relational semantics by decoupling them at the level of message computation. Structural relations and temporal relations are handled by different modules because they demand different inductive biases: dense local aggregation for 48, and sparse temporally ordered credit assignment over 49. In Elliptic++, this is especially visible because temporal edges represent cross-transaction hand-offs rather than self-history. In Waymo, the paper reports a qualitative reduction in confusion between lane changes and turns, suggesting that temporal history helps disambiguate maneuvers that are spatially similar in the current frame (Mohammed et al., 5 Aug 2025).
This emphasis on edge-type decoupling distinguishes ETDNet from other edge-aware models. EGAT treats edges as first-class learnable entities and introduces parallel node and edge attention blocks, but it uses a shared edge-aware attention mechanism rather than relation- or type-specific propagation channels; it is therefore better characterized as node–edge dual-state coupled propagation than as edge-type decoupling (Chen et al., 2021). EdgeStereo, despite its title, belongs to a different problem domain entirely—dense stereo matching—and uses a disparity estimation branch plus an edge detection branch, with generic edge feature embedding and an edge-aware smoothness loss rather than typed temporal-graph message passing (Song et al., 2019). A common misconception is therefore to read “edge-type” in ETDNet as referring to generic edge features or image-edge maps. In ETDNet, it refers specifically to the semantic separation between intra-time-step and inter-time-step edge families.
The paper’s limitations are explicit. Step Attention over all intra-time-step links can dominate runtime in crowded scenes because it still performs dense multi-head attention over local neighborhoods in 50. The authors suggest sparse-attention kernels or neighborhood sampling as future work. More broadly, the current formulation assumes a discrete timestep index, a fixed history window 51, and temporal edges constructed on that grid. The authors mention adaptive history-window learning and extensions to irregular or continuous-time events via time-aware positional encodings as future directions.
A further limitation concerns evidence rather than mechanism. The ablations strongly support the dual-branch encoder, but they do not isolate the representational contribution of the full-history graph against a strictly controlled snapshot alternative. This suggests that the strongest empirical claim directly established by the paper is about the effectiveness of the combined FHG-plus-ETDNet design, with particularly strong support for the decoupled structural and temporal branches.
In summary, ETDNet consists of a dual-branch encoder aligned to a full-history graph representation. The representation contributes one node per entity-time occurrence and two explicit edge families, 52 and 53. The network contributes GAT-like Step Attention for 54, Transformer-style History Attention for 55, and residual learned fusion after every layer. The empirical argument is that temporal reasoning improves when structural and temporal relations are represented explicitly and processed separately rather than collapsed into a single graph operator (Mohammed et al., 5 Aug 2025).