Unverified 2026

Concave Heterogeneous Prototype Layer

Implementation & benchmark of arXiv:2607.16764 — When Is Heterogeneous Distance-Decay Facility Location Tractable? A Structural Classification, Exact Methods, and a Real-World Study

Usefulness6/10
Difficulty5/10
Novelty7/10

Source paper: When Is Heterogeneous Distance-Decay Facility Location Tractable? A Structural Classification, Exact Methods, and a Real-World Study arXiv:2607.16764 ⓘ · analyzed Aug 30, 2026

AI-generated research hypothesis, automatically tested. Not peer-reviewed.

Idea description

Replace ordinary k-means-style prototype assignment with a distance-decay capture layer whose scale varies across samples, tokens, or classes. Train with a cooperative concave surrogate over prototype centers and anneal toward hard nearest-prototype assignment; this explicitly preserves useful gradients for multiple nearby prototypes while retaining sparse facility-like behavior at inference.

Formulas

$$Z(\mathbf X)=\sum_{i\in I}w_i\max_{j\in J}\phi_i\!\left(\|p_i-X_j\|\right)=\sum_{i\in I}w_i\phi_i\!\left(\min_{j\in J}\|p_i-X_j\|\right).$$
$$\phi_i(r)=e^{-r/R_i},\qquad \phi_i(r)=\left[1-r/R_i\right]^+,\qquad \phi_i(r)=\mathbf 1[r\le R_i].$$
$$F(\mathbf X)=\sum_i w_i\,g\!\left(\sum_{j=1}^{K}\phi_i(\|p_i-X_j\|)\right),\qquad g(s)=\log(1+s).$$
$$a_{ij}^{(\tau)}=\frac{\exp\!\left(\phi_i(r_{ij})/\tau\right)}{\sum_{\ell=1}^{K}\exp\!\left(\phi_i(r_{i\ell})/\tau\right)},\qquad \frac{\partial \phi_i(r_{ij})}{\partial X_j}=-\phi_i'(r_{ij})\frac{X_j-p_i}{r_{ij}},\quad r_{ij}=\|p_i-X_j\|.$

Mathematical statement

The paper's nearest-distance reduction assumes each decay function \(\phi_i:\mathbb{R}_+\to[0,1]\) is non-increasing with \(\phi_i(0)=1\). For point or embedding \(p_i\), prototype centers \(X_j\), and weight \(w_i\), the exact hard objective is \(Z(\mathbf X)=\sum_i w_i\max_j\phi_i(\|p_i-X_j\|)=\sum_i w_i\phi_i(d_i(\mathbf X))\), where \(d_i(\mathbf X)=\min_j\|p_i-X_j\|\). The paper's tractability classification states that the continuous cooperative objective is concave in the centers when the decay is concave as a function of distance, and only then. A clipped linear decay \(\phi_i(r)=[1-r/R_i]^+\) is not globally concave because its derivative jumps from \(-1/R_i\) to \(0\) at \(r=R_i\); use an unclipped affine decay on a bounded distance domain, or a smooth concave approximation. The neural relaxation is \(F(\mathbf X)=\sum_i w_i g(\sum_j\phi_i(\|p_i-X_j\|))\), with nondecreasing concave \(g\), for example \(g(s)=\log(1+s)\). Here \(R_i>0\) is a learned tolerance scale, \(r_{ij}=\|p_i-X_j\|\), \(K\) is the number of prototypes, and \(\tau>0\) is a temperature for soft assignments. Concavity of \(g\circ\sum_j\phi_i\) supplies stable gradients, while temperature annealing recovers the hard nearest-prototype objective.

Implementation notes

Integrate this as a prototype or routing layer after an encoder produces embeddings \(p_i\in\mathbb R^d\). Maintain \(K\) learnable centers \(X_j\), and either predict a positive scale \(R_i=\operatorname{softplus}(h(p_i))+\epsilon\) per token or use one scale per class or domain. During the first training phase, compute \(r_{ij}=\|p_i-X_j\|+10^{-6}\), choose a concave decay such as \(\phi_i(r)=1-r/R_i\) while constraining normalized embeddings so relevant distances remain below one, and evaluate \(F=\sum_iw_i\log(1+\sum_j\phi_i(r_{ij}))\). Backpropagate through centers, encoder, and scales. Pseudocode: P=encoder(x); R=softplus(scale_net(P))+eps; D=euclidean_distance(P,X); Phi=1-D/R; F=(w*log1p(Phi.sum(-1))).sum(); loss=task_loss-lambda*F; update(loss). After several epochs, add hard-assignment supervision with j*=argmin(D,dim=-1) and a softmax over \(\phi/\tau\), annealing \(\tau\) from 0.5 to 0.05. Mask distances outside the valid affine domain rather than silently relying on the clipped decay; compare this version against the clipped baseline to test the concavity prediction. The mathematical component is the concave cooperative objective and its analytic center gradient; empirical quantities are embedding distances and learned \(R_i\). First test on CIFAR-100 or a 1M-token language-model embedding subset with 64 or 256 prototypes, comparing against ordinary soft k-means or cosine softmax routing. Measure downstream accuracy, assignment entropy, center-collapse rate, gradient variance, and convergence at equal FLOPs. Success is lower loss and fewer dead prototypes during training, followed by equal-or-better hard-routing accuracy, especially on data groups with heterogeneous density or distance tolerance.

Verification

This idea has not been verified yet.

Verification happens in two stages: Stage 1 — a mechanism check on a toy system confirms the claimed mathematical phenomenon reproduces; Stage 2 — a benchmark implements the idea on a real (small) neural network task and compares it against a tuned baseline over 8 paired seeds with a permutation test.

Artifacts

Artifacts unavailable.