Introduction to Neural Networks
- 103Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
When and where did the field of artificial intelligence originate?
AI originated in 1956 at Dartmouth.
Or swipe the card
103 cards
When and where did the field of artificial intelligence originate?
AI originated in 1956 at Dartmouth.
Which MIT-associated researchers helped establish the field of AI, and what were they known for?
Marvin Minsky founded the MIT AI Lab, John McCarthy invented LISP, and Claude Shannon developed information theory.
What was the early expectation about how quickly AI would be solved?
Early researchers believed AI would be substantially solved by that fall, an expectation that proved incorrect.
What major stages or breakthroughs characterize the development of AI described in the lecture?
The stages are traditional AI, machine learning, deep learning, and generative AI.
What is the informal definition of artificial intelligence?
AI is the ability to give computers capabilities normally associated with humans, such as cognitive and thinking tasks.
What is the relationship between AI and machine learning in common usage?
Although AI is the broader field, people often use “AI” when they are actually referring to machine learning.
What is the traditional rule-based approach to AI?
Human experts provide explicit if-then rules that a computer uses to map situations to actions or diagnoses.
Why did early researchers think rule-based AI was a sensible approach?
They assumed that experts could explain their decision processes and that those explanations could be written as computer rules.
Why are rule-based AI systems brittle?
They are trained on a limited set of explicitly written rules and often fail when encountering new or unusual situations.
Why does rule-based AI generalize poorly to new situations?
The rules cover only a small sample of possible situations, while real-world environments contain many unforeseen edge cases and corner cases.
What is Polanyi’s paradox?
People often know how to perform a task but cannot fully articulate the rules or mental processes they use to perform it.
How does Polanyi’s paradox limit rule-based AI?
If humans cannot accurately describe how they perform a task, it is difficult to encode that task as explicit computer rules.
What are the two main reasons traditional rule-based AI was not broadly successful?
It generalized poorly to new situations, and humans could not fully specify the rules underlying many of their own abilities.
What is machine learning?
Machine learning uses statistical techniques to learn a mapping from input-output examples rather than relying on explicitly programmed rules.
How does machine learning differ from traditional rule-based AI?
Traditional AI explicitly specifies rules, whereas machine learning infers patterns and mappings from examples.
Is linear regression a form of machine learning?
Yes. Linear regression is one of the statistical methods that can be used for machine learning.
What is the relationship between neural networks and machine learning?
Neural networks are one type of machine-learning method among many others.
What kind of input data has historically worked especially well with conventional machine learning?
Structured data that can be represented numerically in rows and columns.
What is structured data?
Data that can be organized into the rows and columns of a spreadsheet, usually as numerical or categorical variables.
How can categorical variables be prepared for conventional machine learning?
They can be converted into numerical form, for example through one-hot encoding.
What is unstructured data?
Data such as images, text, or audio that does not naturally correspond to meaningful spreadsheet columns and rows.
How is a digital color image represented numerically?
It is represented using three tables of numbers: one for red intensity, one for green intensity, and one for blue intensity.
What does each number in an image’s color table represent?
The amount of light for that color channel at a particular pixel, commonly on a scale from 0 to 255.
Why does a raw pixel value have little intrinsic meaning about the object in an image?
The same color intensity could result from many different objects or surfaces, such as sky, water, or paint.
Why is it difficult for conventional algorithms to work directly with raw image data?
Raw pixel numbers have no direct semantic connection to the underlying object or concept being classified.
What is feature engineering or feature extraction?
The manual process of transforming raw data into meaningful features that can be used by a machine-learning model.
What does it mean to create a representation of data?
It means transforming raw data into another form that exposes useful properties for learning.
Why were manually designed representations important in traditional computer vision?
Once useful features were manually created, standard models such as linear or logistic regression could use them effectively.
Why was manual feature engineering a human bottleneck?
Developing useful representations required substantial expert effort and often focused on only one narrow problem.
What is deep learning?
Deep learning is a form of machine learning that automatically learns useful representations from raw input data, including unstructured data.
How does deep learning address the feature-engineering bottleneck?
It automatically extracts or learns representations from raw inputs before producing the final prediction.
What is the basic pipeline of a deep-learning model?
Raw input is transformed through learned intermediate representations and then passed to a final prediction model, such as linear or logistic regression.
What types of input can deep learning handle?
It can handle structured data as well as unstructured data such as images and text.
What three forces helped produce the modern success of deep learning?
New algorithmic ideas, large amounts of data, and parallel-computing hardware such as GPUs.
What does GPU stand for, and why is it important for deep learning?
GPU stands for graphics processing unit; GPUs provide parallel-computing hardware that accelerates deep-learning computations.
What major systems or applications were enabled by deep learning?
Examples include ChatGPT, AlphaGo, and AlphaFold.
What is the broad sensor-based application of deep learning?
A deep-learning system can be placed behind a sensor to detect, recognize, classify, analyze, and predict what the sensor observes.
How does Face ID illustrate the sensor-plus-deep-learning principle?
The phone’s camera acts as a sensor, and a deep-learning system classifies the captured face to determine whether to unlock the phone.
How is deep learning used in self-driving systems?
It supports tasks such as pedestrian detection, stoplight detection, and zebra-crossing detection.
How is deep learning used in manufacturing inspection?
Camera-based systems detect defects such as dents and scratches in manufactured products.
How do smart binoculars illustrate a possible deep-learning product?
They use a camera sensor and deep learning to identify the species of a bird being viewed.
What could create a short-term competitive advantage for a sensor-based deep-learning product?
Being among the first to offer a useful sensor-plus-deep-learning feature can provide a temporary advantage.
What could conventional machine learning traditionally predict as output?
It could predict one number, a few numbers, probabilities, or categories represented by a small set of numbers.
What is an example of output consisting of probabilities that sum to 1?
For a furniture classifier with 10 categories, the model can output 10 class probabilities that sum to 1.
What is an example of multiple numerical outputs that do not need to sum to 1?
The GPS coordinates of an Uber are an example of multiple numerical outputs without a probability-sum constraint.
What limitation did traditional models have regarding unstructured outputs?
They could consume unstructured data more easily than they could generate it; producing images, text, or audio was difficult.
What is generative AI?
Generative AI is the ability to create unstructured data such as text, images, music, or audio.
What is the relationship between generative AI and deep learning?
Generative AI is contained within deep learning, but much of deep learning is not generative AI.
What are examples of mappings performed by generative AI?
Examples include text to image, text to music, text to text, and image or text to descriptive text.
What does it mean for a generative AI model to be multimodal?
It can accept or produce multiple data types, such as text and images, rather than operating on only one modality.
How are generative AI capabilities becoming more integrated?
Previously separate capabilities such as text-to-text, text-to-image, and text-to-music are increasingly being combined within multimodal models.
What is ground truth in a supervised medical-imaging dataset?
Ground truth is the combination of an input image and the label assigned by a human expert or group of experts.
What qualities should training data have for a reliable neural network?
The data should be complete, comprehensive, and correctly labeled.
Why can noisy training labels be problematic?
Incorrect labels provide the model with misleading examples and can reduce prediction quality.
Can neural networks still perform well when some training labels are noisy?
Yes. Neural networks can often perform reasonably well despite some amount of label noise, especially when the training system is robust.
What does it mean to learn a mapping from X to Y?
It means learning a function that converts inputs X into desired outputs Y; both sides may be structured, unstructured, or multimodal.
What does logistic regression typically take as input and produce as output?
It takes a vector of numbers and produces a probability between 0 and 1.
What transformation converts the linear score in logistic regression into a probability?
The sigmoid function, rac{1}{1+e^{-z}}, maps the linear score z to a value between 0 and 1.
In the interview example, what are the inputs and target variable?
The inputs are GPA and years of work experience; the target is 0 or 1, indicating whether the person is called for an interview.
What logistic-regression coefficients were given for the interview example?
The intercept was 0.4, the GPA coefficient was 0.2, and the experience coefficient was 0.5.
How can logistic regression be represented as a network?
Each input is multiplied by its coefficient, the results are added with the intercept, and the resulting scalar is passed through a sigmoid to produce a probability.
Using the interview example’s coefficients, what probability is predicted for GPA 3.8 and experience 1.2 years?
The linear score is 1.76, and the sigmoid produces a probability of approximately 0.85.
How does the logistic-regression network generalize to k input variables?
Each of the k inputs is multiplied by a weight, all weighted inputs are summed with a bias, and the result is passed through a sigmoid.
What are regression coefficients called in neural-network terminology?
They are called weights.
What is an intercept called in neural-network terminology?
It is called a bias.
What is a neuron in a neural network?
A neuron applies a linear function to its inputs and then passes the result through a nonlinear activation function.
What is the purpose of adding intermediate layers to a neural network?
Intermediate layers repeatedly transform the input and provide the capacity to learn useful representations.
Why must intermediate activation functions be nonlinear?
Without nonlinear activations, stacking linear functions would not provide meaningful additional modeling power.
What happens to the dimensionality of data inside a neural network?
A network can transform many input values into a smaller or different number of intermediate values, such as compressing k inputs into three values.
What is a layer in a neural network?
A layer is a group or vertical stack of neurons operating at the same stage of the network.
What are the input, hidden, and output layers?
The input layer receives the data, hidden layers perform intermediate transformations, and the output layer produces the final result.
What is a fully connected or dense layer?
A layer is fully connected when every neuron in one layer connects to every neuron in the next layer.
How can logistic regression be viewed as a neural network?
It is a neural network with no hidden layers: a linear computation followed by a sigmoid output.
What is deep learning in terms of neural-network structure?
Deep learning uses neural networks with many layers.
What is an activation function?
It receives one scalar value from a neuron’s linear computation and returns one transformed scalar value.
What does the sigmoid activation function do?
It maps a scalar input to a value between 0 and 1 using rac{1}{1+e^{-a}}.
How does the sigmoid respond to very negative and very positive inputs?
Very negative inputs produce values near 0, while very positive inputs produce values near 1; the largest changes occur in the middle.
What does a linear activation function do?
It passes its input through unchanged.
What is ReLU?
ReLU, or the rectified linear unit, outputs the input if it is positive and outputs 0 if it is negative: extReLU(a)=extmax(a,0).
What happens when a negative value enters a ReLU?
It is replaced by 0.
What happens when a positive value enters a ReLU?
It passes through unchanged.
Why is ReLU widely used in hidden layers?
It is an empirically effective default and is believed to be one factor behind the success of modern deep learning.
Name several activation functions besides sigmoid, linear activation, and ReLU.
Examples include tanh, leaky ReLU, GELU, and swish.
What is the usual activation-function rule for hidden layers?
Use ReLU as the default because it generally works well empirically.
How is the activation function for an output layer selected?
It is determined by the required output type: use sigmoid for a probability between 0 and 1, and softmax for probabilities across multiple classes that sum to 1.
Which parts of a neural-network architecture are usually chosen by the designer?
The designer chooses the number of hidden layers, the number of neurons per layer, and hidden-layer activation functions.
What is neural architecture search?
Neural architecture search, or NAS, explores different network architectures and uses optimization methods to identify effective designs.
Does a neural network normally change its number of layers between successive passes through the training data?
No. The architecture is generally fixed during training, although techniques such as dropout may temporarily omit selected neurons.
What is dropout used for?
Dropout randomly removes some neurons during network passes to help prevent overfitting.
How are neural-network weights learned?
Training data, a loss function, and an optimization algorithm adjust the weights and biases to reduce prediction error.
What is the role of a loss function in neural-network training?
It measures prediction error and provides the objective that optimization seeks to minimize.
What is gradient descent used for in neural networks?
It is an optimization method used to adjust weights and biases in a direction that reduces the loss.
What is a feedforward neural network?
It is a neural network in which information flows from left to right, from inputs through layers to outputs.
What is a neural-network architecture?
It is the arrangement of neurons into layers, along with their connections and activation functions.
What is a transformer?
A transformer is a particular neural-network architecture.
What is the interview-classification neural network’s input and output structure?
It has two inputs, GPA and experience, and one output probability indicating whether the person is called for an interview.
What architecture was selected for the interview example?
The network uses one hidden layer with three ReLU neurons and a sigmoid output neuron.
How many trainable parameters are in the interview network with two inputs, three hidden neurons, and one output neuron?
There are 13 parameters: 6 input-to-hidden weights, 3 hidden biases, 3 hidden-to-output weights, and 1 output bias.
What common mistake leads to counting only 12 parameters in the interview network?
Forgetting to include the output or hidden-layer bias when counting the weights and biases.
How does a trained neural network make a prediction?
It computes each hidden neuron’s weighted sum and bias, applies its activation function, combines the hidden outputs using output weights and a bias, and applies the output activation.
Why is a neural-network graph often easier to understand than its expanded algebraic formula?
The graph makes the sequence of operations and flow of information visually explicit.
Why are neural networks less straightforward to interpret than logistic regression?
Multiple nonlinear transformations mix the input attributes, making it difficult to assign the prediction to one particular input feature.
What is the distinction between tracing computation and explaining a prediction?
Tracing shows exactly how an input flows through the network; explaining a prediction asks which input attributes deserve credit for the result.

Ask anything
We've read this whole study set, so questions about it get the best answers.