Logo/

Neural Network Activations and Perceptrons

Log in

Made with ScholarlyMake flashcards like these from your own notes

Neural Network Activations and Perceptrons

Questions and answers

459 cards
  1. Question:What is activation function in neural networks?

    Answer:Nonlinear function applying to neurons output

  2. Question:Why are activation functions needed in neural networks?

    Answer:Introduce nonlinearity to model complex patterns

  3. Question:What is the Sigmoid activation function definition?

    Answer:σ(x) = 1/(1+e^{-x})

  4. Question:State a key limitation of the sigmoid function.

    Answer:Vanishes gradients for extreme inputs

  5. Question:What is the ReLU function definition?

    Answer:f(x) = max(0, x)

  6. Question:What is a major advantage of ReLU?

    Answer:Computational simplicity and sparse activation

  7. Question:What is a downside of ReLU?

    Answer:Dying ReLU problem (dead neurons)

  8. Question:What is the tanh function definition?

    Answer:tanh(x) = (e^x - e^{-x})/(e^x + e^{-x})

  9. Question:How does tanh compare to sigmoid in output range?

    Answer:Output in [-1, 1] vs [0, 1] for sigmoid

  10. Question:What is the SoftMax function used for in neural nets?

    Answer:Convert vector to probability distribution over classes

  11. Question:What is the Swish activation function?

    Answer:f(x) = x * sigmoid(x)

  12. Question:Why is Swish considered smooth and non-monotonic?

    Answer:Smooth derivative; can improve training performance

  13. Question:What is the purpose of activation functions in perceptrons?

    Answer:Introduce nonlinearity for complex decision boundaries

  14. Question:Define a perceptron.

    Answer:A simple linear classifier with a step activation

  15. Question:What is the perceptron learning rule?

    Answer:Adjust weights based on misclassified examples

  16. Question:What does the convergence theorem for perceptrons guarantee?

    Answer:If data linearly separable, algorithm converges

  17. Question:What is the role of non-linear activation in multi-layer nets?

    Answer:Enable learning of complex mappings across layers

  18. Question:What is a multi-layer perceptron (MLP)?

    Answer:Feedforward network with multiple hidden layers

  19. Question:What is backpropagation in neural networks?

    Answer:Efficiently computing gradients via chain rule for all weights

  20. Question:What is a common issue in backpropagation called?

    Answer:Vanishing/exploding gradients

  21. Question:What is a residual network (ResNet)?

    Answer:NN with skip connections to mitigate gradient issues

  22. Question:What does backpropagation through time (BPTT) involve?

    Answer:Unfolding recurrent nets in time and applying backpropagation

  23. Question:What is a common activation used in CNNs?

    Answer:ReLU and variants

  24. Question:What is the purpose of pooling layers in CNNs?

    Answer:Downsample feature maps and reduce computation

  25. Question:What is the difference between a convolution and a fully connected layer?

    Answer:Convolution uses local receptive fields and weight sharing

  26. Question:What is a key property of the sigmoid function in classification?

    Answer:Probabilistic interpretation as class probability

  27. Question:What problem does vanishing gradient cause in deep networks?

    Answer:Poor weight updates in early layers during training

  28. Question:What is the advantage of Leaky ReLU over ReLU?

    Answer:Small gradient for negative inputs prevents dead neurons

  29. Question:What is a backpropagated error signal?

    Answer:δ error term propagated to adjust weights

  30. Question:What does the term 'gradient explosion' refer to?

    Answer:Rapid growth of gradients causing unstable training

  31. Question:Name a common technique to stabilize training in deep nets.

    Answer:Gradient clipping or normalization

  32. Question:What does the softmax function output sum to?

    Answer:1 (sum of probabilities)

  33. Question:What is a perceptron’s mathematical foundation about?

    Answer:Linear decision boundary using weighted sum and bias

  34. Question:How are weights updated in the basic perceptron learning rule?

    Answer:w ← w + η y_i x_i if misclassified

  35. Question:What constitutes the learning rule for perceptrons?

    Answer:Corrective updates based on misclassifications

  36. Question:What is the significance of the 2-layer perceptron vs. multi-layer?

    Answer:Single-layer is linearly separable; multi-layer handles nonlinearity

  37. Question:What does the term 'convergence' imply for perceptron training?

    Answer:No further errors in training data with updates

  38. Question:Name an activation function that can introduce nonlinearity without saturating?

    Answer:ReLU family (ReLU, Leaky ReLU)

  39. Question:What is backpropagation primarily used to compute in neural nets?

    Answer:Gradients of loss w.r.t. all weights

  40. Question:What is a challenge unique to backpropagation in deep nets?

    Answer:Vanishing/exploding gradients across layers

  41. Question:What is the key idea behind a convolutional layer?

    Answer:Shared weights with local connectivity for feature detection

  42. Question:What does a pooling layer do in CNNs?

    Answer:Reduces spatial dimensions and controls overfitting

  43. Question:What is the role of Gradients in neural network training?

    Answer:Indicate how to adjust weights to minimize loss

  44. Question:What is a major advantage of deep networks?

    Answer:Representing hierarchical feature abstractions

  45. Question:In CNNs, what is the effect of stride > 1?

    Answer:Downsampling and larger receptive field

  46. Question:What is the BCNN?

    Answer:A placeholder term not used in standard practice

  47. Question:What is the purpose of residual connections?

    Answer:To ease optimization by routing around layers

  48. Question:What does a backpropagation algorithm compute for each weight?

    Answer:Gradient of loss with respect to that weight

  49. Question:What is a key difference between sigmoid and softmax?

    Answer:Sigmoid for binary outputs; softmax for multi-class probabilities

  50. Question:What type of learning is supervised learning?

    Answer:Learning from labeled examples to map inputs to outputs

  51. Question:What is reinforcement learning focused on?

    Answer:Learning by trial-and-error via rewards

  52. Question:What is Q-learning primarily about?

    Answer:Value-based RL learning optimal action values

  53. Question:What is a variational autoencoder (VAE) primarily used for in generative modeling?

    Answer:Learning a probabilistic latent space to generate new data.

  54. Question:How does a VAE differ from a standard autoencoder in terms of latent space?

    Answer:VAE imposes a probabilistic latent distribution rather than a fixed encoding.

  55. Question:What is the role of the encoder in a VAE?

    Answer:Maps input to parameters of a latent distribution (mean and variance).

  56. Question:What is the role of the decoder in a VAE?

    Answer:Generates data by sampling from the latent distribution and decoding.

  57. Question:What are the two main components of the VAE loss function?

    Answer:Reconstruction loss and KL divergence.

  58. Question:What does the reconstruction loss measure in a VAE?

    Answer:How well the decoded output matches the input.

  59. Question:What does the KL divergence term encourage in a VAE?

    Answer:Latent distribution to be close to the prior (e.g., Gaussian).

  60. Question:Why is the prior distribution important in VAEs?

    Answer:It regularizes the latent space to enable meaningful sampling.

  61. Question:What is the reparameterization trick used for in VAEs?

    Answer:Allows backpropagation through a stochastic sampling step.

  62. Question:In VAEs, what distributions are typically used for the encoder output?

    Answer:Parameters of a Gaussian: mean and diagonal covariance (log-variance).

  63. Question:What distribution is commonly assumed as the prior in VAEs?

    Answer:Standard Gaussian, N(0, I).

  64. Question:What is a possible drawback of VAEs related to reconstruction quality?

    Answer:Blurry reconstructions due to the stochastic latent space.

  65. Question:What is a Conditional VAE (CVAE)?

    Answer:A VAE conditioned on auxiliary information to guide generation.

  66. Question:What is a Hierarchical VAE (HVAE)?

    Answer:VAEs with multiple stochastic layers to capture complex structure.

  67. Question:Which architecture component is crucial for controlling generated outputs in VAEs?

    Answer:Choice of posterior and prior distributions.

  68. Question:What is the main difference between Autoencoders and VAEs in terms of generation?

    Answer:VAEs can generate new samples by sampling from latent space.

  69. Question:What does ‘disentanglement’ refer to in VAEs and why is it desirable?

    Answer:Latent factors correspond to interpretable data attributes.

  70. Question:Name a common application area for VAEs.

    Answer:Image or sound generation and representation learning.

  71. Question:What is the objective of the VAE’s evidence lower bound (ELBO)?

    Answer:Maximize data likelihood while regularizing latent space.

  72. Question:What method optimizes the ELBO in practice?

    Answer:Stochastic gradient descent with backpropagation.

  73. Question:In a VAE, what does the decoder output parameterize for binary data?

    Answer:Bernoulli distribution parameters (p@x).

  74. Question:In a VAE, what does the encoder output for continuous data?

    Answer:Mean and variance of a Gaussian in latent space.

  75. Question:What is the purpose of the KL term in the ELBO?

    Answer:Keep posterior close to prior to enable sampling.

  76. Question:What is a practical challenge when training VAEs with high-capacity decoders?

    Answer:Posterior collapse where decoder ignores latent variables.

  77. Question:How can posterior collapse be mitigated in VAEs?

    Answer:Use weaker decoders, batching strategies, or free-form priors.

  78. Question:Define a ‘latent variable’ in the context of VAEs.

    Answer:A compact representation variable sampled from the encoder distribution.

  79. Question:What is meant by ‘reconstruction loss’ in VAEs for continuous data?

    Answer:Mean squared error between input and reconstruction.

  80. Question:What is meant by ‘reconstruction loss’ in VAEs for binary data?

    Answer:Binary cross-entropy between input and reconstruction.

  81. Question:Why are VAEs considered probabilistic generative models?

    Answer:They learn distributions over latent space and data conditional on it.

  82. Question:How does a VAE guarantee smooth interpolation in the latent space?

    Answer:Gaussian prior and regularization encourage continuous space.

  83. Question:What is the typical dimensionality relationship between input and latent space in VAEs?

    Answer:Latent dimension is smaller than input dimension.

  84. Question:What criterion guides architecture choice in VAEs?

    Answer:Balance between reconstruction quality and latent space regularization.

  85. Question:What does a CVAE enable beyond a standard VAE?

    Answer:Controlled generation conditioned on labels or attributes.

  86. Question:What is a key advantage of VAEs over GANs in terms of training stability?

    Answer:More stable training due to probabilistic objective (ELBO).

  87. Question:Name a common metric to evaluate VAEs qualitatively.

    Answer:Visual inspection of generated samples and reconstructions.

  88. Question:Name a common metric to evaluate VAEs quantitatively.

    Answer:log-likelihood or ELBO lower bound estimates.

  89. Question:What is the role of architecture in VAEs per section 7.8.3?

    Answer:Affects expressiveness and quality of latent representations.

  90. Question:Which distributions are discussed in 7.8.4 for VAEs?

    Answer:Choice of latent priors and posteriors.

  91. Question:What is a key topic in 7.9 Advanced Topics on VAEs?

    Answer:CVAEs, HVAEs, and real-world challenges.

  92. Question:What is a primary challenge in real-world VAEs applications?

    Answer:Difficulties in modeling complex data distributions.

  93. Question:Describe a Conditional VAE (CVAE) briefly.

    Answer:VAE conditioned on additional information for targeted generation.

  94. Question:What is a hallmark of a well-regularized VAE latent space?

    Answer:Continuity and smoothness enabling meaningful sampling.

  95. Question:What role does the KL divergence play in preventing overfitting in VAEs?

    Answer:Regularizes latent space, preventing overfitting to data.

  96. Question:What is a typical end-to-end training objective for VAEs?

    Answer:Maximize ELBO via gradient-based optimization.

  97. Question:What is the function of the encoder’s outputs in a VAE?

    Answer:Parameters of q(z|x) distribution (mean, variance).

  98. Question:What does the term ‘posterior’ refer to in VAEs?

    Answer:q(z|x), the distribution of latent given data.

  99. Question:What does the term ‘prior’ refer to in VAEs?

    Answer:p(z), the assumed distribution of latent variables.

  100. Question:What is the typical activation for the encoder’s output variance?

    Answer:Softplus or exponential to ensure positivity.

  101. Question:What is the role of the reparameterization trick in gradients?

    Answer:Move randomness outside the gradient path.

  102. Question:Which chapter discusses GANs following VAEs?

    Answer:Chapter 8: Generative Adversarial Networks.

  103. Question:What is GANs’ fundamental training dynamic?

    Answer:Adversarial between generator and discriminator.

  104. Question:Name a GAN variant that addresses mode collapse.

    Answer:Wasserstein GAN (WGAN).

  105. Question:What is a ConvNet-based GAN variant mentioned?

    Answer:DCGANs.

  106. Question:What is a common practice for evaluating GANs?

    Answer:Qualitative visual inspection and quantitative metrics.

  107. Question:What is the purpose of the 8.5 section in GANs?

    Answer:Hands-on training a simple GAN in Python.

  108. Question:What is the benefit of CVAEs over standard VAEs?

    Answer:Controlled generation with class conditioning.

  109. Question:What does the ELBO bound combine?

    Answer:Reconstruction likelihood and KL regularization.

  110. Question:What does ‘mode collapse’ mean in GANs?

    Answer:Generator produces limited variety of outputs.

  111. Question:What is the major challenge of training VAEs with powerful decoders?

    Answer:Posterior collapse risk.

  112. Question:What is a primary reason to study VAEs and GANs together?

    Answer:To understand different generative modeling approaches.

  113. Question:Which tools are commonly used with Python for deep learning as per intro?

    Answer:TensorFlow, Keras, PyTorch.

  114. Question:What language is recommended for ease of learning deep learning in the book?

    Answer:Python.

  115. Question:What is a key concept in 7.7.3 about VAEs?

    Answer:Mathematics underlying variational inference.

  116. Question:What does 7.7.2 compare?

    Answer:Differences between Autoencoders and VAEs.

  117. Question:What is the central mathematical concept behind VAEs?

    Answer:Variational inference and probabilistic latent spaces.

  118. Question:What is a major advantage of VAEs in generation?

    Answer:Ability to sample new data from latent space.

  119. Question:What does ‘recognition model’ refer to in VAEs?

    Answer:Encoder approximating posterior q(z|x).

  120. Question:What is the main purpose of neural networks in the context of data?

    Answer:Identify patterns and make decisions from data

  121. Question:How does deep learning extend basic neural networks?

    Answer:Adds multiple layers to learn complex patterns

  122. Question:What is a practical example of neural networks used in daily life?

    Answer:Face tagging in photo apps or voice understanding by virtual assistants

  123. Question:Why is Python favored for machine learning and deep learning?

    Answer:Simplicity and readable syntax with rich ML libraries

  124. Question:Name three popular ML frameworks mentioned in the text.

    Answer:TensorFlow, Keras, PyTorch

  125. Question:What is the relationship between data and neural networks?

    Answer:Networks learn from data examples to recognize patterns

  126. Question:What fundamental concept do neurons in a neural network resemble?

    Answer:Brain neurons processing inputs and producing outputs

  127. Question:What are the four steps a neuron uses to produce an output?

    Answer:Input values, apply weights, add bias, apply activation function

  128. Question:What is the role of weights in a neuron?

    Answer:Weigh inputs to reflect their importance

  129. Question:What does the bias term do in a neuron’s computation?

    Answer:Shifts the activation threshold of the neuron

  130. Question:What is an activation function’s purpose?

    Answer:Decide whether to pass the signal forward

  131. Question:How do neural networks learn from examples?

    Answer:By adjusting weights and biases during training

  132. Question:What is the key difference between shallow networks and deep networks?

    Answer:Deep networks have multiple hidden layers for learning complex patterns

  133. Question:What driving example illustrates the use of deep learning in autonomous vehicles?

    Answer:Self-driving cars recognizing road signs and pedestrians

  134. Question:What is the primary focus of the introductory analogy in 1.1?

    Answer:Teaching a friend to recognize different fruits through examples

  135. Question:Which task demonstrates neural networks processing complex data in layers?

    Answer:Recognizing patterns in images or understanding speech text

  136. Question:In the context of the book, what is the benefit of Python’s ecosystem for ML?

    Answer:Provides powerful, easy-to-use interfaces for building/training models

  137. Question:What is the general learning outcome of Part 1, Chapter 1?

    Answer:Foundations of neural networks and deep learning and Python role

  138. Question:What does “neural networks learn from data” imply about training?

    Answer:Requires data-driven examples to adjust model parameters

  139. Question:Why are layers important in deep learning?

    Answer:They enable learning increasingly abstract representations

  140. Question:What can be inferred about model predictions from deep networks?

    Answer:More accurate predictions due to complex pattern learning

  141. Question:What analogy is used to describe fruit recognition in 1.1?

    Answer:Teaching a friend to recognize different types of fruit using examples

  142. Question:What characteristic of Python makes it accessible to beginners?

    Answer:Clear, readable syntax

  143. Question:What is a key capability of self-driving car AI mentioned?

    Answer:Recognize signs, pedestrians, and other vehicles

  144. Question:What does the term “activation function” do in a neuron’s computation?

    Answer:Transforms total input into an output decision

  145. Question:What is the main historical significance of neural networks and deep learning in AI?

    Answer:Powerful tools behind many modern innovations and applications

  146. Question:What is the difference between 1.2 Neural Networks and Deep Learning sections?

    Answer:Neural networks vs. deeper, multi-layer learning in deep learning

  147. Question:Which elements feed data into neural networks in the car example?

    Answer:Cameras and sensors

  148. Question:What highlights the iterative nature of learning in neural networks?

    Answer:Training with many examples to improve accuracy

  149. Question:What is one reason the text gives for neural networks’ success in tasks like image recognition?

    Answer:Ability to learn from large amounts of data through layers

  150. Question:What is the central theme of 1.1 Overview of Neural Networks and Deep Learning?

    Answer:Foundations, history, and significance of neural nets and deep learning

  151. Question:What is the basic purpose of layers in a neural network?

    Answer:Stack neurons to process data and learn representations.

  152. Question:What is the role of the input layer in a neural network?

    Answer:Receives data; each neuron represents a feature.

  153. Question:What are hidden layers responsible for in a neural network?

    Answer:Finding patterns and connections by adjusting weights and biases.

  154. Question:What does the output layer represent in a neural network?

    Answer:Possible outcomes (e.g., cat vs dog).

  155. Question:What is a neuron’s function in a neural network?

    Answer:Compute weighted sum plus bias and apply activation.

  156. Question:What is the effect of a larger weight on a neuron's input?

    Answer:Increases the input’s influence on the output.

  157. Question:What is bias in a neural network?

    Answer:An extra value added to adjust the output.

  158. Question:How do activation functions influence learning in neural networks?

    Answer:Decide whether to pass the neuron's output to the next layer.

  159. Question:Name three common activation functions mentioned and their basic behavior.

    Answer:Sigmoid; maps to 0-1; ReLU; outputs 0 for negatives, input for positives; Softmax; converts to class probabilities.

  160. Question:What is the primary purpose of a loss function?

    Answer:Quantify how far predictions are from true values.

  161. Question:What does Mean Squared Error measure?

    Answer:Average squared difference between predictions and actual values.

  162. Question:What is Cross-Entropy Loss used for?

    Answer:Classification tasks with probabilistic outputs.

  163. Question:What happens when you minimize the loss function during training?

    Answer:The network improves its predictions over time.

  164. Question:How would you describe deep learning in simple terms?

    Answer:Layered networks learn from large data to solve complex problems.

  165. Question:Why are deep networks able to handle large data better?

    Answer:They have many layers that extract intricate patterns.

  166. Question:What is the difference between neural networks and deep learning?

    Answer:Deep learning uses deeper architectures; neural networks are foundational.

  167. Question:What does a neuron do with input values during processing?

    Answer:Apply weights, add bias, apply activation to produce output.

  168. Question:How are weights and biases updated during training?

    Answer:Adjusted to minimize the loss.

  169. Question:What is a multi-class problem in the context of softmax?

    Answer:Classifies input into more than two categories.

  170. Question:What is the significance of the activation function in a neural network’s output?

    Answer:Determines impact of input and whether signal passes on.

  171. Question:What analogy is used to describe learning from examples in neural networks?

    Answer:Learning like humans learn from experiences and observations.

  172. Question:What is the main idea behind a layered approach to driving decisions in the analogy?

    Answer:Layers progressively refine decisions from simple to complex patterns.

  173. Question:What does “deep” imply in deep learning?

    Answer:More hidden layers enabling more complex representations.

  174. Question:In classification tasks, what does the output layer’s neurons represent?

    Answer:Possible class outcomes.

  175. Question:What is the role of weights in a neural network?

    Answer:Weights scale input signals to neuron outputs.

  176. Question:What is the role of bias in a neuron?

    Answer:Adds a constant value to help adjust output.

  177. Question:What do activation functions do in neural networks?

    Answer:Decide if neuron output should be passed on.

  178. Question:What is sigmoid activation best for?

    Answer:Producing probabilities between 0 and 1.

  179. Question:What is ReLU activation?

    Answer:Output is 0 for negative input, input for positive.

  180. Question:What is softmax activation used for?

    Answer:Converts outputs to probabilities across classes.

  181. Question:What is a loss function in neural networks?

    Answer:Measures how far predictions are from true values.

  182. Question:What does Mean Squared Error (MSE) assess?

    Answer:Average squared difference between predictions and targets.

  183. Question:What is cross-entropy loss used for?

    Answer:Classification tasks with probabilistic outputs.

  184. Question:What is an optimizer in neural networks?

    Answer:Updates weights/biases to reduce loss.

  185. Question:Name two common optimizers.

    Answer:SGD and Adam.

  186. Question:What is forward pass in training?

    Answer:Data flows from input to output to make a prediction.

  187. Question:What is backpropagation?

    Answer:Algorithm to compute gradients and update parameters.

  188. Question:What does updating parameters achieve?

    Answer:Moves model toward better predictions.

  189. Question:What layers are in a basic neural network diagram?

    Answer:Input, hidden, and output layers.

  190. Question:What do input layer nodes x1, x2, x3 represent?

    Answer:Different pieces of information fed into the model.

  191. Question:What is the role of hidden layers?

    Answer:Process data and learn patterns.

  192. Question:What is the output layer responsible for?

    Answer:Producing final predictions.

  193. Question:Why are more hidden layers called a 'deeper' network?

    Answer:More layers enable deeper feature representations.

  194. Question:In the provided PyTorch example, what does nn.Linear(2,5) do?

    Answer:Maps 2 inputs to 5 outputs (input to hidden).

  195. Question:What activation is applied after the first linear layer in the example?

    Answer:ReLU.

  196. Question:What activation is used for the final output in the example?

    Answer:Sigmoid.

  197. Question:What loss function is used in the PyTorch example?

    Answer:Mean Squared Error (MSE).

  198. Question:What does optimizer.zero_grad() accomplish?

    Answer:Clears gradients from the previous step.

  199. Question:What is the purpose of loss.backward()?

    Answer:Computes gradients via backpropagation.

  200. Question:What does optimizer.step() do?

    Answer:Updates model parameters using computed gradients.

Showing the first 200 of 459 cards. Open All cards to see the rest.