r/computerscience • u/ADG_98 • Oct 10 '25
What are some examples of non-deep learning neural networks?
It is my understanding that deep learning can only be achieved by neural networks. In that sense neural networks is the method/technique/model used to implement deep learning. If neural networks are a technique;
- What can neural networks do that is not deep learning?
- What are some examples of non-deep learning neural networks?
- Are theses "shallow/narrow" neural networks practical?
- If so, what are some examples of real world applications?
Please correct if I have misunderstood anything.
12
Upvotes
28
u/Much_Weird_7412 Oct 10 '25
The purpose of neural networks (deep or otherwise) is just to approximate functions.
The original NNs were called perceptrons and could consist of just a single layer, i.e. they were not "deep". They could still be used to approximate basic categorization functions.
Back-propagation also wasn't used from the very beginning. It's the key compoment to training multi-layer NNs.
Check out the history of NNs and you'llsee what came before todays deep networks.
12
u/Additional_Anywhere4 Oct 10 '25
FastText, invented by FAIR (Facebook AI Research Lab) in 2016, is a super fast text classification model that is a single layer neural network. It beat all the deep learning approaches at the time.
9
u/Vallvaka SWE @ FAANG | SysArch, AI Oct 10 '25
Here's a fun one: modern branch predictors in CPU cores use very simple neural networks for adaptive branch prediction!
They perform online training of taken vs. not taken branches to provide more flexible predictive power than other algorithmic-style approaches.
Since latency is so key here, these NNs have to be very simple and shallow.
8
u/Cybyss Oct 10 '25
There's a bit of misinformation in the other replies.
I'm currently in a master degree program for artificial intelligence.
It's not merely that neural networks are the method to achieve deep learning. Rather, the term "deep learning" refers specifically to the process of building and training a specific type of neural network - namely, a large and "deep" one consisting of many dozens or hundreds of layers.
Neural networks consisting of only a small number of layers can still be useful. They're much faster to train and run, and sometimes the data you're processing just doesn't need the added complexity of a very large complex model. You can use them for simple classification, regression, or noise reduction problems. Optical character recognition is a good example of what you might use a smaller neural network for (neural networks aren't the only way to do OCR though).
Now... neural networks trained using a backpropagation algorithm were invented as early as the 1970s (IIRC, backpropagation was invented independently several times). However, the term "deep learning" was only popularized around 2015. That raises the question - what's the difference between ordinary neural networks and "deep learning" networks?
Prior to 2015, there was a big problem in training neural networks that were too many layers deep. This is known as the "vanishing gradient" problem. The backpropagation algorithm works by calculating how much each neuron in a network contributes to the final output, and then tweaks each neuron's weights in proportion to that.
The problem is, if a neuron is very very far from the output, its contribution to the final output approaches zero, so it's unable to learn anything.
The solution to this problem was only published in 2015, the famous "ResNet" paper proposing two slight architectural tweaks to neural networks that are many layers deep.
One of these tweaks is known as "skip connections". Instead of simply connecting the layers in a long chain where the output of one feeds directly to the input of the next, we sum each layer's output with its own input before feeding that into the next layer.
This sum ensures that every neuron is "close" to the output. Its signal no longer has to pass through many many layers and get drowned out before contributing anything to the output.
The next tweak is known as "normalization". Each neuron works by taking a linear combination of its inputs, then passing that through an activation function (typically ReLU, sigmoid, or tanh). These activation functions only do interesting nonlinear things for values near zero. We force the outputs of every neuron to remain near zero via a process called "gaussian normalization" - that is, we force every neuron's output to have a mean of zero and a standard deviation of 1.
These two tweaks fix the vanishing graident problem and make it possible to train neural networks hundreds of layers deep.
In short, that's the main distinction between "shallow" neural networks and "deep" ones - whether they make use of skip connections and normalization.
(I've probably oversimplified a few things - that's a few lectures worth of material condensed into a few paragraphs - but I hope it captures the gist of what's going on).
2
u/Kvnstrck Oct 10 '25
I am not an AI expert but from what I’ve taken from my AI101 course: an NN is basically a mathematical structure that takes input and generates numbers from that input. This can be used for many different applications. Deep learning is the process of automatic reassignment of the factors(so called weights) in the parts of the NN based on how accurate the output numbers of a previous generation were to what you were expecting.
Meaning a NN can basically do many things that don’t have anything to do with deep learning, but deep learning is very helpful on training the NN to do exactly what you want it to.
1
u/sageegirl2026 Oct 23 '26
On C. N b
2
u/[deleted] Oct 12 '25
[removed] — view removed comment