Add PLF postprocessor - #318
Open
maryhadalittlecode wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds PLF, a post-hoc OOD detector that applies a piecewise linear shaping function to penultimate-layer features.
Paper: "An Information-Theoretic Framework for Feature Construction in Out-of-Distribution Detection": https://arxiv.org/abs/2506.14194
Leaderboard PR:
The corresponding leaderboard entries were submitted separately in zjysteven#7: zjysteven#7.
Our git repo: https://github.com/maryhadalittlecode/PLF-OpenOOD
PLF’s hyperparameters are tuned using Bayesian optimization (BO); please refer to our repo for the complete tuning procedure, as the grid search range in
configs/postprocessors/plf.ymlincluded here is provided only as an example.Changes
openood/postprocessors/plf_postprocessor.py— PLF postprocessor implementationconfigs/postprocessors/plf.yml— default configuration and hyperparametersopenood/networks/plf_net.py— network wrapper for applying PLF to penultimate featuresopenood/postprocessors/__init__.py,openood/postprocessors/utils.py, andopenood/evaluation_api/postprocessor.py— registration under the'plf'keyopenood/evaluation_api/evaluator.py— integration of the PLF network wrapper into the evaluation pipelinescripts/ood/plf/— evaluation scripts for CIFAR-10, CIFAR-100, ImageNet-200, and ImageNet-1KResults
CIFAR-10 (ResNet-18)
CIFAR-100 (ResNet-18)
ImageNet-200 (ResNet-18)
ImageNet-1K (ResNet-50)