Overview of Dimensions
There are four orthogonal dimensions that influence model architecture selection in Kumo:- Temporal vs. Static Graph
- Use of ID-GNN Features
- RHS Model Type: GNN or Shallow
- Scoring Mechanism: Softmax or Contrastive
Architecture Matrix
| RHS Model Type | Scoring | Temporal (Add ID-GNN) | Temporal (No ID-GNN) | Static (Add ID-GNN) | Static (No ID-GNN) |
|---|---|---|---|---|---|
| GNN | Softmax | N/A | N/A | N/A | N/A |
| GNN | Contrast | N/A | N/A | N/A | Two-tower module (embedding) |
| Shallow | Softmax | ContextGNN module (ranking) | RHSShallow module (embedding) | N/A | RHSShallow module (ranking) |
| Shallow | Contrast | N/A | N/A | N/A | N/A |
Supported Modules
- ContextGNN: Used for temporal models with shallow RHS and softmax scoring. Optimized for ranking tasks. Read more about ContextGNN here.
- RHSShallow: Applicable to static, shallow RHS models with or without ID-GNN. Can be used for both ranking and embedding.
- Two-tower: Used for contrastive learning with static graphs and GNN on the RHS. Learns embeddings independently for LHS and RHS nodes.
Notes
- The
feature,lookup, andfusionmodes are specific toRHSShallowarchitectures and is passed to thetarget_embedding_modemodel parameter. - The term two-tower is used internally to denote that the GNN architecture exists for both the LHS and RHS entities. This may differ from broader industry definitions.
- GNN-based RHS architectures are currently not supported in Kumo for temporal LP.
- ContextGNN is not suitable for generating inductive embedding representations.
- LHS refers to the entity declared by your predictive query. This is the
table.entitythat follows after theFOR EACHstatement. - RHS refers to the targety declared by your predictive query. This is the
table.targetthat follows after thePREDICTstatement.
Recommendations
Use ContextGNNif you require temporal modeling and ranking behavior with a shallow RHS.Use RHSShallowif you’re working with static graphs and want lightweight embedding or ranking models.Use Two-towerif your goal is contrastive embedding with a static graph and GNN on RHS.
This architecture guide helps ensure optimal model selection when setting up LP models on the Kumo platform. Future updates may unify terminology and expand support.