---
title: Boundary-Aware Exemplar Prioritization
url: https://www.emergentmind.com/topics/boundary-aware-exemplar-prioritization
type: topic
---

# Boundary-Aware Exemplar Prioritization

Boundary-aware exemplar prioritization denotes a family of selection, retention, or synthesis strategies in which examples are valued according to their relation to a task-relevant boundary rather than by relevance, density, or uniform sampling alone. In the recent literature, that boundary is instantiated in several distinct ways: a classifier decision threshold in interactive rare-category retrieval, an uncertainty or confidence boundary in preference alignment, an old/new class frontier in exemplar-free continual learning, a generator competence boundary in retrieval-augmented generation, and, more loosely, sparse semantic frontiers or image-edge-aligned uncertainty in corpus curation and representation learning [2603.24480] [2602.01207] [2606.05695] [2602.03689] [2605.28534] [2202.02371] [2603.15267]. Taken together, these works suggest that the topic is best understood as a design principle for data selection under asymmetry, redundancy, or shifting utility, rather than as a single algorithmic template.

## 1. Conceptual scope and recurrent boundary notions

The most direct formulations treat exemplar prioritization as a ranking problem over candidate items. In "Positive-First Most Ambiguous" [2603.24480], the ranked items are unlabeled images in an interactive retrieval loop. In SAGE [2602.01207], they are preference pairs in reasoning-model alignment. In "Revisiting Prototype Rehearsal for Exemplar-Free Continual Learning" [2606.05695], they are synthetic old-class features generated from prototypes and enemy classes. In BAR-RAG [2602.03689], they are evidence sets for a generator. GUI-CIDER instead performs stochastic retention over synthesized textual GUI knowledge, while "Boundary-aware Information Maximization for Self-supervised Medical Image Segmentation" and "Exemplar Diffusion" provide only indirect or implicit analogues [2605.28534] [2202.02371] [2603.15267].

| Work | Prioritized unit | Boundary notion |
|---|---|---|
| PF-MA | Unlabeled retrieval candidates | \(f(x)=0.5\) decision threshold |
| SAGE | Preference pairs | \(p \approx 0.5\) confidence boundary |
| CEOS + ACB | Synthetic old-class features | Old/new frontier via nearest enemy |
| BAR-RAG | Evidence sets | Goldilocks Zone \(p(S)\approx c\) |
| GUI-CIDER | Synthesized GUI knowledge samples | Sparse semantic regions and dense-region rescue |
| Boundary-aware Information Maximization | Pixels or regions implicitly | Entropy transitions aligned to edges |
| Exemplar Diffusion | Inference-time boxes implicitly | Spatial anchor and extent prior |

A recurrent contrast in these papers is between three regimes. One regime consists of easy or dense-core examples, which are often redundant. A second consists of maximally ambiguous or unstable examples, which can be noisy or utility-mismatched. A third consists of boundary-adjacent but still useful examples: informative positives in PF-MA, confident errors in SAGE, nearest-enemy-constrained synthetic old features in CEOS, or evidence sets near a generator’s competence boundary in BAR-RAG. This suggests that “boundary-aware” does not mean indiscriminate preference for the most ambiguous samples; rather, it typically means selective exploitation of a frontier region defined by task utility.

## 2. Positive-side boundary sampling in interactive rare-category retrieval

The clearest explicit formulation appears in "Positive-First Most Ambiguous: A Simple Active Learning Criterion for Interactive Retrieval of Rare Categories" [2603.24480]. The problem is an imbalanced binary retrieval task over a large image collection, with positive class equal to the user’s class-of-interest and negative class equal to everything else. Images are embedded as
\[
D=\{x_i\}_{i\in[1,N]}, \qquad x_i=\Phi(I_i)\in\mathds{R}^d.
\]
The labeled set is initialized from a tiny query with \(N_p=1\) positive and \(N_n=5\) negatives; the system runs for up to \(T=25\) rounds with batch budget \(b=10\). The paper frames this as severe class imbalance, tiny per-iteration annotation budgets, and low latency, with the objective of maximizing useful rare-class discovery early rather than asymptotic classifier accuracy.

The paper’s critique of conventional active learning is that standard ambiguity sampling assumes roughly symmetric class priors, symmetric labeling utility, and enough budget for uncertainty-driven exploration to pay off. Under rare-class frequencies such as \(1/1000\) or \(1/10000\), symmetric boundary sampling mostly returns negatives. The baseline "Most Ambiguous" score,
\[
MA(x_i)=1-|0.5-f(x_i)|,
\]
is boundary-aware but oversamples near-boundary negatives. The baseline "Most Positive" score,
\[
MP(x_i)=f(x_i),
\]
returns likely positives quickly but tends to retrieve easy and redundant positives.

PF-MA is the asymmetric alternative:
\[
\text{PF-MA}(x_i)=(1-|0.5-f(x_i)|)\,\mathds{1}_{(f(x_i)\ge 0.5)}+f(x_i)\,\mathds{1}_{(f(x_i)<0.5)}.
\]
On the positive half-space, the score is ambiguity-based; on the negative half-space, it is a positive-likelihood score. The paper states that PF-MA first selects positives near the decision boundary, then less ambiguous positives, and only includes negatives if the iteration budget is not yet filled. The classifier is a linear SVM producing scores \(f:x\mapsto[0,1]\), and the method is designed for frozen pretrained descriptors, specifically CLIP and DINOv2.

The paper also introduces a class coverage metric to quantify whether retrieved positives span the internal variability of the target class. For class \(C\) with retrieved positives \(P_t\), coverage is defined by clustering class instances with K-means and measuring the fraction of clusters hit:
\[
cov_t^C=\frac{\#\{CLS_i \mid \exists x\in P_t,\ x\in CLS_i\}}{K},
\]
with main choice \(K=32\), averaged over 10 K-means runs.

Empirically, PF-MA is best or tied-best nearly everywhere in class coverage at iteration 25. On ImageNet-LT with DINOv2, for example, \(cov_5\) is \(0.423\) for MA, \(0.396\) for MP, and \(0.493\) for PF-MA; \(cov_{15}\) is \(0.736\), \(0.688\), and \(0.79\); and \(cov_{25}\) is \(0.804\), \(0.776\), and \(0.844\) [2603.24480]. On CIFAR100-LT and ImageNet-LT, PF-MA keeps more than \(80\%\) positives in the selected batch with low variance across iterations while remaining top-tier in F1. The paper’s interpretation is that these are not merely easy positives, but boundary-adjacent positives that remain informative for classifier refinement.

PF-MA also clarifies an important misconception. Boundary awareness here is not raw SVM hyperplane-distance sampling, nor ordinary symmetric uncertainty sampling. It is an asymmetric rule that preserves boundary informativeness while restricting the primary search region to the predicted-positive side of the decision boundary. In that sense, it is exemplar prioritization under label asymmetry.

## 3. Confidence-boundary filtering in preference alignment

SAGE, introduced in "Not All Preferences Are Created Equal: Stability-Aware and Gradient-Efficient Alignment for Reasoning Models" [2602.01207], recasts exemplar prioritization for preference pairs. The paper argues that standard DPO-style alignment treats all preference pairs uniformly even though sample utility depends on the current policy state \(\pi_{\theta_t}\). Two failure modes are emphasized: trivial pairs with negligible gradients, and unstable pairs near uncertain decision boundaries, where the local loss geometry is high-curvature and updates can be noisy.

The method therefore defines a dynamic, policy-aware prioritization scheme with two layers. The coarse layer is a curriculum over disjoint candidate pools
\[
\mathcal D=\bigcup_{k=1}^K \mathcal P_k, \qquad \mathcal P_i\cap\mathcal P_j=\varnothing,
\]
sampled from easy, medium, and hard strata according to a linearly evolving mixture \(\rho_c(k)\). The appendix gives the concrete endpoints: start mix \((0.90\ \text{easy},\ 0.10\ \text{medium},\ 0.00\ \text{hard})\), end mix \((0.40\ \text{easy},\ 0.40\ \text{medium},\ 0.20\ \text{hard})\), and keep-ratio schedule from \(1.0\) to \(0.4\).

The fine layer uses a stability-aware score. For the response-level logistic term \(\ell(r)=-\log \sigma(zr)\), with \(p=\sigma(zr)\), the curvature proxy is
\[
h=p(1-p),
\]
and the gradient-signal proxy satisfies
\[
g^2=(1-p)^2.
\]
The resulting sample score is
\[
s_i(x)=\frac{1}{L_i}\sum_{z\in\{y^w,y^l\}}\frac{(1-p_z)^2}{p_z(1-p_z)+\epsilon}.
\]
Because \(h\) peaks at \(p=0.5\), the score explicitly suppresses samples near the model’s uncertainty boundary. The preferred exemplars are therefore informative, confident errors rather than maximally ambiguous pairs.

This is a boundary-aware formulation in a negative sense: the boundary is treated as a warning signal rather than a target region. The paper is explicit that the method does not prioritize near-boundary examples indiscriminately. Instead, it rejects already-solved points with tiny \(g\), rejects highly uncertain points with large \(h\), and favors examples with strong residual error but lower instability. That distinction is central to the topic: boundary-aware exemplar prioritization can either seek a boundary region or avoid it, depending on how utility is defined.

The empirical evidence is consistent with this view. Across Qwen2.5-Instruct 1.5B, 3B, and 7B, SAGE improves average accuracy from \(36.03\) to \(37.46\), \(46.00\) to \(47.65\), and \(56.64\) to \(59.04\), respectively. On 7B, Minerva improves from \(29.40\) to \(33.10\), AIME24 from \(26.70\) to \(33.30\), and AMC23 from \(62.50\) to \(70.00\). Ablations show that removing the curvature term \(h\) causes among the largest drops, and gradient-norm plots show lower scale and lower variance than standard DPO [2602.01207]. The paper interprets this as evidence that ambiguous preference pairs near uncertain confidence boundaries are actively harmful for optimization stability.

## 4. Nearest-enemy boundary synthesis in exemplar-free continual learning

"Revisiting Prototype Rehearsal for Exemplar-Free Continual Learning: Manifold-Aware Boundary Sampling with Adaptive Class-Balanced Loss" [2606.05695] shifts the topic from ranking existing items to generating synthetic old-class exemplars near old/new class frontiers. In exemplar-free class-incremental learning, old classes are summarized by prototypes
\[
\bm{\mu}_c^{\,t-1}=\frac{1}{|\mathcal D_c|}\sum_{x\in\mathcal D_c}F_{t-1}(x),
\]
and raw old samples cannot be stored. The paper argues that standard prototype rehearsal fails because it samples around isolated class centers, ignores nearby enemy classes, suffers from prototype drift, and induces a hidden old/new imbalance.

The proposed Constrained Expansive Over-Sampling (CEOS) uses current-task enemy features to construct boundary-aware synthetic old-class features. For a prototype \(\mathbf p\) and its nearest enemy \(\mathbf e\), the synthetic feature is
\[
\tilde{\mathbf x}=\lambda \mathbf p+(1-\lambda)\mathbf e,
\qquad
\lambda\in(\tau,1),\quad \tau>\tfrac12.
\]
The lower bound \(\tau>\frac12\) enforces prototype dominance. The paper also defines a Mahalanobis metric
\[
d_M(\mathbf x,\mathbf p)=\sqrt{(\mathbf x-\mathbf p)^\top\Sigma^{-1}(\mathbf x-\mathbf p)}
\]
and requires
\[
d_M(\tilde{\mathbf x},\mathbf p)<d_M(\tilde{\mathbf x},\mathbf e),
\]
so that the synthetic sample remains on the prototype’s side of the local boundary. In experiments, CEOS selects one enemy per prototype, \(k=1\), which the paper reports as the best setting.

This construction makes the prioritized region explicit: not the prototype core, but the segment from old-class prototype toward the nearest confusing new-class feature, truncated so that the sample does not cross the boundary. The method is therefore boundary-aware, enemy-aware, and manifold-aware in the paper’s terminology. The paper’s asymptotic bias argument further motivates this design by claiming that with only \(m\ll K\) replay instances per old class, the expected old-class posterior under softmax vanishes asymptotically:
\[
\lim_{T\to\infty}\mathbb E_{x\sim\mathcal D_c}\bigl[p_{W_T}(y=c\mid x)\bigr]=0.
\]

Boundary-aware generation is coupled with optimization-time weighting through the Adaptive Class-Balanced loss. For class \(c\) first seen at task \(t_c\), the virtual sample count is
\[
N_c(t)=\min\Bigl\{N_{\max},\,N_{\min}+\bigl(N_{\max}-N_{\min}\bigr)\bigl(\tfrac{t-t_c}{T}\bigr)^\gamma\Bigr\},
\]
and the class-balanced weight is
\[
w_c(t)=\frac{1-\beta}{1-\beta^{N_c(t)}}.
\]
The paper’s interpretation is that freshly created prototypes should be amplified early and gradually attenuated as richer supervision accumulates. This is a temporal prioritization mechanism layered on top of geometric boundary targeting.

The ablations on TinyImageNet are especially direct. For \(T=20\), the base EFC-style baseline yields \(A_{\text{last}}=28.4\) and \(A_{\text{inc}}=42.1\); CEOS only gives \(30.4\) and \(43.0\); ACB only gives \(30.9\) and \(43.8\); and CEOS + ACB gives \(31.8\) and \(44.3\). Table 4 further shows that increasing Gaussian prototype samples from \(N=64\) to \(128\) or \(256\) does not help, while CEOS at \(N=64\) is better than Gaussian and bi-interpolation on both \(T=10\) and \(T=20\) [2606.05695]. The paper’s conclusion is that the decisive factor is where synthetic replay support is placed in feature space, not merely how many synthetic samples are produced.

## 5. Goldilocks and density frontiers in evidence and corpus selection

Two 2026 papers broaden the topic beyond geometric class boundaries. "Rethinking the Reranker: Boundary-Aware Evidence Selection for Robust Retrieval-Augmented Generation" [2602.03689] defines the relevant boundary in terms of generator competence. For an evidence set \(S\), let \(p(S)\) be the empirical probability that the generator answers correctly. BAR-RAG seeks the generator’s Goldilocks Zone, where evidence is neither trivially easy nor fundamentally unanswerable. The core boundary reward is
\[
R_{\text{bdy}}(S)=\min\left(\frac{p(S)}{c},\frac{1-p(S)}{1-c}\right),
\]
typically with \(c=0.5\). Evidence with \(p(S)\approx 1\) is too easy; evidence with \(p(S)\approx 0\) is too hard; evidence with \(p(S)\approx c\) is challenging yet sufficient.

The selector is trained by reinforcement learning with generator feedback. Candidate evidence sets are sampled from the selector, the frozen generator is rolled out multiple times to estimate \(p(S)\), and the selector reward combines the boundary term, a relevance term, a format-validity gate, and a count penalty. The paper also filters training queries whose mean correctness lies outside \([m_{\min},m_{\max}]\) or whose variance is too low, specifically using \(m_{\min}=0.25\), \(m_{\max}=0.85\), and \(V_{\min}=0.02\), so that evidence selection actually matters during selector learning. This yields a dynamic competence-aware notion of exemplar utility.

Empirically, BAR-RAG reports an average gain of \(10.3\) percent over strong baselines. Average EM improves from \(27.0\) to \(34.2\) for Qwen-2.5-3B-Instruct, from \(26.9\) to \(39.1\) for Qwen-2.5-7B-Instruct, and from \(29.1\) to \(40.7\) for LLaMA-3.1-8B-Instruct. The ablation without \(R_{\text{bdy}}\) drops average performance from \(44.2\) to \(40.2\), which the paper treats as evidence that boundary awareness, rather than relevance alone, is the key ingredient [2602.03689].

GUI-CIDER, by contrast, is not explicitly boundary-aware in the classification-margin sense. "GUI-CIDER: Mid-training GUI Agents via Causal Internalization and Density-aware Exemplar Reselection" [2605.28534] defines a density-aware, causality-weighted retention rule over synthesized textual GUI knowledge. The causal saliency score is
\[
f(x)=\tanh\left(\frac{\mathcal K(x)}{\gamma}\right),
\]
the normalized density score is \(d(x)\in[0,1]\), and the retention probability is
\[
g(x)=\frac{1}{1+\alpha d(x)}+\lambda f(x)\left(1-\frac{1}{1+\alpha d(x)}\right).
\]
The method performs stochastic thinning rather than deterministic top-\(k\) ranking:
\[
\mathcal X_{\text{high}}=\{x\in\mathcal X\mid \xi_x\le g(x)\}, \qquad \xi_x\sim \text{Uniform}(0,1).
\]

The theoretical properties are explicit. \(g(x)\) increases with \(f(x)\), decreases with \(d(x)\), satisfies \(\frac{\partial}{\partial d}(d\cdot g)>0\), and has positive mixed derivative
\[
\frac{\partial^2 g}{\partial f\partial d}=\frac{\lambda\alpha}{(1+\alpha d)^2}>0.
\]
The paper interprets this as making “the marginal value of causal saliency” larger in denser regions, so that “the most logically rigorous exemplars” stand out among redundant samples. Strictly speaking, this is not decision-boundary prioritization. A plausible implication is that it acts as a weak frontier-preservation mechanism by favoring sparse semantic regions and rescuing decision-relevant samples inside dense clusters. The Stage 2 ablation supports the importance of this reselection: on GUI-Odyssey, Qwen3-VL-4B-Instruct improves from \(41.06\) to \(43.45\), and Qwen3-VL-8B-Instruct from \(42.34\) to \(48.55\), when Stage 2 is included [2605.28534].

These two papers illustrate a broader shift. In BAR-RAG, the useful boundary is a competence boundary in downstream generation. In GUI-CIDER, the useful frontier is a semantic-density boundary modulated by causal structure. In both cases, exemplar value is defined relative to the needs of a downstream model rather than by relevance or representativeness alone.

## 6. Implicit boundary emphasis, misconceptions, and open issues

Some relevant works are adjacent to the topic without providing explicit exemplar prioritization. "Boundary-aware Information Maximization for Self-supervised Medical Image Segmentation" [2202.02371] is a case in point. The paper learns pixelwise cluster distributions over \(K=40\) clusters and uses the entropy of the cluster distribution as a boundary proxy:
\[
\varphi(i)=H(p_i).
\]
High entropy indicates uncertainty between clusters and tends to occur near transitions. The boundary-aware term aligns this entropy map with Sobel edge responses \(\phi\) using local normalized cross-correlation. The method therefore treats interior and boundary pixels differently—confident assignments are encouraged in interiors, while uncertainty is structurally permitted near edges—but it does not rank exemplars, perform top-\(k\) selection, or implement hard mining. The paper explicitly states that it provides boundary-aware representation learning rather than a concrete exemplar prioritization mechanism. Its quantitative gains, however, show the practical importance of boundary-sensitive structure: the strongest pre-training configuration reports mean DSC improvements over baseline of \(+17.35\%\) for LV, \(+23.60\%\) for RV, \(+20.25\%\) for Myo, and \(+17.85\%\) for prostate [2202.02371].

"Exemplar Diffusion: Improving Medical Object Detection with Opportunistic Labels" [2603.15267] is similarly indirect. Here the exemplar is a known bounding box at inference time, \(\mathbf x_0^\star\in\mathbb R^4\), and the contribution is a training-free mechanism for injecting lightly noised exemplars into the proposal distribution of a DiffusionDet-style detector:
\[
\mathbf x_T=
\begin{cases}
\epsilon, & i=1,\dots,n,\\[0.3em]
\sqrt{\bar\alpha_\tau}\mathbf x_0^\star+\sqrt{1-\bar\alpha_\tau}\,\epsilon, & i=n+1,\dots,n+N^\star n^\star.
\end{cases}
\]
This is spatially anchored conditioning rather than explicit boundary prioritization. The paper emphasizes that the method is most useful when images have clear spatial structure. On DENTEX, AP improves from \(34.44\) with \(N^\star=0\) to \(35.36\) with \(N^\star=1\) and \(35.78\) with \(N^\star=2\); \(AP_{50}\) rises from \(51.80\) to \(53.56\) and \(54.34\); and AR from \(62.00\) to \(64.14\) and \(64.84\). The method is also robust to noisy exemplars: with one exemplar and Gaussian noise scale \(\sigma=10\), AP is \(34.50\), still near baseline [2603.15267]. The paper’s own framing supports a boundary-aware interpretation only weakly: box coordinates provide a spatial anchor and extent prior, but the method does not rank exemplars by boundary informativeness.

These cases help clarify several misconceptions. First, boundary-aware prioritization is not synonymous with uncertainty sampling. PF-MA modifies ambiguity sampling to prefer the positive half-space, whereas SAGE explicitly suppresses samples near unstable uncertainty boundaries [2603.24480] [2602.01207]. Second, the relevant boundary need not be geometric. BAR-RAG’s boundary is defined by empirical solvability for a generator, and GUI-CIDER’s frontier is defined by density and causal saliency [2602.03689] [2605.28534]. Third, some methods are boundary-aware only in an implicit structural sense. The medical segmentation work and exemplar diffusion improve boundary-sensitive behavior without implementing exemplar ranking at all [2202.02371] [2603.15267].

A plausible synthesis is that the field is converging on a utility-centric view of exemplar value. Under severe imbalance, scarce annotation, replay without stored data, noisy retrieval, or redundant synthetic corpora, the highest-value examples are often neither dense-core nor maximally ambiguous. They are examples that occupy a controlled frontier: informative positives near a threshold, confident errors away from unstable uncertainty, synthetic points approaching but not crossing a class boundary, evidence near a generator’s Goldilocks Zone, or sparse and causally rich knowledge units. That shared structure is what makes boundary-aware exemplar prioritization a coherent research topic across otherwise disparate areas.

Source: https://www.emergentmind.com/topics/boundary-aware-exemplar-prioritization