atlas

Research map / Learning theory and algorithms / Sample complexity

Embedding Dimension of Contrastive Learning and $k$-Nearest Neighbors

NeurIPS 2024 · Learning theory and algorithms › Sample complexity · approach: Learning halfspaces under noise

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Studies the smallest ℓp embedding dimension for contrastive triplet constraints and k-nearest-neighbor orderings, giving upper and lower bounds via graph arboricity, with tight Θ(√m) bounds in ℓ2 and experiments on CIFAR.

Problem

Given distance-comparison data (contrastive triplets or k-NN orderings over n points), determine the smallest dimension d of an ℓp space that can represent all the comparisons.

Approach

Relates the embedding dimension to the arboricity of the constraint graph: sparse constraint graphs (low arboricity) admit low-dimensional embeddings, and the k-NN constraint graph has arboricity at most k+1, yielding O(k) dimension in ℓ2 and polynomial-in-k bounds in ℓp, including a construction that preserves the k-NN sets themselves.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
increase embedding dimension from 64 to 256ResNet-18 trained on contrastive samples · CIFAR-10 and CIFAR-100accuracy: 2% accuracy increaseHelped
increase embedding dimension from 256 to 1024ResNet-18 trained on contrastive samples · CIFAR-10 and CIFAR-100accuracyNo clear effect
increase the number of contrastive samples to m ∈ {105, 106} while using d = 128ResNet-18 trained with triplet loss · CIFAR-10 and CIFAR-100satisfied samples: 99% to 93%Hurt

Surprising findings

Limitations

Experimental setup

Datasets: CIFAR-10 CIFAR-100

Benchmarks: CIFAR-10 contrastive triplets CIFAR-100 contrastive triplets CIFAR k-NN preservation

Metrics: fraction of satisfied contrastive triplets k-NN rank-change loss

Baselines: Chen and Indyk 2024 (CI24) lower bound Fischer et al. 2020 (FIM+20)

Builds on: triplet loss Frechet embedding design-based random construction (DKS12) Fact on graph arboricity (Nash-Williams)

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy