SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2108.09976 · 2021

Revealing the Distributional Vulnerability of Discriminators by Implicit Generators

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 19 functions out of this paper's own repositories and ran 6 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
lawliet-zzl/fig canonical 6 of 19
FunctionStatusWhere it lives
DenseNet121 Ran lawliet-zzl/fig/code_FIG/models/densenet.py
code served (permissive licence) · get_code("dfb395bae3d07d76")
DenseNet169 Ran lawliet-zzl/fig/code_FIG/models/densenet.py
code served (permissive licence) · get_code("f295fe3c209ecf78")
DenseNet201 Ran lawliet-zzl/fig/code_FIG/models/densenet.py
code served (permissive licence) · get_code("6383aee1c940e7a5")
EfficientNetB0 Ran lawliet-zzl/fig/code_FIG/models/efficientnet.py
code served (permissive licence) · get_code("f7b96dbdddb56a68")
drop_connect Ran lawliet-zzl/fig/code_FIG/models/efficientnet.py
code served (permissive licence) · get_code("4304a326c593f8db")
swish Ran lawliet-zzl/fig/code_FIG/models/efficientnet.py
code served (permissive licence) · get_code("8737c82de631cffc")
Baseline Not yet run lawliet-zzl/fig/code_FIG/main_FIG.py
code served (permissive licence) · get_code("e9f1f5ec51871efb")
DPN26 Not yet run lawliet-zzl/fig/code_FIG/models/dpn.py
code served (permissive licence) · get_code("5f64843147a6f108")
DPN92 Not yet run lawliet-zzl/fig/code_FIG/models/dpn.py
code served (permissive licence) · get_code("7773feb89409b320")
FIG Not yet run lawliet-zzl/fig/code_FIG/main_FIG.py
code served (permissive licence) · get_code("99f54c45731688f0")
auroc Not yet run lawliet-zzl/fig/code_FIG/OODMeasures.py
code served (permissive licence) · get_code("647ffb2c86d7808f")
auroc_XY Not yet run lawliet-zzl/fig/code_FIG/OODMeasures.py
code served (permissive licence) · get_code("c048fb086170daf9")
build_model Not yet run lawliet-zzl/fig/code_FIG/model_func.py
code served (permissive licence) · get_code("573dcd0978af6c5a")
getCIFAR10 Not yet run lawliet-zzl/fig/code_FIG/data_loader.py
code served (permissive licence) · get_code("e975ce03129b2cba")
getSVHN Not yet run lawliet-zzl/fig/code_FIG/data_loader.py
code served (permissive licence) · get_code("8a7a6c7465a96e0a")
get_known_mean_std Not yet run lawliet-zzl/fig/code_FIG/data_loader.py
code served (permissive licence) · get_code("7ebe22c394fe6a92")
test Not yet run lawliet-zzl/fig/code_FIG/model_func.py
code served (permissive licence) · get_code("e1b02824bf28d418")
tpr95 Not yet run lawliet-zzl/fig/code_FIG/OODMeasures.py
code served (permissive licence) · get_code("d9455f51710ae474")
train Not yet run lawliet-zzl/fig/code_FIG/main_FIG.py
code served (permissive licence) · get_code("4f97b300b8ea7ef8")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2108.09976")
get_code_for_paper("2108.09976")
have("2108.09976")

Connect an agent — have() is free.