Labeled Incidence Structures for Native Transformer Modeling of Text, Knowledge Graphs, and Hypergraphs
cs.LG, cs.AI
Submitted: 2026-07-29
Updated: 2026-09-21
License: http://creativecommons.org/licenses/by/4.0/
The gist: Text, knowledge graphs, and hypergraphs all have elements that play distinct roles within relation instances, structure that is lost when data is flattened into token sequences.
Terminology
Abstract
Text, knowledge graphs, and hypergraphs all have elements that play distinct roles within relation instances, structure that is lost when data is flattened into token sequences. We introduce labeled incidence structures (LIS), a uniform representation that encodes each endpoint as (x d, s, e): content x d, a role or slot s, and the relation instance e in which that role appears. Because every data type maps to the same (x d, s, e) representation without flattening, a single standard transformer can process them all natively, structural differences are carried entirely by the operators, not the architecture. LIS assigns a structural address to each endpoint by composing a slot operator and an instance operator, A(s,e) = R s R e. We characterize when this factorization gives every token a unique, path-independent address. When it does, the natural operator comparing endpoint j to endpoint i is the relative transport P j to i = A i-1 A j, which gives attention a role- and relation-aware inductive bias without imposing an arbitrary sequence order. Additive encodings of the form "position term plus relation term" can miss information that depends jointly on s and e. We prove this in a controlled example family: when the journey operator is approximated by the sum of a position-only term and a relation-only term, the approximation cannot capture how position and relation combine, only their separate effects. We also analyze persistent knowledge repositories. Identifiers tied to storage locations make models sensitive to storage order, while freely learned identifiers can become harder to control as the repository size M grows relative to the sample size n. Computing relation-instance operators from content avoids this storage-order issue and yields a capacity bound independent of M, under fixed architectural and Lipschitz assumptions.
Sources
- Heterogeneous Graph Transformer
- RoFormer: Enhanced Transformer with Rotary Position Embedding
- KG-BERT: BERT for Knowledge Graph Completion
Related papers
- Polynomial-Augmented Neural Networks (PANNs) with Weak Orthogonality Constraints for Enhanced Function and PDE Approximation
- AIRL-S: Unifying Reinforcement Learning and Search-Based Test-Time Scaling via Adversarial Inverse Reinforcement Learning
- Transformers as Bayesian In-Context Experimenters: Smoothness-Adaptive Efficient ATE Estimation
- Convergence issues in Relational Concept Analysis based on AOC-posets
- Beliefs Beyond Posteriors: Local-Consistency Optimisation for Bayesian Neural Networks
- Understanding Diffusion Models via Ratio-Based Function Approximation with SignReLU Networks