Dataford
Interview QuestionsInterview GuidesExperiencesCoaching
New
Pricing
Get started
Dataford
Popular roles
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Browse
Browse All RolesEvery role hub, from analyst to MLBrowse All CompaniesCompany-specific interview loopsAll Interview GuidesThe full guide library
Top questions by role
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Top questions by skill
SQLPythonStatisticsMachine LearningA/B TestingSystem DesignGenerative AIProduct SenseMetricsBehavioral
Browse all questions →Try a mock interview
Experiences
Practice
Mock InterviewsTimed interview simulations with feedbackCoaching1:1 coaching with people at your target companiesSuccess PathYour 6-week structured planModulesCurated lessons by topicWebinarsTalks from ex-Big Tech data leadsPlaygroundA free-form scratch editor
Learn
BlogInterview strategy and career adviceTech Job Market ReportHiring trends across data and AI rolesFor UniversitiesDataford for career centersAbout DatafordWho we are and how we build
Pricing
Build my plan

Harden Vision Models Against Adversarial Attacks

MediumMachine Learning00:00
Practice interviewer
In session
5 left
00:00

Your question is Harden Vision Models Against Adversarial Attacks. Take a moment with it on the right.

Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).

You need to log in / sign up to chat or submit.

Problem

Business Context

RideSight deploys a convolutional neural network to classify roadside traffic signs for a driver-assistance product processing roughly 8 million camera frames per day. The model performs well on clean validation data, but security testing found that tiny, human-imperceptible perturbations can flip predictions, creating safety and reliability risk in production.

Dataset

You are given a traffic-sign image classification dataset modeled after GTSRB.

Feature GroupCountExamples
Image pixels43,000 train / 12,600 testRGB images resized to 32x32
Labels43 classesspeed_limit_30, stop, yield, no_entry
Metadata3capture_time, weather_bucket, camera_id
Corruption flags4blur_level, brightness_shift, rain_overlay, compression_level
  • Size: 55.6K labeled images, 43 classes
  • Target: Multiclass — traffic sign class
  • Class balance: Moderately imbalanced; largest class is ~7.5% of samples, smallest is ~1.2%
  • Missing data: 8% missing in metadata fields; image tensors are complete

Success Criteria

A good solution should:

  • Achieve clean test accuracy >= 95%
  • Achieve FGSM robustness accuracy >= 65% at epsilon=2/255
  • Limit clean-accuracy drop from robustness methods to <= 3 percentage points
  • Produce a clear explanation of what adversarial robustness means and why it matters for deployed systems

Constraints

  • Inference latency must remain < 15 ms per image on a T4 GPU
  • The solution must be deployable in batch retraining every two weeks
  • Security and safety teams require measurable robustness, not only clean accuracy
  • Candidate should prefer methods that can be monitored in production

Deliverables

  1. Train a baseline CNN on clean images and report clean accuracy.
  2. Generate adversarial examples using FGSM and evaluate robustness.
  3. Improve robustness using adversarial training or another justified defense.
  4. Compare clean vs adversarial performance and explain the tradeoff.
  5. Propose a production monitoring plan for robustness drift and attack detection.