Communicability-Inspired Positional Encoding (CIPE)

Yipeng Zhang, Zhongtian Sun, Pietro Liò, Kelin Xia
6/24/2026
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

Positional encodings (PEs) are essential for Transformers. Yet designing effective PEs for non-Euclidean graphs remains challenging. Such encodings should ideally induce an Attention-Compatible Geometry for self-attention: not merely describing graph structure, but defining a geometry whose inner products reflect meaningful structural relatedness. To realize this geometry, we propose Communicability-Inspired Positional Encoding (CIPE), built from communicability, a measure between pairs of nodes that aggregates contributions from paths of all lengths. By construction, CIPE inner products recover communicability, converting global multi-path connectivity into an attention-ready similarity geometry. For practical Transformer training, we introduce dimensionality alignment, mapping graph-size-dependent CIPE representations to prescribed dimensions while faithfully preserving the induced geometry. Empirically, CIPE improves structure-agnostic Transformers by 35.5% on average across seven benchmarks, outperforming representative PEs; it also consistently improves structure-biased graph Transformers, where competing PEs often yield only marginal benefits. These results position CIPE as a principled framework for attention-compatible graph positional encodings.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhang2026communicabilityinspired,
  title  = {Communicability-Inspired Positional Encoding (CIPE)},
  author = {Yipeng Zhang and Zhongtian Sun and Pietro Liò and Kelin Xia},
  year   = {2026},
  eprint = {2606.25293},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.25293v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.25293.svg)](https://codeofpaper.com/paper/2606.25293)

Discussion