mlsanityData to 7 Oct 2026

Causality-Induced Positional Encoding for Transformer-Based Representation Learning of Non-Sequential Features

arXiv 2509.16629 ↗First posted 20 Sep 2025cs.LG q-bio.QMcited by 0

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  4. 2020Language Models are Few-Shot Learnerscited by 32,199
  5. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  6. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  7. 2023Visual Instruction Tuningcited by 7,792
  8. 2020End-to-End Object Detection with Transformerscited by 7,384
  9. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  10. 2022BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generationcited by 4,310
  11. 2021Zero-Shot Text-to-Image Generationcited by 4,276
  12. 2022Robust Speech Recognition via Large-Scale Weak Supervisioncited by 3,972
30 more
  1. 2019A Comprehensive Survey on Graph Neural Networkscited by 2,906
  2. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
  3. 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
  4. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
  5. 2020Rethinking Attention with Performerscited by 1,584
  6. 2022Reproducible scaling laws for contrastive language-image learningcited by 1,163
  7. 2018Self-Attention with Relative Position Representationscited by 1,112
  8. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
  9. 2018DAGs with NO TEARS: Continuous Optimization for Structure Learningcited by 745
  10. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
  11. 2017Poincar'e Embeddings for Learning Hierarchical Representationscited by 674
  12. 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 404
  13. 2019DAG-GNN: DAG Structure Learning with Graph Neural Networkscited by 329
  14. 2018Learning Continuous Hierarchies in the Lorentz Model of Hyperbolic Geometrycited by 261
  15. 2019Gradient-Based Neural DAG Learningcited by 227
  16. 2020Rethinking Positional Encoding in Language Pre-trainingcited by 197
  17. 2020On the Role of Sparsity and DAG Constraints for Learning Linear DAGscited by 186
  18. 2022A Length-Extrapolatable Transformercited by 123
  19. 2022Deep End-to-end Causal Inferencecited by 93
  20. 2020Improve Transformer Models with Better Relative Position Embeddingscited by 73
  21. 2021gCastle: A Python Toolbox for Causal Discoverycited by 60
  22. 2015A fast PC algorithm for high dimensional causal discovery with multi-core PCscited by 45
  23. 2025Massive Values in Self-Attention Modules are the Key to Contextual Knowledge Understandingcited by 44
  24. 2024Fourier Position Embedding: Enhancing Attention's Periodic Extension for Length Generalizationcited by 37
  25. 2020On Low Rank Directed Acyclic Graphs and Causal Structure Learningcited by 23
  26. 2023Hyperbolic Representation Learning: Revisiting and Advancingcited by 21
  27. 2024LangCell: Language-Cell Pre-training for Cell Identity Understandingcited by 14
  28. 2022From graphs to DAGs: a low-complexity model and a scalable algorithmcited by 5
  29. 2020Causal Future Prediction in a Minkowski Space-Timecited by 3
  30. 2024Domain Adaptive and Fine-grained Anomaly Detection for Single-cell Sequencing Data and Beyondcited by 3

Built on by

Not cited yet.