Docsity

Deep neural networks, Slides of Artificial Intelligence

Partial preview of the text

Download Deep neural networks and more Slides Artificial Intelligence in PDF only on Docsity!

D E E P N E U R A L N E T W O R K S · C I F A R - 1 0 H · S O F T L A B E L L E A R N I N G

DNN Image

Ambiguity Analysis

Training deep networks to understand and replicate

human visual uncertainty on CIFAR- 10 H

Pranav · Kolla · Eswar · Pavan

CIFAR

10 H

10 K Images 10 Classes 3 Loss Functions ResNet- 18 Backbone

P R O J E C T O V E R V I E W Why Study Visual Ambiguity in DNNs? The Problem

Standard DNNs trained on hard one-hot labels fail to capture the

inherent uncertainty present in real-world image classification,

where humans themselves disagree on category.

Our Approach

Train ResNet- 18 directly on soft probability distributions from

CIFAR- 10 H, using novel loss functions designed to match both

the label distribution AND human uncertainty level.

Key Objectives

①

Explore soft label training vs. traditional hard label

supervision

②

Design and compare three loss functions for distribution

matching

③

Evaluate model uncertainty alignment with human

annotators

④ Explain model decisions via Grad-CAM on ambiguous images Dataset: CIFAR- 10 H (Peterson et al., 2019 ) · 10,000 images · Multiple human annotators

D A T A S E T A N A L Y S I S · P E R - C L A S S E N T R O P Y Human Annotator Disagreement by Class

Most Ambiguous

Cat (2.65 bits)

Dog (2.48 bits)

Bird (2.42 bits)

Least Ambiguous

Truck (2.05 bits)

Horse (2.08 bits)

Ship (2.12 bits)

Insight

Animal classes show higher human disagreement than vehicles — visual similarity between cats/dogs/deer drives confusion.

M O D E L A R C H I T E C T U R E Modified ResNet- 18 for 32 × 32 Images Input 32 × 32 × 3 3 × 3 Conv (stride 1 ) Identity (no MaxPool) ResNet Layers 1 - 4 Avg Pool Flatten FC Head 10 logits Softmax Prob Dist Key Architecture Modifications

7 × 7 → 3 × 3 Convolution

Standard ResNet- 18 uses a 7 × 7 conv with stride 2 — too aggressive for 32 × 32 inputs. Replaced with 3 × 3 , stride 1 to preserve fine spatial detail critical for identifying ambiguous textures.

MaxPool → Identity Layer

Initial MaxPool discards spatial information immediately. Replaced with an Identity pass- through, preventing excessive downsampling early in the network and retaining spatial resolution.

Soft Probability Output

The final FC layer outputs 10 logits passed through Softmax, producing a full probability distribution that can be directly compared against the CIFAR- 10 H soft label targets.

T R A I N I N G R E S U L T S Loss Convergence Across Three Models KL Divergence Train Loss: 0. Val Loss: 3. Epochs: 11 Jensen-Shannon Train Loss: 0. Val Loss: 0. Epochs: 12 Custom (KL+Entropy) Train Loss: 0. Val Loss: 4. Epochs: 11

E V A L U A T I O N · R A N K I N G M E T R I C S Ambiguity Detection Performance — Precision@K & NDCG@K P@ (^100) 4.0% vs 5 % random P@ (^500) 25.8% reaching recall NDCG@ (^100) 0. ranked quality NDCG@ (^1000) 0.400 full coverage Interpretation Model performance roughly tracks random baseline at P@K — identifying truly ambiguous images from entropy alone remains a challenge that improves at higher K values.

E X P L A I N A B I L I T Y · G R A D - C A M Where Does the Model Look? Clear vs. Ambiguous Images

Clear Images (entropy ≈ 0 ) Ambiguous Images (entropy > 1.9)

Key Insight: Clear images produce focused, object-centered heat maps. Ambiguous images show scattered, diffuse attention^ —^ the model is genuinely

uncertain which features to trust, mirroring human annotator disagreement.

R O B U S T N E S S A N A L Y S I S Model Degradation Under Gaussian Blur All Models Degrade Cosine similarity drops sharply from ~0.96 at σ= 0 to ~0.45 at σ=1.0 — blur destroys soft-label alignment for all loss variants. JSD Most Robust Jensen-Shannon divergence model (blue) maintains highest cosine similarity at high blur, holding ~0. vs KL's ~0.26 at σ≥1.5. Rapid Degradation The steepest drop occurs between σ=0.5 and σ=1. — a critical threshold where image detail required for uncertainty estimation is lost.