{
  "id": 23827894,
  "title": "The 4-row dataset that a famous AI model could not learn",
  "url": "https://urgent.news/2026/12/06/the-4-row-dataset-that-a-famous-ai-model-could-not-learn",
  "topic": "ai",
  "section": "AI",
  "published": "2026-12-06T13:00:00.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/alwyabdullah/the-4-row-dataset-that-a-famous-ai-model-could-not-learn-25mo"
  },
  "original_language": null,
  "account": "In 1958, Frank Rosenblatt introduced the perceptron, a learning machine capable of adapting to example inputs. The perceptron quickly gained attention, but a small issue soon emerged that only required four data points to illustrate. This limitation is explored in the author's book, \"The Whole Machine,\" which guides readers through the evolution of machine learning models.\n\nThe perceptron's code is provided in the source material, demonstrating a simple function that learns a line separating two classes. When trained on an AND dataset with four data points, the perceptron successfully learns a line that perfectly separates the classes. However, when presented with an XOR dataset, the perceptron fails to learn a line that accurately classifies the data, resulting in only two correct classifications out of four.\n\nThe author explains that the perceptron's inability to learn the XOR dataset is not due to a bug in the algorithm, but rather a fundamental limitation of the model. By visualizing the four points, it becomes clear that no single straight line can effectively separate the \"on\" points from the \"off\" points. The perceptron is restricted to drawing a single line, making it impossible to accommodate both diagonals on different sides.\n\nTo overcome this limitation, the author introduces the concept of layers. By stacking multiple perceptron units and introducing a nonlinearity between them, the model can create complex decision boundaries that go beyond simple halves. This breakthrough led to the development of backpropagation, a technique that allows for the efficient training of deep neural networks. However, the author emphasizes that the core concept of weighted sums and adjustments remains unchanged, even in today's most advanced machine learning models.\n\nThe author concludes by highlighting the importance of understanding the limitations of the perceptron, as it serves as a foundation for grasping the more sophisticated models that follow. By working through the example of the perceptron failing on four points, readers can develop a deeper appreciation for the challenges faced by early machine learning researchers and the gradual evolution of modern AI.",
  "summary": "In 1958 Frank Rosenblatt showed off the perceptron, a machine that learned from examples. It was a big deal. Then people noticed a tiny problem it could not solve, and that problem had only four rows. Here is the whole perceptron in NumPy. It is the first thing you build in my book. def perceptron ( X , y , epochs = 20 ) : \"\"\"Learn a line that separates two classes. Labels must be -1 or +1.\"\"\" w…",
  "summary_source": "publisher",
  "key_points": [
    "Perceptron learns AND dataset with four data points",
    "Perceptron fails to learn XOR dataset",
    "Multiple perceptron layers enable complex decision boundaries"
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "outlets_capped": false,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}