---
title: Adaptive Negative Textual Space (ANTS)
url: https://www.emergentmind.com/topics/adaptive-negative-textual-space-ants
type: topic
---

# Adaptive Negative Textual Space (ANTS)

Searching arXiv for the primary ANTS paper and closely related work on adaptive negative labels/textual semantics for OOD detection.
Searching arXiv for "Adaptive Negative Textual Space OOD detection MLLM" and related negative-label OOD methods.
Adaptive Negative Textual Space (ANTS) is a framework for out-of-distribution (OOD) detection with vision-language models that constructs an adaptive negative textual space at inference time by leveraging the understanding and reasoning capabilities of multimodal large language models (MLLMs) [2509.03951]. The method is motivated by two limitations of existing negative-label approaches: they often lack an understanding of OOD images, which makes it difficult to construct an accurate negative space, and false negative labels significantly degrade near-OOD performance [2509.03951]. ANTS addresses these issues by mining likely OOD images from the test set, generating two complementary forms of negative text from those images, and combining them with an adaptive weighted score that is intended to handle both near-OOD and far-OOD settings without task-specific prior knowledge [2509.03951].

## 1. Problem setting and motivation

Negative labels have been shown to enhance OOD detection, but static or poorly targeted negative labels can fail to cover varied OOD semantics and can introduce false negatives when OOD samples resemble a subset of in-distribution (ID) classes [2509.03951]. In ANTS, the central object is the “adaptive negative textual space”: a negative text space shaped from test-time evidence rather than fixed in advance. The framework operates with off-the-shelf pre-trained CLIP and MLLMs, and it is explicitly described as training-free and zero-shot, with all negative textual space construction occurring at test time [2509.03951].

The framework distinguishes two regimes. In far-OOD settings, OOD samples are very dissimilar to the ID distribution, so rich descriptive negative text is advantageous. In near-OOD settings, OOD samples resemble part of the ID label set, so generic or overly broad negative descriptions can create false negatives. ANTS therefore builds one negative textual space for expressive characterization of OOD semantics and another that is tailored to the visually similar ID subset [2509.03951]. This suggests that the method treats OOD detection as a problem of matching the granularity of negative text to the geometry of the encountered shift.

## 2. Negative image mining at test time

ANTS begins by selecting images likely to be OOD from the test set and treating them as negative images. A baseline OOD detector, such as NegLabel, assigns each test image \(x\) a score \(S_{nl}(x)\), and images with low similarity to ID labels or high similarity to negative labels are selected as candidates [2509.03951]. The negative-image set is defined as
\[
\mathcal{X}_{neg} = \{ x \mid S_{nl}(x) < \gamma, x \in \mathcal{X}_{test} \}.
\]

To avoid manual thresholding, ANTS uses an adaptive filtering scheme. Rather than fixing \(\gamma\) directly, it selects the bottom percentile \(\eta\) of test samples with the lowest \(S_{nl}\), which induces a data-driven dynamic threshold \(\gamma^*\) [2509.03951]. The detailed summary gives “e.g., 50%” as an example of the bottom percentile used for this adaptive filtering [2509.03951].

This stage is significant because the negative textual space is not synthesized from an external ontology or a fixed vocabulary alone. It is grounded in mined negative images drawn from the current test distribution. A common misconception is that ANTS is merely a larger pool of static negative labels; in fact, the framework first infers likely negatives from the test stream and only then asks the MLLM to construct negative text around those images [2509.03951].

## 3. Two complementary negative textual spaces

From the mined negative images, ANTS constructs two types of negative text: Expressive Negative Sentences (ENS) and Visually Similar Negative Labels (VSNL) [2509.03951]. ENS targets far-OOD discrimination, whereas VSNL is designed to reduce false negatives in near-OOD settings.

| Component | Construction | Intended regime |
|---|---|---|
| ENS | MLLM describes negative images richly | Far-OOD |
| VSNL | MLLM generates negative labels for visually similar ID subset | Near-OOD |
| Negative images | Mined from test set using \(S_{nl}\) | Shared input |

ENS is produced by prompting an MLLM to describe each negative image richly rather than assigning a single label, thereby generating sentence-level negative text that tightly characterizes OOD semantics [2509.03951]. The formal expression is
\[
\mathcal{Y}^-_{ens} = \mathcal{G}_{ens}(\mathcal{Y}, \mathcal{X}_{neg}, f_{mllm}, M),
\]
where \(\mathcal{Y}\) is the ID label set, \(f_{mllm}\) is the MLLM, and \(\mathcal{X}_{neg}\) is the mined negative-image set [2509.03951]. Random or repeated sampling is used to ensure a consistent set size \(M\) [2509.03951].

VSNL is motivated by the observation that ENS can misclassify in near-OOD settings because visually similar OOD samples may also fit rich negative descriptions [2509.03951]. ANTS therefore first mines the subset of ID classes visually similar to the negative images. For each ID class \(y_i\), it computes
\[
F(y_i) = \frac{|\{ x \in \mathcal{X}_{neg} \mid H(x) = y_i \}|}{|\mathcal{X}_{neg}|},
\]
and then selects a top-\(\delta\) proportion of ID classes with highest \(F(y_i)\) to form \(\mathcal{Y}'\); the detailed summary gives \(\delta = 0.08\) as an example [2509.03951]. The MLLM is then prompted with these ID classes and the mined negative images to generate negative labels resembling only this subset:
\[
\mathcal{Y}^-_{vsnl} = \mathcal{G}_{vsnl}(\mathcal{Y}', \mathcal{X}_{neg}, f_{mllm}, M).
\]

The distinction between ENS and VSNL is central. ENS emphasizes expressive coverage of novel semantics; VSNL emphasizes local discrimination against a visually confusable subset of ID classes. This division is one of the framework’s main mechanisms for separating far-OOD and near-OOD behavior [2509.03951].

## 4. Scoring and adaptive balancing

ANTS computes similarity-based scores with the CLIP encoder for ID texts and for both negative textual spaces, then combines the resulting scores with an adaptive weighted rule [2509.03951]. The final score is
\[
S_{ada}(x) = \lambda S_{ens}(x) + (1-\lambda) S_{vsnl}(x),
\]
where \(\lambda \in [0,1]\) is computed adaptively [2509.03951].

The adaptive weight is determined from the mean scores of ENS and VSNL over the mined negatives. The detailed formulation is
\[
\lambda = F\left( \bar{S}_{ens}, \bar{S}_{vsnl} \right), \quad
\bar{S}_{ens} = \frac{1}{|\mathcal{X}_{neg}|} \sum_{x \in \mathcal{X}_{neg}} S_{ens}(x),
\]
with
\[
F(a,b) = \frac{1-a}{(1-a) + (1-b)} \in (0,1).
\]
The interpretation given is explicit: if ENS performs better on the mined negatives, \(\lambda\) moves closer to \(1\), favoring ENS for far-OOD; if VSNL performs better, \(\lambda\) moves closer to \(0\), favoring VSNL for near-OOD [2509.03951].

This adaptive balancing is intended to eliminate the need for prior knowledge about whether the current task is near-OOD or far-OOD. A common misunderstanding is that the method must know the OOD regime in advance. The stated design objective is the opposite: it balances the two negative textual spaces automatically and data-drively, “without relying on task-specific prior knowledge” [2509.03951].

## 5. Empirical performance and comparison with adjacent OOD methods

On ImageNet-1K, ANTS “significantly reduces the FPR95 by 4.2% over the best baseline,” and the abstract describes this as establishing “a new state-of-the-art” [2509.03951]. On OpenOOD, the reported results include \( \mathrm{FPR95} = 15.38\% \) for Far-OOD and \(60.98\%\) for Near-OOD [2509.03951]. The framework is further described as robust to ID noise, domain shift, model choice, and prompt variation, and ablations confirm the benefit of both negative image mining and adaptive VSNL construction [2509.03951].

ANTS belongs to a broader family of test-time adaptive OOD detectors based on negative guidance, but its mechanism differs from prior adaptive proxy methods. AdaNeg, for example, addresses semantic misalignment in static negative labels by constructing adaptive negative proxies from a feature memory bank during testing, using task-adaptive proxies that average stored features and sample-adaptive proxies that weight features by similarity to each test sample [2410.20149]. AdaNeg is also training-free and annotation-free, and on the large-scale ImageNet benchmark it reports a \(2.45\%\) increase in AUROC and a \(6.48\%\) reduction in FPR95 relative to NegLabel [2410.20149]. The contrast is structural: AdaNeg uses memory-backed image features as adaptive proxies, whereas ANTS shapes an adaptive **textual** space by prompting an MLLM with mined negative images [2509.03951].

This comparison helps clarify what is specific about ANTS. It does not merely adapt visual prototypes, and it does not rely on a fixed negative vocabulary. Its main innovation is to use MLLM-generated negative text to approximate the encountered OOD semantics while separately controlling near-OOD failure modes through VSNL [2509.03951].

## 6. Conceptual placement and terminological scope

ANTS is closely related to earlier work that uses negative textual semantics as a discriminative signal. In universal multi-source domain adaptation, APNE-CLIP introduces “negative textual semantics” through adaptive prompt learning, a memory bank of pairwise textual distances, and energy-based uncertainty modeling to improve image-text alignment and unknown-sample detection [2404.14696]. That work treats negative textual semantics as representations of non-membership relationships between classes, whereas ANTS uses MLLMs to generate negative text from mined negative images and visually similar ID subsets [2509.03951; 2404.14696]. This suggests a broader methodological pattern in which textual non-membership cues are increasingly used to sharpen boundaries under distribution shift.

The phrase “negative textual space” also appears in a different sense outside OOD detection. In text-to-image generation, “Orthogonal Negative Guidance in Attention Feature Space” defines the negative textual space as directions in feature space corresponding to undesired concepts that are orthogonal to the intended prompt, and suppresses those directions by orthogonalizing negative-prompt attention features with respect to positive-prompt features [2605.29390]. That usage concerns concept suppression in MM-DiT-based text-to-image transformers rather than OOD detection. A separate, unrelated paper reuses the acronym ANTS for “Adaptive Nucleus Truncation Sampling,” a long-form reasoning sampler based on standardized logit-space neighborhoods, entropy-conditioned truncation, and a no-truncation fallback arm [2606.13982]. These parallel usages make the full expansion—Adaptive Negative Textual Space—important for disambiguation.

Within OOD detection, the defining contribution of ANTS is therefore specific: it shapes an adaptive negative textual space by MLLM at inference time, using mined negative images to generate expressive negative sentences and visually similar negative labels, and then balances them with an adaptive score for near- and far-OOD settings [2509.03951]. The framework’s training-free and zero-shot character, together with its reported ImageNet and OpenOOD results, position it as a test-time textual adaptation method rather than a finetuning-based or memory-only proxy method [2509.03951].

Source: https://www.emergentmind.com/topics/adaptive-negative-textual-space-ants