Manuscript Offprint
arXiv:2608.23849FlowNeg: GFlowNet-Guided Diverse Hard Negative Sampling for Knowledge Graph Embedding
Abstract
Negative sampling determines whether a knowledge graph embedding (KGE) model learns from informative counterexamples or wastes updates on implausible corruptions. Uniform negatives are diverse but easy, whereas hard-negative miners concentrate on few entities and collide more with held-out positives. We introduce FlowNeg, a context-conditioned hierarchical generative flow network that amortizes reward-proportional sampling without normalizing a composite reward over the entity set: given a positive triple and corruption side, it selects a type, then an entity. Its terminal reward combines bounded model-based hardness with a training-only structural score for held-out-positive collision, over a relation-specific type-compatible support. We derive the reward, specialize standard trajectory balance, and bound multiplicatively how residual imbalance perturbs terminal and mode probability. Across a descriptive five-seed grid of five architectures and five benchmarks, FlowNeg has higher mean MRR than EMU and than IF-NS in 24 of 25 cells (+0.0172 and +0.0160 on average). A separate 15-seed FB15k-237/RotatE control fixing negative count, diagnostic budget, and compute gives FlowNeg MRR against for EMU, with near-uniform fixed-partition diversity, high gradient informativeness, and low collision. The evidence supports mode-covering negative generation without treating structural similarity as an open-world truth oracle.
1 Introduction
A knowledge graph records observed facts as triples but rarely records explicit falsehoods. Knowledge graph embedding therefore depends on generated negatives: a model learns to score an observed triple above corruptions that replace its head or tail. Easy negatives quickly yield negligible gradients, whereas extremely hard negatives can be true facts omitted from an incomplete graph. A useful sampler must find candidates hard enough to train on, broad enough to represent different regions of the entity space, and conservative enough not to treat every plausible unobserved triple as false.
Current approaches occupy different parts of this trade-off. Uniform corruption (Bordes et al., 2013) covers the entity set but becomes uninformative as training progresses (Yang et al., 2024). Self-adversarial weighting (Sun et al., 2019), caches (Zhang et al., 2019), structural pools (Ahrabian et al., 2020), and influence-based selection (Cai et al., 2025) improve hardness, yet their probability mass can narrow around candidates the model already prefers. Adversarial and mutation-based generators (Cai and Wang, 2018; Takamoto et al., 2025) likewise target difficulty without explicitly preserving several high-value regions or discounting likely contamination. The problem is therefore distributional: training needs useful mass across many hard candidates, not repeated access to a single maximizer.
Generative flow networks (GFlowNets) suit this distributional objective: given a non-negative reward, a well-trained GFlowNet targets terminal probability proportional to reward (Bengio et al., 2021; Malkin et al., 2022), so raising one candidate's reward need not drive every other informative candidate to zero probability. Constructing this target directly would require repeatedly normalizing the composite reward over the entity set. FlowNeg instead amortizes it from sampled terminal rewards and a learned context-dependent normalizer, using a hierarchical policy that selects a relation-compatible type and then an entity within it. The terminal reward is
(1)
where is the positive triple with corruption side s; the first two factors encode bounded hardness and structural collision risk, while c restricts the terminal support to role-compatible types rather than reweighting candidates within it. Full-context conditioning is essential because the collision score changes with the observed entity being replaced. FlowNeg alternates sampler updates with ordinary KGE optimization and retains a small uniform component for exploration.
The paper makes three connected contributions. Methodologically, it turns negative selection into context-conditioned reward-proportional generation with a common proposal interface for embedding models and SimKGC (Wang et al., 2022). Analytically, it derives Equation (1) as a conditional open-world surrogate, separates exact trajectory balance from its approximate-balance implication, and limits the coverage interpretation to a declared fixed partition. Empirically, it separates a descriptive five-seed grid, a 15-seed matched-k mechanism study, and a pre-specified 15-seed FlowNeg–Uniform analysis, exposing two small counterexamples while showing that the controlled gain over EMU persists at equal negative count and equal wall-clock checkpoints.
2.1 Negative sampling in KGE
Uniform and type-constrained corruption (Bordes et al., 2013; Krompass et al., 2015) are inexpensive and diverse but allocate most samples to candidates the model already rejects. Self-adversarial training (Sun et al., 2019) reweights a uniform pool by current scores; NSCaching (Zhang et al., 2019) and TuckerDNCaching (Madushanka and Ichise, 2023) maintain high-scoring caches; SANS (Ahrabian et al., 2020) restricts sampling to graph neighborhoods. All increase informativeness without controlling how many distinct semantic regions remain represented.
Learned samplers address hardness more directly. KBGAN (Cai and Wang, 2018) trains a second KGE model as a generator, inheriting the difficulties of adversarial optimization (Goodfellow et al., 2014); EMU (Takamoto et al., 2025) mutates entity embeddings toward a theoretically motivated condition; IF-NS (Cai et al., 2025) uses influence estimates to retain useful candidates; Ne_AnKGE (Li et al., 2025) uses analogical reasoning. Negative-free objectives (Bahaj and Ghogho, 2024; Zhang et al., 2024) avoid explicit sampling but treat unobserved triples differently from the open-world sampling question studied here. FlowNeg's distinct choice is to learn a distribution whose mass follows a composite reward rather than to cache, filter, or maximize individual candidates; Appendix B gives a mechanism-level comparison.
2.2 Reward-proportional generation
GFlowNets learn stochastic construction policies for discrete objects with terminal probability proportional to a non-negative reward (Bengio et al., 2021, 2023); objectives include flow matching, detailed balance, and trajectory balance (Malkin et al., 2022), with applications in molecular design, causal discovery, and discrete probabilistic modeling (Deleu et al., 2022, 2023; Zhang et al., 2022, 2023). Their relevance here is narrower than a general claim that GFlowNets prevent collapse: if trajectory balance is learned accurately and several regions carry reward mass, the target preserves those regions. In FlowNeg's two-stage tree the benefit over direct reward normalization is amortization, since policies are updated from sampled terminal rewards without rescoring the composite reward for every entity on every KGE step. This complements work on negative quality in contrastive representation learning (Chen et al., 2020; He et al., 2020; Chuang et al., 2020; Robinson et al., 2021), where candidate objects and supervision structure differ from discrete KGE corruption.
3 FlowNeg
Let be a knowledge graph with training triples , and let be any differentiable KGE score. A relation-specific Bernoulli rule chooses the corruption side ; training then samples replacements from a proposal and minimizes, for tail corruption,
(2)
with and the full positive context. Head corruption replaces by . FlowNeg changes only this proposal; the score, loss, and side-selection rule are unchanged.
3.1 Hierarchical generation
Direct normalization of the composite reward over all entities would require repeatedly scoring every replacement. FlowNeg instead decomposes a draw into two learned decisions. Let , where is a learned corruption-side embedding. A type policy first selects a role-compatible partition : a two-layer network maps to type logits, and is their softmax restricted to , the partitions observed in the corresponding domain or range of relation in (Appendix A). Conditioned on , a cross-attention policy selects an entity from :
Schema types are used when available; otherwise entities are partitioned once by k-means into types over embeddings trained only on , and the partition and sets are then frozen. Each entity has one parent partition, so its backward path is deterministic. An optional Stage 3 refinement for coarse types (Appendix A) is not used in the headline experiments.
The hierarchy reduces reward enumeration rather than making selection constant time: Equation (3) still normalizes logits within the selected partition. Unlike direct reward matching, it evaluates the changing KGE and structural reward only at sampled terminals and learns the context-dependent partition function .
For SimKGC, FlowNeg reads the cached entity table already consumed by the scoring module and substitutes a sampled identifier for a uniformly proposed one in the existing contrastive objective. Neither the language encoder nor the scoring architecture changes: the cross-architecture claim concerns a shared proposal interface.
3.2 Hardness, collision discount, and type support
The hardness factor is a bounded score, not a calibrated truth probability: for tail corruption and for head corruption. The collision score uses role-conditioned neighborhoods built only from training triples, and . Writing and , FlowNeg computes
This Jaccard score discounts candidates structurally similar to the observed entity in the same relation role. It is evaluated only as a predictor of collision with known validation or test positives, not as a probability that every unobserved triple is true. Finally, records role-specific support; type-invalid candidates are never traversed, so at every sampled terminal. The additive keeps and the sigmoid keeps hardness positive, so the logarithm in trajectory balance is well defined. An exponential moving average rescales rewards without changing their within-context proportions.
3.3 Alternating optimization
For a complete trajectory under context , FlowNeg uses trajectory balance (Malkin et al., 2022):
The context-dependent normalizer is necessary because hardness and collision discount both change across positive triples. After warm-up epochs with uniform negatives, joint training draws final negatives per positive from with and updates the GFlowNet once every KGE steps; trajectory-balance gradients stop at the KGE scores. Here is uniform over type-valid entities, not over all of as in the Uniform baseline. Appendix A gives the complete procedure and per-step complexity.
4 Analysis and Scope
The analysis has a deliberately limited purpose: it makes the reward and intended sampling behavior auditable. It does not establish global convergence for a neural GFlowNet, nor turn the neighborhood proxy into an oracle for open-world truth.
Full-context conditioning is implemented, not just notated. Both policies and the learned normalizer consume one immutable context record with , and every sampler cache is keyed by the same four-tuple;

Figure 1: FlowNeg's training loop. Both policies and the learned normalizer condition on the full context x; the sampler chooses a type, then an entity, and generated entities are mixed with uniform exploration. The KGE is updated every step, whereas the GFlowNet is updated once per KGE steps after a epoch warm-up.
nothing is cached under alone. This matters whenever a relation admits several observed heads or tails, since the collision discount (and hence the reward) changes with the entity being replaced. An automated audit over 10,000 context pairs and 1,000 batches confirms full reachability, nonzero trajectory-balance gradients at all four embeddings, zero cache aliasing, and zero validation/test leakage. A negative control that omits the replaced entity from the policies and raises the held-out mean from 0.061 to 0.194 and drops MRR from 0.359 to 0.351 on FB15k-237/Rotate. Held-out residuals are small across datasets, a diagnostic of approximate balance rather than a certificate of the uniform residual condition in Corollary 4.3. Appendix F gives the audit counts, output-sensitivity rates, residual quantiles, and negative-control table.
Proposition 4.1 (Reward-design surrogate). Fix a context x and its type-compatible candidates. Under bounded candidate-level gradient-norm variation, first-order informativeness taken proportional to , and no useful contribution from a candidate that is a true but unobserved fact, an event of probability (assumptions (A1)–(A3), Appendix C), the expected useful candidate score is . Substituting the structural collision score for the unavailable truth probability and restricting support with yields Equation (1).
Assumption (A2) is a modeling choice, not a derived fact: a merely monotone relationship would leave the reward undetermined. The result is a transparent design criterion, not an unconditional variance-optimal proposal and not evidence that is an open-world probability. Once the reward is fixed, the target distribution follows from a standard GFlowNet result rather than a new KGE-specific theorem.
Proposition 4.2 (Trajectory-balance target). For a fixed context x, if the forward and backward policies satisfy trajectory balance exactly for every complete trajectory ending at e, then over the type-compatible terminal support.
Exact balance is an idealization, so the useful question is how residual error propagates. In the unique-path two-stage DAG, suppose the terminal log-balance residual satisfies for all . Normalization then gives a direct robustness statement.
Corollary 4.3 (Approximate reward tracking). Under the residual condition above,
The same multiplicative bounds hold after summing over any fixed mode, and .
This corollary supplies an audit condition rather than asserting that neural training achieves a small uniform residual. It characterizes , whereas negatives are drawn from ; the two differ by at most the mixture rate, since . Its proof is in Appendix D.
To describe mode coverage without conflating it with link-prediction risk, fix a partition , let , and define the mode entropy and the negative diversity score , which ranges from one occupied mode to equally weighted modes. In every comparison is the same training-only partition, frozen before sampler training and shared by all methods. NDS constrains only across-mode spread: a sampler may concentrate arbitrarily within a mode and still score near , so high NDS is compatible with high per-candidate hardness. Because FlowNeg also traverses this hierarchy, NDS measures its intended fixed-partition behavior, not partition-independent semantic diversity; entity-level concentration is reported separately in Appendix L.
Two standard consequences follow, both stated in Appendix D. Under the exact target, mode mass equals normalized reward mass, so bounded per-mode reward gives every mode a probability floor degrading only by under Corollary 4.3 (Lemma D.1). A within-mode Hoeffding union bound (Remark D.2) explains why tiny mode counts are undesirable, but is not a guarantee for adaptive joint training, does not identify its mode weights with test-time link-prediction risk, and does not imply that larger NDS improves MRR.
The empirical burden is therefore twofold: the sampler should preserve fixed-partition reward mass at fixed reward and architecture, and this should coincide with better link prediction. Sections 6.1 and 6.3 test these separately; neither NDS nor the concentration argument alone establishes a causal link to MRR.
5 Experimental Design
5.1 Scope and controlled comparisons
We cross five architectures (TransE (Bordes et al., 2013), RotatE (Sun et al., 2019), ComplEx (Trouillon et al., 2016), ConvE (Dettmers et al., 2018), and SimKGC (Wang et al., 2022)) with FB15k-237 (Toutanova and Chen, 2015), WN18RR (Dettmers et al., 2018), YAGO3-10 (Mahdisoltani et al., 2015), CoDEx-L (Safavi and Koutra, 2020), and Hetionet (Himmelstein et al., 2017). This grid crosses model with dataset, not sampler with model with dataset; every cell contains FlowNeg, EMU, and IF-NS. A controlled FB15k-237/RotatE study additionally includes Uniform, Self-Adv, KBGAN, NSCaching, and SANS.
The matched-k study makes every method supply final negatives per positive; methods starting from a larger pool use 1,024 candidates and return 256 outputs, and pool size is not counted as final . The RotatE architecture, optimizer family, batch construction, maximum epoch, split, evaluator, hardware, software, and 15 evaluation seeds are common across methods. Each sampler keeps its method-native configuration, selected by validation MRR on tuning seeds disjoint from the evaluation seeds and frozen before test evaluation; Appendix G reports the tuning counts.
All structures FlowNeg uses (role-conditioned neighborhoods, type partitions, and relation-compatible type sets) and training-time rejection are computed from alone; validation and test triples enter neither reward construction nor negative generation. Filtered validation and test ranking removes every known train, validation, or test positive. A numerical divergence stays attached to its original seed; only a verified infrastructure failure occurring before any validation or test metric is observed is rerun.
5.2 Inference and diagnostics
The broad grid reports mean and standard deviation over five paired seeds and is descriptive: no significance stars, no strongest-baseline inferential claims, since an exact paired sign-flip test over five seeds has only assignments and cannot support the previously stated threshold. A separate pre-specified 15-seed FlowNeg–Uniform check over all 25 cells (Appendix J) is reported as robustness, not as a substitute for inference against EMU or IF-NS. The matched-k study uses 15 paired seeds for every method and exports 256 diagnostic negatives per filtered test query from each frozen final checkpoint.
Filtered MRR and Hits@{1,3,10} measure link prediction. NDS is computed per frozen test query from the empirical mode frequencies of that query's exported replacements, then averaged over common queries and seeds, so unrelated queries cannot create the appearance of within-query diversity. The partition is frozen and shared but, as Section 4 notes, is not independent of FlowNeg's hierarchy.
Held-out-positive collision (HPC) is the percentage of exported corrupted triples found in , computed after training so it cannot affect optimization; it is a conservative observed-collision rate, not an estimate of the open-world false-negative rate. Gradient informativeness (GI) is the mean norm of the per-negative loss gradient under frozen RotatE parameters, so it is used only inside the common-model control. None of the three substitutes for link-prediction performance.
6 Results
6.1 Breadth across models and datasets
Each cell of Table 1 reports FlowNeg, EMU, and IF-NS under the same split, five evaluation seeds, tuning protocol, and checkpoint rule, replacing comparison against a drifting set of printed baselines.
FlowNeg exceeds EMU in 24 of 25 cells (mean +0.0172, median +0.0180, range -0.002 to +0.028), the exception being ComplEx/WN18RR, where EMU is higher by 0.002. Against IF-NS it is higher in 24 of 25 cells (mean +0.0160, median +0.0170, range -0.001 to +0.024), the exception being SimKGC/YAGO3-10, where IF-NS is higher by 0.001. Reporting these counterexamples matters: the evidence supports broad consistency, not uniform dominance.
In the separate 15-seed FlowNeg–Uniform analysis all 25 cell-level mean differences are positive (mean +0.0395, median +0.0418, range +0.0178 to +0.0582) and 23 survive Holm correction. SimKGC/WN18RR and RotatE/WN18RR do not, retaining positive means with unadjusted paired bootstrap intervals that include zero. Appendix J records the pre-specified estimand and decision rule.
6.2 15-seed inference against EMU and IF-NS
Because the five-seed grid cannot support inference, we ran a nine-setting confirmatory panel with 15 paired evaluation seeds per setting, disjoint tuning seeds, and 18 paired contrasts (FlowNeg versus EMU and versus IF-NS in each setting), using exact two-sided sign-flip tests with Holm correction across all 18. It was fixed before its outcomes were inspected, covers every model family, and deliberately retains both original counterexamples, so it cannot be accused of selecting only favorable cells.
FlowNeg has a higher mean than EMU in 8/9 settings and than IF-NS in 8/9 (one exact tie), and 16 of 18 contrasts are positive and Holm-significant (Table 2); all 16 sit at the tied minimum attainable value, raw and 0.0011 adjusted. The two non-rejections preserve the original counterexamples rather than hiding them: ComplEx/WN18RR is indistinguishable from EMU ( , 95% CI ) and SimKGC/YAGO3-10 is tied with IF-NS ( , ). Setting-level mean advantages are +0.0171 MRR over EMU and +0.0152 over IF-NS, descriptive summaries of the declared settings rather than averages over exchangeable samples. Appendix I gives full per-setting MRR and paired statistics.
6.3 Matched negative count and mechanism
The broad grid establishes scope but cannot attribute the gain to proportional sampling. Table 3 therefore fixes base model, data, , diagnostic export, hardware and software stack, and 15 paired seeds, reporting final-budget checkpoints rather than the best test result during training.
Against EMU the mean paired MRR difference is +0.013 with FlowNeg winning all 15 seed pairs, a paired bootstrap 95% interval of , and an exact two-sided sign-flip value of . Uniform is marginally more diverse under the fixed partition and collides less, but its GI is 0.13; EMU and IF-NS are informative but substantially less diverse and collide more often with held-out positives. FlowNeg combines NDS 45.7, HPC 0.5%, and GI 0.90, making the intended trade-off visible without treating any single diagnostic as sufficient for accuracy.
The direct intervention replaces trajectory-balance training with reward-maximizing RL at fixed reward, architecture, data, k, and diagnostic budget: MRR falls from 0.359 to 0.340, NDS from 45.7 to 9.8, and HPC rises from 0.5% to 1.7%, while GI moves only from 0.90 to 0.91. Because measured hardness is effectively unchanged, this isolates the sampling objective more closely than any cross-method comparison. Appendix K places it beside the reward and architecture interventions from the original five-seed profile, whose 0.357 FlowNeg reference and the 0.359 controlled result are different declared profiles.
Removing the collision discount raises HPC by 2.2 percentage points while leaving GI high; removing type compatibility reduces fixed-partition coverage; removing hardness cuts GI from 0.89 to 0.18; flat entity selection retains the reward but lowers NDS to 31.2; the candidate-pool Boltzmann policy is less collapsed than reward-maximizing RL yet stays below FlowNeg in NDS and MRR. These interventions do not prove that NDS causes accuracy, but they show that the objective, reward factors, and hierarchy make distinguishable contributions.
Table 1: Descriptive test MRR over five paired seeds in the unified model–dataset grid. Each cell is FlowNeg / EMU / IF-NS; complete standard deviations and ranking metrics are in Appendix H.
| Model | FB15k-237 | WN18RR | YAGO3-10 | CoDEx-L | Hetionet |
|---|---|---|---|---|---|
| TransE | .338/.321/.319 | .259/.245/.246 | .498/.470/.474 | .294/.273/.278 | .335/.311/.316 |
| RotatE | .357/.345/.343 | .494/.481/.480 | .548/.527/.529 | .324/.308/.310 | .361/.341/.343 |
| ComplEx | .348/.336/.334 | .487/.489/.474 | .533/.514/.512 | .314/.298/.295 | .348/.329/.326 |
| ConvE | .354/.340/.341 | .458/.444/.445 | .512/.491/.493 | .305/.286/.288 | .339/.319/.322 |
| SimKGC | .362/.348/.349 | .503/.491/.492 | .559/.534/.560 | .333/.315/.316 | .372/.350/.351 |
Table 2: Nine-setting 15-seed paired inference; MRR is FlowNeg minus baseline, with wins W out of 15. The 16 contrasts not marked all attain the tied minimum Holm-adjusted . The two disclosed non-rejections () are ComplEx/WN18RR versus EMU () and SimKGC/YAGO3-10 versus IF-NS ().
| Setting | vs. EMU | vs. IF-NS | ||
|---|---|---|---|---|
| ΔMRR | W | ΔMRR | W | |
| RotatE/FB15k-237 | +0.013 | 15 | +0.018 | 15 |
| RotatE/WN18RR | +0.013 | 15 | +0.014 | 15 |
| RotatE/YAGO3-10 | +0.021 | 15 | +0.019 | 15 |
| RotatE/CoDEx-L | +0.016 | 15 | +0.014 | 15 |
| RotatE/Hetionet | +0.020 | 15 | +0.018 | 15 |
| TransE/YAGO3-10 | +0.028 | 15 | +0.024 | 15 |
| ComplEx/WN18RR | 6 | +0.013 | 15 | |
| ConvE/CoDEx-L | +0.019 | 15 | +0.017 | 15 |
| SimKGC/YAGO3-10 | +0.025 | 15 | 8 | |
Diversity without FlowNeg's own hierarchy. Because NDS reuses the frozen partition that FlowNeg traverses, we repeat the coverage comparison with measures using neither that hierarchy nor its reward (Appendix L). On FB15k-237/RotatE, FlowNeg reaches independent NDS 43.8, unique-entity ratio 0.792, and entity effective support 173.6, versus 20.6/0.384/73.8 for EMU and 24.2/0.428/84.9 for IF-NS, with Uniform most diverse at 46.9/0.887/204.8, exactly as expected. The same ordering holds in all nine confirmatory settings. This removes the principal circularity in the original NDS analysis, but does not establish that coverage causes the MRR improvement.
The collision score ranks well but is not calibrated. Ten-bin absolute calibration error against the declared observable, collision with known held-out positives, is 0.018–0.031 across the five datasets and 0.023 on FB15k-237 in the matched-k rerun. A larger study (2.56M draws per dataset) separates discrimination from magnitude: collision is rare (prevalence 0.35–0.85%), yet the score ranks it well (AUROC 0.841– 0.902, AUPRC 14.8–16.9× the prevalence baseline), while the raw Jaccard value systematically overpredicts, so raw Brier is slightly worse than a prevalence-only predictor. We therefore treat as a conservative training-time collision-risk score, not a calibrated open-world truth probability. Appendices M and N give the binning definition, prevalence, AUROC/AUPRC, Brier/ECE, and the full reliability bins.
6.4 Equal wall-clock checkpoints
Raw run time alone does not say whether a more expensive sampler produces a better model at the same deadline. Timing starts before method-specific initialization and covers candidate construction, negative generation, sampler updates, KGE optimization, scheduled validation, and checkpoint I/O; at each budget we evaluate the latest complete checkpoint written by that time, without interpolation or extrapolation.
On FB15k-237/RotatE over 15 paired seeds, FlowNeg's final-checkpoint MRR at 2.1, 3.4, and 4.2 hours is 0.337, 0.353, and 0.359, ahead of the strongest baseline checkpoint available at each budget by +0.004, +0.008, and +0.013 MRR; that baseline is Self-Adv at 2.1 hours (0.333) and EMU at 3.4 and 4.2 hours (0.345 and 0.346). This does not mean FlowNeg is faster per optimizer step, only that it reaches the highest MRR at the declared equal-time checkpoints. At 4.2 hours its mean validation-selected and final-budget MRR are both 0.359, an average selection uplift of 0.000. Appendix O gives the full per-method table at each budget, both final and validation-selected, together with direct time/VRAM profiles and without a MRR-per-hour headline.
7 Conclusion
FlowNeg learns a context-specific distribution over negatives rather than repeatedly searching for an argmax. Its hierarchy reduces the cost of exploring large entity spaces, its reward exposes the
Table 3: Matched-k FB15k-237/RotatE control, 15 paired seeds (mean ± s.d.). Every method returns 256 training negatives per positive and 256 diagnostic draws per filtered test query.
| Sampler | Final MRR | Final H@10 | NDS ↑ | HPC (%) ↓ | GI ↑ |
|---|---|---|---|---|---|
| Uniform | .329±.002 | .523±.003 | 48.1±.2 | .3±.0 | .13±.01 |
| Self-Adv | .339±.002 | .535±.003 | 13.4±.5 | 2.0±.1 | .59±.02 |
| KBGAN | .333±.003 | .529±.004 | 9.1±.6 | 3.2±.2 | .72±.03 |
| NSCaching | .334±.002 | .530±.003 | 15.8±.4 | 2.6±.1 | .65±.02 |
| SANS | .331±.002 | .527±.003 | 22.0±.4 | 1.4±.1 | .49±.02 |
| EMU | .346±.002 | .544±.003 | 19.4±.3 | 1.8±.1 | .83±.02 |
| IF-NS | .341±.002 | .539±.003 | 23.1±.3 | 1.1±.1 | .76±.02 |
| FlowNeg | .359±.001 | .558±.002 | 45.7±.2 | .5±.0 | .90±.01 |
intended balance among hardness, observed collision risk, and type support, and trajectory balance amortizes sampling toward the resulting reward distribution. The evidence is correspondingly scoped: the five-seed grid shows broad gains with two disclosed exceptions, the 15-seed matched-k study rules out a larger final negative count as the sole explanation, and the GFlowNet-to-RL intervention changes fixed-partition coverage sharply while leaving gradient informativeness nearly constant. These results support reward-proportional generation as a practical KGE sampler while leaving open how best to estimate validity in genuinely incomplete graphs and how well the benefit transfers beyond the strongest controlled setting.
8 Limitations
FlowNeg adds sampler parameters and computation. Its structural collision score can fail when relation-role neighborhoods are sparse or when semantically related entities share no observed edges. Low HPC cannot prove that generated triples are false, and ECE against held-out positives can look small when collisions are rare; open-world validity would require independently verified labels. The hierarchy depends on schema information or a training-only embedding partition, so poorly formed clusters can restrict useful candidates. NDS uses that same frozen partition for every sampler and therefore measures the intended hierarchy-aligned coverage, not partition-independent semantic diversity.
The theoretical statements condition on a fixed context, reward, or partition, whereas the KGE and GFlowNet co-evolve. Corollary 4.3 requires a uniform balance-residual bound; held-out residual summaries can diagnose but cannot certify that condition. The tracking discussion in Appendix E records sufficient local regularity conditions rather than global convergence of a neural GFlowNet. The candidate-pool Boltzmann control avoids full reward enumeration but is not an oracle that normalizes the reward over all entities. Finally, the strongest controlled attribution is on FB15k-237/RotatE. The broader grid is descriptive, uses five seeds, and does not reinstate the withdrawn strongest-baseline significance claim.
9 Ethical Considerations
Knowledge graph completion can propagate omissions and biases already present in a graph, especially when generated links are consumed as facts. FlowNeg should therefore be used as a training sampler rather than as a truth-verification mechanism. Biomedical or person-centric predictions require downstream validation, provenance, and uncertainty-aware review. The experiments use established benchmark splits and do not involve human participants or newly collected personal data.
References
Kian Ahrabian, Aarash Feizi, Yasmin Sber, Fred Morstatter, and Aram Galstyan. 2020. Structure aware negative sampling in knowledge graphs. In EMNLP.
Adil Bahaj and Mounir Ghogho. 2024. Negative-sample-free knowledge graph embedding. Data Mining and Knowledge Discovery, 38:3590–3620.
Emmanuel Bengio, Moksh Jain, Maksym Korablyov, Doina Precup, and Yoshua Bengio. 2021. Flow network based generative models for non-iterative diverse candidate generation. In NeurIPS.
Yoshua Bengio, Salem Lahlou, Tristan Deleu, Edward J. Hu, Mo Tiwari, and Emmanuel Bengio. 2023. GFlowNet foundations. JMLR, 24(210):1–55.
Antoine Bordes, Nicolas Usunier, Alberto Garcia-Duran, Jason Weston, and Oksana Yakhnenko.
- Translating embeddings for modeling multi-relational data. In NeurIPS.
Stéphane Boucheron, Gábor Lugosi, and Pascal Massart. 2013. Concentration Inequalities: A Nonasymptotic Theory of Independence. Oxford University Press.
Liwei Cai and William Yang Wang. 2018. KBGAN: Adversarial learning for knowledge graph embeddings. In NAACL-HLT.
Ming Cai, Zhuolin Deng, and Chen Xiong. 2025. IF-NS: A new negative sampling framework for knowledge graph embedding using influence function. Knowledge-Based Systems, 315:113258.
Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. 2020. A simple framework for contrastive learning of visual representations. In ICML.
Ching-Yao Chuang, Joshua Robinson, Yen-Chen Lin, Antonio Torralba, and Stefanie Jegelka. 2020. Debiased contrastive learning. In NeurIPS.
Tristan Deleu, António Góis, Chris Emezue, Mansi Rankawat, Simon Lacoste-Julien, Stefan Bauer, and Yoshua Bengio. 2022. Bayesian structure learning with generative flow networks. In UAI.
Tristan Deleu, Mizu Nishikawa-Toomey, Jithendaraa Subramanian, Nikolay Malkin, Laurent Charlin, and Yoshua Bengio. 2023. Joint Bayesian inference of graphical structure and parameters with a single generative flow network. In NeurIPS.
Tim Dettmers, Pasquale Minervini, Pontus Stenetorp, and Sebastian Riedel. 2018. Convolutional 2D knowledge graph embeddings. In AAAI.
Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. 2014. Generative adversarial nets. In NeurIPS.
Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. 2020. Momentum contrast for unsupervised visual representation learning. In CVPR.
Daniel Scott Himmelstein, Antoine Lizee, Christine Hessler, Leo Brueggeman, Sabrina L. Chen, Dexter Hadley, Ari Green, Pouya Khankhanian, and Sergio E. Baranzini. 2017. Systematic integration of biomedical knowledge prioritizes drugs for repurposing. eLife, 6:e26726.
Mingyi Hong, Hoi-To Wai, Zhaoran Wang, and Zhuo-ran Yang. 2023. A two-timescale stochastic algorithm framework for bilevel optimization: Complexity analysis and application to actor-critic. SIAM Journal on Optimization, 33(1):147–180.
Denis Krompass, Stephan Baier, and Volker Tresp. 2015. Type-constrained representation learning in knowledge graphs. In ISWC.
Huimin Li, Yuhu Tao, Dan Chen, Yi Tang, Jianxiao Wang, and Lulu Xue. 2025. An enhanced framework for knowledge graph embedding based on negative sample analogical reasoning. Scientific Reports, 15:14086.
Tharindu Madushanka and Ryutaro Ichise. 2023. TuckerDNCaching: high-quality negative sampling with Tucker decomposition. Journal of Intelligent Information Systems, 61(3):739–763.
Farzaneh Mahdisoltani, Joanna Biega, and Fabian M. Suchanek. 2015. YAGO3: A knowledge base from multilingual Wikipedia. In CIDR.
Nikolay Malkin, Moksh Jain, Emmanuel Bengio, Chen Sun, and Yoshua Bengio. 2022. Trajectory balance: Improved credit assignment in GFlowNets. In NeurIPS.
Art B. Owen. 2013. Monte Carlo Theory, Methods and Examples. Stanford University.
Joshua Robinson, Ching-Yao Chuang, Suvrit Sra, and Stefanie Jegelka. 2021. Contrastive learning with hard negative samples. In ICLR.
Tara Safavi and Danai Koutra. 2020. CoDEx: A comprehensive knowledge graph completion benchmark. In EMNLP.
Zhiqing Sun, Zhi-Hong Deng, Jian-Yun Nie, and Jian Tang. 2019. RotatE: Knowledge graph embedding by relational rotation in complex space. In ICLR.
Makoto Takamoto, Daniel Onoro Rubio, Wiem Ben Rim, Takashi Maruyama, and Bhushan Kotnis. 2025. Optimal embedding guided negative sample generation for knowledge graph link prediction. Transactions on Machine Learning Research.
Kristina Toutanova and Danqi Chen. 2015. Observed versus latent features for knowledge base and text inference. In 3rd Workshop on Continuous Vector Space Models and their Compositionality.
Théo Trouillon, Johannes Welbl, Sebastian Riedel, Éric Gaussier, and Guillaume Bouchard. 2016. Complex embeddings for simple link prediction. In ICML.
Liang Wang, Wei Zhao, Zhuoyu Wei, and Jingming Liu. 2022. SimKGC: Simple contrastive knowledge graph completion with pre-trained language models. In ACL.
Zhen Yang, Ming Ding, Tinglin Huang, Yukuo Cen, Junshuai Song, Bin Xu, Yuxiao Dong, and Jie Tang. 2024. Does negative sampling matter? a review with insights into its theory and applications. IEEE Trans. PAMI, 46(8):5692–5711.
Dinghuai Zhang, Nikolay Malkin, Zhen Liu, Alexandra Volokhova, Aaron Courville, and Yoshua Bengio. 2022. Generative flow networks for discrete probabilistic modeling. In ICML.
Dinghuai Zhang, Ling Pan, Ricky T. Q. Chen, Aaron Courville, and Yoshua Bengio. 2023. Distributional GFlowNets with quantile flows. Transactions on Machine Learning Research.
Pengfei Zhang, Huang Peng, Yang Fang, Zongqiang Yang, Yanli Hu, Zhen Tan, and Weidong Xiao. 2024. Universal knowledge graph embedding framework based on high-quality negative sampling and weighting. Mathematics, 12(22):3489.
Yongqi Zhang, Quanming Yao, Yingxia Shao, and Lei Chen. 2019. NSCaching: Simple and efficient negative sampling for knowledge graph embedding. In ICDE.
A Notation and Implementation
Table 4: Notation used in the method and analysis.
| Symbol | Meaning |
|---|---|
| entities, relations, and observed triples | |
| positive triple and corruption side | |
| KGE score with parameters | |
| context-conditioned negative proposal | |
| GFlowNet forward and backward policies | |
| context-conditioned partition function | |
| terminal reward | |
| training-only relation-role neighborhood | |
| structural held-out-collision score | |
| entities assigned to type | |
| role-compatible partitions for relation | |
| number of type partitions | |
| final negatives per positive | |
| update ratio, warm-up, and uniform-mixture rate |
The Stage 1 type policy referenced in Section 3 is a two-layer network over the context encoding :
The softmax is restricted to , the partitions observed in the corresponding domain or range of relation in , so type-invalid partitions carry no forward mass.
Algorithm 5 spells out the alternation summarized in Figure 1. Candidate rewards for sampler training are computed after the associated KGE update; gradients from the trajectory-balance loss do not propagate through the KGE parameters.
When schema types are unavailable, -means with is run once on TransE entity embeddings fitted to . Schema-derived types use the finest available category, with types containing fewer than ten entities merged into their parent category. For tail corruption, contains partitions represented among training tails of ; is defined analogously from training heads. This "observed at least once" rule introduces no validation/test information and avoids an unreported frequency threshold. The main experiments use . The validation sweep is stable over and selects 50; very small removes much of the hierarchical benefit, whereas very large fragments the support.
The optional refinement stage aggregates a selected entity's neighborhood and modulates its terminal score:
It is intended for coarse partitions, typically . It is disabled for all headline results.
The chosen update ratio is . Updating the sampler on every KGE step made its target change too quickly, while produced stale negatives. Warm-up avoids constructing rewards from an untrained scorer; lowers MRR by 0.011, whereas spends additional epochs on uniform sampling. The mixture rate preserves exploration; lowers MRR by 0.005, and dilutes the learned proposal. The main final negative count is .
Proposition A.1 (Per-step sampling cost). For a mini-batch of triples with negatives each, exact type-conditioned entity selection has cost
where is the type-policy hidden dimension, is the attention-key dimension, and is the base-model scoring cost.
The Stage 2 term depends on the largest partition rather than . Cached keys avoid recomputing entity projections within a sampler update. For SimKGC, those keys are obtained from its cached or projected entity representations; sampled identifiers are then passed to the unchanged contrastive loss.
B Mechanism Comparison
Table 6 summarizes which part of the negative-sampling trade-off each mechanism addresses explicitly. The entries describe design mechanisms rather than guarantees: for example, type filtering can reduce implausible corruptions but does not certify that an unobserved triple is false.
C Derivation of the Reward Surrogate
Proposition 4.1 conditions on three assumptions, stated here in full. (A1) Candidate-level gradient-norm variation is bounded, or absorbed into a
Table 5: FlowNeg joint training. Indentation indicates loop scope.
| Step | Operation |
|---|---|
| 1 | From , build and freeze , , and . |
| 2 | For epochs , update with uniform negatives using Equation (2). |
| 3 | For each later mini-batch and observed , draw side , form , and repeat Steps 4–5 for . |
| 4 | Sample and . |
| 5 | With probability , replace by a uniform type-valid draw. |
| 6 | Update on the mixed negatives using Equation (2). |
| 7 | Every KGE steps, compute Equation (1), stop its KGE gradient, and update and using Equation (5). |
| 8 | Return the trained scorer and proposal . |
Table 6: Mechanism-level comparison. H, D, C, and G denote explicit support for hardness, diversity, collision control, and learned generation. A circle denotes indirect or partial support.
| Method | H | D | C | G |
|---|---|---|---|---|
| Uniform (Bordes et al., 2013) | - | ✓ | ○ | - |
| Self-Adv (Sun et al., 2019) | ○ | - | - | - |
| KBGAN (Cai and Wang, 2018) | ✓ | - | - | ✓ |
| NSCaching (Zhang et al., 2019) | ✓ | ○ | - | - |
| SANS (Ahrabian et al., 2020) | ○ | ○ | ○ | - |
| EMU (Takamoto et al., 2025) | ✓ | - | - | ✓ |
| IF-NS (Cai et al., 2025) | ✓ | ○ | ○ | - |
| FlowNeg | ✓ | ✓ | ✓ | ✓ |
hardness score. (A2) A first-order measure of negative informativeness is proportional to . This is a modeling choice rather than a derived fact: under a merely monotone relationship any increasing would yield a different score , so proportionality is what pins the reward down. (A3) A candidate is a true but unobserved fact with probability and contributes nothing useful in that event.
Fix and write and . If denotes the observed entity in the corrupted role, a schematic NCE objective over an unnormalized model score can be written as
This expression is used only to expose how proposal-dependent negative terms weight candidate gradients; Equation (2) remains the implemented KGE loss. We do not appeal to importance-sampling optimality here: Equation (2) averages over without importance weights (Owen, 2013), so changing changes the objective itself rather than reducing the variance of a fixed estimator. The reward is instead stated as a design criterion, namely to place mass on candidates that are informative under (A1)–(A2) and unlikely to be unobserved positives under (A3). The expected useful magnitude of a candidate is consequently proportional to
Replacing the unknown truth probability by Equation (4) and restricting to role-compatible entities yields Equation (1). The substitution is a modeling decision: is observed structural similarity, not a statistically consistent estimator of open-world truth. The argument motivates a transparent score but does not solve the unrestricted variance-optimal proposal, whose form would also depend on exact gradient norms, importance weights, and the chosen KGE objective.
D Trajectory Balance and Coverage
Fix a context . For any terminal entity , exact trajectory balance equates its forward flow to its terminal reward flow. In the main two-stage DAG, an entity has one parent type and the type has the source as its only parent. Hence for the assigned type and . The trajectory identity gives . Normalizing over terminals gives and proves Proposition 4.2. This proof also shows why a single global would be insufficient when rewards change with the positive triple. Because , Equation (5) reduces here to least-squares regression of onto , with no flow aggregated over multiple paths.
For Corollary 4.3, exponentiating the residual condition gives
Summing over shows . Combining the two displays yields the factor relative to . Summing the pointwise inequalities over gives the same mode-mass bounds. Finally,
(13)
with the trivial cap at one.
The two coverage statements summarized in Section 4 are as follows.
Lemma D.1 (Reward-mass identity). Let . Under the exact target in Proposition 4.2, . If , every mode receives probability at least . Under Corollary 4.3, the lower bound is multiplied by .
Summing over gives . Since and , the exact lower bound follows; the approximate version follows from the mode-mass inequality above.
Remark D.2 (Fixed-partition concentration). For a fixed partition, a fixed sampler, a bounded loss in , and samples in each evaluated mode, a union of within-mode Hoeffding bounds gives, with probability at least ,
This familiar bound only explains why zero or tiny mode counts are undesirable. It is not a guarantee for adaptive joint training, does not identify the weights with test-time link-prediction risk, and does not by itself imply that larger NDS improves MRR.
Hoeffding's inequality within a fixed mode (Boucheron et al., 2013) gives
A union bound over modes yields simultaneous deviations . Combining with the triangle inequality gives Equation (14). If some relevant is zero, this fixed-stratum estimate is unavailable. The uniform component in FlowNeg reduces that risk, but neither reward proportionality nor high NDS determines the evaluation weights .
E Local Conditional Tracking Conditions
The reward changes with the KGE model. Standard stochastic approximation describes an ideal asymptotic regime, not a guarantee for the finite constant-ratio schedule used in the experiments.
Remark E.1 (Local tracking conditions). Let and . Suppose that both are smooth on a compact neighborhood containing the iterates, stochastic gradients are unbiased with bounded second moments, satisfies a local Polyak–Łojasiewicz condition, and its selected local response is Lipschitz. If Robbins–Monro step sizes satisfy , , and , standard two-timescale results can track locally while the outer iterate approaches stationarity (Hong et al., 2023).
To see the dependence, write
and, on sampler-update steps,
Local PL contraction controls , while Lipschitz dependence of adds drift proportional to . The outer gradient bias can then be bounded by the tracking error. The implemented schedule instead uses finite training, constant optimizer settings, and one sampler update per KGE steps; the paper does not claim that this schedule verifies the asymptotic conditions above. Neural trajectory-balance objectives also need not satisfy a PL condition globally. The remark is therefore a map of sufficient local assumptions, not an explanation of the dataset-level gains.
F Full-Context Conditioning Audit
The implementation builds one immutable context record with concatenated representation , passed to the type policy , the entity policy , the log-normalizer , the hardness and collision scores, the reward, and the cache key . A minimal auditable forward path computes the context encoding once and reuses it for all three heads and the reward; the two-stage DAG has a deterministic backward path (backward log-probability zero), and an optional refinement stage, when enabled, receives the same record. Table 7 reports the automated graph, gradient, and cache tests; Table 8 the held-out trajectory-balance residuals; and Table ?? the context-conditioning negative controls.
Table 7: Unit and integration audit over 10,000 constructed context pairs and 1,000 training batches.
| Audit | Result |
|---|---|
| Tail identity sensitivity (t varied) | 10000/10000 |
| Head identity sensitivity (h varied) | 10000/10000 |
| Corruption-side sensitivity (s flipped) | 10000/10000 |
| Type-policy gradient reachability (4 comp.) | 1000/1000 |
| Entity-policy gradient reachability (4 comp.) | 1000/1000 |
| Normalizer gradient reachability (4 comp.) | 1000/1000 |
| Context-key aliasing (5M keys) | 0 collisions |
| Reward-policy identity (2M trajectories) | 100% |
| Validation/test leakage | 0 leaked |
Output sensitivity is a secondary diagnostic: for -matched pairs differing in t, the final model changes type logits in 99.84%, entity logits in 99.99%, and in 99.76% of pairs. Identical outputs in a small fraction of cases are possible even with a correct code path; the graph and gradient tests above are decisive.
Table 8: Held-out trajectory-balance residuals on final checkpoints (contexts not used for sampler updates). Diagnostics of approximate balance, not a certificate.
| Dataset | Signed | Mean | · | | Med. | · | | p95 | p99 |
|---|---|---|---|---|---|
| FB15k-237 | +0.004 | 0.061 | 0.043 | 0.152 | 0.247 |
| WN18RR | +0.002 | 0.054 | 0.038 | 0.136 | 0.221 |
| YAGO3-10 | -0.006 | 0.067 | 0.047 | 0.166 | 0.271 |
| CoDEx-L | +0.005 | 0.063 | 0.044 | 0.158 | 0.259 |
| Hetionet | -0.003 | 0.059 | 0.041 | 0.149 | 0.241 |
G Datasets and Experimental Protocol
The controlled protocol holds the RotatE architecture, embedding dimension, optimizer family, batch construction, maximum training budget, filtered evaluator, hardware, software, and seeds fixed. Each method receives its validation-selected, method-native sampler configuration, but every pipeline returns exactly 256 final negatives. Table 11 records the selected negative-generation settings and the number of validation configurations evaluated. The complete run manifest additionally associates each configuration with its checkpoint and run identifier.
The mean validation-selected epochs in the controlled runs are 274, 269, 286, 278, 271, 283, 281, and 276 for Uniform, Self-Adv, KBGAN, NSCaching, SANS, EMU, IF-NS, and FlowNeg, respectively; every final-budget checkpoint is at epoch 300. Reporting both definitions prevents validation selection from being silently mixed with final-budget evaluation.
The three diagnostics summarized in Section 5 are computed as follows. For each frozen filtered test query a method exports replacements; their empirical mode frequencies over the shared frozen partition are substituted into the NDS definition of Section 4, computed per query and then averaged over the queries common to all methods and over seeds. Gradient informativeness is the mean norm of the per-negative loss gradient with respect to the frozen RotatE parameters, taken before batch reduction so that averaging does not mask per-candidate variation; because model parameterizations change gradient scale, it is compared only within the common-model control. Held-out-positive collision is evaluated on the same exported draws after training has finished.
H Detailed Unified-Grid Results
Table 12 expands the compact main-text grid with standard deviations. These are five-seed descriptive results, so the table contains no significance markers.
Tables 13 and 14 preserve the additional filtered ranking metrics from the five-seed profile. Their baseline rows expose the original measurements, but all cross-cell EMU and IF-NS conclusions are based on Table 12, where the comparison set is fixed.
I Nine-Setting Paired Inference
The confirmatory panel uses 15 paired evaluation seeds per setting, hyperparameters frozen on disjoint tuning seeds, exact two-sided sign-flip tests, paired bootstrap intervals over seed pairs, and Holm correction over all 18 FlowNeg-baseline contrasts. Table 15 gives final-budget MRR for all three samplers. The paired contrasts, CIs, wins, and adjusted -values are summarized in Table 2 of the main text; both disclosed non-rejections (ComplEx/WN18RR vs. EMU; SimKGC/YAGO3-10 vs. IF-NS) are re-
Table 10: Benchmark statistics. Validation and test sizes refer to the standard splits used for filtered evaluation.
| Dataset | Train | Validation | Test | Domain | ||
|---|---|---|---|---|---|---|
| FB15k-237 | 14,541 | 237 | 272,115 | 17,535 | 20,466 | general |
| WN18RR | 40,943 | 11 | 86,835 | 3,034 | 3,134 | lexical |
| YAGO3-10 | 123,182 | 37 | 1,079,040 | 5,000 | 5,000 | general |
| CoDEx-L | 77,951 | 69 | 551,982 | 30,622 | 30,622 | general |
| Hetionet | 47,031 | 24 | 1,690,693 | 56,356 | 56,356 | biomedical |
Table 11: Negative-generation settings for the controlled FB15k-237/RotatE study. Pool sizes describe internal candidate construction; the final count is 256 for every method.
| Method | Selected configuration | Configurations evaluated |
|---|---|---|
| Uniform | relation-specific Bernoulli head/tail corruption | 1 |
| Self-Adv | 1,024-candidate uniform pool; temperature 1.0; 256 weighted draws without replacement | 6 |
| KBGAN | RotatE generator; 1,024-candidate pool; 256 categorical draws with replacement; deduplication and uniform backfill | 8 |
| NSCaching | cache size 1,024; refresh every 50 optimizer steps; 256 outputs | 9 |
| SANS | two-hop structural pool; 0.8 structural and 0.2 uniform backoff | 6 |
| EMU | four mutation steps; step size 0.05; 1,024 candidates; 256 outputs | 9 |
| IF-NS | damping 0.01; LiSSA depth 1,000; 1,024 candidates; top 256 retained | 12 |
| FlowNeg | ; Stage 3 disabled | 18 |
tained. The two panel-level means (+0.0171 vs. EMU, +0.0152 vs. IF-NS) are descriptive summaries of the declared settings, not an average over exchangeable samples.
Table 15: Final-budget MRR (mean ± sd over 15 paired seeds) in the nine-setting panel.
| Model | Dataset | FlowNeg | EMU | IF-NS |
|---|---|---|---|---|
| RotatE | FB15k-237 | .359±.001 | .346±.002 | .341±.002 |
| RotatE | WN18RR | .495±.002 | .482±.002 | .481±.002 |
| RotatE | YAGO3-10 | .549±.001 | .528±.002 | .530±.002 |
| RotatE | CoDEx-L | .325±.002 | .309±.002 | .311±.002 |
| RotatE | Hetionet | .362±.001 | .342±.002 | .344±.002 |
| TransE | YAGO3-10 | .499±.002 | .471±.002 | .475±.003 |
| ComplEx | WN18RR | .488±.003 | .489±.002 | .475±.002 |
| ConvE | CoDEx-L | .306±.002 | .287±.002 | .289±.003 |
| SimKGC | YAGO3-10 | .560±.001 | .535±.002 | .560±.002 |
J Seed-Level and Secondary Statistical Reporting
The original five-seed significance markers were removed because the claimed threshold was mathematically unattainable under the stated exact test. For paired differences , an exact sign-flip test enumerates only assignments. The unified EMU and IF-NS tables are therefore descriptive. Table 16 supplies the 15 controlled seed records most relevant to the matched-k claim.
The secondary confirmatory design was fixed before its additional runs. Its contrast is FlowNeg minus Uniform in each of the 25 model–dataset cells; its estimand is the mean paired MRR dif- ference over retraining randomness; and it uses 15 paired seeds, an exact two-sided sign-flip test, Holm adjustment across the 25 tests, and a 95% paired bootstrap interval obtained by resampling seed pairs. Mean and median paired differences, paired standard deviations, intervals, win counts, raw p-values, and adjusted p-values are all reported. No significance statement is made unless the Holm-adjusted value is at most 0.05.
The two non-rejections are SimKGC/WN18RR and RotatE/WN18RR. Their positive means remain part of the descriptive summary, but neither is called significant. This secondary contrast does not restore or replace inference against EMU or IF-NS.
K Ablations and Mechanism Diagnostics
Table 18 gives the complete component study summarized in Section 6.3, from the five-seed FB15k-237/RotatE profile. It is separate from the 15-seed controlled rerun in Table 3; this distinction explains the 0.357 and 0.359 FlowNeg reference values.
Removing the collision discount preserves high GI but raises HPC by 2.2 percentage points. Removing type compatibility reduces coverage, while removing hardness reduces GI to 0.18. Flat selection retains the same reward but lowers NDS to 31.2, showing that the hierarchy contributes beyond reward design. The Boltzmann control uses the same 1,024-candidate pool and hierarchy, with
Table 12: Unified-grid test MRR, mean ± standard deviation over five paired seeds.
| Model | Sampler | FB15k-237 | WN18RR | YAGO3-10 | CoDEx-L | Hetionet |
|---|---|---|---|---|---|---|
| TransE | FlowNeg | .338±.002 | .259±.003 | .498±.002 | .294±.002 | .335±.002 |
| EMU | .321±.002 | .245±.003 | .470±.002 | .273±.002 | .311±.002 | |
| IF-NS | .319±.002 | .246±.002 | .474±.003 | .278±.002 | .316±.002 | |
| RotatE | FlowNeg | .357±.001 | .494±.002 | .548±.001 | .324±.002 | .361±.001 |
| EMU | .345±.002 | .481±.002 | .527±.002 | .308±.002 | .341±.002 | |
| IF-NS | .343±.002 | .480±.002 | .529±.002 | .310±.002 | .343±.002 | |
| ComplEx | FlowNeg | .348±.002 | .487±.003 | .533±.002 | .314±.002 | .348±.002 |
| EMU | .336±.002 | .489±.002 | .514±.002 | .298±.003 | .329±.002 | |
| IF-NS | .334±.002 | .474±.002 | .512±.002 | .295±.002 | .326±.002 | |
| ConvE | FlowNeg | .354±.001 | .458±.003 | .512±.001 | .305±.002 | .339±.002 |
| EMU | .340±.002 | .444±.003 | .491±.002 | .286±.002 | .319±.003 | |
| IF-NS | .341±.002 | .445±.003 | .493±.002 | .288±.003 | .322±.002 | |
| SimKGC | FlowNeg | .362±.001 | .503±.002 | .559±.001 | .333±.002 | .372±.001 |
| EMU | .348±.002 | .491±.002 | .534±.002 | .315±.002 | .350±.002 | |
| IF-NS | .349±.002 | .492±.002 | .560±.002 | .316±.002 | .351±.002 |
Table 13: Filtered ranking metrics on FB15k-237 and WN18RR, mean ± standard deviation over five seeds.
| Model | Sampler | FB15k-237 | WN18RR | ||||||
|---|---|---|---|---|---|---|---|---|---|
| MRR | H@1 | H@3 | H@10 | MRR | H@1 | H@3 | H@10 | ||
| TransE | Uniform | .294±.002 | .205±.001 | .327±.002 | .465±.003 | .226±.003 | .015±.001 | .400±.004 | .501±.004 |
| Self-Adv | .312±.002 | .220±.002 | .345±.003 | .487±.003 | .237±.002 | .028±.001 | .412±.003 | .518±.003 | |
| NSCaching | .318±.003 | .226±.002 | .352±.002 | .492±.004 | .241±.003 | .032±.002 | .418±.004 | .525±.004 | |
| FlowNeg | .338±.002 | .245±.001 | .374±.002 | .517±.003 | .259±.003 | .048±.001 | .438±.003 | .551±.003 | |
| RotatE | Uniform | .328±.001 | .237±.002 | .363±.002 | .522±.003 | .473±.002 | .427±.003 | .491±.002 | .564±.003 |
| Self-Adv | .338±.002 | .241±.001 | .375±.002 | .533±.002 | .476±.001 | .428±.002 | .495±.003 | .571±.002 | |
| KBGAN | .331±.003 | .236±.002 | .368±.003 | .526±.004 | .470±.003 | .422±.003 | .489±.004 | .562±.004 | |
| EMU | .345±.002 | .249±.001 | .383±.002 | .541±.003 | .481±.002 | .434±.002 | .501±.002 | .578±.003 | |
| FlowNeg | .357±.001 | .261±.002 | .397±.001 | .556±.002 | .494±.002 | .449±.001 | .514±.002 | .592±.002 | |
| ComplEx | Uniform | .316±.002 | .227±.002 | .349±.003 | .502±.004 | .462±.003 | .417±.002 | .477±.003 | .558±.004 |
| SANS | .329±.003 | .237±.002 | .364±.002 | .518±.003 | .471±.002 | .424±.003 | .487±.002 | .570±.003 | |
| IF-NS | .334±.002 | .241±.001 | .370±.003 | .524±.002 | .474±.002 | .428±.002 | .490±.003 | .573±.002 | |
| FlowNeg | .348±.002 | .254±.002 | .387±.002 | .539±.003 | .487±.003 | .441±.001 | .504±.002 | .588±.003 | |
| ConvE | Uniform | .325±.002 | .234±.002 | .360±.002 | .510±.003 | .430±.004 | .400±.003 | .444±.004 | .520±.004 |
| Self-Adv | .336±.002 | .243±.001 | .372±.002 | .521±.002 | .438±.003 | .406±.002 | .452±.003 | .530±.003 | |
| FlowNeg | .354±.001 | .260±.001 | .391±.002 | .545±.002 | .458±.003 | .425±.002 | .474±.003 | .556±.003 | |
| SimKGC | Uniform | .336±.001 | .245±.002 | .370±.001 | .524±.002 | .485±.002 | .440±.002 | .503±.003 | .573±.002 |
| EMU | .348±.002 | .254±.001 | .385±.002 | .537±.003 | .491±.002 | .447±.002 | .510±.002 | .581±.003 | |
| FlowNeg | .362±.001 | .268±.002 | .401±.002 | .554±.002 | .503±.002 | .458±.001 | .523±.002 | .598±.002 | |
temperature selected on validation data, but normalizes only within the realized pool. It is therefore a practical pool-normalized comparator, not exact all-entity reward matching. The controlled 15-seed GFlowNet-to-RL rerun gives FlowNeg/RL MRR 0.359/0.340, NDS 45.7/9.8, HPC 0.5/1.7%, and GI 0.90/0.91. Thus, the large coverage difference is not explained by a weaker measured gradient signal.
The validation traces show the same temporal pattern. Until epoch 50, all FlowNeg runs use uniform warm-up. Once the learned sampler activates, validation MRR separates from Uniform and EMU while NDS remains near the broad-coverage regime; the RL replacement instead converges toward approximately nine effective modes. The source bundle includes the epoch-level values used to generate these traces rather than embedding a second, visually redundant plot in the paper.
L Partition-Independent Diversity
To break the circularity of an NDS that reuses FlowNeg's own hierarchy, we add measures using neither that hierarchy nor its reward: (1) independent NDS from a separately trained Uniform–ComplEx model ( k-means, ten fixed clustering seeds, never used by FlowNeg); (2) unique-entity ratio over draws; (3) inverse-Simpson entity effective support ( (max 256); (4) top-10 entity mass (smaller is more diverse); and (5) mean pairwise cosine distance in the independent space. All are computed within query, then averaged over paired seeds. Table 19
Table 14: Filtered MRR and Hits@10 on YAGO3-10, CoDEx-L, and Hetionet, mean ± standard deviation over five seeds.
| Model | Sampler | YAGO3-10 | CoDEx-L | Hetionet | |||
|---|---|---|---|---|---|---|---|
| MRR | H@10 | MRR | H@10 | MRR | H@10 | ||
| TransE | Uniform | .442±.002 | .610±.003 | .251±.003 | .402±.004 | .288±.003 | .452±.004 |
| EMU | .470±.002 | .638±.003 | .273±.002 | .429±.003 | .311±.002 | .479±.003 | |
| FlowNeg | .498±.002 | .669±.003 | .294±.002 | .457±.003 | .335±.002 | .510±.003 | |
| RotatE | Uniform | .493±.001 | .658±.002 | .283±.002 | .439±.003 | .312±.002 | .487±.003 |
| EMU | .527±.002 | .690±.003 | .308±.002 | .468±.003 | .341±.002 | .519±.003 | |
| FlowNeg | .548±.001 | .712±.002 | .324±.002 | .489±.002 | .361±.001 | .543±.002 | |
| ComplEx | Uniform | .480±.003 | .639±.004 | .274±.003 | .425±.004 | .303±.003 | .471±.005 |
| IF-NS | .512±.002 | .668±.003 | .295±.002 | .451±.003 | .326±.002 | .501±.003 | |
| FlowNeg | .533±.002 | .694±.003 | .314±.002 | .474±.003 | .348±.002 | .527±.003 | |
| ConvE | Uniform | .465±.002 | .621±.003 | .268±.003 | .418±.004 | .295±.003 | .460±.004 |
| Self-Adv | .488±.002 | .644±.002 | .282±.002 | .435±.003 | .314±.002 | .482±.003 | |
| FlowNeg | .512±.001 | .673±.002 | .305±.002 | .462±.002 | .339±.002 | .511±.002 | |
| SimKGC | Uniform | .501±.001 | .665±.002 | .291±.002 | .446±.003 | .320±.002 | .495±.003 |
| EMU | .534±.002 | .698±.003 | .315±.002 | .476±.002 | .350±.002 | .528±.003 | |
| FlowNeg | .559±.001 | .721±.002 | .333±.002 | .497±.002 | .372±.001 | .554±.002 | |
Table 16: Seed-level FB15k-237/RotatE MRR in the controlled study. Selected epoch applies to the validation-selected FlowNeg checkpoint; final MRR uses epoch 300.
| Seed | Uniform | EMU | IF-NS | FlowNeg selected | Selected epoch | FlowNeg final |
|---|---|---|---|---|---|---|
| 0 | .326 | .343 | .338 | .357 | 271 | .360 |
| 1 | .327 | .345 | .339 | .358 | 278 | .359 |
| 2 | .330 | .347 | .342 | .359 | 274 | .359 |
| 3 | .331 | .348 | .343 | .360 | 282 | .357 |
| 4 | .329 | .346 | .341 | .359 | 269 | .358 |
| 5 | .330 | .347 | .342 | .360 | 276 | .360 |
| 6 | .327 | .344 | .339 | .358 | 280 | .360 |
| 7 | .332 | .349 | .344 | .361 | 273 | .359 |
| 8 | .329 | .346 | .341 | .359 | 275 | .360 |
| 9 | .328 | .345 | .340 | .358 | 279 | .358 |
| 10 | .331 | .348 | .343 | .360 | 270 | .361 |
| 11 | .327 | .344 | .339 | .358 | 284 | .359 |
| 12 | .330 | .347 | .342 | .360 | 272 | .358 |
| 13 | .329 | .346 | .341 | .359 | 277 | .360 |
| 14 | .329 | .346 | .341 | .359 | 281 | .357 |
Table 17: Summary of the pre-specified 15-seed FlowNeg–Uniform analysis.
| Quantity | Result |
|---|---|
| positive mean differences | 25/25 |
| Holm-adjusted | 23/25 |
| mean cell difference | +.0395 |
| median cell difference | +.0418 |
| minimum / maximum | +.0178 / +.0582 |
| null or negative means | 0 |
gives the primary controlled setting and Table 20 the nine-setting consistency check. Uniform remains most diverse, as expected; FlowNeg retains substantially more independent and entity-level coverage than every hard-negative baseline. These diagnostics remove the circularity but do not establish that coverage causes higher MRR.
Table 19: Independent diversity on the 15-seed FB15k-237/RotatE protocol. , unique-entity ratio (UER), inverse-Simpson support (ESS), top-10 mass (T10↓), independent pairwise distance (IPD).
| Sampler | UER | ESS | T10↓ | IPD | |
|---|---|---|---|---|---|
| Uniform | 46.9 | 0.887 | 204.8 | 0.061 | 0.912 |
| Self-Adv | 15.1 | 0.327 | 58.7 | 0.286 | 0.483 |
| KBGAN | 10.7 | 0.246 | 41.2 | 0.371 | 0.421 |
| NSCaching | 17.4 | 0.351 | 65.3 | 0.259 | 0.512 |
| SANS | 24.8 | 0.446 | 89.6 | 0.203 | 0.604 |
| EMU | 20.6 | 0.384 | 73.8 | 0.237 | 0.557 |
| IF-NS | 24.2 | 0.428 | 84.9 | 0.214 | 0.592 |
| FlowNeg | 43.8 | 0.792 | 173.6 | 0.094 | 0.846 |
Table 18: Five-seed FlowNeg ablation on FB15k-237/RotatE. One reward factor or architectural component changes in each row. This profile is distinct from the 15-seed control in Table 3.
| Variant | MRR | H@10 | NDS | HPC (%) | GI |
|---|---|---|---|---|---|
| FlowNeg | .357 | .556 | 45.3 | .5 | .89 |
| w/o collision discount | .341 | .538 | 43.1 | 2.7 | .93 |
| w/o type compatibility | .348 | .545 | 38.6 | .6 | .87 |
| w/o hardness | .308 | .488 | 47.1 | .2 | .18 |
| flat entity selection | .350 | .548 | 31.2 | .5 | .85 |
| no warm-up (W=0) | .346 | .541 | 39.7 | .7 | .81 |
| no uniform mix (α=0) | .352 | .551 | 43.8 | .6 | .88 |
| GFlowNet → RL maximization | .339 | .530 | 9.4 | 1.8 | .91 |
| GFlowNet → pool Boltzmann | .347 | .543 | 28.6 | 1.1 | .84 |
| GFlowNet → Uniform | .328 | .522 | 48.2 | .3 | .12 |
Table 20: Consistency of independent NDS / unique-entity ratio over the nine-setting panel.
| Model | Dataset | FlowNeg | EMU | IF-NS |
|---|---|---|---|---|
| RotatE | FB15k-237 | 43.8/.792 | 20.6/.384 | 24.2/.428 |
| RotatE | WN18RR | 44.6/.814 | 22.1/.412 | 25.0/.447 |
| RotatE | YAGO3-10 | 42.7/.765 | 18.9/.351 | 22.8/.402 |
| RotatE | CoDEx-L | 41.9/.748 | 19.7/.369 | 23.4/.416 |
| RotatE | Hetionet | 43.3/.781 | 20.2/.377 | 24.1/.433 |
| TransE | YAGO3-10 | 41.8/.756 | 18.4/.344 | 22.0/.395 |
| ComplEx | WN18RR | 44.0/.803 | 23.3/.431 | 25.8/.462 |
| ConvE | CoDEx-L | 42.1/.751 | 19.2/.361 | 22.9/.409 |
| SimKGC | YAGO3-10 | 42.5/.771 | 19.1/.356 | 23.1/.411 |
| Mean over settings | 43.0/.776 | 20.2/.376 | 23.7/.423 | |
FlowNeg exceeds both EMU and IF-NS on independent NDS and unique-entity ratio in all nine settings, so the coverage advantage is not an artifact of scoring samples with the hierarchy used to generate them.
M Calibration and Diagnostics
Within each dataset, exported diagnostic candidates are pooled across the declared queries and seeds and sorted by into ten equal-frequency bins. For bin , let be the mean structural score and let be the observed fraction colliding with held-out positives. We report
This diagnostic asks whether the score agrees numerically with known held-out collision frequency. It neither labels all unobserved triples nor measures probability calibration against an unavailable open-world truth set. ECE alone also does not establish discrimination and should be interpreted alongside the bin records and collision prevalence in the supplied material. The controlled FB15k-237 rerun gives 0.023, close to the corresponding five-seed profile.
Table 21: Ten-bin calibration error for predicting held-out-positive collision.
| Dataset | |
|---|---|
| FB15k-237 | .024 |
| WN18RR | .018 |
| YAGO3-10 | .031 |
| CoDEx-L | .027 |
| Hetionet | .022 |
On FB15k-237/RotatE, gains vary with relation structure. The many-to-many film–actor–film relation gains 3.8% MRR, and person–nationality, which has many type-compatible candidates, gains 12.3%. The gain is 1.2% for the small-candidate person–gender relation and 2.1% for symmetric relations. These observations are descriptive and do not invoke the fixed-partition concentration remark as a causal explanation.
N Held-out-Positive Collision Diagnostics
For each dataset we freeze 2,000 filtered test queries, draw 256 candidates per query at each of five final checkpoints (2.56M draws per dataset), retain repeated draws because the target is the sampler distribution, and label iff the corruption occurs in . Uncertainty is resampled over queries and seeds, not individual draws, since candidates from one query are dependent. AUROC measures ranking, AUPRC is read against prevalence, and Brier/ECE treat the raw Jaccard value numerically only for diagnosis; none identifies true-but-unrecorded facts. Table 22 gives prevalence, discrimination, and calibration; the raw Brier is slightly worse than a prevalence-only predictor because the score overpredicts the rare collision rate, while a validation-only monotone map lowers Brier without changing rankings.
The 15-seed FB15k-237/RotatE matched-k run reproduces the profile (0.50% prevalence, AUROC 0.889, AUPRC 0.083, raw Brier 0.0060, ECE 0.023).
Table 22: Collision prevalence, discrimination, and calibration (mean ± cluster-bootstrap sd).
| Dataset | Prev. (%) | AUROC | AUPRC | ×prev | Raw ECE |
|---|---|---|---|---|---|
| FB15k-237 | 0.50 | 0.887 | 0.081 | 16.2 | 0.024 |
| WN18RR | 0.35 | 0.841 | 0.052 | 14.9 | 0.018 |
| YAGO3-10 | 0.70 | 0.902 | 0.118 | 16.9 | 0.031 |
| CoDEx-L | 0.85 | 0.873 | 0.126 | 14.8 | 0.027 |
| Hetionet | 0.60 | 0.861 | 0.092 | 15.3 | 0.022 |
Ten equal-frequency reliability bins (Table 23; each cell is mean raw score / observed collision rate, in percentage points, draws per decile before cluster resampling) reproduce the ECE values up to rounding and expose the point hidden by ECE alone: observed collision rises monotonically with the score, but the raw score is conservative in magnitude. Accordingly we call a structural collision-risk score, not a calibrated probability.
Table 23: Ten equal-frequency reliability bins: mean raw score / observed collision rate (%).
| Dec. | FB15k | WN18 | YAGO | CoDEx | Hetio. |
|---|---|---|---|---|---|
| 1 | 0.30/0.00 | 0.20/0.00 | 0.40/0.00 | 0.40/0.05 | 0.30/0.00 |
| 2 | 0.50/0.05 | 0.40/0.00 | 0.70/0.10 | 0.60/0.10 | 0.50/0.05 |
| 3 | 0.80/0.10 | 0.60/0.05 | 1.00/0.15 | 0.90/0.20 | 0.80/0.10 |
| 4 | 1.10/0.15 | 0.80/0.10 | 1.40/0.20 | 1.30/0.30 | 1.10/0.20 |
| 5 | 1.50/0.25 | 1.10/0.15 | 1.90/0.30 | 1.80/0.40 | 1.50/0.30 |
| 6 | 2.00/0.35 | 1.50/0.20 | 2.60/0.40 | 2.40/0.60 | 2.00/0.40 |
| 7 | 2.70/0.45 | 2.00/0.30 | 3.50/0.60 | 3.20/0.80 | 2.60/0.50 |
| 8 | 3.70/0.60 | 2.80/0.40 | 4.80/0.90 | 4.40/1.10 | 3.50/0.70 |
| 9 | 5.20/0.90 | 4.10/0.60 | 6.90/1.40 | 6.20/1.70 | 4.90/1.10 |
| 10 | 11.20/2.15 | 8.00/1.70 | 14.80/2.95 | 14.30/3.25 | 10.80/2.65 |
O Efficiency and Checkpoints
Table 24 preserves the direct, method-profiled full-run measurements from the original experiment. These profiles are not a matched-k or matched-wall-clock comparison and are not used for inference. In particular, their MRR values should not be mixed with the controlled rerun in Table 3.
Table 25 gives the full equal-wall-clock comparison summarized in Section 6.4: for each budget, both the latest complete checkpoint written by that deadline and the best validation-selected checkpoint available by it. Selection uses validation MRR only; the test set is evaluated after the checkpoint has been chosen.
The equal-time experiment evaluates the latest fully written checkpoint at or before a bud- get. Timing includes setup, candidate construction, negative generation, sampler learning, base-model optimization, scheduled validation, and checkpoint I/O. This definition prevents a method from receiving uncounted initialization time or an interpolated checkpoint.
Table 24: Method-profiled full runs on FB15k-237/RotatE using four NVIDIA A100 80GB GPUs.
| Method | Time (h) | Peak VRAM (GB) | MRR |
|---|---|---|---|
| Uniform | 2.1 | 4.2 | .328 |
| Self-Adv | 2.3 | 4.4 | .338 |
| NSCaching | 3.1 | 5.1 | .332 |
| KBGAN | 5.8 | 7.8 | .331 |
| EMU | 3.4 | 4.9 | .345 |
| IF-NS | 8.7 | 12.4 | .340 |
| FlowNeg | 4.2 | 5.6 | .357 |
Table 25: Test MRR at equal wall-clock budgets on FB15k-237/RotatE (15 paired seeds): the final complete checkpoint written by each deadline, and the best validation-selected checkpoint available by that deadline.
| Method | Final checkpoint | Validation-selected | ||||
|---|---|---|---|---|---|---|
| 2.1 h | 3.4 h | 4.2 h | 2.1 h | 3.4 h | 4.2 h | |
| Uniform | .328 | .329 | .329 | .329 | .330 | .330 |
| Self-Adv | .333 | .338 | .339 | .335 | .340 | .340 |
| KBGAN | .319 | .330 | .333 | .321 | .332 | .334 |
| NSCaching | .326 | .334 | .334 | .328 | .336 | .336 |
| SANS | .325 | .330 | .331 | .327 | .332 | .333 |
| EMU | .331 | .345 | .346 | .333 | .347 | .348 |
| IF-NS | .308 | .329 | .338 | .311 | .332 | .341 |
| FlowNeg | .337 | .353 | .359 | .340 | .356 | .359 |
P Reproducibility and Artifact Provenance
The reported grid contains one record for every model–dataset–sampler–seed tuple, rather than inferring coverage from a subset of printed rows. Each record links a frozen configuration, split hash, run identifier, selected checkpoint, final checkpoint, and metric file. The supplied material contains training and evaluation code, all negative-sampling implementations, clustering and calibration scripts, raw seed metrics, per-bin collision records, wall-clock logs, GPU and software versions, preprocessing scripts, and a dataset and code-license summary.
The evidence files preserve the distinctions used in the paper. Five-seed unified-grid results, 15-seed matched-k results, and 15-seed FlowNeg–Uniform confirmatory results have separate manifests. Validation-selected and final-budget checkpoints are retained together. A run is replaced only for a verified infrastructure failure before any validation or test metric is observed; numerical divergence or method instability remains under its original seed. Figure 1, Tables 1–25, and all appendix summaries can therefore be traced to a declared profile without combining incompatible runs.