Structure-Targeted Negatives
- Structure-targeted negatives are negative examples anchored to specific structural relations that selectively violate key dependencies while preserving surrounding context.
- They are applied across neural language modeling, knowledge graph embedding, and image-text retrieval to pinpoint syntactic and semantic nuances.
- Techniques such as margin-based losses, local neighborhood sampling, and hard-negative mining yield measurable improvements in model accuracy and robustness.
Structure-targeted negatives are negative examples, negative statements, or negative computational signals that are anchored to a specific structural relation rather than obtained by unrestricted random corruption. In the cited literature, the targeted structure may be a syntactic dependency such as subject–verb agreement or Negative Polarity Item (NPI) licensing, a graph neighborhood in a knowledge graph, a sibling set in a commonsense knowledge base, a local neighborhood in an embedding space, or a set of hard patch correspondences in contrastive image translation (Noji et al., 2020, Kletz et al., 2024, Ahrabian et al., 2020, Arnaout et al., 2022, Gajic et al., 2019, Fan et al., 2021, Lin et al., 2022). Viewed comparatively, the shared design principle is to preserve much of the surrounding structure while selectively violating, probing, or ablating the relation of interest.
1. Conceptual range
The literature uses structurally targeted negatives in several technically distinct ways. In neural language modeling, they appear as minimally altered tokens or sentences that violate a targeted syntactic dependency. In probing work on negation, they appear as tests of whether contextual representations encode the presence of negation and the polarity requirements of a masked item inside or outside scope. In knowledge graph embedding, they appear as corrupted triples drawn from a node’s -hop neighborhood rather than uniformly from the entire entity set. In commonsense knowledge bases, they appear as informative negative statements derived from properties of comparable concepts under a local closed-world assumption. In metric learning and multimodal retrieval, they appear as hard negatives selected from a local embedding neighborhood or generated by constrained edits that preserve most of the caption structure. In unpaired image translation, they appear as a pruned subset of patch negatives selected by feature similarity. A distinct usage concerns negative pre-activations: here “negative” does not denote a sample, but a sign-specific computational regime in which syntax is differentiated (Kletz et al., 2024, Noji et al., 2020, Ahrabian et al., 2020, Arnaout et al., 2022, Gajic et al., 2019, Fan et al., 2021, Lin et al., 2022, Kong et al., 29 Sep 2025).
| Domain | Structure being targeted | Mechanism |
|---|---|---|
| PLM negation probing | Negation scope; NPI licensing scope | Compare probes inside vs. outside scope |
| Neural LM training | Agreement; reflexive constraints | Minimal negative tokens or sentences with margin loss |
| Knowledge graph embedding | -hop neighborhood | Corrupt head or tail within neighborhood |
| Commonsense KB construction | Comparable sibling concepts | Materialize absent sibling properties as negatives |
| Siamese retrieval | Local embedding neighborhood | Sample negatives from hash bucket |
| Image-text retrieval | Scene-graph-aligned caption structure | Masking, refilling, and hard-negative mining |
| Unpaired image translation | Hard patch correspondences | Prune and rank top- negatives |
| LLM internals | Negative pre-activation regime | Sign-specific intervention on Wasserstein neurons |
2. Formalization in LLMs
A canonical scope-sensitive formulation is given for negation and NPI licensing. Let be a tokenized sentence, and let be the index of a negation cue such as “not” or “n’t”. The negation-scope set is defined as
and the licensing-scope set is defined as a subset
containing those positions where an NPI may appear under standard licensing patterns, such as a direct object or adjunct of the negated verb. An NPI at position is licensed iff . In a pretrained LLM, each token yields a contextual representation 0 at layer 1. Probes can then be defined by logistic-regression-style decision functions such as
2
for the presence of negation, and
3
for the polarity of a masked polarity item (Kletz et al., 2024).
A second formalization targets explicit syntactic errors during training. For a corpus 4 of well-formed sentences, target positions are identified at tokens that anchor a phenomenon such as present-tense agreement or reflexive anaphora. Negative tokens are defined by a set 5 of ungrammatical alternatives, and negative sentences by
6
The baseline language-model objective
7
is augmented with a margin-based auxiliary loss. The token-level margin variant is
8
with
9
This objective penalizes the model whenever the log-probability gap between the correct token and its negative counterpart falls below the fixed margin 0 (Noji et al., 2020).
These two formalisms target different operations. The probing framework asks whether a frozen representation already encodes a scope-sensitive distinction. The margin-loss framework injects a direct learning signal tied to a precisely delimited syntactic dependency. This suggests two complementary roles for structure-targeted negatives in language research: diagnosis and training (Kletz et al., 2024, Noji et al., 2020).
3. Scope-sensitive probing and what it reveals
In probing structural constraints of negation, sentences are extracted from COCA with exactly one uncontracted or contracted “not”, or zero “not” for control, and one non-cue token per sentence is sampled as probe input. For NPI licensing, sentences are matched to syntactic patterns in which “not” modifies a verb and licenses an NPI such as any*, anybody, anyone, anything, anytime, or anywhere. Four structural zones are identified: PRE, PRE-IN, IN, and POST. Frozen BERT-base, BERT-large, RoBERTa-base, and RoBERTa-large are probed by a 2-layer MLP with hidden size 450 and learning rate 1; accuracy is the primary metric and micro 2 shows similar trends. A distance control buckets probe tokens by relative position 3 around the negation cue so that any scope effect can be tested independently of simple proximity to “not” (Kletz et al., 2024).
For negation encoding, contextual representations of tokens inside the negation scope allow better prediction of the presence of “not” than representations of tokens outside the scope. Averaging over 4 and 5 yields an accuracy gap of approximately 6–7 points across the four PLMs; for RoBERTa-large the reported value is 8. Fisher–Pitman permutation tests with 5,000 shuffles give 9 for nearly every position. For NPI licensing, overall polarity-classifier accuracy on random test data reaches roughly 0–1 against a 2 chance level, and the average in-vs.-out scope gap ranges from about 3 points for RoBERTa-base to about 4 points for RoBERTa-large, again with 5. The largest gains occur for BERT-base and RoBERTa-large (Kletz et al., 2024).
The same study also provides an explicit control against an over-interpretation of “scope”. Replacing “not” with four ordinary words—often, big, house, and wrote—and labeling probe tokens as in-clause or out-clause yields accuracy gaps of 6–7 points, again with 8, while distance to the target remains the strongest predictor, with accuracy dropping by about 9–0 points from 1 to 2. The paper concludes that PLMs do encode structural constraints on negation and its licensing of NPIs, but that these encodings largely align with a more general sensitivity to syntactic clause boundaries. A common misconception is therefore that better in-scope probing performance directly establishes a specialized negation module; the control experiments show that same-clause structure is a serious alternative explanation (Kletz et al., 2024).
A related diagnostic use of structure-targeted negatives appears in explicit negative-example training for LSTMs. A three-layer LSTM with 1,150 hidden units per layer and 400-dimensional tied embeddings improves markedly when trained with token-level margin negatives for agreement and reflexives. On the Marvin and Linzen targeted evaluation set, simple agreement rises from 3 to 4, long VP coordination from 5 to 6, across a subject-relative clause from 7 to 8, and simple reflexives from 9 to 0, while Wikipedia-test perplexity moves from 1 to 2. The persistent outlier is agreement across an object-relative clause, which rises from 3 to 4 but remains below subject-relative performance (Noji et al., 2020).
4. Hard negatives by preserving local structure
In Siamese retrieval, Bag of Negatives (BoN) targets local structure in embedding space rather than global class labels. A linear auto-encoder projects the embedding 5 to a lower-dimensional code 6, reconstructs it by 7, and binarizes relative to a running threshold vector 8 to obtain a hash code
9
A hash table stores image and class identifiers per bucket, and negatives for an anchor are sampled from the current bucket after excluding images with the same identity. The method is loss-independent and can be combined with batch-hard triplet training. On person re-identification, BoN + batch-hard reaches Market mAP 0 and Duke mAP 1 in 80k steps, compared with batch-hard triplet at 2 and 3 in 280k steps. On Stanford Online Products, BoN + batch-hard reports Rank-1 4 and Rank-10 5 (Gajic et al., 2019).
In image-text retrieval, TAGS-DC generates synthetic negative sentences by editing only a small, structurally important part of the caption. A shared multimodal Transformer backbone 6 supports image-text matching, masked-language modeling, word discrimination, and word correction. The caption is parsed with SPICE, roughly 7 of tokens aligned to scene-graph nodes are masked, replacements are sampled from the MLM head with temperature 8, false negatives are filtered if all replacement tokens occur verbatim in other human captions of the same image, and the most confusing generated captions are retained by scoring with the current matcher. The total loss combines image-retrieval triplet loss, MLM, synthetic-negative triplet loss, word discrimination, and word correction. With a UNITER-Large backbone, TAGS-DC reports on MS-COCO an 9 of 0 and an 1-Sum of 2, which are stated as 3 and 4 over UNITER; on Flickr30K it reports 5 of 6 and 7-Sum of 8, stated as 9 and 0 (Fan et al., 2021).
In unpaired image-to-image translation, PUT studies whether all contrastive negatives are necessary. Standard PatchNCE treats all out-of-location patches as negatives; PUT instead computes a similarity matrix between translated and source feature patches, masks the self-correspondence, ranks the remaining negatives by dot-product similarity, and keeps only the top 1 most informative negatives per anchor. The resulting RankNCE loss is applied across selected layers and combined with the adversarial objective. On Cityscapes, CUT reports semantic mAP 2, pixel accuracy 3, class accuracy 4, and CityFID 5, whereas PUT-3 reports 6, 7, 8, and 9, and PUT-5 reports 0, 1, 2, and 3. On Horse4Zebra, FID drops from 5 for CUT to 6 for PUT-3, with inference speed essentially unchanged at 7 versus 8 seconds (Lin et al., 2022).
Across these cases, the negative is made difficult by preserving local organization: a nearby bucket in embedding space, a minimally edited caption that retains scene-graph coherence, or a high-similarity patch that is structurally incongruent. This suggests that the effectiveness of structure-targeted negatives often depends less on maximizing raw quantity than on constraining the negative pool to a structurally plausible neighborhood (Gajic et al., 2019, Fan et al., 2021, Lin et al., 2022).
5. Graph-structured and knowledge-based negative materialization
In knowledge graph embedding, Structure Aware Negative Sampling (SANS) replaces uniform corruption with corruption restricted to a node’s 9-hop neighborhood. For a knowledge graph 00 and a positive triple 01, the 02-hop reachability set is
03
Given a tail corruption, uniform SANS uses
04
The neighborhood can be computed explicitly from matrix powers or approximated by random walks in RW-SANS. The extra hyperparameters are 05, and for RW-SANS also 06. On FB15K-237 with TransE, Uniform reports MRR 07 and H@10 08, KBGAN 09 and 10, NSCaching 11 and 12, Uniform SANS 13 and 14, and RW-SANS 15 and 16. The paper states that SANS variants often match or exceed adversarial baselines without extra trainable parameters (Ahrabian et al., 2020).
In commonsense knowledge acquisition, UnCommonSense addresses a different problem: knowledge bases store positive assertions under an open-world assumption, so absence does not imply falsity. The framework first identifies comparable concepts using dense concept embeddings and taxonomic filtering over WebIsALOD. With sibling set 17 for a target concept 18, positive properties of the target are 19 and sibling properties are 20. Under the local closed-world assumption on this induced fragment,
21
so the raw negative candidates are 22. Candidates are then pruned by KB-based semantic deduplication using SBERT with threshold 23, LM-based plausibility filtering with BERT and top-24 predictions, and a generic-phrase filter based on concept frequency. Surviving negatives are ranked by strict or relaxed sibling frequency, and provenance phrases such as “unlike other …” can be generated from the supporting sibling set (Arnaout et al., 2022).
The reported evaluations distinguish informative negatives from indiscriminate closure. On 200 concepts with top-2 negatives and three annotations each, the strict UnCommonSense variant reports a false-negative rate of 25, against 26–27 for other methods, and an informativeness score of 28, versus 29 for the next best baseline. On ConceptNet-neg, Strict@10 is 30 versus 31–32 for baselines, and Relaxed@10 is 33 versus 34–35. In KB completion, training with UnCommonSense negatives yields 36 accuracy, compared with 37 for NegatER, 38 for COMET, and 39 for CWA, with 40. The released resource contains approximately 41 million negations over about 42k concepts (Arnaout et al., 2022).
A recurrent misconception in this area is that any absent statement in a knowledge base can be treated as a negative. The UnCommonSense results directly argue against that view: the open-world setting requires a restricted structural context, here a sibling set under a local closed-world assumption, before absent properties become informative negative knowledge (Arnaout et al., 2022).
6. Negative regions, internal mechanisms, and recurring limitations
A distinct but related line of work locates structure-targeted computation in the negative region of neuron pre-activations. In Transformer MLP blocks, each neuron computes 43, and Wasserstein neurons are those whose normalized output distribution has large 1-Wasserstein distance from a standard Gaussian. A mapping-difficulty score measures how far apart the neuron sends locally similar inputs. For smooth activations such as GELU or SiLU, pre-activations are decomposed into 44 and 45. The reported empirical hallmark is that non-Gaussianity concentrates in the negative tail of 46, and among the top-47 pairs ranked by the ratio 48, about 49–50 are negative–negative pairs in early layers. These pairs disproportionately involve syntactic tokens such as determiners and prepositions (Kong et al., 29 Sep 2025).
Causality is tested by zeroing only the negative pre-activations of the top 51 Wasserstein neurons:
52
Clamping only 53–54 of Wasserstein neurons’ negatives in Llama 3.1 8B and Mistral 7B roughly doubles perplexity, whereas random ablation has negligible effect. On BLiMP and TSE, the 55 Wasserstein ablation drops accuracy by 56–57 absolute, versus less than 58 for random or perplexity-matched controls. Added surprisal on WikiText2 concentrates on function-word classes, and early-layer ablations have the largest isolated effects; cumulative ablations are roughly additive, especially on long-distance dependencies and negative-polarity items. Over Pythia checkpoints, Wasserstein distance rises sharply within the first 59K steps and then plateaus, and mean WD correlates with TSE and BLiMP performance at 60 (Kong et al., 29 Sep 2025).
Taken together, the studies identify recurring limitations as well as recurring successes. Negation probing can be confounded by same-clause sensitivity rather than truly negation-specific scope encoding (Kletz et al., 2024). Sequential LSTMs remain notably weaker on object-relative clauses even after direct negative-example supervision and frequency augmentation (Noji et al., 2020). PUT still struggles when very small or rare semantic instances appear in the source image (Lin et al., 2022). Several methods expose explicit hyperparameters that control the structural neighborhood—61 and 62 in SANS, 63 in BoN, 64 in PUT, and 65 in UnCommonSense—and the papers treat these as practical tuning knobs rather than universally fixed constants (Ahrabian et al., 2020, Gajic et al., 2019, Lin et al., 2022, Arnaout et al., 2022).
The cumulative implication is not that “negative” examples are uniformly beneficial, but that they are most informative when they are structurally constrained, diagnostically precise, and carefully filtered against triviality or false negativity. In language, this precision exposes both genuine scope effects and clause-boundary confounds. In retrieval and translation, it raises hardness without destroying plausibility. In graphs and knowledge bases, it turns local structure into a principled corruption distribution or a principled source of absent-but-informative statements. And in model internals, negative pre-activation space itself emerges as a structure-targeted substrate for syntactic differentiation (Kletz et al., 2024, Noji et al., 2020, Fan et al., 2021, Lin et al., 2022, Ahrabian et al., 2020, Arnaout et al., 2022, Kong et al., 29 Sep 2025).