<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://alejandrohdez00.github.io/feed.xml" rel="self" type="application/atom+xml" /><link href="https://alejandrohdez00.github.io/" rel="alternate" type="text/html" hreflang="en" /><updated>2026-11-05T15:01:30+00:00</updated><id>https://alejandrohdez00.github.io/feed.xml</id><title type="html">Alejandro Hernandez Artiles</title><subtitle>ELLIS PhD student at the Max Planck Institutes for Human Development and Intelligent Systems, working on open-ended AI for cultural and scientific discovery.</subtitle><author><name>Alejandro Hernandez Artiles</name></author><entry><title type="html">Theories about Creativity and AI</title><link href="https://alejandrohdez00.github.io/creativity-recombination/" rel="alternate" type="text/html" title="Theories about Creativity and AI" /><published>2024-10-27T00:00:00+00:00</published><updated>2024-10-27T00:00:00+00:00</updated><id>https://alejandrohdez00.github.io/creativity-recombination</id><content type="html" xml:base="https://alejandrohdez00.github.io/creativity-recombination/"><![CDATA[<figure>
  <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/7/77/Cole_Thomas_The_Course_of_Empire_Desolation_1836.jpg/1920px-Cole_Thomas_The_Course_of_Empire_Desolation_1836.jpg" alt="aquelarre" loading="lazy" />
</figure>

<p><em>“Art is a mechanism constantly trying to destroy itself, always questioning what is or isn’t art.”</em></p>

<p>Those were the words my uncle, the artist Pipo Hernandez, shared with me over dinner at his house while we discussed whether AI could truly be an artist. (If you’re curious about his work, you can check it out <a href="https://nfgaleria.com/artista/pipo-hernandez-rivero/">here</a>, I absolutely love it!)</p>

<p>A few months later, I found myself defending my Master’s thesis, “Alien Recombination: Exploring Concept Blends Beyond Human Cognitive Availability” at the Technical University of Munich. I had the privilege to conduct this research alongside a brilliant team from both the Max Planck Institute for Human Development and the Max Planck Institute for Intelligent Systems.</p>

<p>Our project explored ways to improve artificial creativity, an admittedly ambitious goal for a master’s thesis. To be honest, we couldn’t hope to fully address such a complex challenge, especially since we’re still discovering new dimensions of the problem itself.</p>

<p>In this post, I want to share my thoughts about the nature of creativity, interesting theories I have read and the challenges of implementing it in machines, along with potential paths forward. Moreover, we will focus more in Art, the human pinnacle of creativity.</p>

<p>This isn’t meant to be a scientific article, think of it more as an invitation to dialogue, a way to organize my thoughts and hopefully inspire others to become as passionate about this topic as I am.</p>

<h2 id="types-of-creativity">Types of Creativity</h2>

<p>Creativity is one of those concepts that seems to slip through our fingers just when we think we’ve grasped it. Some view it as a process that emerges from imagination [1], where imagination is seen as a reconstructive process based on prior knowledge [2]. Others define it as the process by which an individual generates new ideas or patterns using the symbols of a given domain [3]. Additionally, some interpretations view creativity as a fully combinatorial process, involving the combination of existing representations [4][5].</p>

<p>In computer science, Margaret Boden’s definition has been particularly influential [6]. She describes creativity as “the ability to come up with ideas or artifacts that are new, surprising, and valuable” [7]. What makes this definition so useful is how it breaks creativity into “measurable” components: value (high quality and social acceptance), novelty (significant difference from existing artifacts), and surprise (deviation from expectations).</p>

<p>Boden identifies three distinct types of creativity:</p>

<p>Combinatorial creativity, that involves creating unexpected combinations of familiar ideas, like pairing chocolate with chili in a recipe.</p>

<p>Exploratory creativity, finding new solutions within established frameworks, like a jazz musician discovering fresh melodies while working within traditional chord progressions.</p>

<p>Transformational creativity, that involves fundamentally changing how we think about something. Think of Einstein’s theory of relativity revolutionizing our understanding of space and time, or how Picasso’s cubist paintings transformed 20th-century artistic expression.</p>

<h2 id="dont-underestimate-the-power-of-combinatorial-creativity">Don’t underestimate the power of Combinatorial Creativity</h2>

<figure class="medium">
  <img src="/assets/images/darth-vader.png" alt="darth-vader" loading="lazy" />
</figure>

<p>Combinatorial creativity is often considered the most basic form of creativity. While some studies suggest that LLMs are primarily limited to this type of creativity, lacking the deeper exploratory or transformative capabilities found in other forms [8], we shouldn’t undervalue the power of combining different concepts.</p>

<p>In fact, the combination of concepts is a phenomenally powerful mechanism for creating wonderful things. Most of the creative works we love are, to a large degree, combinations of concepts we already know. Think about Star Wars for example. George Lucas created it by mixing westerns, samurai stories, feudal societies, and Flash Gordon, among other influences. Or consider Rapture, the charismatic city from Bioshock, it’s basically a combination of a submarine city, art deco architecture, Ayn Rand’s ultra-liberal capitalism, and a drug crisis. Usually, most of world building is done by composition.</p>

<p>The truth is, it’s incredibly difficult (for me, it feels impossible, but I wouldn’t presume to generalize this limitation to brighter minds than my own) to create something entirely new without any grounding in prior knowledge. Try imagining something you’ve never seen before that has absolutely no resemblance to anything in the observable universe. Even H.P. Lovecraft, when attempting to describe his “unspeakable” cosmic gods, had to rely on familiar terms like tentacles and anthropomorphic features, or describe recognizable sensations to convey what Cthulhu and other entities might look like.</p>

<p>So while combination, when thoughtfully applied, can be an incredibly powerful creative strategy, I think there’s still a vast unexplored space of possible combinations out there, waiting to be discovered.</p>

<p>In my Master’s thesis, we explored this idea in the visual art domain. We hypothesized that there exists a huge, unexplored space of concept combinations, not because these concepts are incompatible, but because of the natural limitations of an individual artist’s cultural horizon, including their geographical, temporal, and social context.</p>

<p>Let me give you an example: the concept of an “airplane” simply didn’t exist during the Renaissance period, making it cognitively unavailable to artists of that era. And even today, when we’re familiar with both concepts, there’s still this subtle bias against combining Renaissance style with airplanes (even if it could be a very cool idea). This relates to what cognitive scientists call availability bias - we heavily rely on immediate examples that come to mind when thinking about a topic, which can limit our exploration of novel ideas.</p>

<p>Although trained across temporal and cultural boundaries, generative AI models inevitably absorb human biases. As a result, these models can expect to predominantly produce cultural artifacts that align with human cognitive availability. James Evans and his team showed that counteracting such a bias could be key to algorithmic augmented scientific discovery [7, 8].</p>

<p>We developed a system that generates novel visual art concept combinations by modeling and counteracting these cognitive biases. We worked with the set of concepts extracted from the artworks of WikiArt, and two probability distributions using fine-tuned LLM models. The first is what we call the Artwork-level distribution, <em>P(a|S)</em>, which captures the probability of finding concept <em>A</em> in an artwork that contains a set of concepts <em>S</em>. The second is the Artist-level distribution, <em>Q(a|S)</em>, representing the probability of an artist using concept <em>A</em> given they’ve used concepts <em>S</em> in their whole artistic work.</p>

<p>The key difference between these distributions is their scope. If an artist has used concept A in one artwork and concept B in another, both concepts are within their cognitive reach, even if they’ve never combined them in a single piece. Our method looks for what we playfully call “alien” combinations (inspired by James Evans’ work on alien scientific discoveries) by finding combinations that are surprisingly improbable in the artist-level distribution using a ranking system.</p>

<p>This leads us to discover combinations that are hard to find or conceive naturally because they contain concepts that are unavailable to all artists that have used a given set of concepts. For instance, no artist who worked in the Renaissance style could have known about airplanes. If they did, that would mean these concepts had coexisted in time or imagination (or that Renaissance style has returned in mainstream art, that has not happened as far as I know.)</p>

<p>Of course, we’re making some assumptions here, like limiting our concept world to those used in WikiArt artworks, and assuming artists express all their conceptual knowledge in their work (which might not be realistic, an artist might know about something but choose never to paint it). But it gives us a interesting approximation of cognitive availability and lets us explore these low density or empty spaces of artistic combinations that have never been attempted and hard to even conceive of in our world (dataset).</p>

<p>If you’re interested, you can read the paper <a href="https://arxiv.org/abs/2411.11494">here</a> However, this post aims to address a broader perspective beyond just discussing the paper. The key point is that while combinatorial creativity is often considered the least interesting and is frequently dismissed as the simplest form, it still holds immense power and unexplored potential especially with AI systems now capable of finding and exploiting what we have overlooked. Our paper is merely a small step, a toy idea, compared to the progress that still lies ahead.</p>

<figure>
  <img src="/assets/images/insect2.png" alt="insect-image" loading="lazy" />
  <figcaption>Figure 3: A dragon insect with a skirt or an insect army commanded by an imperial official, combinations absent in our training dataset, but also cognitively unavailable to all artists on the domain.</figcaption>
</figure>

<h2 id="creativity-is-divergent">Creativity is Divergent</h2>

<figure>
  <img src="https://nfgaleria.com/wp-content/uploads/2023/02/ultraleve_sala.jpg" alt="pipoart" loading="lazy" />
  <figcaption>Figure 4: Ultraleve, Pipo Hernandez</figcaption>
</figure>

<p>Now, let’s dive into the tricky part: how creativity may work in practice, what is its essence.</p>

<p>This led to an interesting conversation with my uncle about making an AI artist. I suggested that understanding creativity in computational terms, or at least having a nuanced definition that can be approximated by a program, could help to achieve this, if possible. Therefore, I asked him to recall how he came up with the idea for his latest artwork, which was exhibited at ARCO, Spain’s International Contemporary Art Fair.</p>

<p>Explaining this artistic piece goes against its essence, but trust me, we could discuss its intricacies for hours. Still, I’ll try to focus on the main point. As you can see in Figure 4, the piece consists of a wall displaying Romanticism paintings with black weighing scales on the floor. The mere presence of Romantic paintings in a Contemporary Art fair is already surprising, but the piece explores current dialogue mechanism between artwork and spectator.</p>

<p>In our current era, when confronted with art we don’t immediately understand, we often demand quick explanations. We’ve lost our patience for mystery, for engaging in slow but intense dialogue with an artwork, for dealing with ambiguity. Conditioned by fast internet and instant information, we expect immediate answers from art. However, art often transmits questions rather than answers, usually philosophical questions without clear solutions.</p>

<p>The piece juxtaposes two elements: Romantic paintings, which invite philosophical dialogue and embrace mystery (a highlight of Romanticism), and weighing scales, which represent our modern preference for functional questions with immediate, concrete answers. Functional questions are asked to obtain factual information. When you step on a weighing scale, you are essentially asking, “What is my weight?” and you quickly receive an answer. At the fair, observers would quickly tire of contemplating the paintings and start playing with the scales instead. The whole scene captures our discomfort with ambiguity, our intolerance to questions that might not have definitive answers, our fear to the abyss. It shows how quickly we retreat to the safety of measurable, quantifiable responses in a world we struggle to understand, avoiding questions that lack factual, immutable answers.</p>

<p>Art is not meant to deliver easy truths; it is a dialogue, a philosophical conversation that often raises more questions than it answers. Moreover, this dialogue shifts over time, even if the artwork remains unchanged, because it is influenced by the current cultural context. Borges’ story <em>“Pierre Menard, Author of the Quixote”</em> is a brilliant exploration of this idea. It’s a must-read if you haven’t encountered it yet! But now, let’s return to the creative process.</p>

<p>As I mentioned, when I asked my uncle about the origins of his artwork, he told me that it started with a problem: “There is no true 21st-century art, everything we’re seeing is just an extension of 20th-century movements. Like the period before Romanticism emerged, we’re in a creative crisis, living in the shadow of the previous era’s huge influence, without a distinctive artistic style to call our own.”</p>

<p>That’s where it began, with framing the problem. And then came the real magic, that <em>thing</em> that machines will find so hard to replicate. As he put it: “So I thought… if we’re still showing 20th-century art in 21st-century exhibitions, why not go even further back? What about bringing Romanticism into the present?”</p>

<p>This was the seed, the initial spark that started the posterior creative process. Like a butterfly effect in motion, this simple idea underwent a series of transformations and mutations, eventually evolving into the final piece that captured both the irony and the deeper truth about our relationship with art today.</p>

<p>The brilliance of this approach shows exactly why machines struggle with creativity. While current AI can analyze patterns and mix pixels or words in statistically likely ways, it can’t truly venture into out-of-distribution spaces without failing. My uncle’s creative leap wasn’t just about combining different time periods, it came from asking an unlikely question about his environment and current knowledge, then trying to answer.</p>

<p>AI models excel at generating good responses, but they lack the ability to ask good questions that serve as stepping stones to greater insights. Divergent thinking doesn’t arise from gradient descent, which is designed to follow the steepest path to minimize a loss function. Instead, it is driven by curiosity, intentionally exploring unknown areas looking for something interesting. Where AI models see noise, human curiosity might find opportunity, a chance to discover novel and unexplored solutions rather than just optimize within known boundaries.</p>

<h2 id="searching-for-compression">Searching for Compression</h2>

<p>However, we are computer scientists. We may have identified the essence of the creative process, asking interesting questions through a divergent process, but how can we translate this into a computational framework?</p>

<p>I find particularly interesting Varshney work on defining creativity in a mathematical way [9]. His framework establishes creativity as a formal optimization problem that balances novelty and quality in a combinatorial space. He shows that the fundamental tradeoff in creativity is similar to Shannon’s capacity-cost function from communication theory, a connection we will explore further. While his research suggest that communicative intent may constrain both quality and novelty of creative artifacts due to information rate limitations, I believe the framework has an essential limitation: it takes a static global view of creativity. This is evident in how it treats quality as a fixed measure and assumes that novelty of the artifact should be measured against all the remaining artifacts in the domain. Then, the framework is overlooking the role of subjective observers, whose perspectives determine whether an artifact is perceived as novel or interesting, allowing for different creativity evaluations for the same artifact.</p>

<p>Now, let me introduce a curious concept [10] from Jürgen Schmidhuber that might sound crazy at first, but ended up feeling incredibly intuitive to me: creativity is fundamentally about finding data compressions.</p>

<figure>
  <img src="https://historia-arte.com/_/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpbSI6WyJcL2FydHdvcmtcL2ltYWdlRmlsZVwvcG9sbG9ja19jb252ZXJnZW5jZS5qcGciLCJyZXNpemVDcm9wLDYwMCwzMDAsQ1JPUF9CQUxBTkNFIl19.zGBWtGDt4jOQczGQzG3ZwAqc7OWVBFO4lvfDopU6MO/0.jpg" alt="compression" loading="lazy" />
  <figcaption>Figure 5: Convergence, Jackson Pollock</figcaption>
</figure>

<p>We live in an environment full of historical data: our entire record of actions, observations, experiences and reward signals. Simple explanations of the past often reflect some repetitive patterns, which are useful for predicting the future. Therefore, any intelligent system aiming to achieve future goals should be driven to compress its sensory history. To achieve this, we identify regularities and create compact internal representations or symbols for frequently recurring elements. Even when predictions aren’t perfect, we can still compress data effectively by using shorter codes for events that occur with very high probability. For example, since the sun rises every day, it’s efficient to create a symbol like “daylight” to represent this recurring event, rather than continuously storing raw sensory data about each sunrise.</p>

<p>In principle, any regularity in our data history can serve as a basis for compression. This compressed version of the data acts as a simplified explanation of our experiences, enabling us to process and predict the world more effectively.</p>

<p><em>Interestingly</em> we can define beauty and interestingness in this context. Given a subjective observer <em>O</em>, we can identify the subjective beauty of an artifact <em>D</em> for <em>O</em> as being proportional to the number of bits required to encode <em>D</em>, given the observer’s limited prior knowledge. For example, to efficiently encode previously seen human faces, we might create an internal representation of a “prototype” face. When encoding a new face, the system only needs to record the deviations from this prototype, significantly reducing the amount of information required. Therefore, something appears beautiful when it fits easily into our current representation, like a face that closely matches our mental “prototype”, or a mathematical proof that can be expressed simply. This is why we often find symmetrical or proportional things beautiful, and why we tend to find faces beautiful when they remind us of faces we see often, including our own.</p>

<p>However, what is beautiful is not always interesting. A beautiful object is interesting only as long as it remains novel, while the observer is still learning to compress the data effectively by identifying the algorithmic regularities that make it simple. Once these regularities are fully encoded and the compression is optimized, the novelty vanishes, and the observer’s interest diminishes.</p>

<p>Then, interestingness can be understood as the derivative of beauty. As the observer improves their compression algorithm, data that initially seemed random becomes more regular and easier to encode, requiring fewer bits. The data remains interesting and rewarding as long as the process of improving compression continues.</p>

<p>As a result, curiosity can be defined as the search for interestingness, the drive to explore on experiences that are currently incompressible but are expected to become compressible with further learning, maximizing the potential for future understanding and compression progress. It involves actively seeking novelty and avoiding both fully predictable (boring) and seemingly irreducible (unlearnable) phenomena. I like to think of this as a movie. If you could predict all the subsequent frames just by looking at one, the movie would be predictable and boring. However, if each frame were completely unpredictable based on the previous one, the movie would become chaotic and unlearnable.</p>

<p>But how does creativity fit into this perspective of compression? Intuitively, creativity is the ability to find novel, meaningful and effective ways of compressing data, discovering overlooked regularities in our historical information. Thus, science and art are surprisingly similar, they’re just approaching this compression differently.</p>

<p>Science has historically proceeded incrementally, analyzing just a small aspect of the world at any given time, trying to find simple laws that allow for describing their limited
observations better than the best previously known law, essentially trying to find a program that compresses the observed data better than the best previously known program. For example, take Newton’s discovery of gravity. This was essentially a way of compressing a regular pattern in the data: things fall. With this insight, if we want to store the event of a lemon falling from a tree, we don’t need to save every single bit of every frame of it dropping. As soon as the lemon detaches from the tree, we can predict its entire trajectory based on the concept of gravity, saving a lot of space.</p>

<p>Now look at Einstein’s theory of relativity. It’s a very novel and efficient data compression. Sure, the theory is complicated, but at its core, it boils down to: <em>The laws of physics are the same for all observers in inertial frames, and the speed of light in a vacuum is constant regardless of motion.</em> When this is assumed to be true, the rest of the theory and their implications unfold naturally, aligning with empirical observations. This means we no longer need to store certain bits of historical data explicitly, as they can be derived from the theory. Einstein essentially uncovered a new and very efficient way to compress the data of our universe, allowing us to predict real-world phenomena with precision, reducing the informational “storage cost” of our environment.</p>

<p>Art, in contrast, is a more elusive domain. Extending this idea of compression to art, we can see parallels but also key differences. Science focuses on formally identifying and defining a compression rule by discovering new regularities in the data, essentially creating efficient, predictive models of reality. Art, on the other hand, is about presenting information in a uniquely compressed way, with an emphasis on novelty than strict prediction accuracy.</p>

<p>My uncle didn’t just recite a message, he compressed complex ideas about our relationship with Art combining paintings and weighting scales. As an artist, his role was to carefully select and compress intricate meanings into a few bits (pixels on a painting, words in a poem, or the scenario of paintings and weighting scales). Our role as subjective observers is to decompress this information, extracting meaning from it.</p>

<p>However, Art is inherently subjective, and this subjectivity is perhaps its most defining characteristic. What is subjectivity if we are treating art as compressed information? Subjectivity arises from the differences in the historical data and knowledge representation between the artist and the observer.</p>

<p>When an artist creates, they rely on the shared experiences and historical data of living in the same world as their audience. They identify patterns in emotional and experiential domains to craft an artifact that has high probability to resonate with the observer’s own historical data. Even when artists don’t consciously consider an audience, their work often still succeeds because artists and observers inevitably share some subset of historical data and the regularities within it.</p>

<p>Then, when we understand an artwork, we’ve discovered shared regularities in our collective experience. Even when we interpret things differently or have different backgrounds, we’re drawing from fundamentally similar human experiences, similar historical data. That is why Art works, and discovering these connections can evoke powerful emotional responses like crying, laughing, joy, or terror.</p>

<p>The flip side is that if the observer is missing some part of the historical data or representations, they might not decompress the information exactly as the artist originally did. However, as I mentioned earlier, while this could be a problem in science, it’s not an issue in art. Art encodes information in a way that allows observers to uncover other regularities, leading to decompressions that are meaningful personal interpretations.</p>

<p>For example, I might not fully understand Romanticism history and thus cannot grasp my uncle’s intended full message in the artwork. Yet, I might interpret the weighing scales in his artwork as black mirrors reflecting my act of artwork observation, extracting a unique message about my own subjective experience. This is why art has no dead ends, it has no fixed rules. Unlike science, the decompression process in Art can lead to entirely different and equally valid results.</p>

<p>Again, Borges’ <em>Pierre Menard</em> captures this concept beautifully. Even an identical text can produce entirely different interpretations depending on the observer’s individual history and associations.</p>

<h2 id="thoughts-on-art-as-compression">Thoughts on Art as Compression</h2>

<figure>
  <img src="https://d7hftxdivxxvm.cloudfront.net/?height=632&amp;quality=80&amp;resize_to=fit&amp;src=https%3A%2F%2Fd32dm0rphc51dk.cloudfront.net%2FAVjxLlGSYPD9AAuno1tjmw%2Flarge.jpg&amp;width=640" alt="black-square" loading="lazy" />
  <figcaption>Figure 6: Black Square, Kazimir Malevich</figcaption>
</figure>

<p>As much as I enjoy computationally-focused philosophical theories, and as much as I admire the beauty (or perhaps the amount of compressed bits) of Schmidhuber’s framework, I was born into a family of artists and have been surrounded by art creation my entire life. I exist in two worlds: my computer scientist side is fascinated by the idea of creativity being fully computational and replicable by machines, and I am passionate about advancing this research. Yet, another part of me wants to believe there is still something deeper to discover—that creativity cannot be reduced to something so straightforward.</p>

<p>Sometimes, I see both perspectives as equally beautiful. On one hand, there is the promise of a future where AIs create art and share information in innovative ways that we can admire. On the other, I fear that the intimate human connection, our ability to communicate our fears, joys, and sorrows through art, might be lost, overshadowed by the relentless speed and abundance of AI-generated creations.</p>

<p>Now, let’s explore what might be missing from this perspective.</p>

<p>In computer science, we are increasingly used to explaining the universe in terms of computation and information transmission. Don’t get me wrong, I enjoy this kind of thinking, it’s very elegant and rewarding. However, we must recognize that a recurring pattern throughout Western intellectual history is the tendency to interpret the universe and the human mind using the most advanced technological paradigm of the time [12]. For example, in ancient Greece, the mind was compared to a hydraulic clock; during the fourteenth to nineteenth centuries, it was likened to a clockwork mechanism. With the industrial revolution, the metaphor shifted to steam engines, and since the 1930s, the dominant analogy has been the human mind as a computer.</p>

<p>As subjective observers having historical data and context, we try to understand the world in the most advanced terms we can. However, we need to be careful about information we might be losing by constraining the empirical data in our information theories.</p>

<p>I find Jürgen Schmidhuber’s theory very elegant. It works well for explaining creativity in science, which is essentially about finding a reduced explanation of the phenomena around us, that follows a set of rules. However, I think Art is a much more complex space, especially after the 20th century, when the meta-game became about breaking its own rules.</p>

<p>We could dedicate an entire blog to exploring why art works: its ability to evoke emotions, encode meaning, and express concepts beyond mere beauty. But here, we’ll focus on a single, amusing counterexample.</p>

<p>Black Square by Kazimir Malevich is a famous painting that, as its name suggests, is a simple black square. Despite its apparent simplicity, its debut caused an uproar, as it started a radical departure from established artistic norms. However, the depth of conceptual “compression” in this piece is huge. It encodes debates about the rules of art, the essence of artistic expression, the nature of the universe, and even the self. Malevich considered the square the purest and most basic form of art, stripping away unnecessary elements to focus on emotions, philosophical ideas, and abstract concepts rather than literal depictions. By this definition, and assuming the observer is aware of some of its meanings, Black Square could arguably be one of the most beautiful paintings ever created, given how much information it compresses into its minimalist form.</p>

<p>Now, let’s explore the other extreme. Imagine a painting on a wall that is 50 cm wide but infinitely tall. This artwork is made up of completely random dots of color with no discernible pattern. The artist’s sole intent is to create a piece that cannot be compressed. One might argue that a subjective observer could still derive meaning, seeing it as a reflection on the nature of art, the universe, or the opposition of randomness to compression. But even if we assume that human cognition could extract infinite meaning from this painting (something computationally hard), encoding the artwork would require an infinite number of bits. According to Schmidhuber’s theory, which associates beauty with the amount of compressibility, this painting should not be beautiful.</p>

<p>Yet, as a subjective observer, and I’m certain many others would agree, this painting could be perceived as beautiful, precisely because it elegantly highlights the tension between randomness and compression, among other topics. Then, this example indicates that beauty and human emotion might not be strictly bounded to compressibility.</p>

<p>Art is complex. It started by painting animals in caves. Now, free from rigid rules or the obligation to mimic reality, has become an entity exceedingly difficult to describe computationally. It inherently turns any theoretical framework against itself, challenging attempts at definitive explanation.</p>

<p>As a computer scientist working on artificial creativity, such an elusive domain is both a nightmare and an infinite source of fun and joy. As Edward Frenkel encourages, I will keep working on my science, open to paradoxes, because they often lead to new knowledge.</p>

<h2 id="are-ai-models-already-creative">Are AI Models Already Creative?</h2>

<div class="figure-row">
  <figure>
    <img src="/assets/images/dadaism_1.png" alt="dadaism" loading="lazy" />
    <figcaption>Figure 7: Dadaism problem generated by Stable Diffusion</figcaption>
  </figure>
  <figure>
    <img src="https://upload.wikimedia.org/wikipedia/commons/d/dd/Marcel_Duchamp%2C_1917%2C_Fountain%2C_photograph_by_Alfred_Stieglitz.jpg" alt="fountain" loading="lazy" />
    <figcaption>Figure 8: The Fountain, Marcel Duchamp</figcaption>
  </figure>
</div>

<p>Artificial Neural Networks excel at automatically representing and compressing data, effectively separating different patterns within it. While Schmidhuber’s theory suggests AI models might already be creative, there’s a crucial distinction to make: though they can effectively compress historical data, they lack two fundamental aspects of creativity, the ability to search for “interestingness” and the capacity to create artifacts that compress previously unseen and undetected regularities. What they actually do is compress existing data well, providing some generalization in lower dimensions based on the data’s inherent behavior. However, they cannot search for and output novel insights about their environment or knowledge base. They lack a transformative approach to creativity.</p>

<p>Let me give you an example that I think really illustrates this point. Take text-to-image models like Stable Diffusion. They can take a description and create a probable image, but they’re not able to handle questions as prompts and respond with truly novel, valuable images. In my experience, high-quality art and creativity rarely work like “I want to paint a dog, so I paint it.” Instead, they often start with a question or an open-ended artistic intention. Here’s one that was very trendy in its time: “Create a work of art whose purpose is to reject the logic, reason, and aestheticism of modern capitalist society and art.”</p>

<p>There are no predetermined rules for responding to this prompt. The real challenge lies in finding an effective way to portray (compress) this concept. As observed in Figure 7, when given this prompt, Stable Diffusion typically outputs an amalgamation of common visual elements associated with words like “capitalist,” “reason,” “logic,” or “reject.” In contrast, Marcel Duchamp responded to this artistic intention (created by himself) with <em>Fountain</em>. Not a trivial response, but an extraordinarily effective (and compressed) one. Current AI models aren’t designed to learn this kind of non-trivial, divergent reasoning. The question remains whether this limitation arises from the models’ properties, the nature of the problem itself (probably it’s not solvable through gradient descent), or simply that we’re not training models on the right kind of data.</p>

<p>Some work suggest that including information about artwork generation context could improve results by helping models learn to relate context and idea origination to images [11]. An interesting experiment would be to collect a dataset pairing original artistic ideas with their resulting artworks, without including explicit information about what’s in the artwork. Could an AI model learn these non-trivial transformations and functions? Could it generalize a function that takes a creative artistic problem and, without explicit guidance about what objects to portray, produce ingenious results (either as images or as text, imagining an LLM capable of designing a creative response and then crafting the prompt for its own text-to-image model)? While interesting, my intuition suggests this wouldn’t work, primarily due to the fundamental nature of creativity. We might get surprising and interesting results, but we’d still be applying gradient descent to a task that may not be suitable for it.</p>

<p>When it comes to LLMs, the challenges are similar, though I’m more optimistic about their future. Having been trained on so much human experience, they’re remarkably good at aligning with human interests. I could see them potentially directing the search for interestingness in other exploratory agents, something more sophisticated than what we explored in our combinatorial creativity paper, where we used LLM-learned probabilities to search over the space of unexplored artistic concept combinations.</p>

<p>I often hear people claim that increasing an LLM’s temperature parameter makes it more creative, but I think this misunderstands both creativity and what temperature actually does. Raising the temperature just flattens the distribution of tokens in the output layer, increasing the variance of the results. But that’s not how creativity works, and research has shown it barely affects the novelty of outputs in creative tasks like story writing [13].</p>

<p>A more interesting study involves participants asked to write a story that will be evaluated by humans [14]. Some participants are allowed to use a large language model (LLM) to help, while others are not. Prior to the experiment, participants took a creativity test. The findings show that access to generative AI results in stories being rated as more creative, better written, and more enjoyable, particularly among less creative writers. However, AI-assisted stories are more similar to each other than human-written stories, and highly creative individuals saw little improvement when using LLMs. I would also have included the results of the creativity test for the evaluators. My intuition is that people who believe LLMs are highly creative might not be very creative themselves or may not be used to highly creative environments.</p>

<p>In short, if we define creativity as the ability to produce novel and valuable artifacts, AI models can be seen as creative by some set of subjective observers. However, their creativity is limited to specific, well-defined contexts (and to the subjective creative threshold of the observer). Unlike humans, who approach open-ended creative tasks through a divergent process, AI relies on convergent thinking. As we have seen, this heavily constrains their ability to create truly groundbreaking artifacts or discover entirely new regularities and knowledge, leading to outputs proper to transformational creativity. Divergent thinking is essential for innovation in environments without clear rules or objectives. In fact, studies suggest that AI can make human creative outputs more uniform, something that shouldn’t happen if they were divergent thinkers instead of convergent.</p>

<p>Regarding the Art domain, some artists, like Ted Chiang (the author of the beautiful <em>Story of Your Life</em>, which inspired the movie <em>Arrival</em>), <a href="https://www.newyorker.com/culture/the-weekend-essay/why-ai-isnt-going-to-make-art">argue that AI will never be an artist</a>. Chiang claims that creating art involves making countless small, intentional decisions (every word chosen with purpose, every frame in a John Ford movie, every brushstroke in a painting). A system that generates probable outputs based on a brief prompt, he says, won’t truly understand or grasp the nuances of artistic creation. While I agree with Chiang that art involves constantly taking fine, crucial decisions, I believe this doesn’t rule out the potential for future AI systems. From the perspective of creativity as compression, each decision is made to resonate with the audience, conveying more than just the combination of words or brushtrokes. I believe we can design AI systems capable of divergent thinking, producing creative artifacts, whether artistic or not.</p>

<figure>
  <img src="/assets/images/dat-score.png" alt="insect-image" loading="lazy" />
  <figcaption>Figure 10: As DAT (measure of creativity) increases, the novelty and usefulness gains of using LLMs decreases</figcaption>
</figure>

<h2 id="open-endedness">Open-endedness</h2>

<p>Life is inherently open-ended. As humans evolved from mere survival to beings of higher reasoning, we became detached from our primal goals, leaving us without a clear, definitive purpose. Similarly, Art has an open-ended nature. It began as a way to leave a mark on the world and communicate a message but has transformed through cultural evolution into an ever-shifting and elusive domain. Once, we painted what we saw; then, we painted gods. When gods fell, we painted ourselves, and later, when there was anything left we started breaking the very rules we created. Currently, Art follows one guiding principle: to perpetually destroy itself, always questioning what it is, or isn’t.</p>

<p>The concept of open-endedness, pioneered by Kenneth Stanley among others (earlier Schmidhuber’s approaches, while not defined exactly in this way, are closely related to this concept), and further defined in [15], feels fundamental to me. It’s defined as the ability to continuously generate novel and learnable artifacts or behaviors that are unpredictable yet meaningful to an observer. This definition shares parallels with compression progress theory, particularly in how it values novelty and learnability. If something is too predictable, it’s boring (low learnability). But if it’s completely unpredictable, it becomes impossible to learn from, it’s also boring.</p>

<p>Take AlphaGo as an example of a simple open-ended system. Throughout its training, it developed policies that were genuinely novel to human experts, making moves that professional players would consider highly improbable, yet proved effective. Moreover, it has been shown that human players could actually improve their game by studying and learning from AlphaGo’s unexpected strategies.</p>

<p>Nevertheless, current AI systems, including foundation models, aren’t truly open-ended. They’re limited by their training data, unable to continuously generate genuinely novel insights. This is where the exciting gap lies, creating AI systems that can propose their own problems, explore without clear reward signals, and genuinely expand knowledge.
Looking ahead, I’m think that open-endedness is crucial for truly creative AI. While current open-ended systems may not be sufficient, they point us in the right direction. Attempting to build creative systems without open-endedness would severely limit their capability.</p>

<p>Imaging systems that can uncover discoveries that humans might find highly improbable or overlook due to cognitive limitations. Our computational abilities, our intrinsic knowledge shaped by evolution, and the patterns we learn from our environment, while invaluable for making remarkable discoveries, also come with limitations and biases that can occlude certain possibilities, constraining our ability to explore parts of the discovery space that could hold significant potential.</p>

<p>If we could rerun human evolution, would we arrive at the same scientific and cultural knowledge? I belive that AI has the potential to help us explore these overlooked spaces and facilitate groundbreaking discoveries that advance human knowledge.</p>

<p>One way to make this happen is by using reinforcement learning. The system would start by learning the core dynamics of its environment, understanding the key features, and figuring out how to take effective actions. After that, it could explore this space in a more open-ended way, coming up with fresh and valuable insights by tweaking these representations and checking the results for novelty and interest. Finally, the system could suggest new questions or challenges to tackle, driving both learning and creative problem-solving. This approach could be really helpful for solving problems in rule-based areas where the goal is to discover new knowledge, not just remix what’s already known.</p>

<p>On the other hand, feedback environments are essential in open-ended fields like science and art. Agents could engage in a feedback loop, creating artifacts that are evaluated by their peers, learning from the process. This approach could mimic the evolution of culture and knowledge, driving continuous exploration and innovation in creative disciplines. It could leverage the speed difference between artificial simulations and human evolution to explore alternative paths of cultural or general knowledge development. This process could lead to more “alien” knowledge discoveries, insights that are highly unlikely for humans to uncover due to cognitive biases like temporal, geographical, social, or computational constraints, as we discussed earlier. A notable example of such a discovery is AlphaTensor’s achievement in finding new matrix multiplication algorithms, discoveries that are improbable for humans due to the vast complexity of the solution space [16].</p>

<p>Art poses an even greater challenge. As we have previously seen, Art exemplifies what emerges of multiple open-ended systems interacting over an extended period of time and without a fixed goal in a shared environment. The artistic enviroment is not constrained to follow predictable empirical data but bounded only by what is computable within the human mind. Human art advances through a rich cultural evolution, influenced by diverse agents and external factors.</p>

<p>It would be fascinating to simulate something similar in AI: imagine multiple open-ended systems evaluating each other’s creative outputs and learning divergently through an evolutionary process. This could lead to the creation of Art in an entirely “alien” way, where the human is no longer the subjective observer. Such an experiment could give us a deeper understanding of creativity and a perspective of Art as a real external observer.</p>

<p>We stand at the intersection of human creativity and AI, we are witnessing an extraordinary moment of growth in this aspect. However, we need to be sure that we are optimizing in the correct direction, not a dead-end. While current AI systems may not fully replicate the divergent, open-ended thinking that characterizes human creative expression, we have not yet hit an unbreakable wall.</p>

<h2 id="references">References</h2>

<p>[1] Pelaprat, E., &amp; Cole, M. (2011). “minding the gap”: Imagination, creativity and human cognition. Integrative Psychological and Behavioral Science, 45(4), 397–418.</p>

<p>[2] Hassabis, D., &amp; Maguire, E. A. (2009). The construction system of the brain. Philosophical Transactions of the Royal Society B: Biological Sciences, 364(1521), 1263–1271.</p>

<p>[3] Csikszentmihalyi, M. (1997). Flow and the psychology of discovery and invention. HarperPerennial, New York, 39, 1–16.</p>

<p>[4] Thagard, P., &amp; Stewart, T. C. (2011). The aha! experience: Creativity through emergent binding in neural networks. Cognitive science, 35(1), 1–33.</p>

<p>[5] Gero, J. S. (1996). Creativity, emergence and evolution in design. Knowledge-Based Systems, 9(7), 435–448.</p>

<p>[6] Boden, M. A. (1998). Creativity and artificial intelligence. Artificial intelligence, 103(1-2), 347–356.</p>

<p>[7] Boden, M. A. (2004). The creative mind: Myths and mechanisms. Routledge.</p>

<p>[8] Franceschelli, G., &amp; Musolesi, M. (2023). On the creativity of large language models. arXiv preprint arXiv:2304.00008.</p>

<p>[7] Feng Shi and James Evans. Surprising combinations of research contents and contexts are related
to impact and emerge with scientific outsiders from distant disciplines. Nature Communications,
14(1):1641, 2023</p>

<p>[8] Jamshid Sourati and James A Evans. Accelerating science with human-aware artificial intelligence. Nature human behaviour, 7(10):1682–1696, 2023</p>

<p>[9] Varshney, Lav R. “Limits Theorems for Creativity with Intentionality.” ICCC. 2020.]</p>

<p>[10] Schmidhuber, J. (2008, June). Driven by compression progress: A simple principle explains essential aspects of subjective beauty, novelty, surprise, interestingness, attention, curiosity, creativity, art, science, music, jokes. In Workshop on anticipatory behavior in adaptive learning systems (pp. 48-76). Berlin, Heidelberg: Springer Berlin Heidelberg.</p>

<p>[11] Dreyfus, H. L. (1972). What computers can’t do: The limits of artificial intelligence.</p>

<p>[12] Wang, Haonan, et al. “Can AI be as creative as humans?.” arXiv preprint arXiv:2401.01623 (2024).</p>

<p>[13] Peeperkorn, Max, et al. “Is temperature the creativity parameter of large language models?.” arXiv preprint arXiv:2405.00492 (2024).</p>

<p>[14] Doshi, A. R., &amp; Hauser, O. P. (2024). Generative AI enhances individual creativity but reduces the collective diversity of novel content. Science Advances, 10(28), eadn5290.</p>

<p>[15] Hughes, Edward, et al. “Open-Endedness is Essential for Artificial Superhuman Intelligence.” arXiv preprint arXiv:2406.04268 (2024).</p>

<p>[16] Fawzi, A., Balog, M., Huang, A., Hubert, T., Romera-Paredes, B., Barekatain, M., … &amp; Kohli, P.(2022). Discovering faster matrix multiplication algorithms with reinforcement learning. Nature, 610(7930), 47-53.</p>]]></content><author><name>Alejandro Hernandez Artiles</name></author><summary type="html"><![CDATA[“Art is a mechanism constantly trying to destroy itself, always questioning what is or isn’t art.”]]></summary></entry><entry><title type="html">Borges, Memory and Deep Learning</title><link href="https://alejandrohdez00.github.io/funes-ml/" rel="alternate" type="text/html" title="Borges, Memory and Deep Learning" /><published>2024-03-10T00:00:00+00:00</published><updated>2024-03-10T00:00:00+00:00</updated><id>https://alejandrohdez00.github.io/funes-ml</id><content type="html" xml:base="https://alejandrohdez00.github.io/funes-ml/"><![CDATA[<figure>
  <img src="/assets/images/funes.png" alt="Funes" loading="lazy" />
  <figcaption>Figure 1: June 7, 1942. Page three of the Arts &amp; Letters section of La Nación, where Borges's “Funes the Memorious", was first published.</figcaption>
</figure>

<p>During my research internship at CSIC, I had the opportunity to work on a project exploring the relationship between memory and deep learning under the supervision of Jesús Marco de Lucas. Our research focused on the work of Rodrigo Q. Quiroga regarding concept cells and the role of the hippocampus in memory formation and learning, as well as how this concept abstraction works in deep learning models. This topic was already fascinating, but I was immensely surprised to discover that Quiroga had written a book connecting my (current) favourit writer, Borges, and memory [1]. He relates Borges’s story “Funes the Memorious” to how memory works and its significance for learning.</p>

<p>I have been in love with Borges writing since my first year of undergraduate studies, so I found this connection especially interesting. Naturally, I read Quiroga’s book, and it inspired me to follow a similar path. While Quiroga’s book moves from Borges to memory, I plan to start from his insights and explore how they connect memory to deep learning research. In particular, how concepts are encoded and stored in deep learning models and their importance for learning.</p>

<h2 id="funes-the-memorious">Funes the Memorious</h2>

<p>Let’s begin with a brief overview of the narrative. Nevertheless, I urge you to immerse yourself in the story directly (it spans less than 10 pages) since any summary will inevitably fall short in capturing the full depth and magnitude of Borges’s work. Additionally, I’ll be adding several direct quotes from the story, as I think there’s no better way to convey the intricacies of the discussed concepts than through Borges’ own words.</p>

<p>Funes the Memorious is the story of a man who, after a severe head injury, discovers an extraordinary ability, or perhaps, a curse, that grants him the capacity to remember every single detail with impeccable clarity. The argument is simple, but the real genius of Borges is that he explores the consequences of this power with his superb imagination, crafting a response that is both realistic, profound and oppressive. As we will see, Borges, without any formal knowledge of neuroscience, intuitively predicts the potential consequences of such an ability with impressive accuracy.</p>

<p>Borges describes Funes’ talent in the following way:</p>

<blockquote>
  <p>We, at one glance, can perceive three glasses on a table; Funes, all the leaves and tendrils and fruit that make up a grape vine. He knew by heart the forms of the southern clouds at dawn on the 30th of April, 1882, and could compare them in his memory with the mottled streaks on a book in Spanish binding he had only seen once and with the outlines of the foam raised by an oar in the Rio Negro the night before the Quebracho uprising.</p>
</blockquote>

<p>Funes, in his bed, spends his time memorising whole encyclopaedias and remembering whole days, which takes a full day for him. Moreover, he undertakes the creation of a novel numerical system, assigning each number a unique concept that he can effortlessly recall. Yet, beyond the external consequences of this extraordinary power, Funes undergoes a profound internal transformation, altering the very mechanisms of his thought.</p>

<blockquote>
  <p>Not only was it difficult for him to comprehend that the generic symbol “dog” embraces so many unlike individuals of diverse size and form; it bothered him that the dog at three fourteen (seen from the side) should have the same name as the dog at three fifteen (seen from the front). His own face in the mirror, his own hands, surprised him every time he saw them.</p>
</blockquote>

<p>As we can see, after his injury, Funes starts to have trouble generalising concepts. This difficulty extends to his sleep patterns, as Funes struggles with insomnia. Here, the paradox becomes apparent: to sleep, one must engage in the act of forgetting, a faculty that Funes no longer possesses.</p>

<p>Finally, Borges concludes the narrative with a brief yet profound observation on the intricacies of thought, something that eludes Funes in his new state.</p>

<blockquote>
  <p>With no effort, he had learned English, French, Portuguese and Latin. I suspect, however, that he was not very capable of thought. To think is to forget differences, generalize, make abstractions. In the teeming world of Funes, there were only details, almost immediate in their presence.</p>
</blockquote>

<p>In short, as Borges usually does in many of his stories, he starts with a simple premise: <em>the life of a man who can remember everything</em> and he geniously arrives at a profound conclusion: <em>To think, we must forget</em>.</p>

<h2 id="solomon-shereshevskii">Solomon Shereshevskii</h2>

<figure>
  <img src="https://s3.abcstatics.com/Media/201508/02/Shereshevski--644x362.jpg" alt="HMBrain" loading="lazy" />
  <figcaption>Figure 2: Solomon Shereshevskii</figcaption>
</figure>

<p>The subsequent section, now exploring neuroscience and real experiments, draws heavily from Rodrigo Quian Quiroga’s book “Borges and memory” [1], which I also highly recommend.</p>

<p>Solomon Shereshevskii, a journalist at a Moscow newspaper renowned for his extraordinary memory, started a remarkable research journey after a co-worker suggested he consult with psychologist Alexander Romanovich Luria. In their initial meeting, Shereshevskii astonished Luria with his prodigious memory, effortlessly reproducing sequences of up to 70 random letters or numbers. Moreover he was able to recite the sequences backwards, irrespective of whether they consisted of sounds, numbers, or words; Shereshevskii simply visualized them in his memory and could effortlessly recall them.</p>

<p>On another experiment, Luria asked him to recall a random mathematical formula:</p>

\[N * \sqrt{d^2 * \frac{85}{vx}} * \sqrt[3]{\frac{267^2 * 86x}{n^2v * \pi264}}n^2b = sv\frac{1624}{32^2}\]

<p>Not only did he repeat the formula without error, but he was able to reconstruct it 15 years later (not knowing that Luria would ask him again).</p>

<p>Shereshevskii’s extraordinary memory was based on a strong synaesthesia. That is, mixing the perceptions of different senses; for example, associating numbers with colours. This can be seen by reading the notes that Luria took of his conversations:</p>

<blockquote>
  <p>I recognise a word not only by the images it evokes, but also by a whole complex of sensations that the image triggers. It’s difficult to explain…, it’s not a question of vision or hearing, it’s a general sense I have. I usually feel the taste and the weight of a word and I don’t need to make an effort to remember it: it seems that the word appears by itself.</p>
</blockquote>

<p>Finally, after Luria’s failure to measure Shereshevskii’s memory total capacity, he investigated another possibility, very aligned with Borges’s intuition: Was Shereshevskii capable of forgetting?</p>

<p>It resulted that forgetting was a task of Herculean proportions for him. As a consequence, Shereshevskii encountered considerable challenges in abstract thinking and reading comprehension. Despite his capacity to memorize entire pages of a book, he struggled with isolating the content to grasp its underlying meaning. Unlike the typical process where individuals extract and remember key facts to follow a narrative, Shereshevskii found himself inundated with a miriad of associations after reading just four lines.</p>

<p>As he describes himself below, he also had great trouble recognising voices and faces, another symptom of his inability to abstract concepts and one of the curses of his condition.</p>

<blockquote>
  <p>I became so interested in his voice [referring to the voice of filmmaker Sergei Eisenstein] that I couldn’t follow what he was saying…. But there are people whose voices are constantly changing. I often have trouble recognising someone’s voice on the phone, and it’s not because of a bad connection. It’s because the person is someone who changes their voice twenty or thirty times during the course of a day. People don’t notice this, but I do.
A person’s expression depends on their mood and the circumstances in which they find themselves. People’s faces are constantly changing; it is these different forms of expression that confuse me and make it so difficult to remember faces.</p>
</blockquote>

<p>Following this examination, fascinating similarities emerge between Shereshevskii and Funes. Actually, it is surprising how well Borges predicted the impact that an enormous memory capacity could have on a human being, relying purely on intuition. I find particularly interesting the example of the faces, since how Shereshevskii describes it relates quite well to Funes’s inability to generalise the concept of dog, as Borges describes.</p>

<h2 id="henry-molaison">Henry Molaison</h2>

<p>Henry Molaison (1926-2008) began experiencing epileptic seizures at age 10. His condition worsened during his teenage years, becoming resistant to even the strongest medications. By age 27, the severity of his seizures forced him to leave his job at a motor assembly plant.</p>

<p>At this point, neurosurgeon William Scoville proposed an experimental surgery as a last resort. Scoville had previously performed similar procedures on psychotic patients, who showed improvement after the removal of portions of their frontal lobe. With Molaison’s consent, Scoville surgically removed the hippocampus and surrounding areas from both hemispheres of his brain.</p>

<p>The surgery succeeded in controlling Molaison’s epileptic seizures, but it also radically changed both his life and the history of neuroscience, revolutionizing our understanding of memory.</p>

<p>Molaison appeared to recover normally from the surgery until a devastating side effect became apparent. He could no longer recognize the hospital staff, find his way to the bathroom, or remember daily events. In essence, Molaison had lost the ability to form new memories, a condition known as anterograde amnesia (not retrograde amnesia, which refers to the loss of memories formed before the onset of amnesia).</p>

<p>He couldn’t remember where things were in his house, would solve the same puzzles repeatedly without any learning, and read the same magazines over and over, never recognizing their content. Molaison lived in a constant past and a ephemeral present, which inevitably, was continuously vanishing.</p>

<p>However, Molaison could recall events from before his surgery. His language abilities remained intact, he could maintain conversations without difficulty and understand jokes. These capabilities require both reasoning and short-term memory, demonstrating that these cognitive functions were preserved.</p>

<p>When Molaison saw himself in mirrors or recent photographs, he couldn’t recognize himself, as his mental self-image remained frozen at age 27, when he had the surgery. He often described a persistent feeling of being lost. When we sleep in a hotel, we sometimes experience a brief moment of confusion, until our memory kicks in and provides the context to explain why we are there. However, Molaison lived perpetually in this state of confusion.</p>

<p>He described his life as constantly “waking up from a dream.” There’s a curious antithesis here with Funes the Memorious, which Borges described as a metaphor for insomnia, where all details and memories remain permanently, oppressively present.</p>

<p>Thanks to Molaison’s case and subsequent studies, we now understand the crucial role of the hippocampus in forming new memories. However, it’s important to note that the hippocampus doesn’t actually store memories itself. Instead, it acts as a processor, compiling experiences into memories and storaging them in other parts of the brain. This explains why Molaison could recall pre-surgery memories, they were already stored in his brain, but couldn’t form new ones. Without his hippocampus, he lacked the neural mechanism necessary to process new experiences into lasting memories for posterior storage.</p>

<figure class="narrow">
  <img src="https://www.brainfacts.org/-/media/Brainfacts2/In-the-Lab/Tools-and-Techniques/Article-Images/PatientHMBrain---082718.png" alt="HMBrain" loading="lazy" />
  <figcaption>Figure 3: Henry Molaison brain compared to an ordinary brain.</figcaption>
</figure>

<h2 id="hippocampus-and-concept-cells">Hippocampus and Concept Cells</h2>

<p>As Borges suggest, in order to think, we need to abstract concepts and relate them, we need to forget some information. This involves focusing on the essential aspects while disregarding minor details, essentially operating at a more fundamental level of understanding.</p>

<p>This lead us to a very intriguing and relevant discovery done by Quiroga [2]. He found that the brain contains a subset of multimodal neurons, which respond to clusters of abstract concepts centered around a common, high-level theme rather than specific visual features. This discovery originated from studies on epileptic patients, where researchers used intracranial electrodes to observe how neurons reacted to different conceptual images presented in various formats. For instance, in the image below, we see a neuron in the entorhinal cortex, the primary interface between the hippocampus and the neocortex, that fires only when the patient is presented with the <strong>concept</strong> of “Luke Skywalker”. This response occurs regardless of whether the concept is conveyed through an image, text, or audio. Interestingly, the same neuron also fires in response to the concept of Yoda.</p>

<p>Later, in his opinion paper Quiroga called them “concept cells” or “concept neurons” [4].</p>

<figure>
  <img src="/assets/images/luke.jpg" alt="Luke" loading="lazy" />
  <figcaption>Figure 4: An specific neuron firing when the concept "Luke Skywalker" is present.</figcaption>
</figure>

<p>This demonstrates that the concept neurons in the hippocampus (and surrounding areas) encode representations at such a high level of abstraction that they can be triggered by different types of stimuli. Furthermore, Quiroga showed that these abstract representations can form rapidly. In one experiment, he and his team presented photos and text of themselves to patients who had only known them for two days. Remarkably, the patients already had neurons that fired in response to their photos and names.</p>

<p>Nevertheless, using a single neuron to encode each concept would be inefficient and would fail to capture the relationships between concepts. Instead, as Quiroga suggests in his opinion paper, overlapping representations may be key to learning associations.</p>

<p>Imagine a cell assembly, a group of neurons, that encodes the concept of “Luke Skywalker”. Some neurons in this assembly also respond to Yoda, while others also fire in response to Darth Vader. When the “Luke Skywalker cell assembly” is activated (for example, when seeing his picture), it can trigger associated concepts like Yoda or Darth Vader through these overlapping neural patterns. This happens because neurons that participate in multiple concept representations act as bridges, allowing pattern completion to activate related concepts.</p>

<p>Then, it’s not that there’s one neuron that encodes “Luke Skywalker” uniquely, but rather a specific combination of unique and overlapping neurons that creates a distinct neural signature for Luke Skywalker. This distributed representation allows for both specificity (unique identification) and associative connections (linking to related concepts). Moreover, these partially overlapping representations could form the neural basis for how we encode and learn associations and episodic memories.</p>

<figure class="narrow">
  <img src="/assets/images/graph-luke.png" alt="Luke-graph" loading="lazy" />
  <figcaption>Figure 5: Cell assembly for Star Wars characters</figcaption>
</figure>

<p>In short, the same neuron can fire for different but related concepts (like Luke Skywalker and Yoda), and there are very few of these neurons, each responding to only a few specific concepts. This is called a sparse representation, and it is also widely used in machine learning, for example in sparse autoencoders that encode information using sparse vectors [3] (vectors where most values are 0 and only a few have non-zero values).</p>

<p>When you see a photo of Luke Skywalker in a magazine, the initial visual recognition occurs in the inferior temporal gyrus; you don’t need the Luke Skywalker concept neuron for this. However, this concept neuron is crucial for transforming that visual perception into a memory, allowing you to later recall seeing Luke Skywalker’s photo in the magazine. These concept neurons represent the abstract concepts we use to form and store memories. Their role in memory formation makes sense because we typically remember general concepts (people, events, places) rather than exact details.</p>

<p>But this post is about Funes, memory and deep learning, right? So how does all this information connect to Funes?</p>

<p>Funes represents the extreme example of a person without the ability to abstract. Quiroga hypothesizes that without concept neurons, we would be like Funes, unable to abstract or categorize, only capable of remembering precise, uncompressed details of everything we experience, but paradoxically unable to truly think. This highlights a fundamental insight: thinking is the process of abstracting, associating concepts, and creating relationships between them. These conceptual associations then help strengthen our memories and allow us to recall them later.</p>

<h2 id="multimodal-neurons-in-machine-learning">Multimodal Neurons in Machine Learning</h2>

<p>Now, we will connect this crucial idea of abstraction to deep learning. Actually, there is already a very beatiful paper that is inspired by multimodal neuros as discovered by Quiroga. The paper is called <a href="https://distill.pub/2021/multimodal-neurons/">“Multimodal neurons in artificial neural networks”</a> from OpenAI, in particular, from intepretability researches I really admire such as Chris Olah (he has a fantastic <a href="https://colah.github.io/">blog</a> in which you can learn a lot about machine learning).</p>

<p>Let’s analyze it a bit. Authors discovered that individual neurons in CLIP [5] can recognize abstract concepts across different forms, from photographs to drawings to written words, suggesting that both artificial and human brains might share a fundamental approach to understanding the world by organizing information into high-level semantic concepts.</p>

<p>But how do they analyze CLIP’s individual neurons? They use two main approaches to understand what individual neurons are actually doing, much like Quiroga, who employs various tests to study brain function.</p>

<p>The first method, feature visualization, generates images by using gradient ascent optimization to find input patterns that maximally activate specific neurons. Starting with random noise, the algorithm gradually tweaks and refines the pixels until it creates an image that strongly excites the target neuron, similar to playing a game of “warmer/colder” where each adjustment is guided by how strongly the neuron responds. The resulting generated images, while often abstract, provide direct evidence of the features and patterns each neuron has learned to detect during training. I strongly recommend reading (again) Chris Olah’s brilliant post on <a href="https://research.google/blog/inceptionism-going-deeper-into-neural-networks/">Inceptionism</a>. This method, along with the insights it provides into neural networks, is truly beautiful.</p>

<p>The second approach is more straightforward: researchers feed dataset examples through CLIP and keep track of which examples make each neuron fire most strongly. By examining these “greatest hits” for each neuron, patterns emerge.</p>

<figure>
  <img src="/assets/images/multimodal-neuron-example.png" alt="example-multimodal-neurons" loading="lazy" />
  <figcaption>Figure 6: Biological neurons, such as the famed Halle Berry neuron discovered by Quiroga, do not fire for visual clusters of ideas, but semantic clusters. At the highest layers of CLIP, similar semantic invariance is found.</figcaption>
</figure>

<p>Similar to the neurons discovered by Quiroga, researchers found that CLIP neurons in ResNet50 are “multi-faceted” [6]. This means that a single neuron might respond strongly to both photos and drawings of the same concept, or even to written words representing that concept. For instance, one neuron might activate in response to a photo of Spider-Man, a cartoon Spider-Man, or even the words “Spider” or “Spider-Man”, suggesting that it has learned to recognize the concept of “Spider-Man” across various forms of representation.</p>

<p>But this is not everything! The OpenAI team made another fascinating discovery about how CLIP’s multimodal neurons work together. They used a sparse linear probe, basically a regularized linear layer that maps neural activations to specific outputs while enforcing most of its weights to be zero [7]. Here the sparsity is crucial! By keeping only the strongest connections, it reveals which neurons are truly important for recognizing specific concepts while filtering out spurious correlations. Using this technique, researchers could analyze CLIP’s decision-making process when it classifies both images and text.</p>

<p>Then, they found that CLIP stores concepts in its neurons similarly to how Word2vec handles words (when doing text clasification): in an almost linear, straightforward way. This means these concepts follow a simple algebra that behaves similarly to a linear probe.</p>

<p>For example, when CLIP processes the word “surprised”, it doesn’t just register basic shock, it specifically associates surprise with positive emotions like delight or wonder. Similarly, when processing the word “intimate”, CLIP connects it with gentle smiles and romantic symbols like hearts, while explicitly excluding concepts of illness or suffering. This reveals an important limitation in CLIP’s understanding: it misses crucial nuances of human experience. For instance, its simplified view of intimacy fails to capture profound moments like caring for sick loved ones. Thus, CLIP is oversimplifying complex human experiences to prioritize clear representation of concepts within its training data.</p>

<figure>
  <img src="/assets/images/neuron-algebra.png" alt="neuron-algebra" loading="lazy" />
  <figcaption>Figure 7: Some examples of the algebraic relation between neurons</figcaption>
</figure>

<p>While the neuron-level analysis revealed many concepts CLIP understands, it did not tell the complete story of the model’s representation capabilities. An illustrative example is CLIP’s accurate geolocation ability, demonstrated by its creators at OpenAI. The model can identify locations with surprising precision, down to specific neighborhoods within cities. In the experiments with personal photos, CLIP consistently recognized images taken in San Francisco, sometimes even identifying specific districts like Twin Peaks.</p>

<p>However, this geographic knowledge isn’t stored in the way one might expect. Despite extensive searching, the team did not found any single “San Francisco neuron”, nor does the concept seem to be composed of simpler elements like “California” plus “city”. This suggests that some of CLIP’s more sophisticated knowledge is encoded in more complex ways, perhaps as vectors, directions in the embedding space, or other geometric structures we don’t yet fully understand.</p>

<p>This discovery actually makes sense, right? After all, neural networks have to deal with way more concepts than they have neurons, so it’s natural that some concepts won’t map cleanly to single neurons. When I was researching about concept cells in my internship, one of my main concerns was how incredibly inefficient would be for both artificial and biological systems to use a single neuron to encode just one concept. This problem could be related to one of the most fascinating concepts in Artificial Neural Networks (ANNs).</p>

<h2 id="polysemanticity-and-superposition-in-artificial-neural-networks">Polysemanticity and Superposition in Artificial Neural Networks</h2>

<p>Similarly to real concept cells in the brain, the previous research demonstrated that multiple models had a single dedicated neuron encoding the concept of “Donald Trump”. This concept appeared so frequent that the ANNs consider it efficient to assign a single neuron exclusively to represent it.</p>

<p>To interpret ANNs effectively, it would be ideal if each individual neuron encoded a single human-interpretable concept. However, in reality, neurons can be either “monosemantic”, meaning they respond to a single feature like “Donald Trump”, or “polysemantic”, meaning they respond to many unrelated features [8,9].</p>

<figure>
  <img src="/assets/images/polysemantic-neuron.png" alt="polysemantic-neuron" loading="lazy" />
  <figcaption>Figure 8: Polysemantic neuron which responds to cat faces, fronts of cars, and cat legs</figcaption>
</figure>

<p>The reasons behind this phenomenon are not yet fully understood, but several hypotheses attempt to explain it. One of the most interesting is the Superposition hypothesis, proposed by well-known interpretability researchers at Anthropic [10].</p>

<p>(Now, I will use <em>concept</em> and <em>feature</em> interchangeably to maintain consistency with the earlier narrative. However, it’s important to note that <em>concepts</em> are typically human-interpretable, while <em>features</em> are properties of the input that a sufficiently large neural network reliably assigns a neuron to represent. In contrast to concepts, <em>features</em> don’t need to be human-interpretable. They simply need to be elements of the input data.)</p>

<p>They use toy models, small ReLU networks trained on synthetic data with sparse input features, to investigate how and when models exhibit superposition. That is, when they represent more features than they have dimensions.</p>

<p>Consider a simplified model that takes five features of different importance levels and embeds them into a two-dimensional space, using a ReLU activation function, while varying feature sparsity. In the dense case (where features have meaningful values most of the time), the model behaves similarly to Principal Component Analysis, learning to represent only the two most significant features as an orthogonal basis while discarding the remaining three.</p>

<p>However, when feature sparsity is introduced (features are frequently zero or inactive), the model demonstrates superposition: it can encode additional features by allowing controlled interference between them, and more surprisingly, can perform computational operations while maintaining this superposed state.</p>

<figure>
  <img src="/assets/images/sparsity.png" alt="polysemantic-neuron" loading="lazy" />
  <figcaption>Figure 9: As sparsity increases, the model fits more features than it has dimensions.</figcaption>
</figure>

<p>This observation leads to a super interesting interpretation of neural network behavior: the networks we train in practice may be effectively operating as compressed simulations of much larger, highly sparse networks. That is, our trained models might be implementing the same computational patterns and representing the same features as a hypothetical larger network would, but in a more compact form where multiple features and operations coexist in the same dimensional space through controlled interference patterns.</p>

<figure>
  <img src="/assets/images/projected-network.png" alt="projected-neuron" loading="lazy" />
  <figcaption>Figure 10: ANNs could be simulating bigger and more sparse ANNs.</figcaption>
</figure>

<p>But why is this happening?</p>

<p>As we have seen before, the key lies in a fundamental truth about our world: sparsity. Think about looking at a photo: at any given spot, you’re unlikely to find a dog’s head, a horizontal line, or a perfect curve. In human language, most words aren’t about Martin Luther King or about Science Fiction literature. This sparsity principle, combined with two crucial mathematical foundations, enables neural networks to achieve efficient information encoding.</p>

<p>The first mathematical fact is the Johnson-Lindenstrauss lemma, which demonstrates that while an <em>n</em>-dimensional space can only contain <em>n</em> truly orthogonal vectors, it can fit <em>exp(n)</em> “almost orthogonal” vectors. The second is compressed sensing [11], which shows that <strong>sparse</strong> vectors can be accurately reconstructed even after projection into lower-dimensional spaces, something impossible with dense vectors.</p>

<p>Neural networks exploit these properties by representing concepts as almost-orthogonal directions in the vector space of neuron outputs. Since the features are only almost-orthogonal, one feature activating looks like other features slightly activating. Tolerating this “noise” or “interference” comes at a cost. But for neural networks with highly sparse features, this cost may be outweighed by the benefit of being able to represent more features. The network further mitigates this cost through the non-linear activation functions that filter out low-level noise. This elegant trade-off allows neural networks to represent exponentially more features than their dimensional space would traditionally allow, with the sparse nature of concepts ensuring the benefits substantially outweigh the interference costs.</p>

<p>One of the most fascinating aspects of superposition is how it emerges during neural network training through distinct phase transitions. When training a model, each feature can reach one of three possible states: (1) it may remain unlearned, (2) become encoded in superposition with other features, or (3) acquire its own dedicated dimension in the representation space. These transitions don’t occur gradually but rather exhibit sharp, discontinuous changes characteristic of phase transitions in physical systems.</p>

<p>The conditions ruling these transitions depend on a complex interplay between feature sparsity and relative importance. While sparsity is a prerequisite for superposition, the relationship isn’t linear, it interacts with feature importance in determining the final representational state. This phase-change behavior appears in both empirical observations and theoretical models, where the optimal weight configurations show abrupt, discontinuous shifts in both magnitude and degree of superposition.</p>

<figure>
  <img src="/assets/images/phase-change.png" alt="phase-change-neuron" loading="lazy" />
  <figcaption>Figure 11: Phase change in ANN training.</figcaption>
</figure>

<p>But this is not everything! After deeper exploration, features seem to organize themselves into geometric structures such as pentagons and tetrahedrons!</p>

<p>When neural networks learn to represent features, they don’t always give each feature its own complete dimension. Instead, features can share space in fascinating ways, occupying what they call “fractional dimensions”. I don’t want to make this post mathematically heavy, so instead of copying the formula I will try to describe its meaning.</p>

<p>The dimensionality measure tells us two crucial things about how a feature is represented in the network: How strongly it’s encoded versus how much it has to share its space with other features. If a feature has a strong presence in the dimension but doesn’t share space with many other features, it gets a higher dimensionality score. Conversely, if it’s strongly represented but heavily overlaps with many other features, its effective dimensionality will be lower because it’s sharing its space. Then, this ratio gives us a measure of how much of a dimension each feature truly “owns” in the network’s representation space.</p>

<p>What’s fascinating is that these fractional dimensions aren’t random. Features tend to organize themselves into specific, stable patterns where they share space in precise ways. For example, when two features pair up perfectly, each gets exactly half a dimension (<em>Dimensionality=1/2</em>). What’s even more interesting is that when we add up all these fractional dimensions across features, they typically sum to the total number of dimensions available. The network is trying its best to efficiently use the available space.</p>

<p>This discovery reveals that superposition isn’t just one thing. It’s actually a collection of distinct states, each with its own geometric pattern of how features share space. As the authors explain, it’s similar to how ice isn’t just “frozen water” but can form different crystal structures depending on conditions. In a somewhat similar way, neural network features appear to exhibit multiple phases within the broader concept of “superposition”.</p>

<figure>
  <img src="/assets/images/superposition-geometry.png" alt="phase-change-neuron" loading="lazy" />
  <figcaption>Figure 12: The geometry of superposition.</figcaption>
</figure>

<p>Finally, to close the circle, we can relate the Superposition hypothesis to biological neurons. A key contribution of this work is introducing feature co-occurrence probability as a central concept in neural encoding. This idea reveals that maximally-dense distributed codes work best when items never need to be represented simultaneously, allowing for extreme superposition. For instance, in a motor task where a person reaches for spatially separated targets, only one target needs to be encoded at a time. However, when features must be represented together, like visual neurons encoding white noise (which contains all spatial frequencies), a code with less or no superposition works better to avoid interference. These insights agree with existing neuroscience hypotheses [12] about how the brain might use highly compressed representations for long-range communication between areas while maintaining sparser representations for local computation.</p>

<p>The paper is quite extensive but incredibly fascinating. If you’re interested, you can read it <a href="https://transformer-circuits.pub/2022/toy_model/index.html#phase-change">here</a>. Also, kudos to the authors for the excellent images throughout!</p>

<p><em>Note - 20/11/2024: Chris Olah, the lead researcher behind this investigation, has participated in a wonderful <a href="https://www.youtube.com/watch?v=ugvHCXCOmm4&amp;t=6122s">podcast with Lex Fridman</a>, where he discusses the superposition hypothesis and the interpretability of artificial neural networks in general. Highly recommended!</em></p>

<h2 id="conclusion">Conclusion</h2>

<p>In this blog, we explored the connection between the fictional character Funes the Memorious, concept encoding in biological neural networks, and how concepts might be represented in ANNs. For ANNs, the key to concept encoding lies in the sparsity of concepts in reality. Through gradient descent, these networks exploit this sparsity by assigning neurons to represent multiple concepts, learning to manage the resulting interferences, and thereby increasing the network’s information storage efficiency.</p>

<p>This suggests a beautiful new perspective on Artificial Neural Networks: they might be a projection or simulation of a larger, more sparse network.</p>

<p>Additionally, the fact that certain concepts consistently get a dedicated neuron in each model, based on their frequency in the data, similar to how our does, it’s a fascinating insight. It suggests that both ANNs using gradient descent and biological networks converge on the same optimal way of representing information. This hints at the existence of a natural, universal optimal way for encoding information in networks, regardless of whether they are artificial or biological. Of course, more research is needed, but this is incredibly exciting!</p>

<p>That’s all for today. Keep learning, and keep forgetting! Don’t be like Funes!</p>

<h2 id="references">References</h2>

<p>[1] Quiroga, R. Q. (2012). Borges and memory: Encounters with the human brain. Mit Press.</p>

<p>[2] Quiroga, R. Q., Reddy, L., Kreiman, G., Koch, C., &amp; Fried, I. (2005). Invariant visual representation by single neurons in the human brain. Nature, 435(7045), 1102–1107.</p>

<p>[3] Ng, A. (2011). Sparse autoencoder. CS294A Lecture notes, 72(2011), 1-19.</p>

<p>[4] Quiroga, R. Q. (2012). Concept cells: the building blocks of declarative memory functions. Nature Reviews Neuroscience, 13(8), 587–597.</p>

<p>[5] Radford, A., Kim, J. W., Hallacy, C., Ramesh, A., Goh, G., Agarwal, S., … &amp; Sutskever, I. (2021, July). Learning transferable visual models from natural language supervision. In International conference on machine learning (pp. 8748-8763). PMLR.</p>

<p>[6] Nguyen, A., Yosinski, J., &amp; Clune, J. (2016). Multifaceted feature visualization: Uncovering the different types of features learned by each neuron in deep neural networks. arXiv preprint arXiv:1602.03616.</p>

<p>[7] Radford, A., Jozefowicz, R., &amp; Sutskever, I. (2017). Learning to generate reviews and discovering sentiment. arXiv preprint arXiv:1704.01444.</p>

<p>[8] Olah, C., Cammarata, N., Schubert, L., Goh, G., Petrov, M., &amp; Carter, S. (2020). Zoom in: An introduction to circuits. Distill, 5(3), e00024-001.</p>

<p>[9] Olah, C., Mordvintsev, A., &amp; Schubert, L. (2017). Feature visualization. Distill, 2(11), e7.</p>

<p>[10] Elhage, N., Hume, T., Olsson, C., Schiefer, N., Henighan, T., Kravec, S., … &amp; Olah, C. (2022). Toy models of superposition. arXiv preprint arXiv:2209.10652.</p>

<p>[11] Donoho, D. L. (2006). Compressed sensing. IEEE Transactions on information theory, 52(4), 1289-1306.</p>

<p>[12] Ganguli, S., &amp; Sompolinsky, H. (2012). Compressed sensing, sparsity, and dimensionality in neuronal information processing and data analysis. Annual review of neuroscience, 35(1), 485-508.</p>]]></content><author><name>Alejandro Hernandez Artiles</name></author><summary type="html"><![CDATA[Figure 1: June 7, 1942. Page three of the Arts &amp; Letters section of La Nación, where Borges's “Funes the Memorious", was first published.]]></summary></entry></feed>