PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/Machine Learning/LinkedIn

Explain activations, losses, and Adam

Last updated: Mar 29, 2026

Quick Overview

This question evaluates understanding of neural network building blocks (layers and activation functions), comparative properties of activation/gating functions, principled selection of loss functions for different problem settings, and the internal mechanics and hyperparameters of the Adam optimizer.

  • medium
  • LinkedIn
  • Machine Learning
  • Machine Learning Engineer

Explain activations, losses, and Adam

Company: LinkedIn

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Onsite

Answer the following ML fundamentals questions: ## 1) Neural network building blocks - What is a "layer" in a neural network, and what does it compute? - Why do we need **activation functions**? ## 2) Activation functions deep dive For each of the following, explain: - its mathematical form (high level is fine) - typical use cases - pros/cons and pitfalls (e.g., saturation, dead neurons, gradient flow) Activations / gating: - Sigmoid - ReLU - SiLU (a.k.a. Swish) - SwiGLU (or GLU-style gated activations) ## 3) Loss functions Given different problem settings, which loss would you choose and why? - Binary classification (possibly imbalanced) - Multi-class classification - Regression with outliers - Learning to rank / retrieval (optional) - Probabilistic forecasting (optional) ## 4) Optimizer Explain how **Adam** works: - the moving averages it keeps - bias correction - how the parameter update is computed - what the key hyperparameters do (learning rate, \(\beta_1\), \(\beta_2\), \(\epsilon\), weight decay) Be explicit about trade-offs, common failure modes, and practical defaults.

Quick Answer: This question evaluates understanding of neural network building blocks (layers and activation functions), comparative properties of activation/gating functions, principled selection of loss functions for different problem settings, and the internal mechanics and hyperparameters of the Adam optimizer.

Related Interview Questions

  • Explain Logistic Regression, Backprop, and Adam - LinkedIn (medium)
  • Explain variance reduction in random forests - LinkedIn (medium)
  • Answer practical ML foundations questions - LinkedIn (medium)
  • Handle imbalance, sampling, and overfitting - LinkedIn (easy)
  • Handle imbalance, validate samples, and avoid overfitting - LinkedIn (easy)
LinkedIn logo
LinkedIn
Feb 11, 2026, 12:00 AM
Machine Learning Engineer
Onsite
Machine Learning
13
0
Loading...

Answer the following ML fundamentals questions:

1) Neural network building blocks

  • What is a "layer" in a neural network, and what does it compute?
  • Why do we need activation functions ?

2) Activation functions deep dive

For each of the following, explain:

  • its mathematical form (high level is fine)
  • typical use cases
  • pros/cons and pitfalls (e.g., saturation, dead neurons, gradient flow)

Activations / gating:

  • Sigmoid
  • ReLU
  • SiLU (a.k.a. Swish)
  • SwiGLU (or GLU-style gated activations)

3) Loss functions

Given different problem settings, which loss would you choose and why?

  • Binary classification (possibly imbalanced)
  • Multi-class classification
  • Regression with outliers
  • Learning to rank / retrieval (optional)
  • Probabilistic forecasting (optional)

4) Optimizer

Explain how Adam works:

  • the moving averages it keeps
  • bias correction
  • how the parameter update is computed
  • what the key hyperparameters do (learning rate, β1\beta_1β1​ , β2\beta_2β2​ , ϵ\epsilonϵ , weight decay)

Be explicit about trade-offs, common failure modes, and practical defaults.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Machine Learning•More LinkedIn•More Machine Learning Engineer•LinkedIn Machine Learning Engineer•LinkedIn Machine Learning•Machine Learning Engineer Machine Learning
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.