56
$\begingroup$

Background: It's well-known that neural networks offer great performance across a large number of tasks, and this is largely a consequence of their universal approximation capabilities. However, in this post I'm curious about the opposite:

Question: Namely, what are some well-known cases, problems or real-world applications where neural networks don't do very well?


Specification: I'm looking for specific regression tasks (with accessible data-sets) where neural networks are not the state-of-the-art. The regression task should be "naturally suitable", so no sequential or time-dependent data (in which case an RNN or reservoir computer would be more natural).

$\endgroup$
1
  • $\begingroup$ Here is a related question, but it's more theoretical. $\endgroup$
    – nbro
    Jan 22, 2021 at 14:37

11 Answers 11

31
$\begingroup$

Here's a snippet from an article by Gary Marcus

In particular, they showed that standard deep learning nets often fall apart when confronted with common stimuli rotated in three dimensional space into unusual positions, like the top right corner of this figure, in which a schoolbus is mistaken for a snowplow:

enter image description here

. . .

Mistaking an overturned schoolbus is not just a mistake, it’s a revealing mistake: it that shows not only that deep learning systems can get confused, but they are challenged in making a fundamental distinction known to all philosophers: the distinction between features that are merely contingent associations (snow is often present when there are snowplows, but not necessary) and features that are inherent properties of the category itself (snowplows ought other things being equal have plows, unless eg they have been dismantled). We’d already seen similar examples with contrived stimuli, like Anish Athalye’s carefully designed, 3-d printed foam covered dimensional baseball that was mistaken for an espresso

enter image description here

Alcorn’s results — some from real photos from the natural world — should have pushed worry about this sort of anomaly to the top of the stack.

Please note that the opinions of the author are his alone and I do not necessarily share all of them with him.

Edit: Some more fun stuff

1) DeepMind's neural network that could play Breakout and Starcraft saw a dramatic dip in performance when the paddle was moved up by a few pixels.

See: General Game Playing With Schema Networks

While in the latter, it performed well with one race of the character but not on a different map and with different characters.

Source

2)

AlphaZero searches just 80,000 positions per second in chess and 40,000 in shogi, compared to 70 million for Stockfish and 35 million for elmo.

What the team at Deepmind did was to build a very good search algorithm. A search algorithm that includes the capability to remember facets of previous searches to apply better results to new searches. This is very clever; it undoubtedly has immense value in many areas, but it cannot be considered general intelligence.

See: AlphaZero: How Intuition Demolished Logic (Medium)

$\endgroup$
2
22
$\begingroup$

In theory, most neural networks can approximate any continuous function on compact subsets of $\mathbb{R}^n$, provided that the activation functions satisfy certain mild conditions. This is known as the universal approximation theorem (UAT), but that should not be called universal, given that there are a lot more discontinuous functions than continuous ones, although certain discontinuous functions can be approximated by continuous ones. The UAT shows the theoretical powerfulness of neural networks and their purpose. They represent and approximate functions. If you want to know more about the details of the UAT, for different neural network architectures, see this answer.

However, in practice, neural networks trained with gradient descent and backpropagation face several issues and challenges, some of which are due to the training procedure and not just the architecture of the neural network or available data.

For example, it is well known that neural networks are prone to catastrophic forgetting (or interference), which means that they aren't particularly suited for incremental learning tasks, although some more sophisticated incremental learning algorithms based on neural networks have already been developed.

Neural networks can also be sensitive to their inputs, i.e. a small change in the inputs can drastically change the output (or answer) of the neural network. This is partially due to the fact that they learn a function that isn't really the function you expect them to learn. So, a system based on such a neural network can potentially be hacked or fooled, so they are probably not well suited for safety-critical applications. This issue is related to the low interpretability and explainability of neural networks, i.e. they are often denoted as black-box models.

Bayesian neural networks (BNNs) can potentially mitigate these problems, but they are unlikely to be the ultimate or complete solution. Bayesian neural networks maintain a distribution for each of the units (or neurons), rather than a point estimate. In principle, this can provide more uncertainty guarantees, but, in practice, this is not yet the case.

Furthermore, neural networks often require a lot of data in order to approximate the desired function accurately, so in cases where data is scarce neural networks may not be appropriate. Moreover, the training of neural networks (especially, deep architectures) also requires a lot of computational resources. Inference can also be sometimes problematic, when you need real-time predictions, as it can also be expensive.

To conclude, neural networks are just function approximators, i.e. they approximate a specific function (or set of functions, in the case of Bayesian neural networks), given a specific configuration of the parameters. They can't do more than that. They cannot magically do something that they have not been trained to do, and it is usually the case that you don't really know the specific function the neural network is representing (hence the expression black-box model), apart from knowing your training dataset, which can also contain spurious information, among other issues.

$\endgroup$
1
  • $\begingroup$ Comments are not for extended discussion; this conversation has been moved to chat. $\endgroup$
    – nbro
    Mar 15, 2020 at 23:52
16
$\begingroup$

In our deep learning lecture, we discussed the following example (from Unmasking Clever Hans predictors and assessing what machines really learn (2019) by Lapuschkin et al.).

enter image description here

Here the neural network learned a wrong way to identify a picture, i.E by identifying the wrong "relevant components". In the sensitivity maps next to the pictures, we can see that the watermark was used to identify if there is a horse present in the picture. If we remove the watermark, the classification is no longer made. Even more worryingly, if we add the tag to a completely different picture, it gets identified as a horse!

$\endgroup$
1
  • 6
    $\begingroup$ This is similar to the famous tank story. $\endgroup$
    – nbro
    Mar 12, 2020 at 23:33
5
$\begingroup$

This is more in the direction of 'what kind of problems can be solved by neural networks'. In order to train a neural network you need a large set of training data which is labelled with correct/ incorrect for the question you are interested in. So for example 'identify all pictures that have a cat on them' is very suitable for neural networks. On the other hand 'summarize the story of this toddler picture book' is very hard. Although a human can easily decide whether a given summary is any good or not it would be very difficult to build a suitable set of training data for this kind of problem. So if you can't build a large training data set with correct answers, you can't train a neural network to solve the problem.

The answer of Anshuman Kumar is also an instance of that, also a potentially solvable one. The neural network that misidentified upside-down school buses presumably had very few if any upside-down school buses in its training data. Put them into the training data and the neural network will identify these as well. This is still a flaw in neural networks, a human can correctly identify an upside-down school bus the first time they see one if they know what school busses look like.

$\endgroup$
2
  • $\begingroup$ Good point. Also using a feature map which rotates and stretches immages to create more "artificial" immage samples should bypass Anshuman's problem $\endgroup$
    – ABIM
    Mar 12, 2020 at 12:47
  • $\begingroup$ @AIM_BLB you'd need a feature map that can do so in 3D. So you pretty much need the whole pipeline the brain does: edge detection -> depth map -> segmentation -> 3D feature map -> classifier search (with each stage feeding back to the edge detection (!) stage and all later ones). And that's without any depth cues, meaning that the depth map can only take input from the classifier and the segmentation map. $\endgroup$ Mar 13, 2020 at 3:19
5
$\begingroup$

I don't know if it might be of use, but many areas of NLP are still hard to tackle, and even if deep models achieve the state of the art results, they usually beat baseline shallow models by very few percentage points. One example that I've had the opportunity to work on is stance classification 1. In many datasets, the best F score achievable is around 70%.

Even though it's hard to compare results since in NLP many datasets are really small and domain-specific (especially for stance detection and similar SemEval tasks), many times SVM, conditional random fields, sometimes even Naive Bayes models are able to perform almost as good as CNN or RNN. Other tasks for which this holds are argumentation mining or claim detection.

See e.g. the paper TakeLab at SemEval-2016 Task 6: Stance Classification in Tweets Using a Genetic Algorithm Based Ensemble (2016) by Martin Tutek et al.

$\endgroup$
1
  • $\begingroup$ Thanks for this answer. I'm interested in this subject from the standpoint of (satisficing)[en.wikipedia.org/wiki/Satisficing]! (i.e. if time or space is sufficiently restricted, the "less optimal" method may prevail.) $\endgroup$
    – DukeZhou
    May 3, 2020 at 23:42
4
$\begingroup$

A checkerboard with missing squares is impossible for a neural network to learn the missing color. The more it learns on training data, the worse it does on test data.

See e.g. this article The Unlearnable Checkerboard Pattern (which, unfortunately, is not freely accessible). In any case, it should be easy to try out yourself that this task is difficult.

$\endgroup$
1
  • $\begingroup$ Impossible is not the right word here; I'm pretty sure a neural network specially trained for identifying checkerboards will have no problem, but we'll have to see. Impossible is just too strong a word. $\endgroup$ Jan 26 at 9:02
4
$\begingroup$

My 50cents: NP_(complexity) - is still hard to solve, even with NeuralNets.

In computational complexity theory, NP (nondeterministic polynomial time) is a complexity class used to classify decision problems. NP is the set of decision problems for which the problem instances, where the answer is "yes", have proofs verifiable in polynomial time by a deterministic Turing machine.

The easiest example, to imagine what is speech about, it is cryptography's Integer_factorization, which is basement of RSA cryptosystem.

For example, we have two simple numbers:

  • 12123123123123123123123.....45456
  • 23412421341234124124124.....11112

NeuralNetwork shall answer us exactly digit to digit both this numbers, when we will show it only multiplication of this two numbers... This is not guessing about school bus. The field of numbers much more bigger than number of words in all languages on whole Earth. Imagine, that there are billions of billion different school buses, billions of billions of different fire-hydrants and billions of such classes, and NN shall answer exactly - what is on the picture - no way. The chance to guess is so little...

$\endgroup$
1
  • $\begingroup$ It is true. But it applies to any ML algo. It is called hardness of approximation I think. $\endgroup$
    – user9947
    Jan 22, 2021 at 13:52
3
$\begingroup$

Neural networks seem to have a great deal of difficulty handling adversarial input, i.e., inputs with certain changes (often imperceptible or nearly imperceptible by humans) designed by an attacker to fool them.

This is not the same thing as just being highly sensitive to certain changes in inputs. Robustness against wrong answers in that case can be increased by reducing the probability of such inputs. (If only one in 10^15 possible images causes a problem, it's not much of a problem.) However, in the adversarial case reducing the space of problematic images doesn't reduce the probability of getting one because the images are specifically selected by the attacker.

One of the more famous papers in this area is "Synthesizing Robust Adversarial Examples", which produced not only examples where a few modified pixels or other invisible-to-humans modifications to a picture fooled a neural network-based image classifier, but also perhaps the first examples of 3D objects designed to fool similar classifiers and successfully doing so (from every angle!).

(Those familiar with IT securitity will no doubt recognise this as a familiar asymmetry: roughly, a defender must defend against all attacks launched against a system, but an attacker need find only one working attack.)

In "A Simple Explanation for the Existence of Adversarial Examples with Small Hamming Distance", Adi Shamir et al. propose a mathematical framework for analyzing the problem based on Hamming distances that, while currently a less practical attack than the MIT/Lab6 one, has some pretty disturbing theoretical implications, including that current approaches to preventing these attacks may be, in the end, ineffective. For example, he points out that blurring and similar techniques that have been used to try to defend against adversarial attacks can be treated mathematically as simply another layer added on top of the existing neural network, requiring no changes to the attack strategy.

(I attended a talk by Shamir a few months ago that was much easier going than the paper, but unfortunately I can't find a video of that or a similar talk on-line; if anybody knows of one please feel free to edit this answer to add a link!)

There's obviously still an enormous amount of research to be done in this area, but it seems possible that neural networks alone are not capable of defense against this class of attack, and other techniques will have to be employed in addition to make neural networks robust against it.

$\endgroup$
1
  • $\begingroup$ The attacks aren't quite the same if you apply random blurring. In principle adding random noise should provide sufficient defense, if your network on average handles noise well. I have seen attempts to use lipschitz like constraints but for deep networks the bounds are useless. It's kind of circular in a way - we want the network to function like humans do but there isn't a clear norm for how humans judge similarity between images. $\endgroup$ May 3, 2020 at 23:53
3
+100
$\begingroup$

From my experience in industry, a lot of data science (operating on customer information, stored in a database) is still dominated by decision trees and even SVMs. Although neural networks have seen incredible performance on "unstructured" data, like images and text, there still do not appear to be great results extending to structured, tabular data (yet).

At my old company (loyalty marketing with 10 million+ members) there was a saying, "You can try any model you like, but you must try XGBoost". And let's just say that I did try comparing it to a neural network, and ultimately I did go with XGBoost ;)

$\endgroup$
4
  • $\begingroup$ This sounds very promising. So something like Boston housing would be a toy example data-set of this type? $\endgroup$
    – ABIM
    Mar 23, 2020 at 8:25
  • 1
    $\begingroup$ Yes exactly! Same with the classic Adult dataset: archive.ics.uci.edu/ml/datasets/adult $\endgroup$ Mar 23, 2020 at 15:24
  • $\begingroup$ So in that case XGBoost is the best? $\endgroup$
    – ABIM
    Mar 23, 2020 at 15:32
  • 1
    $\begingroup$ Well it's usually difficult to say in advance, and especially before you do tinkering like hyperparameter sweeps, regularization etc. But in general, XGBoost gives you good results right out of the box, with the added bonus that it is also somewhat interpretable (such as giving you feature importances), allowing you to explain things in a business setting nicely $\endgroup$ Mar 23, 2020 at 17:36
2
$\begingroup$

Large scale route optimization problems.

The is progress made in using Deep Reinforcement learning to solve vehicle routing problems (VRP), for example in this paper: https://arxiv.org/abs/1802.04240v2.

However, for large scale problems and overall heuristic methods, like the ones provided by Google OR tools are much easier to use.

$\endgroup$
1
  • $\begingroup$ You don't talk about neural networks in your answer, but only about deep RL. Maybe you can clarify how neural networks are related to your linked paper and the "large scale route optimization problems". $\endgroup$
    – nbro
    Mar 14, 2020 at 1:32
1
$\begingroup$

In the case of convolutional neural networks, the features may be extracted but without taking into account their relative positions (see the concept of translation invariance)

For example, you could have two eyes, a nose and a mouth be in different locations in an image and still have the image be classified as a face.

Operations like max-pooling may also have a negative impact on retaining position information.

$\endgroup$
1
  • 1
    $\begingroup$ I have edited your answer to make it clearer. Please, can you provide a research work that proves that the extraction of features, in a CNN, can have a negative impact such that a collection of two eyes, a nose and a mouth, although not in the appropriate relative position, is classified as a face? $\endgroup$
    – nbro
    Mar 16, 2020 at 17:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .