paper-with-me

Papers

Small Transformers Compute Universal Metric Embeddings

2022-09-14 · NeurIPS 2023 11 · Anastasis Kratsios, Valentin Debarnot, Ivan Dokmanić

We study representations of data from an arbitrary metric space $\mathcal{X}$ in the space of univariate Gaussian mixtures with a transport metric (Delon and Desolneux 2020). We derive embedding guarantees for feature maps implemented by small neural networks called \emph{probabilistic transformers}. Our guarantees are of memorization type: we prove that a probabilistic transformer of depth about $n\log(n)$ and width about $n^2$ can bi-H\"{o}lder embed any $n$-point dataset from $\mathcal{X}$ with low metric distortion, thus avoiding the curse of dimensionality. We further derive probabilistic bi-Lipschitz guarantees, which trade off the amount of distortion and the probability that a randomly chosen pair of points embeds with that distortion. If $\mathcal{X}$'s geometry is sufficiently regular, we obtain stronger, bi-Lipschitz guarantees for all points in the dataset. As applications, we derive neural embedding guarantees for datasets from Riemannian manifolds, metric trees, and certain types of combinatorial graphs. When instead embedding into multivariate Gaussian mixtures, we show that probabilistic transformers can compute bi-H\"{o}lder embeddings with arbitrarily small distortion.

📄 PDF Abstract BibTeX arXiv:2209.06788

Code (1)

swing-research/universal-embeddings 공식 구현 pytorch

Tasks

Memorization

Similar Papers 제목 키워드 기반

Training Transformers as a Universal Computer

2026-04-28 · Ruize Xu, Chenxiao Yang, Yanhong Li, David McAllester arxiv

We demonstrate that a small transformer can learn to execute programs in MicroPy, a simplified yet computationally universal programming language. Given procedure definitions together with an expression to evaluate, the …

CrossFormer: A Versatile Vision Transformer Hinging on Cross-scale Attention

2021-07-31 · ICLR 2022 4 · Wenxiao Wang, Lu Yao, Long Chen, Binbin Lin 외

Transformers have made great progress in dealing with computer vision tasks. However, existing vision transformers do not yet possess the ability of building the interactions among features of different scales, which is …

image-classificationImage ClassificationInstance Segmentationobject-detection+3

Looped Transformers as Programmable Computers

2023-01-30 · Angeliki Giannou, Shashank Rajput, Jy-yong Sohn, Kangwook Lee 외

We present a framework for using transformer networks as universal computers by programming them with specific weights and placing them in a loop. Our input sequence acts as a punchcard, consisting of instructions and me…

In-Context Learning

Learning Metrics from Teachers: Compact Networks for Image Embedding

2019-04-07 · CVPR 2019 6 · Lu Yu, Vacit Oguz Yazici, Xialei Liu, Joost Van de Weijer 외

Metric learning networks are used to compute image embeddings, which are widely used in many applications such as image retrieval and face recognition. In this paper, we propose to use network distillation to efficiently…

Face Recognitionimage-classificationImage ClassificationImage Retrieval+2

On the Universality of Transformer Architectures; How Much Attention Is Enough?

2025-12-20 · Amirreza Abbasi, Mohsen Hooshmand arxiv

Transformers are crucial across many AI fields, such as large language models, computer vision, and reinforcement learning. This prominence stems from the architecture's perceived universality and scalability compared to…

Reinforcement Learning