Papers › Revealing the Distributional Vulnerability of Discriminators by Implicit Generators

Revealing the Distributional Vulnerability of Discriminators by Implicit Generators

23 Aug 2021arXiv:2108.09976archive 2025-07-28

Zhilin Zhao, Longbing Cao, Kun-Yu Lin

In deep neural learning, a discriminator trained on in-distribution (ID) samples may make high-confidence predictions on out-of-distribution (OOD) samples. This triggers a significant matter for robust, trustworthy and safe deep learning. The issue is primarily caused by the limited ID samples observable in training the discriminator when OOD samples are unavailable. We propose a general approach for \textit{fine-tuning discriminators by implicit generators} (FIG). FIG is grounded on information theory and applicable to standard discriminators without retraining. It improves the ability of a standard discriminator in distinguishing ID and OOD samples by generating and penalizing its specific OOD samples. According to the Shannon entropy, an energy-based implicit generator is inferred from a discriminator without extra training costs. Then, a Langevin dynamic sampler draws specific OOD samples for the implicit generator. Lastly, we design a regularizer fitting the design principle of the implicit generator to induce high entropy on those generated OOD samples. The experiments on different networks and datasets demonstrate that FIG achieves the state-of-the-art OOD detection performance.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2108.09976")

Code

Syntology Ran 6 of 19 code samples harvested from 1 repository linked to this paper; 13 have no recorded run. Of those that ran: 6 ran with no contract checked.

By repository: official repository: 19 samples from 1 repository, 6 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

lawliet-zzl/fig officialmentioned in paperpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

19 samples harvested; 6 ran; 0 honoured the contract we drafted; 13 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

6ran
13unverified

Licence: 0 of the 19 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from lawliet-zzl/fig. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

DenseNet121 lawliet-zzl/fig/code_FIG/models/densenet.py official repository ran MIT (permissive) · dfb395bae3d07d76 · report
DenseNet169 lawliet-zzl/fig/code_FIG/models/densenet.py official repository ran MIT (permissive) · f295fe3c209ecf78 · report
DenseNet201 lawliet-zzl/fig/code_FIG/models/densenet.py official repository ran MIT (permissive) · 6383aee1c940e7a5 · report
EfficientNetB0 lawliet-zzl/fig/code_FIG/models/efficientnet.py official repository ran MIT (permissive) · f7b96dbdddb56a68 · report
drop_connect lawliet-zzl/fig/code_FIG/models/efficientnet.py official repository ran fingerprinted MIT (permissive) · 4304a326c593f8db · report
swish lawliet-zzl/fig/code_FIG/models/efficientnet.py official repository ran fingerprinted MIT (permissive) · 8737c82de631cffc · report
Baseline lawliet-zzl/fig/code_FIG/main_FIG.py official repository unverified MIT (permissive) · e9f1f5ec51871efb · report
DPN26 lawliet-zzl/fig/code_FIG/models/dpn.py official repository unverified MIT (permissive) · 5f64843147a6f108 · report
DPN92 lawliet-zzl/fig/code_FIG/models/dpn.py official repository unverified MIT (permissive) · 7773feb89409b320 · report
FIG lawliet-zzl/fig/code_FIG/main_FIG.py official repository unverified MIT (permissive) · 99f54c45731688f0 · report
auroc lawliet-zzl/fig/code_FIG/OODMeasures.py official repository unverified MIT (permissive) · 647ffb2c86d7808f · report
auroc_XY lawliet-zzl/fig/code_FIG/OODMeasures.py official repository unverified MIT (permissive) · c048fb086170daf9 · report
build_model lawliet-zzl/fig/code_FIG/model_func.py official repository unverified MIT (permissive) · 573dcd0978af6c5a · report
getCIFAR10 lawliet-zzl/fig/code_FIG/data_loader.py official repository unverified MIT (permissive) · e975ce03129b2cba · report
getSVHN lawliet-zzl/fig/code_FIG/data_loader.py official repository unverified MIT (permissive) · 8a7a6c7465a96e0a · report
get_known_mean_std lawliet-zzl/fig/code_FIG/data_loader.py official repository unverified MIT (permissive) · 7ebe22c394fe6a92 · report
test lawliet-zzl/fig/code_FIG/model_func.py official repository unverified MIT (permissive) · e1b02824bf28d418 · report
tpr95 lawliet-zzl/fig/code_FIG/OODMeasures.py official repository unverified MIT (permissive) · d9455f51710ae474 · report
train lawliet-zzl/fig/code_FIG/main_FIG.py official repository unverified MIT (permissive) · 4f97b300b8ea7ef8 · report

Tasks

Out of Distribution (OOD) Detection

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections