22 comments

  • romaniv10 minutes ago
    I think it should be quite obvious that perceptrons are far from the <i>smallest</i> units that are capable of learning. They store many bytes of information, require a non-local update process, need numeric (i.e. symbolic) inputs and involve relatively complex computations. You can go much simpler. For example:<p><a href="https:&#x2F;&#x2F;medium.com&#x2F;@VictorBanev&#x2F;the-simplest-learning-machine-pt-2-e735367f546" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;@VictorBanev&#x2F;the-simplest-learning-machin...</a><p>This is a description of a 5-line algorithm that learns and stores approximate probability of an event using just 1 byte of persistent memory.
  • kzrdude3 hours ago
    I think Karpathy&#x27;s microgpt blogpost is the best in this genre in a long time, and it also includes a multi layer perceptron. It&#x27;s a step up in the hierarchy, so reading both is helpful, of course.<p><a href="https:&#x2F;&#x2F;karpathy.github.io&#x2F;2026&#x2F;02&#x2F;12&#x2F;microgpt&#x2F;" rel="nofollow">https:&#x2F;&#x2F;karpathy.github.io&#x2F;2026&#x2F;02&#x2F;12&#x2F;microgpt&#x2F;</a>
    • Lerc2 hours ago
      I&#x27;m not sure if I&#x27;d like to declare a best. There are so many different approaches and I think their ability to inform is cumulative,<p>I like the ability of this article to do the tiny training runs in browser. It makes the point of a bias clear. Too many tutorials get sucked into the proof of zero times anything is zero. Everyone knows that. What you should show is where that mstters in the problem at hand.<p>3blue1brown does one of the best depictions of why we need an activation function.<p>Karpathy&#x27;s videos are a little tougher for a beginner to grasp, but excel at solving a complete problem. I knew all of the theory behind what it takes to make micrograd before I made my own by following the video, but what you get from doing it can&#x27;t be understated.<p>It&#x27;s hard to describe but it what you learn is more of a feel than pure knowledge. It gives you a better sense of knowing when the principles apply in other circumstances.<p>Perhaps it&#x27;s the distinction of understanding how springs and gears work, then looking at a clock and understanding how the gears and springs move the hands. There&#x27;s still more needed if you want to make a clock. And that stuff is what let&#x27;s you also make a wind up toy.
  • rahen7 hours ago
    In the early days of machine learning (before the first AI winter), networks like this were often implemented and trained in hardware: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;ADALINE" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;ADALINE</a><p>That was the first thing that came to mind when I read &quot;the smallest brain you can <i>build</i>&quot;. Nowadays, that &quot;small brain&quot; would likely be built on a breadboard using op-amps instead.
    • Schlagbohrer42 minutes ago
      Amazing and anachronistic to see something like that from 1960. And then it makes me wonder why there wasn&#x27;t more progress on neural nets being used for many things prior to the 21st century. (I haven&#x27;t read the history of the AI winters but I have heard of them)
      • mr_toad30 minutes ago
        &gt; why there wasn&#x27;t more progress on neural nets being used for many things prior to the 21st century<p>They were simply too computationally expensive to train for the limited things they could do. It wasn’t until we had the ability to train large neural networks on commodity hardware that things really took off.
      • j_bum31 minutes ago
        This doc on Ilya Sutskever &amp; Geoffrey Hinton gives a great background on the progression of deep learning over the past decades [0].<p>Tl;dr - compute was the bottleneck.<p>I am not associated with this channel&#x2F;video, just love it. I’ve shared it here before.<p>[0] <a href="https:&#x2F;&#x2F;youtu.be&#x2F;glWvwvhZkQ8?si=XjcwWWy43305tl6O" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;glWvwvhZkQ8?si=XjcwWWy43305tl6O</a>
  • zkmon9 hours ago
    The IF statement is the root creator of software programming. It has the ability to compare two values against each other and branch out to blocks of instructions. So it is perceiving (reading), decision making and routing - all that which differentiate life from inanimate objects. The AI agents perform the exact same loop, by delegating the first two steps to a model.<p>Going further backwards, the transistor (or a PNP junction) is the hardware level enabler of the IF statement. The action (switching) driven by the current which in turn controls other switches, is the first manifestation of &quot;observe and act&quot; by inanimate things at the speed of electricity.<p>Mechanical equivalents existed ofcourse - speed of a governer which controls the flow of fuel which in turn controls the speed of the governer.
    • RetroTechie23 minutes ago
      &gt; Going further backwards, the transistor (or a PNP junction) is the hardware level enabler of the IF statement. The action (switching) (..)<p>Back up a bit please! Analog computing is a thing. And it isn&#x27;t even new - not by a long shot.<p>There are good reasons why practically all computing today is the digital kind. But electronic &#x27;equivalents&#x27; of neural nets is one area where analog might make sense. Adding inputs can be as simple as a bunch of resistors + a transistor. Even on modern silicon nodes, that <i>might</i> be a more efficient setup than digital inputs, N-bit adders&#x2F;multipliers etc. Not saying that&#x27;s the case, and AI hardware should be based on analog circuitry. But it <i>could</i> be, and perhaps found to be practical.
    • Lerc2 hours ago
      Fundimentally, when you talk about a if statement, you are talking about the ability to do something different dependent upon some state.<p>It&#x27;s the same thing as stimulus, response.<p>Unchanging in response to circumstances is static.<p>Changing in the absence of circumstances is randomness.<p>The conditional is all that remains. Changing in response to circumstances<p>(Arguably, unchanging in the absence of circumstances completes the truth table, but it&#x27;s a whole lot of nothing)
    • BatteryMountain5 hours ago
      So, what if, we build a stack&#x2F;set of transistors in same shape as a trained model? It would eliminate most of the software stack too and should run very fast. No memory&#x2F;gpu required, the chip acts as both storage and processing device, purpose built to be physical model of a trained model.
      • tomtom13373 hours ago
        This is literally what talaas has done with chatjimmy.ai.<p>Try it, it&#x27;s llama 3.1 8B at 16000 tokens per second.<p>chatjimmy.ai <a href="https:&#x2F;&#x2F;taalas.com&#x2F;the-path-to-ubiquitous-ai&#x2F;" rel="nofollow">https:&#x2F;&#x2F;taalas.com&#x2F;the-path-to-ubiquitous-ai&#x2F;</a>
      • rusk2 hours ago
        There’s lots of things you can do in hardware that could be done in software but cost. FPGA should have solved this long ago, but apparently the guys who own the IP want to make it as hard as possible to use it …
    • adrian_b5 hours ago
      The alternative IF expression or statement, in the form introduced by John McCarthy in 1958 (which he used in early 1959 to define his version of AND, OR and NOT), is one of the possible primitives for computation.<p>There exist several equivalent sets of primitive operations. While the sets containing only NAND or only NOR, or both AND and NOT or both OR and NOT are more notorious, these logical operations are more abstract and they do not indicate precisely a hardware implementation, i.e. there are many distinct hardware methods to make such logical gates.<p>Other sets of primitive operations map directly to hardware devices, e.g. the sets of primitive operations composed of maximum and complement or of minimum and complement map directly to a hardware implementation using rectifier diodes and inverting amplifiers (which can be made with either semiconductor devices or with vacuum tubes, or also with pneumatic or hydraulic devices).<p>Other sets of primitive operations are obtained by replacing the maximum or minimum circuits with series or parallel connections of switches, like in the CMOS logic that is nowadays dominant.<p>The alternative IF expression corresponds in hardware to a 2-way multiplexer, which, together with the 2 constant functions &quot;0&quot; and &quot;1&quot; (a.k.a. &quot;false&quot; and &quot;true&quot; or &quot;low voltage&quot; and &quot;high voltage&quot;), is sufficient for a complete set of computational primitives.<p>Besides those mentioned above, the main remaining variant for a complete set of computational primitives consists of an analog (possibly weighted) adder and an analog comparator, which had been used in the so-called RTL circuits (resistor-transistor logic) and which also corresponds to perceptrons. RTL had been used in some early integrated circuits, before being replaced by DTL and TTL circuits (which are based on minimum and complement functions).<p>In hardware, e.g. in RTL circuits, a combined analog adder+comparator can be made with a single high-gain amplifying device, together with a set of weighting resistors and a bias resistor. RTL circuits can implement complex logic with fewer devices (e.g. they can implement a neural network in the analog domain), but they were replaced during the sixties of the past century with DTL, then TTL, because those were faster (in RTL, the resistors limit the charging currents for input capacitors and parasitic capacitors, which slows down the logical transitions) and the fact that they needed more devices was not important, due to the quick increase in circuit density.
      • lioeters3 hours ago
        This reminds me of a book, whose title I forget, about creating a compact set of knowledge that will enable us to &quot;rebuild civilization from scratch&quot; in case of a future&#x2F;fictional post-collapse scenario. I sometimes wonder, given the immense complexity and global supply-chain dependencies of our computing stack, whether we could bootstrap from first principles something of equivalent power and expressivity, but orders of magnitude simpler.<p>There&#x27;s a wide variety of computational primitives, including lambda calculus, combinators, cellular automata, rewriting systems. Perhaps some are more practical to implement in hardware, particularly the kind of DIY electronics or analog machines that can also be put together from scratch. It might look like a whole building of mechanical switches, powered by a water wheel (&quot;watermill&quot;), for example.
        • coldtea15 minutes ago
          I think if civilization collapses they&#x27;ll have other priorities, and very little benefit to get from the effort required for such simpler computing, for a good while...
    • gpderetta5 hours ago
      it not really an if statement here in a perceptron though. It is more akin a logic gate.<p>A transistor (driven to saturation) is a much better model.
    • utopiah6 hours ago
      You might enjoy playing with Turing Tumble.
  • ankit8410 hours ago
    I learnt a lot today from the interactive demo. You have the best clarity and right skill to educate
    • DevarshRanpara10 hours ago
      Thank you, I will try to make more demo on other concepts.
  • trekhleb10 hours ago
    Nice and minimalistic<p>I played with similar approach in JavaScript and built a NanoNeuron <a href="https:&#x2F;&#x2F;github.com&#x2F;trekhleb&#x2F;nano-neuron" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;trekhleb&#x2F;nano-neuron</a> (it is more verbose than Python though)
  • Bimos9 hours ago
    &gt; A perceptron *is* the smallest brain you can build.<p>&gt; In 1958, a researcher named Frank Rosenblatt built a machine *he called* the perceptron.<p>&gt; It was *inspired* by a single brain cell, a neuron.
    • Lerc2 hours ago
      I did a lecture once which included a 5 minute whirlwind tour of neural net history.<p>I included a remark about how time travellers would find Rosenblatt a better target than Miles Dyson.<p>I was never quite sure on how close, or over, the line that was on appropriateness. It was definitely thought provoking.
    • lmf4lol7 hours ago
      Yes . But at least the post seems to be written by OP <i>himself</i>!<p>and its an a great learning resource - which is arguably more important :-)
  • virajk_313 hours ago
    Not a ML expert, but ML tutorials shall start with something like this... Good read. Thanks.
  • opem3 hours ago
    I have still so many questions left, but regardless of that it was a great read. Thanks for sharing!
  • warengonzaga5 hours ago
    This is amazing insight, thanks for sharing!
    • CyberDildonics1 hour ago
      This is your first comment in six years, what is amazing about it?
  • esafak13 hours ago
    If you want to learn the fundamentals of ML I recommend a book, such as <i>Deep Learning: Foundations and Concepts</i> by Chris Bishop. If you insist on staying online, one option is <a href="https:&#x2F;&#x2F;course.fast.ai&#x2F;" rel="nofollow">https:&#x2F;&#x2F;course.fast.ai&#x2F;</a><p>If you don&#x27;t know ML I don&#x27;t think you&#x27;re going to learn much through ad hoc demos.
    • llimllib39 minutes ago
      I remember sitting in the senior study lounge reading the previous Bishop book and implementing the perceptron from it, 22 years ago: <a href="https:&#x2F;&#x2F;github.com&#x2F;llimllib&#x2F;personal_code&#x2F;blob&#x2F;945b017b2915ccd148bb09a0f93d0ab9bdb703a9&#x2F;python&#x2F;perceptron&#x2F;perceptron_old.py#L34" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;llimllib&#x2F;personal_code&#x2F;blob&#x2F;945b017b2915c...</a><p>(before numarray and numpy merged!)
    • mysterydip12 hours ago
      Checked out the book on your recommendation, and they even have a free online option on their site! Very generous: <a href="https:&#x2F;&#x2F;www.bishopbook.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.bishopbook.com&#x2F;</a>
    • rishabhaiover13 hours ago
      This book equipped me with the right intuition and tools to visualize machine learning. I wish I was smart enough to hold it all together.
      • andai12 hours ago
        &gt;I wish I was smart enough to hold it all together.<p>I used to have a wife, but they took her in the divorce!<p>The human mind isn&#x27;t very good at correlating its contents[0]. You can &quot;know&quot; something for years without realizing its implications.<p>The human mind traverses its knowledge like a man with a small flashlight in total darkness. Our beam of attention is small and narrow, so you need to put the right things in it, or the magic doesn&#x27;t happen.<p>This has important implications for learning. I don&#x27;t know what they are though.<p>Probably something like, &quot;you can know something without knowing what it means.&quot; You haven&#x27;t connected it to the things it&#x27;s supposed to be connected to yet. I don&#x27;t know how to fix that though. (Something involving the Feynman technique, maybe?)<p>[0] H.P. Lovecraft quote - <a href="https:&#x2F;&#x2F;www.goodreads.com&#x2F;quotes&#x2F;193944-the-most-merciful-thing-in-the-world-i-think-is" rel="nofollow">https:&#x2F;&#x2F;www.goodreads.com&#x2F;quotes&#x2F;193944-the-most-merciful-th...</a>
    • stuxnet7912 hours ago
      I didn&#x27;t know Bishop had released a new textbook. I will have to take a look at it. I wasn&#x27;t the biggest fan of his Pattern Recognition book as I found it overly dense. I much preferred the Murphy and Alpaydin books.<p>EDIT: His son is co-author?
      • zxexz9 hours ago
        I still find his pattern recognition book useful and informative. It may be dense, but some of us consider that a positive for &#x27;reference&#x27; literature. That book was one of very few that still holds up well fr when it was published - truly in on of the last &quot;dark ages&quot; of ML.<p>I think those down voting you are perhaps overly eager. I upvoted. Grab &quot;Deep Learning&quot; - you&#x27;ll find it useful, imteresting, and likely less &#x27;dense&#x27; in the negative sense!
        • stuxnet798 hours ago
          Appreciate your comment. I skimmed the online version and it covers all the 2010s era developments all the way to Transformers which is enough to earn it a spot on my bookshelf.<p>&gt; Grab &quot;Deep Learning&quot; - you&#x27;ll find it useful, imteresting, and likely less &#x27;dense&#x27; in the negative sense!<p>Absolutely! I just ordered it and it&#x27;s enroute :)
    • DevarshRanpara10 hours ago
      This fast AI course looks soo good man! Definitely I will start learning soon. Thank you!
  • charcircuit10 hours ago
    I can build a smaller brain.<p>f(x) = 0.
    • lioeters4 hours ago
      I take your brain, add a couple more rules, and presto! It can perform any computation.<p><pre><code> Ix = x Kxy = x Sxyz = xz(yz)</code></pre>
    • rippeltippel8 hours ago
      That&#x27;s great, now make it learn something :)
      • jeffwass6 hours ago
        It&#x27;s the simplest AI nihilist!
    • opem3 hours ago
      This brain is interesting. Basically you get a no for everything you ask, right?
    • moffkalast4 hours ago
      Yeah, this is small brain time.
  • infoinlet4 hours ago
    [flagged]
  • knightops_dev12 hours ago
    [flagged]
  • jkwang10 hours ago
    [flagged]
  • haeseong10 hours ago
    [dead]
  • EvanXue11 hours ago
    [flagged]
  • karinatran11 hours ago
    [dead]
  • hbwang207612 hours ago
    [dead]
  • b33j0r13 hours ago
    Okay, it’s conscious. But can it run doom? I rest my case.
    • andblac13 minutes ago
      I know you&#x27;re joking, but if you really wanted to, you can if you have a network of these, since you can build NAND gates from perceptrons. If you have NAND gates, then you can build any other gates from these and then you can build a computer [1].<p>[1] <a href="https:&#x2F;&#x2F;www.nand2tetris.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.nand2tetris.org&#x2F;</a>
    • Waterluvian13 hours ago
      Can <i>you</i> run Doom? Let’s find out!
      • Rapzid10 hours ago
        I can <i>speed run</i> Doom. Appeal denied!
      • phs318u12 hours ago
        Probably.<p><a href="https:&#x2F;&#x2F;www.dandwiki.com&#x2F;wiki&#x2F;Doom_(5e_Campaign_Setting)" rel="nofollow">https:&#x2F;&#x2F;www.dandwiki.com&#x2F;wiki&#x2F;Doom_(5e_Campaign_Setting)</a>