Causality-Induced Positional Encoding for Transformer-Based Representation Learning of Non-Sequential Features
Not on the map. Why?
Abstract (arXiv)
Positional encoding is essential for supplementing transformer with positional information of tokens. Existing positional encoding methods demand predefined token/feature order, rendering them unsuitable for real-world data with non-sequential yet causally-related features. To address this limitation, we propose CAPE, a novel method that identifies underlying causal structure over non-sequential features as a weighted directed acyclic graph (DAG) using generalized structural equation modeling. The DAG is then embedded in hyperbolic space where its geometric structure is well-preserved using a hyperboloid model-based approach that effectively captures two important causal graph properties (causal strength & causal specificity). This step yields causality-aware positional encodings for the features, which are converted into their rotary form for integrating with transformer's self-attention mechanism. Theoretical analysis reveals that CAPE-generated rotary positional encodings possess three valuable properties for enhanced self-attention, including causal distance-induced attenuation, causal generality-induced attenuation, and robustness to positional disturbances. We evaluate CAPE over both synthetic and real-word datasets, empirically demonstrating its theoretical properties and effectiveness in enhancing transformer for data with non-sequential features. Our code is available at https://github.com/Catchxu/CAPE.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 42 of its 105 references that are in the map. First posted on arXiv 20 Sep 2025.
Builds on
42 of 105 references.
References · 42
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2023Visual Instruction Tuningcited by 7,792
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2022BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generationcited by 4,310
- 2021Zero-Shot Text-to-Image Generationcited by 4,276
- 2022Robust Speech Recognition via Large-Scale Weak Supervisioncited by 3,972
30 more
- 2019A Comprehensive Survey on Graph Neural Networkscited by 2,906
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2020Rethinking Attention with Performerscited by 1,584
- 2022Reproducible scaling laws for contrastive language-image learningcited by 1,163
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
- 2018DAGs with NO TEARS: Continuous Optimization for Structure Learningcited by 745
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
- 2017Poincar'e Embeddings for Learning Hierarchical Representationscited by 674
- 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 404
- 2019DAG-GNN: DAG Structure Learning with Graph Neural Networkscited by 329
- 2018Learning Continuous Hierarchies in the Lorentz Model of Hyperbolic Geometrycited by 261
- 2019Gradient-Based Neural DAG Learningcited by 227
- 2020Rethinking Positional Encoding in Language Pre-trainingcited by 197
- 2020On the Role of Sparsity and DAG Constraints for Learning Linear DAGscited by 186
- 2022A Length-Extrapolatable Transformercited by 123
- 2022Deep End-to-end Causal Inferencecited by 93
- 2020Improve Transformer Models with Better Relative Position Embeddingscited by 73
- 2021gCastle: A Python Toolbox for Causal Discoverycited by 60
- 2015A fast PC algorithm for high dimensional causal discovery with multi-core PCscited by 45
- 2025Massive Values in Self-Attention Modules are the Key to Contextual Knowledge Understandingcited by 44
- 2024Fourier Position Embedding: Enhancing Attention's Periodic Extension for Length Generalizationcited by 37
- 2020On Low Rank Directed Acyclic Graphs and Causal Structure Learningcited by 23
- 2023Hyperbolic Representation Learning: Revisiting and Advancingcited by 21
- 2024LangCell: Language-Cell Pre-training for Cell Identity Understandingcited by 14
- 2022From graphs to DAGs: a low-complexity model and a scalable algorithmcited by 5
- 2020Causal Future Prediction in a Minkowski Space-Timecited by 3
- 2024Domain Adaptive and Fine-grained Anomaly Detection for Single-cell Sequencing Data and Beyondcited by 3
Built on by
Not cited yet.