In layman’s terms, how do artificial neural networks work?

Brecht Corbeel
7 min readSep 1, 2023

--

Abstract

Artificial neural networks: an enigma, a digital sorcery of sorts. At their core, they’re like a chef, taking raw ingredients (data) and, through a carefully orchestrated dance, transforming them into a gourmet dish (an answer or prediction). But how does this mysterious chef operate? Let’s take a whimsical journey into their kitchen and uncover the magic behind their culinary prowess.

The Digital Chef’s Kitchen

Imagine, if you will, a bustling kitchen inside a fancy restaurant. The chef, an eccentric character with a flair for the dramatic, is the maestro of this culinary universe. Each ingredient he uses is like a piece of information. Alone, they might not make much sense, like a lone mushroom or a singular sprig of rosemary. But the chef, with his unique talent, knows precisely how to combine them to create a masterpiece.

This chef doesn’t work alone. He has a brigade, a team of mini-chefs, each with a specific role. They collaborate, argue, and sometimes even have heated debates about how much salt to add or how finely to chop the garlic. These mini-chefs represent the neurons in our artificial network. Each one processes a tiny bit of the information, adds its own unique flavor, and passes it on. The dish, as it travels from one section of the kitchen to the next, evolves, becoming richer, more layered.

Now, this kitchen isn’t static. Over time, with each dish prepared, the chef and his team learn. They figure out that a pinch of saffron elevates the risotto or that the steak tastes best when seared at a particular temperature. This learning process is akin to training the neural network. With every piece of data, every ingredient it encounters, the network tweaks its recipe, refining its approach.

The most astonishing part? This chef can handle countless dishes simultaneously. Whether it’s a complex Beef Wellington or a simple tomato soup, he and his brigade work in harmony, ensuring each dish is prepared to perfection. They remember past mistakes, like that time they burnt the toast, and ensure they’re not repeated. This memory, this ability to learn from experience, is what sets our digital chef apart.

An artificial neural network, much like our chef, is all about synergy. It’s about taking disparate pieces of information, understanding their essence, and weaving them into a coherent whole. It’s a dance, a rhythm, a melody of numbers and data, all orchestrated to help us make sense of the world around us. So, the next time you hear about these networks, think of the chef and his kitchen, and you’ll have a glimpse into the magic they conjure every day.

The Symphony of Synapses

In the heart of a bustling city lies a secret jazz club. Dimly lit, with a smoky ambiance, this club is the place where melodies come alive, where instruments speak, and where every note tells a story. The musicians? Think of them as the synapses in our artificial neural network. The music? That’s the data flowing through.

Each musician in this club has an instrument, be it a saxophone, a piano, or a trumpet. As the night unfolds, they start playing, each contributing their unique sound. Sometimes, the saxophonist takes the lead, playing a sultry tune that makes the audience sway. At other times, the drummer sets the rhythm, and the rest follow. Each musician listens to the other, adjusting their volume, their tempo, and their pitch to ensure harmony. This is very much how neurons in a network adjust their weights. They “listen” to the data and tweak their responses to ensure the final output, the music, is just right.

Now, imagine a newcomer entering this jazz club. He’s never heard jazz before, and the melodies, the rhythms, they all seem alien. But as he spends more time, he begins to discern patterns. The way the pianist’s fingers dance on the keys, the deep hum of the bass, the crescendo of the trumpets — it all starts making sense. This is what training a neural network feels like. At first, the data, the patterns, they’re all chaotic. But as the network “listens” more and more, it starts recognizing patterns, understanding nuances, and making predictions.

One evening, a challenge is posed to our jazz band. They’re given a tune they’ve never played before. A complex, intricate melody with twists and turns. The musicians huddle together, discussing, arguing, planning. And then, they play. The music is fresh, spontaneous, and yet, it feels right. This is akin to a neural network facing new data after being trained. It uses what it has learned, the rhythms it has internalized, and tries to make sense of this new melody.

What’s fascinating is that this jazz club, with its myriad musicians and ever-evolving tunes, never plays the same song twice. Every night is an experiment, a foray into the unknown. And yet, every night, the music feels right. This is the beauty of neural networks. They’re dynamic, adaptable, and ever-learning. They don’t need a script; they create their own.

In the world of artificial intelligence, amidst all the numbers, algorithms, and codes, it’s easy to forget the artistry. But just like in our jazz club, there’s a rhythm, a pulse, a heartbeat to these networks. They’re not just machines; they’re maestros, creating symphonies from silences. So, next time you think of neural networks, think of the smoky jazz club, the passionate musicians, and the magic they create. For in many ways, that’s what these networks do. They create magic, one note at a time.

The Dance of Data and Intuition

Step into the dim, bustling alleys of an old European city, where cobblestone streets whisper tales from yesteryears. Here, street performers are a common sight, each with a unique act that captivates passersby. Among these performers is Lila, an enigmatic dancer whose movements are unlike anything one has ever witnessed.

Lila doesn’t just dance; she converses with the world around her. Each pirouette, each leap, tells a story. Her dance is fluid, adapting to the rhythm of the bustling market, the chirping birds, even the distant tolling of a church bell. This constant adaptation, this fluidity, is reminiscent of how neural networks process new information. Just as Lila responds to the world around her, these networks adapt, learn, and evolve with every piece of data they encounter.

But here’s the catch: Lila was not always this adept. As a young girl, she stumbled more than she danced. The streets were her teacher. With each fall, each misstep, she learned. She observed other dancers, listened to the rhythms around her, and slowly, the dance became an extension of her soul. Similarly, neural networks, when they start “learning”, are much like the young Lila. Raw, untrained, prone to errors. But as they process more data, as they “stumble” and “fall”, they refine their dance. They learn the nuances, the subtleties, until they can predict, or rather “dance”, seamlessly.

One evening, a renowned maestro visits the city. He hears tales of Lila’s enchanting dance and decides to challenge her. He plays a tune she’s never heard, a complex melody with unpredictable highs and lows. The crowd holds its breath as Lila pauses, listens, and then begins to move. Her dance is spontaneous, raw, yet it captures the essence of the tune. This is the real test of mastery, not just for Lila, but also for neural networks. Can they adapt to the unforeseen? Can they dance to a tune they’ve never heard?

As the night deepens and the stars shimmer, Lila’s dance becomes more than just movement. It becomes a bridge between the past and the present, the known and the unknown. It reminds us that at the heart of every algorithm, every line of code, there’s a touch of humanity. A touch of intuition. The maestro, with tears in his eyes, realizes that Lila’s dance cannot be confined to notes or rhythms. It’s an experience, a journey, a conversation.

In this ever-evolving world of technology, amidst the cacophony of codes and algorithms, let’s not forget the Lilas. The artists, the dreamers, the storytellers. For in their dance lies the essence of true learning. In their falls and rises, in their leaps and pauses, lies the heart of neural networks. So, when we talk of artificial intelligence, of data and codes, let’s remember the dance. The dance of intuition, of learning, of being human. For in that dance, lies the magic of the unknown.

--

--