ResearchTrend.AI
  • Papers
  • Communities
  • Events
  • Blog
  • Pricing
Papers
Communities
Social Events
Terms and Conditions
Pricing
Parameter LabParameter LabTwitterGitHubLinkedInBlueskyYoutube

© 2025 ResearchTrend.AI, All rights reserved.

  1. Home
  2. Papers
  3. 2502.12849
66
0

Leveraging Intermediate Representations for Better Out-of-Distribution Detection

18 February 2025
Gianluca Guglielmo
Marc Masana
    OODD
ArXivPDFHTML
Abstract

In real-world applications, machine learning models must reliably detect Out-of-Distribution (OoD) samples to prevent unsafe decisions. Current OoD detection methods often rely on analyzing the logits or the embeddings of the penultimate layer of a neural network. However, little work has been conducted on the exploitation of the rich information encoded in intermediate layers. To address this, we analyze the discriminative power of intermediate layers and show that they can positively be used for OoD detection. Therefore, we propose to regularize intermediate layers with an energy-based contrastive loss, and by grouping multiple layers in a single aggregated response. We demonstrate that intermediate layer activations improves OoD detection performance by running a comprehensive evaluation across multiple datasets.

View on arXiv
@article{guglielmo2025_2502.12849,
  title={ Leveraging Intermediate Representations for Better Out-of-Distribution Detection },
  author={ Gianluca Guglielmo and Marc Masana },
  journal={arXiv preprint arXiv:2502.12849},
  year={ 2025 }
}
Comments on this paper