---
title: 'DistArc Loss: Radial-Angular Embedding'
url: https://www.emergentmind.com/topics/distarc-loss
type: topic
---

# DistArc Loss: Radial-Angular Embedding

Searching arXiv for the papers and terminology around “DistArc Loss” to ground the article in the cited literature.
DistArc Loss denotes two distinct constructs in recent arXiv literature. In the 2024 HyperSpaceX framework, “DistArc” is the official name of a radial–angular classification loss that combines two angular components and one radial component to arrange embeddings on multiple concentric hyperspheres [2408.02494]. In a separate 2020 face-recognition context, “DistArc” is not an official term but a convenient shorthand for ArcFace classification loss augmented with Distribution Distillation Loss (DDL), yielding an objective of the form \(L_{\text{ArcFace}} + L_{\text{DDL}}\) [2002.03662]. The shared label therefore masks a substantive distinction: one formulation is a native radial–angular loss for multi-hyperspherical representation learning, whereas the other is an ArcFace instantiation of distribution-level distillation from easy to hard samples.

## 1. Terminological scope and literature usage

The term “DistArc” is used officially in HyperSpaceX, where it is presented as the centerpiece of a framework for “radial and angular exploration of HyperSpherical Dimensions” [2408.02494]. By contrast, in the face-recognition paper on Distribution Distillation Loss, “DistArc” does not appear in the paper; it is only a convenient shorthand for “ArcFace + DDL,” meaning an ArcFace-based classifier/backbone regularized by DDL [2002.03662].

| Usage | Source | Meaning |
|---|---|---|
| DistArc | [2408.02494] | Official radial–angular loss in HyperSpaceX |
| “DistArc” shorthand | [2002.03662] | ArcFace classification loss plus DDL regularization |
| Distributional adversarial loss | [2406.03458] | Distinct adversarial-risk notion over perturbation distributions |

This distinction is not merely terminological. In HyperSpaceX, DistArc is designed to alleviate angular crowding by distributing classes across radii as well as directions. In the 2020 face-recognition setting, the ArcFace+DDL combination instead distills the similarity-distribution structure of easy samples into hard samples. A plausible implication is that the same informal name can refer either to a geometry-aware embedding loss or to a distillation-regularized ArcFace objective, depending on context.

## 2. HyperSpaceX DistArc: radial–angular formulation

In HyperSpaceX, DistArc operates in a multi-hyperspherical embedding space in which classes are organized not only by direction but also by distance from the origin [2408.02494]. For sample \(i\) with label \(c := y_i\), the feature is \(x_i \in \mathbb{R}^d\), and each class \(j\) has proxy \(W_j \in \mathbb{R}^d\) with normalized direction
\[
\hat{W}_j = \frac{W_j}{\|W_j\|_2}.
\]
Angular similarity is defined by
\[
\cos\theta_{ij} = \frac{x_i^\top W_j}{\|x_i\|_2\,\|W_j\|_2} = \hat{x}_i^\top \hat{W}_j,
\quad \text{where } \hat{x}_i = \frac{x_i}{\|x_i\|_2}.
\]

The distinctive element is the introduction of per-class radii \(r_j > 0\), which place class proxies on concentric hyperspheres:
\[
\omega_{r_j} = r_j \hat{W}_j.
\]
For the true class \(c\), the resultant vector is
\[
R_c = x_i - \omega_{r_c} = x_i - r_c \hat{W}_c,
\]
and DistArc defines a second angle \(\phi_c\) through
\[
\cos\phi_c = \hat{R}_c^\top \big(-\hat{W}_c\big),
\quad \text{where } \hat{R}_c = \frac{R_c}{\|R_c\|_2}.
\]
The paper describes this geometrically as pulling the tip of \(x_i\) toward the tip of its scaled proxy on the appropriate hypersphere.

Radial structure enters through squared distances to scaled proxies:
\[
\delta_{ij} = \|x_i - \omega_{r_j}\|_2^2,
\qquad
\delta_{ic} = \|x_i - \omega_{r_c}\|_2^2.
\]
DistArc then combines three components in the logits: a primary angular component with additive angular margin \(m\), a secondary angular component \(\cos\phi_c\), and a radial penalty weighted by \(\lambda\). A faithful parameterization given in the paper details is
\[
z_{ic} = s\left(\cos(\theta_{ic}+m) + \cos\phi_c - \lambda\,\delta_{ic}\right),
\]
\[
z_{ij} = s\left(\cos\theta_{ij} - \lambda\,\delta_{ij}\right), \quad j \neq c,
\]
with final cross-entropy
\[
\mathcal{L}_{\text{DistArc}} = -\frac{1}{N}\sum_{i=1}^{N} \log \frac{ \exp\big(z_{ic}\big) }{ \exp\big(z_{ic}\big) + \sum_{j\neq c}\exp\big(z_{ij}\big) }.
\]

The stated roles of the three components are sharply differentiated. \(\cos(\theta_{ic}+m)\) enforces angular separation around class directions; \(\cos\phi_c\) compacts the class in both angle and radius by aligning the feature with the class’s scaled-proxy tip; and \(-\lambda\delta\) binds features to their own radius while discouraging proximity to other classes’ radii. This suggests that HyperSpaceX treats class discrimination as a joint problem of angular margin and radial assignment rather than a purely hyperspherical angular packing problem.

## 3. Geometry, normalization policy, and predictive rule

The HyperSpaceX paper is explicit that angular and radial terms operate under different normalization policies [2408.02494]. Angular components use L2-normalized features and proxies to compute \(\cos\theta_{ij}\), while radial components use the raw feature magnitude \(\|x_i\|_2\). Proxies are first L2-normalized and then scaled by per-class radii to form \(\omega_{r_j}\). The radii \(r_j\) are treated as per-class quantities that may be fixed, scheduled, or made learnable with positivity constraints; the empirical results rely on non-uniform per-class radii to realize multi-hyperspherical separation.

The intended geometry is a set of concentric hyperspheres centered at the origin. The first angular term separates class clusters by direction on their assigned spheres. The second angular term evaluates whether a feature points toward the tip of the class’s scaled proxy at radius \(r_c\). The radial term constrains occupancy of radial bands. The paper’s qualitative interpretation is that this relieves angular competition when many classes would otherwise need to share a single unit sphere.

At inference, HyperSpaceX does not use standard cosine-only scoring. Instead, it introduces a predictive measure based on proximity to scaled proxies:
\[
\hat{y} = \arg\min_{i \in \{1,\dots,K\}} \|R_i\|_2
= \arg\min_{i \in \{1,\dots,K\}} \|x - \omega_{r_i}\|_2.
\]
The paper also gives a law-of-cosines-style expression,
\[
\|R_i\|_2 = \|x\|_2 \,\cos\phi_i + \|\omega_{r_i}\|_2\,\cos\big(\pi-(\theta_i+\phi_i)\big),
\]
while noting that direct computation of \(\|x-\omega_{r_i}\|_2\) is simplest and numerically stable.

This inference rule is central to the method’s identity. It means that DistArc is not merely a training-time regularizer on top of a conventional angular classifier; it changes the representation geometry and the decision rule simultaneously. A plausible implication is that its benefits are expected to be most visible when angular-only embeddings are capacity-limited, such as low-dimensional regimes or large-class settings.

## 4. HyperSpaceX training procedure, hyperparameters, and empirical profile

The training procedure specified for DistArc follows a standard backbone-plus-proxy pipeline with additional radial computations [2408.02494]. For each batch, one computes feature vectors \(x_i\), normalized directions \(\hat{x}_i\) and \(\hat{W}_j\), scaled proxies \(\omega_{r_j}\), angular similarities \(\cos\theta_{ij}\), the true-class margin term \(\cos(\theta_{ic}+m)\), the resultant vector \(R_c\), the second angle \(\cos\phi_c\), and radial distances \(\delta_{ij}\). The resulting logits are passed through softmax and optimized by backpropagation through backbone parameters and proxies; if \(r_j\) are learnable, they are updated with positivity constraints.

The reported hyperparameters include a typical angular margin \(m = 0.4\), radial weight \(\lambda \in \{0.003, 0.005\}\) for object classification depending on dataset complexity, and for face recognition a schedule from \(0.001\) to \(0.005\) incremented by \(0.001\) every ten epochs and then held fixed. Backbones include iResNet50, RN101 (CLIP), ViT-B, and ViT-L. For simple datasets such as MNIST and FashionMNIST, the paper uses SGD with \(lr=10^{-2}\) and weight decay \(5\times10^{-4}\); for face recognition on CASIA-WebFace, it uses SGD with \(lr=10^{-3}\) and weight decay \(5\times10^{-4}\). Embedding sizes span 2D, 512D, and 2048D.

The empirical profile emphasizes gains in low-dimensional and high-class-count settings. The paper reports, among other results, the following improvements over softmax or angular-loss baselines: TinyImageNet gains of \(+22\%\) in 2D, \(+1.44\%\) in 512D, and \(+4.93\%\) in 2048D; CIFAR-100 gains of \(+19.57\%\) in 2D, \(+6.19\%\) in 512D, and \(+2.61\%\) in 2048D; and for CUB-200 with ViT-L at 2D, an improvement of \(\sim 20.34\%\) [2408.02494]. On ImageNet-1K with iResNet50, DistArc leads at 32D and 128D and is second-best at 512D. For face recognition with iResNet50 and 512D embeddings, the paper reports LFW \(99.54\%\), CFP-FP \(95.41\%\), AgeDB-30 \(94.03\%\), CA-LFW \(93.32\%\), and CP-LFW \(91.10\%\), with MS1Mv2 results including LFW \(99.82\%\) and AgeDB-30 \(98.21\%\).

Ablations attribute improvements to all three components. Using only \(\cos\theta\) is the weakest setting; adding \(\cos\phi\) helps; adding radial \(\delta\) helps more; and combining \(\cos\theta + \cos\phi + \delta\) yields the best performance across MNIST, FashionMNIST, and CIFAR-10. The paper further notes that relative to ArcFace, DistArc adds per-class radial distances \(\delta_{ij}\) and one extra angle \(\phi_c\) per sample, with \(O(Kd)\) cost comparable to logits and minor overhead under vectorized implementations.

## 5. ArcFace plus Distribution Distillation Loss: the alternate “DistArc” usage

In the 2020 face-recognition literature, the relevant formal object is Distribution Distillation Loss (DDL), proposed to improve performance on hard samples by narrowing the performance gap between easy and hard samples [2002.03662]. Under the shorthand mapping given in the provided material, “DistArc” means DDL instantiated on top of an ArcFace classifier/backbone: ArcFace provides the classification loss, while DDL regularizes pairwise similarity distributions.

ArcFace is defined on normalized embeddings \(f_i = F(x_i)\in\mathbb{R}^d\) and normalized class weights \(W_j\in\mathbb{R}^d\), with \(\cos\theta_j = W_j^\top f_i\). Its logits are
\[
\ell_y = s \cdot \cos(\theta_y + m),
\qquad
\ell_j = s \cdot \cos(\theta_j), \quad j \neq y,
\]
and the classification term is the cross-entropy over the softmax of these logits.

DDL acts not on class-wise logits but on pairwise cosine similarities in the embedding space. For each subset—teacher and student—it estimates two one-dimensional distributions: a positive-pair similarity distribution for same-identity pairs and a negative-pair similarity distribution for different-identity pairs. Teacher denotes easy samples and student denotes hard samples. The split is task-specific and fixed before training: on SCface, HR (\(d3\)) are easy and LR (\(d1,d2\)) are hard; on VGGFace2-based pose experiments, easy means yaw \(< 10^\circ\) and hard means yaw \(>45^\circ\); on COX, Caucasian faces are easy and Mongolian faces hard because the CASIA pre-training set is biased to Caucasian [2002.03662].

Within each mini-batch, positive pair similarities are
\[
s_i^+ = \langle F(x^{\text{pos}}_{i1}), F(x^{\text{pos}}_{i2})\rangle,
\]
and negative pair similarities are obtained by online hard mining:
\[
s_i^- = \max_j \left\{ \langle F(x^{\text{neg}}_i), F(x^{\text{neg}}_j)\rangle \mid j=1,\dots,b \right\},
\]
where identities differ. Positive pairs with \(s_i^+ < 0\) are treated as outliers and removed.

Soft histograms over cosine similarities in \([-1,1]\) are built using uniformly spaced nodes \(t_1=-1,\dots,t_R=1\), step \(\Delta = 2/(R-1)\), and Gaussian soft assignment
\[
\delta_{i,j,r} = \exp(-\gamma (s_{ij}-t_r)^2).
\]
These produce normalized teacher histograms \(P^+, P^-\) and student histograms \(Q^+, Q^-\). DDL then combines a KL term
\[
L_{KL} = \lambda_1 D_{KL}(P^+ \| Q^+) + \lambda_2 D_{KL}(P^- \| Q^-),
\]
where
\[
D_{KL}(P\|Q)=\sum_{r=1}^{R} P(t_r)\log\frac{P(t_r)}{Q(t_r)},
\]
with an order loss
\[
L_{\text{order}} = -\lambda_3 \left[(E_P[s^+] - E_P[s^-]) + (E_Q[s^+] - E_Q[s^-])\right].
\]
The total loss is
\[
L_{\text{DDL}} = L_{KL} + L_{\text{order}},
\qquad
L_{\text{total}}(\Theta)=L_{\text{ArcFace}} + L_{\text{DDL}}.
\]

The stated mechanism is distributional rather than samplewise. KL divergence forces the student’s positive and negative similarity histograms to approximate the teacher’s better-separated histograms, and the order loss explicitly maximizes the expectation margin \(E[s^+] - E[s^-]\) for both teacher and student, thereby reducing overlap between positive and negative distributions. The paper contrasts this with triplet, focal, OHEM, and classical KD-style methods such as SP and RKD, arguing that distribution-level alignment is less sensitive to noisy sampling.

## 6. Optimization details, empirical findings, and limitations across the two usages

For ArcFace+DDL, the training pipeline uses two data pools—easy \(\mathcal{E}\) and hard \(\mathcal{H}\)—with batch construction built from positive pairs and singletons for hard-negative mining [2002.03662]. On SCface the paper uses \(b=16\) and per-GPU batch size \(3b\times3=144\), reflecting one teacher plus two student distributions for \(d1\) and \(d2\); on other datasets \(b=32\) and per-GPU batch size \(3b\times2=192\). The backbone choices are ResNet-50 and ResNet-100 as in ArcFace; optimization uses SGD, momentum \(0.9\), weight decay \(5\times10^{-4}\), and learning rate \(10^{-3}\) divided by \(10\) at half the iterations. Hardware is \(8\times\) NVIDIA Tesla P40 GPUs with a TensorFlow implementation. Additional training cost comes from pair-similarity computation, soft-histogram estimation, and KL/order losses, with no additional inference-time cost.

Empirically, ArcFace+DDL improves especially on hard subsets. On SCface Rank-1 identification, ArcFace (CASIA+R50)-FT yields average \(86.3\) with \(d1:67.3\), \(d2:93.5\), \(d3:98.0\), while DDL reaches average \(94.4\) with \(d1:86.8\), \(d2:98.3\), \(d3:98.3\). For ArcFace (MS1M+R100)-FT the average is \(92.7\) with \(d1:80.5\), \(d2:98.0\), \(d3:99.5\), and DDL reaches \(97.0\) with \(d1:93.2\), \(d2:99.2\), \(d3:98.5\). On pose benchmarks with VGGFace2 pre-training, ArcFace (VGG+R100) obtains CFP-FP \(98.30\) and CPLFW \(93.13\), whereas DDL yields CFP-FP \(98.53\) and CPLFW \(93.43\). On IJB-B and IJB-C, the paper reports higher TAR at \(FAR=10^{-4}\) and \(10^{-3}\), as well as higher FPIR\(=0.1\) and Rank-1 in \(1\!:\!N\) mixed-media settings [2002.03662].

The ablations are structurally informative. On SCface, KL+Order is best at average \(94.4\), compared with JS+Order \(93.4\) and EMD+Order \(90.5\). Hard-negative mining improves average performance from \(90.6\) with random negatives to \(94.4\). Modeling \(d1\) and \(d2\) as separate student distributions outperforms mixing them into one, with \(94.4\) versus \(92.1\). The paper also reports that on COX, DDL achieves comparable results to ArcFace finetuning with only \(\sim 50\%\) of training subjects.

Both literatures also state limitations. For HyperSpaceX DistArc, performance depends on sensible radius assignment, gains may be smaller in extremely high-dimensional embeddings, and excessive \(\lambda\) can cause radial terms to overshadow angular margins [2408.02494]. For ArcFace+DDL, benefits diminish if easy and hard distributions are not meaningfully different, the order-loss weight \(\lambda_3\) is sensitive, histogram parameters \(\gamma\) and \(R\) can destabilize gradients if chosen poorly, hard-negative mining depends on batch composition, and substantial label noise degrades the estimated distributions despite dropping positive pairs with negative similarity [2002.03662].

A final source of confusion is lexical rather than methodological. “Distributional adversarial loss” is a different concept entirely: it defines adversarial risk over families of perturbation distributions and studies PAC-learning guarantees, randomized smoothing, and derandomization [2406.03458]. It is unrelated to the HyperSpaceX DistArc loss except for the shared use of distributional language.

Taken together, the literature supports a bifurcated understanding of DistArc Loss. In its official 2024 usage, it is a radial–angular cross-entropy objective for multi-hyperspherical representation learning that combines \(\cos(\theta+m)\), \(\cos\phi\), and radial distance penalties [2408.02494]. In its informal 2020 usage, it denotes ArcFace regularized by Distribution Distillation Loss, where easy-sample similarity distributions serve as teachers for hard-sample distributions through KL alignment and expectation-gap maximization [2002.03662]. The two approaches address different bottlenecks—angular crowding in one case, hard-sample generalization in the other—even though both build on ArcFace-era embedding geometry.

Source: https://www.emergentmind.com/topics/distarc-loss