Trading Positional Complexity vs. Deepness in Coordinate Networks

Jianqiao Zheng, Sameera Ramasinghe, Xueqian Li, Simon Lucey
5/18/2022
cs.CV

Official code: osiriszjq/complex_encoding (31 stars, Jupyter Notebook, MIT, last commit 2023-09-02).

Abstract

It is well noted that coordinate-based MLPs benefit -- in terms of preserving high-frequency information -- through the encoding of coordinate positions as an array of Fourier features. Hitherto, the rationale for the effectiveness of these positional encodings has been mainly studied through a Fourier lens.

Show full abstract

In this paper, we strive to broaden this understanding by showing that alternative non-Fourier embedding functions can indeed be used for positional encoding. Moreover, we show that their performance is entirely determined by a trade-off between the stable rank of the embedded matrix and the distance preservation between embedded coordinates. We further establish that the now ubiquitous Fourier feature mapping of position is a special case that fulfills these conditions. Consequently, we present a more general theory to analyze positional encoding in terms of shifted basis functions. In addition, we argue that employing a more complex positional encoding -- that scales exponentially with the number of modes -- requires only a linear (rather than deep) coordinate function to achieve comparable performance. Counter-intuitively, we demonstrate that trading positional embedding complexity for network deepness is orders of magnitude faster than current state-of-the-art; despite the additional embedding complexity. To this end, we develop the necessary theoretical formulae and empirically verify that our theoretical claims hold in practice.

View on arXivView PDF

Code Implementations(1)

MIT

Trading Positional Complexity vs Deepness in Coordinate Networks

310Jupyter Notebook, PythonMar 17, 20223 years agoMIT
deep-learningpositional-encoding

Similar Papers

Cite this paper

@article{zheng2022trading,
  title  = {Trading Positional Complexity vs. Deepness in Coordinate Networks},
  author = {Jianqiao Zheng and Sameera Ramasinghe and Xueqian Li and Simon Lucey},
  year   = {2022},
  eprint = {2205.08987},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.08987}
}

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/2205.08987.svg)](https://codeofpaper.com/paper/2205.08987)

Discussion