# Deep Learning (Part 1): Core Concepts

> This article explains the core concepts of deep learning, covering machine learning, feature engineering, feature learning, and hierarchical nonlinear feature extraction. It shows how deep networks overcome the vanishing gradient problem to learn complex multi-layer features, how they differ from traditional shallow algorithms, and uses analogies and diagrams to make the ideas intuitive.

- Source: https://www.waytoagi.com/en/kb/learning-path/deep-learning-core-concepts
- Original (Feishu, Chinese): https://waytoagi.feishu.cn/wiki/UdLFwdjgPiXm5tkVi0dcfcRMn0f
- Updated: 2026-11-06

---

> Original article: https://developer.nvidia.com/blog/deep-learning-nutshell-core-concepts/
>
> Author: Tim Dettmers
>
> Published: November 3, 2015

This article is the first in a series I will be writing for Parallel Forall, aimed at providing an intuitive and gentle introduction to [deep learning](https://developer.nvidia.com/deep-learning). It covers the most important deep learning concepts, with the goal of providing an understanding of each concept rather than its mathematical and theoretical details. Although mathematical terminology is sometimes necessary and can further understanding, these articles use analogies and images wherever possible to deliver easily digestible information, including an intuitive overview of the deep learning field.

I wrote this series in a glossary style, so it can also serve as a reference for deep learning concepts.

- Part 1 mainly introduces the core concepts of deep learning.

- [Part 2](https://ywh1bkansf.feishu.cn/wiki/QacGwCWxoizfmlkOsKFc0PHQnWb) provides historical context and takes a deeper look at training procedures, algorithms, and practical tips for deep learning training.

- [Part 3](https://ywh1bkansf.feishu.cn/wiki/CHMXwqoEYibzHdkC3QmcXZ53niX) covers sequence learning, including recurrent neural networks, LSTMs, and encoder-decoder systems for neural machine translation.

- Part 4 covers reinforcement learning.

## **Core Concepts**

### **Machine Learning**

In machine learning, we (1) obtain some data, (2) train a model based on that data, and (3) use the trained model to make predictions on new data. The process of [training](https://developer.nvidia.com/blog/parallelforall/deep-learning-nutshell-history-%E8%AE%AD%E7%BB%83#%E8%AE%AD%E7%BB%83) a model can be viewed as a learning process in which the model is exposed to new, unfamiliar data step by step. At each step, the model makes a prediction and receives feedback on how accurate the prediction it generated is. This feedback is the error provided according to some metric (for example, the distance from the correct solution), which is used to correct the error in the prediction.

The learning process is usually a back-and-forth game in parameter space: if you adjust one parameter of the model to get a prediction right, the model may as a result get a previously correct prediction wrong. Training a model with good predictive performance may require many iterations. This iterative process of predicting and adjusting continues until the model's predictions no longer improve.

### **Feature Engineering**

Feature engineering is the art of extracting useful patterns from data, which will make it easier for [machine learning](https://developer.nvidia.com/zh-cn/blog/deep-learning-nutshell-core-concepts/#machine-learning) models to distinguish between classes. For example, you can use the number of green pixels and blue pixels as a metric to determine whether an image contains a land animal or an aquatic animal. This feature is very helpful for machine learning models because it limits the number of classes that need to be considered for good classification.

Feature engineering is the most important skill when you want to achieve good results in most prediction tasks. However, because different datasets and different data types require different feature engineering methods, it is difficult to learn and master. Art is not merely a rough science; it is a science. Features available for one dataset are often not applicable to other datasets (for example, the next image dataset contains only land animals). The difficulty of feature engineering and the amount of work involved are the main reasons for seeking algorithms that can learn features, that is, algorithms that automatically generate features.

Although many tasks can be automated through feature learning (such as object and speech recognition), feature engineering is still [the most effective approach for difficult tasks](http://blog.kaggle.com/2014/08/01/learning-from-the-best/) (like most tasks in Kaggle machine learning competitions).

### **Feature Learning**

Feature learning algorithms can find common patterns that are important for distinguishing between classes and automatically extract them for use in classification or regression processes. Feature learning can be thought of as [feature engineering](https://developer.nvidia.com/zh-cn/blog/deep-learning-nutshell-core-concepts/#feature-engineering) done automatically by an algorithm. In deep learning, convolutional layers are particularly good at finding good features in images to pass to the next layer, thereby forming a hierarchy of nonlinear features whose complexity continually increases (for example, blobs, edges -> noses, eyes, cheeks -> faces). The final layer uses all of these generated features for classification or regression (the final layer in a convolutional network is essentially a polynomial [logistic regression](https://developer.nvidia.com/zh-cn/blog/deep-learning-nutshell-core-concepts/#logistic-regression)).

![](https://www.waytoagi.com/api/kb-media/XYAnbHP8Eo9HXUxjFsvcD1Fznug)

Figure 1: Hierarchical features learned from a deep learning algorithm. Each feature can be viewed as a filter that filters for a feature (nose) in the input image. If the feature is found, the responsible unit produces a large activation, which can be extracted by a later classifier stage as a good indicator of the presence of the class. Image by Honglak Lee and colleagues (2011), published in "Unsupervised Learning of Hierarchical Representations with Convolutional Deep Belief Networks."

Figure 1 shows features generated by a deep learning algorithm that can produce easily interpretable features. This is unusual. Features are usually difficult to interpret, especially in deep networks like [recurrent neural networks](https://developer.nvidia.com/blog/parallelforall/deep-learning-nutshell-sequence-learning#recurrent-neural-networks) and [LSTMs](https://developer.nvidia.com/blog/parallelforall/deep-learning-nutshell-sequence-learning#LSTM) or very deep convolutional networks.

### **Deep Learning**

In hierarchical [feature learning](https://developer.nvidia.com/zh-cn/blog/deep-learning-nutshell-core-concepts/#feature-learning), we extract multiple layers of nonlinear features and pass them to a classifier, which combines all the features to make a prediction. What interests us is stacking these very deep layers of nonlinear features, because we cannot learn complex characteristics from just a few layers. Mathematically, for images, the best features at a single layer are edges and blobs, since they contain most of the information we can extract from a single nonlinear transformation. To generate more informative features, we cannot operate directly on the input; instead we need to transform our first features (edges and blobs) again to obtain more complex features that carry more information and can distinguish between classes.

Research suggests the human brain does exactly the same thing: the first layer of neurons that receive information in the visual cortex is sensitive to specific edges and blobs, while brain regions further down the visual pipeline are sensitive to more complex structures (such as faces).

Although hierarchical feature learning was used before deep learning existed as a field, these architectures faced problems such as the vanishing [gradient](https://developer.nvidia.com/blog/parallelforall/deep-learning-nutshell-history-training#stochastic-%E6%A2%AF%E5%BA%A6-descent) problem, in which gradients become too small to provide a learning signal to very deep layers, and as a result these architectures performed worse than shallow learning algorithms (such as support vector machines).

The term "deep learning" stems from new methods and strategies designed to produce these deep hierarchies of nonlinear features by overcoming the vanishing gradient problem, so that we can train architectures with dozens of layers of nonlinear features. In the early 2010s, research showed that combining GPUs with [activation functions](https://developer.nvidia.com/zh-cn/blog/deep-learning-nutshell-core-concepts/#activation-function) that provide better gradient flow was enough to train deep architectures without major difficulty. From there, interest in deep learning has grown ever since.

Deep learning is not only about learning deep hierarchies of nonlinear features; it is also about learning to detect very long nonlinear temporal dependencies in sequence data. While most other algorithms that process sequential data have memory of only the last 10 time steps, [Long Short-Term Memory](https://developer.nvidia.com/blog/parallelforall/deep-learning-nutshell-sequence-learning#LSTM) [recurrent neural networks](https://developer.nvidia.com/blog/parallelforall/deep-learning-nutshell-sequence-learning#recurrent-neural-networks) (invented by Sepp Hochreiter and Jürgen Schmidhuber in 1997) allow the network to gather activity from the past few hundred time steps in order to make accurate predictions. Although LSTM networks were largely overlooked for the past 10 years, their use has grown rapidly since 2013, and together with convolutional networks they form one of the two great success stories of deep learning.

## **Basic Concepts**

### **Logistic Regression**

Regression analysis estimates relationships between input variables in order to predict an outcome variable. Logistic regression is a regression model that uses input variables to predict a categorical outcome variable, which can take a finite set of class values, such as “cancer”/“no cancer,” or image categories such as “bird”/“car”/“dog”/“cat”/“horse.”

Logistic regression applies the logistic sigmoid function (see Figure 2) to weighted input values to predict which of two classes the input data belongs to (or, in the case of multinomial logistic regression, which of multiple classes).

![](https://www.waytoagi.com/api/kb-media/SxkQbkZs5o7UwVxyrvQcHQjLnje)

Figure 2: logistic sigmoid function f(x)=\frac{1}{1+e^{-x}}
 

$ latex f （ x ）=\ frac { 1 }{ 1 + e ^{ -x }}}$. [Image source](https://en.wikipedia.org/wiki/File:Logistic-curve.svg)

Logistic regression is similar to a nonlinear [perceptron](https://developer.nvidia.com/blog/parallelforall/deep-learning-nutshell-history-training#%E6%84%9F%E7%9F%A5%E5%99%A8) or a neural network with no hidden layers. The main difference from other basic models is that, if certain statistical properties of the input variables hold, logistic regression is easy to interpret and reliable. If these statistical properties hold, we can produce a very reliable model with very little input data. This makes logistic regression valuable in data-scarce fields, such as medicine and the social sciences, where logistic regression is used to analyze and interpret experimental results. Because it is simple and fast, it is also suitable for very large datasets.

In deep learning, the final layer of a neural network used for classification can often be interpreted as logistic regression. In this case, we can view a deep learning algorithm as multiple feature-learning stages, then pass its features into logistic regression to classify the input.

### **Artificial Neural Networks**

An artificial neural network (1) takes some input data, (2) transforms that input data by computing a weighted sum of the inputs, and (3) applies a nonlinear function to this transformation to compute an intermediate state. The three steps above constitute what is called a [layer](https://developer.nvidia.com/zh-cn/blog/deep-learning-nutshell-core-concepts/#%E5%B1%82), and the transformation function is often called a [unit](https://developer.nvidia.com/zh-cn/blog/deep-learning-nutshell-core-concepts/#%E5%8D%95%E5%85%83). The intermediate states, commonly referred to as features, are used as input to another layer.

By repeating these steps, an artificial neural network learns multilayer nonlinear features and then combines these nonlinear features in the final layer to create a prediction.

A neural network learns by producing an error signal that measures the difference between the network’s predicted value and the desired value, and then using that error signal to change the weights (or parameters) so that predictions become more accurate.

### **Unit**

A unit usually refers to the [activation function](https://developer.nvidia.com/zh-cn/blog/deep-learning-nutshell-core-concepts/#activation-function) in a layer, through which inputs are transformed by a nonlinear activation function (for example, via the [logistic function](https://en.wikipedia.org/wiki/Logistic_function)). Typically, a unit has several incoming connections and several outgoing connections. However, a unit can also be more complex, such as a [long short-term memory](https://developer.nvidia.com/blog/parallelforall/deep-learning-nutshell-sequence-learning#LSTM) unit, which has multiple activation functions and a connection layout different from that of a nonlinear activation function, or a maxout unit, which computes its final output from a series of nonlinearly transformed input values. [Pooling](https://developer.nvidia.com/zh-cn/blog/deep-learning-nutshell-core-concepts/#pooling), [convolution](https://developer.nvidia.com/zh-cn/blog/deep-learning-nutshell-core-concepts/#%E5%8D%B7%E7%A7%AF), and other input transformation functions are generally not called units.

### **Artificial Neurons**

The term “artificial neuron” or “neuron” is equivalent to [unit](https://developer.nvidia.com/zh-cn/blog/deep-learning-nutshell-core-concepts/#%E5%8D%95%E5%85%83), but it implies a close connection to neurobiology and the human brain, whereas deep learning has almost nothing to do with the brain (for example, biological neurons are now thought to be more similar to an entire multilayer perceptron than to a neural network). After the previous [AI winter](https://developer.nvidia.com/blog/parallelforall/deep-learning-nutshell-history-training#ai-winter), people were encouraged to use the word “neuron” to distinguish more successful neural networks from failed and abandoned perceptrons. However, since the explosive success of deep learning after 2012, the media has often picked up the term “neuron” and tried to explain deep learning as an imitation of the human brain, which is very misleading and potentially dangerous for understanding the field of deep learning. The term “neuron” is now discouraged in favor of the more descriptive term “unit.”

### **Activation Functions**

An activation function takes weighted data (the matrix multiplication between input data and weights) and outputs a nonlinear transformation of the data. For example, $ latex output = max （ 0 ， weighted _ data ）$ is the [rectified linear activation function](https://developer.nvidia.com/blog/parallelforall/deep-learning-nutshell-history-training#rectified-linear-function) (which basically sets all negative values to zero). The difference between a unit and an activation function is that a unit can be more complex; that is, a unit can have multiple activation functions (for example, an [LSTM](https://developer.nvidia.com/blog/parallelforall/deep-learning-nutshell-sequence-learning#LSTM) unit) or a slightly more complex structure (for example, a maxout unit).

The difference between linear and nonlinear activation functions can be illustrated by the relationships among some weighted values: imagine four points, A1, A2, B1, and B2. A1 and A2 are close to each other, and B1 and B2 are close to each other, but A1 is far from both B1 and B2, and vice versa; the same is true for A2.

Through a linear transformation, the relationships between the pairs might change. For example, A1 and A2 might be far apart, but this means that B1 and B2 are also far apart. The distance between the two pairs might shrink, but if it does, then B1 and B2 will be close to both A1 and A2 at the same time. We can apply many linear transformations, but the relationship between A1/A2 and B1/B2 will always remain similar.

Conversely, with a non-linear activation function, we can increase the distance between A1 and A2, while we can decrease the distance between Basement 1 and Basement 2. We can move Basement 1 closer to A1, yet move Basement 2 farther away from A1. By applying a non-linear function, we create new relationships between the points. With each new non-linear transformation, we can increase the complexity of those relationships. In deep learning, using non-linear activation functions creates increasingly complex features at each layer.

By contrast, the features of 1,000 layers of purely linear transformations can be reproduced by a single layer (because a chain of matrix multiplications can always be represented by a single matrix multiplication). This is why non-linear activation functions are so important in deep learning.

### **Layers**

A layer is the highest-level building block of deep learning. A layer is a container that typically takes weighted inputs, transforms them with a set of non-linear functions, and then passes those values on to the next layer as outputs. A layer is usually uniform, meaning it contains only one type of activation function, [pooling](https://developer.nvidia.com/zh-cn/blog/deep-learning-nutshell-core-concepts/#%E8%81%94%E8%90%A5), [convolution](https://developer.nvidia.com/zh-cn/blog/deep-learning-nutshell-core-concepts/#%E5%8D%B7%E7%A7%AF), etc., so it can easily be compared with other parts of the network. The first and last layers of a network are called the input layer and the output layer, respectively, and all the layers in between are called hidden layers.

## **Convolutional Deep Learning**

### **Convolution**

Convolution is a mathematical operation that describes the rule for mixing two functions or pieces of information: (1) a feature map (or input data) and (2) a convolution kernel are mixed together to form (3) a transformed feature map. Convolution is often interpreted as a filter, in which the kernel performs some type of information filtering on the feature map (for example, a kernel might filter for edges and discard other information).

![](https://www.waytoagi.com/api/kb-media/DF8FbbmRooFqZjxuY2pcXxcQnXf)

Figure 2: Convolution of an image using an edge-detector convolution kernel. Source: [1](https://en.wikipedia.org/wiki/File:Vd-Orig.png) [2](https://en.wikipedia.org/wiki/File:Vd-Edge3.png).

Convolution is important in physics and mathematics because, through the convolution theorem, it defines a bridge between the spatial and time domains (a pixel at position (0, 30) with intensity 147) and the frequency domain (amplitude 0.3, frequency 30 Hz, phase 60 degrees). This bridge is defined using the Fourier transform: when you apply the Fourier transform to both the kernel and the feature map, the convolution operation becomes greatly simplified (integration becomes multiplication). Some of the fastest GPU implementations of convolution (for example, some implementations in the [NVIDIA cuDNN](https://developer.nvidia.com/blog/parallelforall/accelerate-machine-learning-cudnn-deep-neural-network-library/) library) currently use the Fourier transform.

![](https://www.waytoagi.com/api/kb-media/CqM9bLY8TocA7fxyjPbcP5yunGd)

Figure 3: Computing convolution by sliding an image patch across the entire image. An image patch (yellow) of the original image (green) is multiplied by the kernel (red numbers in the yellow patch), and its sum is written to a feature-map pixel (red cell in the convolutional features). Image source: [1](http://deeplearning.stanford.edu/wiki/index.php/Feature_extraction_using_convolution).

Convolution can describe the diffusion of information; for example, the diffusion that occurs when milk is put into coffee without stirring can be modeled exactly by a convolution operation (pixels diffuse toward contours in the image). In quantum mechanics, it describes the probability of a quantum particle being at a certain position when its position is measured (the average probability over pixel positions is highest at contours). In probability theory, it describes cross-correlation, that is, how similar two overlapping sequences are (if the pixels of a feature, such as a nose, overlap in an image, such as a face, the similarity is high). In statistics, it describes a weighted moving average over a normalized input sequence (the weights on the contour line are large, while all other weights are small). There are many other interpretations.

For deep learning, it is not clear which interpretation of convolution is correct, but the currently most useful interpretation is: a convolution filter can be interpreted as a feature detector, that is, the input (feature map) is filtered for a certain feature (kernel), if it is present in the image. This is how cross-correlation of images is interpreted.

![](https://www.waytoagi.com/api/kb-media/KojDbVc9Koa2BfxeqA0c46fGntc)

Figure 4: Cross-correlation of images. Convolution can be converted into cross-correlation by flipping the kernel (inverting the image). The kernel can then be interpreted as a feature detector, where a detected feature leads to a large output (white) and a small output (black) if no feature is present. Image taken from [Steven Smith](http://www.dspguide.com/swsmith.htm)’s excellent [free online book on digital signal processing](http://www.dspguide.com/pdfbook.htm).

Additional material: [Understanding Convolution in Deep Learning](http://timdettmers.com/2015/03/26/convolution-deep-learning/)

### **Pooling / Subsampling**

Pooling is a process that takes the input in a certain region and reduces it to a single value (subsampling). In [convolutional neural networks](https://developer.nvidia.com/zh-cn/blog/deep-learning-nutshell-core-concepts/#convolutional-neural-networks), this concentrated information has a useful property: outgoing connections usually receive similar information (information is “funneled” and “directed” into the correct location of the input feature map of the next convolutional layer). This provides basic invariance to rotation and translation. For example, if a face in an image patch is not at the center of the image but is slightly translated, it can still work because the information is directed to the correct location through the pooling operation, so the convolution filter can detect the face.

The larger the pooling region, the more concentrated the information, which leads to narrower networks that are easier to fit into GPU memory. However, if the pooling region is too large, too much information is discarded, and predictive performance decreases.

Additional material: [Neural Networks [9.5]: Computer Vision – Pooling and Subsampling](https://www.youtube.com/watch?v=I-JKxcpbRT4)

### **Convolutional Neural Networks**

A convolutional neural network—or, preferably, a convolutional network or convnet (the term “neural” is misleading; see also [artificial neuron](https://developer.nvidia.com/zh-cn/blog/deep-learning-nutshell-core-concepts/#artificial-neuron))—uses convolutional [layers](https://developer.nvidia.com/zh-cn/blog/deep-learning-nutshell-core-concepts/#layer) (see [convolution](https://developer.nvidia.com/zh-cn/blog/deep-learning-nutshell-core-concepts/#%E5%8D%B7%E7%A7%AF)), which filter the input to obtain useful information. These convolutional layers have learned parameters so that these filters automatically adjust to extract the most useful information for the task at hand (see feature learning). For example, in a general object-recognition task, it filters information about object shape (objects usually have very different shapes), whereas for a bird-recognition task, it is better suited to extracting information about bird color (most birds have similar shapes but differ in color; here color is more discriminative for birds). Convolutional networks automatically adjust to find the best features for these tasks.

Usually, multiple convolutional layers are used to filter the image at each layer to obtain increasingly abstract information (see hierarchical features).

Convolutional networks also usually use pooling layers (see [pooling](https://developer.nvidia.com/zh-cn/blog/deep-learning-nutshell-core-concepts/#%E8%81%94%E8%90%A5)) to obtain a degree of translation and rotation invariance (i.e., to detect objects even if they appear in unusual places). Pooling can also reduce memory consumption, allowing more convolutional layers to be used.

Recent convolutional networks use Inception modules (see [Inception](https://developer.nvidia.com/zh-cn/blog/deep-learning-nutshell-core-concepts/#%E5%BC%80%E7%AB%AF)), which use 1 × 1 convolution kernels to further reduce memory consumption while speeding up computation (thereby increasing training speed).

Figure 5: An image of a traffic sign is filtered by four 5 × 5 convolution kernels, producing four feature maps that are subsampled by max pooling. The next layer applies ten 5 × 5 convolution kernels to these subsampled images and again pools the feature maps. The final layer is a fully connected layer, where all generated features are combined and used in a classifier (essentially logistic regression). Image provided by [Maurice Peemen](http://parse.ele.tue.nl/mpeemen).

Additional material: [Course: Neural Networks for Machine Learning: Recognizing Objects with Neural Networks](https://www.youtube.com/playlist?list=PLnnr1O8OWc6YLZzLoHzX2q5c2wWMOIUZy).

### **Inception**

Inception modules in [convolutional networks](https://developer.nvidia.com/zh-cn/blog/deep-learning-nutshell-core-concepts/#convolutional-neural-network) are designed to allow deeper and larger [convolutional](https://developer.nvidia.com/zh-cn/blog/deep-learning-nutshell-core-concepts/#%E5%8D%B7%E7%A7%AF) [layers](https://developer.nvidia.com/zh-cn/blog/deep-learning-nutshell-core-concepts/#layer) while also enabling more efficient computation. This is achieved by using 1 × 1 convolutions with smaller feature-map dimensions; for example, 192 feature maps of size 28 × 28 can be reduced by 64 1 × 1 convolutions to 64 feature maps of size 28 × 28. Because the volume is reduced, these 1 × 1 convolutions can then be followed by larger 3 × 3 and 5 × 5 convolutions. In addition to 1 × 1 convolutions, max pooling can also be used for dimensionality reduction.

At the output of the Inception module, all the large convolutions are concatenated into a large feature map, which is then fed to the next layer (or Inception module).

Supplementary material: [Going Deeper with Convolutions](http://www.cv-foundation.org/openaccess/content_cvpr_2015/papers/Szegedy_Going_Deeper_With_2015_CVPR_paper.pdf)


## **Part One Conclusion**

This is the first part of this deep learning crash course. Please check back soon for the next two parts in this series. In [Part Two](https://developer.nvidia.com/blog/parallelforall/deep-learning-nutshell-history-training/), I will provide a brief historical overview and then explain how to train deep neural networks.
