# Software 2.0: The New Programming Paradigm Powered by Neural Networks

> Software 2.0 refers to building programs using neural network weights instead of manually writing code. By defining desired behavior and network architecture, developers use data and massive computation to search for optimal weights. The industry is rapidly migrating traditional Software 1.0 systems to this data-centric approach, fundamentally transforming how we create software.

- Source: https://www.waytoagi.com/en/kb/learning-path/software-2-0
- Original (Feishu, Chinese): https://waytoagi.feishu.cn/wiki/FFJawIKRpi77JokULCvcjIPBnBv
- Updated: 2026-10-23

---

> Source: https://karpathy.medium.com/software-2-0-a64152b37c35
>
> Author: [Andrej Karpathy](https://karpathy.medium.com/?source=post_page-----a64152b37c35--------------------------------) (Member of OpenAI founding team, former Director of AI at Tesla)
>
> Published: November 12, 2017
>
> Translation: Lightly revised based on the translation from the [OneFlow community](https://www.oneflow.org/index.html)

I’ve noticed that people sometimes treat neural networks as “just another tool in the machine learning toolbox.” It has its pros and cons, works well in certain domains, and can help you win Kaggle competitions. Unfortunately, this view completely misses the forest for the trees. Neural networks are not just another classifier. They mark the beginning of a fundamental shift in how we develop software. They are Software 2.0.

We are all familiar with **Software 1.0** — it is written in human-readable programming languages such as Python and C++. It consists of explicit instructions given to the computer by a programmer. By writing each line of code, the programmer manually selects a specific point in the program space that exhibits the desired behavior.

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

In contrast, **Software 2.0** is written in more abstract, less human-readable languages — for example, the weights of a neural network. No one can directly write this “code” because it consists of a vast number of parameters (often in the millions), and (I’ve tried) manually setting the weights is essentially impossible.

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

Instead, we specify the desired behavior of the program (e.g., “correctly map input-output pairs from a dataset” or “win at the game of Go”), define the skeleton of the program (e.g., the architecture of a neural network), which carves out a searchable subset of the entire program space, and then use our computational resources to search within that space for a working program.

In the case of neural networks, we restrict the search to a continuous subset of the program space and perform the search using backpropagation and stochastic gradient descent. Surprisingly, this approach works remarkably well.

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

To be more concrete: Software 1.0 involves compiling human-written source code (e.g., a .cpp file) into an executable binary. The “source code” of Software 2.0 typically consists of two parts: 1) a dataset that defines the desired behavior, and 2) a neural network architecture that provides the rough skeleton but leaves the details to be filled in. Training a neural network is exactly the process of compiling the dataset into a binary — the resulting trained network. Today, the architectures and training systems for neural networks have become increasingly standardized and commoditized. As a result, most of the active “software development” work now takes the form of collecting, organizing, curating, and cleaning labeled datasets. This fundamentally changes the programming paradigm for iterating on software. Development teams are split into two groups: Software 2.0 programmers (data labelers) who edit and expand the datasets, and a smaller group that maintains the training infrastructure along with interfaces for analysis, visualization, and debugging.

It turns out that for many real-world problems, collecting data (or more broadly, specifying the desired behavior) is much easier than explicitly writing the program. Because of this, along with the many other advantages of Software 2.0 that I will discuss later, we are witnessing a massive shift across the industry: a large amount of code is migrating from Software 1.0 to Software 2.0. Software 1.0 ate the world, and now Software 2.0 (AI) is eating Software 1.0.

**The Transformation Is Underway**

Let’s look at concrete examples across different domains. We’ll see that over the past few years, in many of these areas, we have given up trying to solve complex problems by explicitly writing code. Instead, we have turned to Software 2.0.

- **Image Recognition**: Image recognition used to rely heavily on feature engineering, with only a small amount of machine learning (such as SVM) applied at the very end. Later, by using much larger datasets (such as ImageNet) and searching within the space of convolutional neural network architectures, we discovered far more powerful visual features. More recently, we’ve even stopped trusting hand-designed network architectures and begun using [similar search methods](https://arxiv.org/abs/1703.01041) to find the optimal network structures.

- **Speech Recognition**: Previous speech recognition systems involved extensive preprocessing, Gaussian mixture models, and hidden Markov models. Today, the solution is almost entirely based on neural networks. A famous and somewhat humorous quote from Fred Jelinek in 1985 captures this shift perfectly: “Every time I fire a linguist, the performance of my speech recognition system goes up.”

- **Speech Synthesis**: Historically, speech synthesis relied on various concatenation techniques. Now, state-of-the-art (SOTA) large convolutional networks (such as [WaveNet](https://deepmind.com/blog/wavenet-launches-google-assistant/)) can directly generate raw audio waveforms.

- **Machine Translation**: Machine translation was previously dominated by phrase-based statistical methods, but neural networks are rapidly taking over. One of my favorite architectures is related to [multilingual training](https://arxiv.org/abs/1611.04558): a single model can translate between any source language and any target language, requiring only weak supervision—or even [completely unsupervised](https://arxiv.org/abs/1710.11041) training.

- **Games**: For a long time, people wrote Go programs by hand to compete against each other. Today, [AlphaGo Zero](https://deepmind.com/blog/alphago-zero-learning-scratch/)—a convolutional network that observes the raw board state and plays against itself—has become the strongest Go player in the world. I predict similar outcomes in other domains such as DOTA 2 and StarCraft.

- **Databases**: Even many traditional systems outside the AI field are beginning to show early signs of transitioning to Software 2.0. For example, the paper “[The Case for Learned Index Structures](https://arxiv.org/abs/1712.01208)” replaces core components of data management with neural networks, achieving up to 70% faster performance than cache-optimized B-trees while using an order of magnitude less memory.

You may have noticed that many of the linked works above were done at Google. That’s because Google is currently at the forefront of converting large portions of its own codebase into Software 2.0. The vision outlined in “[One Model To Learn Them All](https://arxiv.org/abs/1706.05137)” is to unify the statistically driven solutions scattered across different domains into a single model that understands the world as a whole.

**The Benefits of Software 2.0**

Why do we prefer to migrate complex programs to Software 2.0? The obvious answer is that it has proven to work better in practice. However, there are many other compelling reasons to choose Software 2.0. Let’s examine the advantages of Software 2.0 (represented by convolutional neural networks) compared to Software 1.0 (represented by production-grade C++ codebases).

For Software 2.0:

- **Homogeneous Computation**: A typical neural network consists of only two types of operations: matrix multiplication and the Rectified Linear Unit (ReLU). In contrast, instructions in traditional software are far more complex and heterogeneous. Since only a very small core of the code (e.g., matrix multiplication) needs to be implemented in Software 1.0, correctness and performance verification become significantly easier.

- **Hardware-Friendly**: Because the instruction set required by neural networks is relatively small, implementing them on chips—especially for inference—is much simpler. This enables the use of custom [ASIC chips](https://www.forbes.com/sites/moorinsights/2017/08/04/will-asic-chips-become-the-next-big-thing-in-ai/#7d6d7c0511d9), [neuromorphic chips](https://spectrum.ieee.org/semiconductors/design/neuromorphic-chips-are-destined-for-deep-learningor-obscurity), and more. When low-power intelligent devices become ubiquitous, the world will change accordingly. For example, pre-trained convolutional networks, speech recognition, and WaveNet-style speech synthesis models can be deployed on cheap, compact devices, allowing them to interact with the physical world.

- **Constant Runtime**: The amount of computation (FLOPs) required for each forward pass of a typical neural network is highly consistent. The various execution branches common in hand-written complex C++ code simply do not exist in Software 2.0. While dynamic computation graphs may be used, the execution flow is usually strictly constrained. Even then, we can almost guarantee that the system will not fall into unexpected infinite loops.

- **Constant Memory Usage**: Related to the previous point, because there is no need for dynamic memory allocation, the risk of swapping to disk is virtually eliminated, and memory leaks are nearly impossible.

- **High Portability**: A sequence of matrix multiplications is far easier to run across different computing environments than traditional binaries or scripts.

- **Agile Development**: If you’re writing C++ and someone asks you to double the development speed (even at the cost of performance), adapting the system to the new requirement is no small task. In Software 2.0, however, you can simply remove half the paths in the computation graph and retrain the model. The result may be slightly less accurate but will train twice as fast. This is remarkable. Conversely, if you obtain more data and compute resources, you can immediately scale up the computation graph, retrain, and achieve better real-world performance.

- **End-to-End Module Fusion for Optimization**: Traditional software is typically decomposed into multiple modules that communicate via shared functions, APIs, or end-to-end pipelines. In Software 2.0, even if two interacting modules were originally trained independently, it is straightforward to perform backpropagation across the entire system. Imagine if your browser could automatically design low-level instructions to make page loading faster, or if your computer vision library (such as OpenCV) could automatically adapt its behavior to your specific data. In Software 2.0, these capabilities are fundamental operations.

- **Better Than You**: Finally, and most importantly, in many specialized domains, the code produced by neural networks is superior to what you or I could write. At least for now, this is clearly the case in the domains of images, video, and speech.

**The Disadvantages of Software 2.0**

Software 2.0 also has its drawbacks. Once optimized, we can obtain massive networks that perform very well in practice, but it is often difficult to explain why they work. In many fields, we face a choice between a more interpretable model with 90% accuracy or a less interpretable one with 99% accuracy.

Software 2.0 can produce [counter-intuitive and embarrassing](https://motherboard.vice.com/en_us/article/nz7798/weve-already-taught-artificial-intelligence-to-be-racist-sexist) failures, and even worse, it can “silently fail.” For instance, if biased data is quietly incorporated during training, when the dataset scales to millions of examples, analyzing and diagnosing the root cause becomes extremely difficult.

Lastly, strange characteristics of Software 2.0 continue to emerge. The existence of [adversarial examples](https://blog.openai.com/adversarial-example-research/) and [attack samples](https://github.com/yenchenlin/awesome-adversarial-machine-learning) makes the interpretability problem of Software 2.0 even more pronounced.

**Software 2.0 Programming**

The code of Software 1.0 is code we write by hand. The code of Software 2.0 is code that emerges through optimization based on evaluation criteria (such as “correctly classify the training data”). Any program whose underlying principles are not obvious but whose performance can be repeatedly evaluated is suitable for this transition, because the code discovered by optimization is far superior to what humans can write.

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

The lens through which we view trends matters. Once you realize that neural networks are not merely another useful classifier in the machine learning toolbox, but that Software 2.0 represents an emerging new programming paradigm, the implications become far more obvious—and it becomes clear that there is still a tremendous amount of work to be done.

Specifically, we have already invented a wide array of tools to assist programmers in Software 1.0 development: powerful IDEs packed with features like syntax highlighting, debuggers, profilers, symbol navigation, integrated git, and more. In Software 2.0, programming is accomplished by accumulating, curating, and cleaning datasets. For example, when a neural network fails in certain edge cases, we don’t fix it by writing more code; we simply import more data from those situations.

Who will build the first Software 2.0 IDE? It should support every workflow related to datasets—accumulating data, visualization, cleaning, labeling, and synthetic data generation. Such an IDE might surface images the network suspects are mislabeled by highlighting them according to per-sample loss, assist annotation by suggesting likely labels, or recommend samples for labeling based on the network’s predictive uncertainty.

Similarly, GitHub has been an enormously successful platform for Software 1.0. Is there room for a Software 2.0 equivalent? In the Software 2.0 era, repositories will contain datasets, and commits will consist of adding or editing data labels.

Traditional package management and deployment tools such as pip, conda, and Docker make it easier to distribute and install software. In the Software 2.0 world, how will we more effectively deploy, share, import, and run software? What will be the neural-network equivalent of conda?

In short, Software 2.0 will become increasingly dominant in any domain where performance can be repeatedly and inexpensively evaluated, yet the algorithm is difficult to design explicitly. When we consider the entire development ecosystem and how it must adapt to this new programming paradigm, we find a wealth of exciting opportunities. In the long term, this paradigm has a bright future—because it is becoming increasingly clear that when we eventually build Artificial General Intelligence (AGI), we will do so using Software 2.0.

**Index Links**

[1] Search: https://arxiv.org/abs/1703.01041

[2] Network Architecture: https://arxiv.org/abs/1703.01041

[3] Current Status: https://github.com/syhw/wer_are_we

[4] WaveNet: https://deepmind.com/blog/wavenet-launches-google-assistant/

[5] Multilingual: https://arxiv.org/abs/1611.04558

[6] Unsupervised Learning: https://arxiv.org/abs/1710.11041

[7] AlphaGo Zero: https://deepmind.com/blog/alphago-zero-learning-scratch/

[8] DOTA 2: https://blog.openai.com/more-on-dota-2/

[9] StarCraft: https://deepmind.com/blog/deepmind-and-blizzard-open-starcraft-ii-ai-research-environment/

[10] Index Structure Learning Case Study: https://arxiv.org/abs/1712.01208

[11] ASIC Chips: https://www.forbes.com/sites/moorinsights/2017/08/04/will-asic-chips-become-the-next-big-thing-in-ai/#7d6d7c0511d9

[12] Neuromorphic Chips: https://spectrum.ieee.org/semiconductors/design/neuromorphic-chips-are-destined-for-deep-learningor-obscurity

[13] Counterintuitive and Awkward: https://motherboard.vice.com/en_us/article/nz7798/weve-already-taught-artificial-intelligence-to-be-racist-sexist

[14] Adversarial Examples: https://blog.openai.com/adversarial-example-research/

[15] Attack Samples: https://github.com/yenchenlin/awesome-adversarial-machine-learning
