<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Gasper Begus on Medium]]></title>
        <description><![CDATA[Stories by Gasper Begus on Medium]]></description>
        <link>https://medium.com/@begus.gasper?source=rss-5f79bfc6de09------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4OIW8OGfytPIZBQu37zmFg.png</url>
            <title>Stories by Gasper Begus on Medium</title>
            <link>https://medium.com/@begus.gasper?source=rss-5f79bfc6de09------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 11:54:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@begus.gasper/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[One surprising method for AI interpretability]]></title>
            <link>https://medium.com/@begus.gasper/one-surprising-method-for-ai-interpretability-1e915dc8b47e?source=rss-5f79bfc6de09------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e915dc8b47e</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[interpretability]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Gasper Begus]]></dc:creator>
            <pubDate>Fri, 03 Nov 2023 16:42:19 GMT</pubDate>
            <atom:updated>2023-11-03T16:42:19.625Z</atom:updated>
            <content:encoded><![CDATA[<p>Understanding how AI learns is not an easy task. When faced with difficult tasks, we often resort to complex methods to find solutions, which I actively try to avoid in my scientific work (e.g., I almost never use PCA). Oftentimes, though, solutions are simple and straightforward. This post describes an interpretability technique that is simple, effective, and, I strongly suspect, applicable to other architectures. The post thus serves both as a description of the method and as a call for researchers to apply the technique to their own models.</p><p>The primary objective of most current AI interpretability research is to ascertain a causal relationship between individual units in deep neural networks and distinct, meaningful features in the output. This blog post discusses one method of uncovering such relationships that I call <em>disentanglement with extreme values</em>.</p><p>My first venture into the world of interpretability was when I wanted to understand how unsupervised generative AI can learn sounds of human language. Humans acquire language early in life, absorbing the sounds of speech that surround us. These sounds are a continuous, measurable physical property, yet we convert them into mental representational units. In essence, we transform the continuous physical world into discrete representational units within our brains. Consider the word ‘spit,’ which comprises a sequence of four sounds — [s], [p], [ɪ], and [t] — each contributing to its distinct meaning. I wanted to know if AI can represent continuous space with discrete units in a similar way as humans do. After all, we used to refer to AI as <em>representation learning</em>.</p><p>So I trained a Generative Adversarial Network (GAN) on some speech sounds. GANs are a very interesting architecture, but the main relevance here is that the Generator network takes a small vector of uniformly distributed variables <em>z</em> and transforms them into data (pictures or sounds).</p><p>In this <a href="https://doi.org/10.3389/frai.2020.00044">paper</a>, I discovered that a few of the 100 latent variables <em>z</em> correlate with the sound [s] in the generated output. For instance, LASSO logistic regression analysis showed that negative values of the eleventh latent variable (<em>z</em>11) are associated with the presence of [s], while positive values indicate its absence.”</p><p>This was nice, but correlations are correlations, and I wanted to dig deeper to find a causal relationship. To do this, I specifically manipulated the eleventh latent variable, setting <em>z</em>11 to -1 during inference, and generated a large dataset to observe any effects. This manipulation resulted in a slight increase in the generation of outputs containing the [s] sound. But this still did not fully satisfy me.</p><p>Upon further analysis, I discovered that the relationship between <em>z</em>11 and the likelihood of [s] appearing in the output was linear, even though the data was initially analyzed using a non-linear regression model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ve3cBPuesqZB_lQJ.jpeg" /></figure><p>Given the linear relationship, it became possible to hypothesize about the outcomes beyond the training range, such as for values more negative than -1. While the Generator was trained with <em>z</em> variables constrained to the interval (-1, 1), there are no such limits during generation; any value for the latent variables can be applied. This is when the fun part begins. I went all in and started generating outputs with values of <em>z</em>11 set to -25. The results were great 96/100 generated outputs contained an [s].</p><p>Why?</p><p>Latent space is a complex space with a lot of interactions between individual variables that we don’t understand. But setting a single unit to extreme values overrides those low-level interactions and gives you the underlying value of each variable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0yJuSyZkFiXnHk0X.jpeg" /></figure><p>Even better, by interpolating from these extreme values back to 0, it’s possible to observe a causal relationship between the specific values of a single latent variable and the loudness of [s] in the output (until it disappears from the output):</p><p><a href="https://www.youtube.com/watch?v=AMsoLl5p7nA">https://www.youtube.com/watch?v=AMsoLl5p7nA</a></p><p>This technique can give you underlying values not only for sounds, but also <a href="https://doi.org/10.1016/j.neunet.2021.03.017">words</a> and various other <a href="https://doi.org/10.1162/tacl_a_00421">processes in language</a>.</p><p>With Andrej Leban and Shane Gero, we applied the <a href="https://arxiv.org/abs/2303.10931"><em>Causal Disentanglement with Discrete Values (CDEV)</em></a> technique to try to understand what is meaningful in the sperm whale communication system. Drawing on principles from causal inference, we demonstrated that there exists a causal relationship between individual units in GANs and various meaningful properties in sperm whale communication system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CUrkeDo6gv-cJVId.jpeg" /></figure><p>In sum, the <em>disentanglement with extreme values </em>technique is a pretty simple method for causally uncovering underlying values of single units in deep neural networks. I have a suspicion that it would transfer well to other architectures. So if you’re working with deep learning and you’ve been trying to find a causal relationship between individual units and something meaningful in your data, it might be worth trying to apply this technique and see what happens.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e915dc8b47e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linguistics is an unsung hero: And how I got from linguistics to machine learning]]></title>
            <link>https://medium.com/@begus.gasper/linguistics-is-an-unsung-hero-and-how-i-got-from-linguistics-to-machine-learning-3f612f248bc3?source=rss-5f79bfc6de09------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f612f248bc3</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[science]]></category>
            <category><![CDATA[language]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[humanity]]></category>
            <dc:creator><![CDATA[Gasper Begus]]></dc:creator>
            <pubDate>Thu, 28 Sep 2023 19:02:14 GMT</pubDate>
            <atom:updated>2023-09-28T19:02:14.195Z</atom:updated>
            <content:encoded><![CDATA[<p>I got into machine learning in a very unusual way. In my undergraduate years, I studied comparative Indo-European linguistics. Comparative linguistics is one of the most intriguing fields that reverse engineers how the proto-language of Greek, Latin, Sanskrit, and many other languages sounded thousands of years ago. Up until the 20th century, most linguists as well as many prominent polymaths of the time, such as the Grimm brothers and Hermann Grassmann, were interested in reconstructing this language called Proto-Indo-European.</p><p>I got so fascinated by Proto-Indo-European that I spent my undergraduate studies majoring in comparative Indo-European linguistics. To be able to conduct research in comparative linguistics, one has to master old Indo-European languages first. At the University of Ljubljana, Slovenia, where I did my undergraduate studies, I studied Greek, Sanskrit, Old Church Slavic, and Hittite. In fact, I spent 10 semesters studying Hittite during my undergraduate years. I am pretty sure that no other program offers so much coursework in Hittite. At the end of the training, we could read and write in Hittite Cuneiform. In order to gain knowledge of other Indo-European languages, I studied at Leiden University, the University of Vienna, the University of Pavia, Free University of Berlin, among others. There, I learnt Old Irish, Hieroglyphic and Cuneiform Luwian, Old Persian, Avestan, Tocharian, and other fascinating languages and literatures that very few people study these days.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7FKVIBb--7sm4wdH.jpeg" /><figcaption>A Tocharian A inscription.</figcaption></figure><p>My linguistic education fully recapitulates the development of linguistic science. Modern linguistics was born out of the desire to reconstruct the Indo-European proto language. When colonialists became familiar with India and found Sanskrit, they were shocked by the fact that the most sacred language of India is strikingly similar to what they believed was the most amazing language of all times — Ancient Greek. They didn’t know what to make of it, so they realized that Greek, Latin, and Sanskrit all go back to a common mother language. Until the 20th century, most of linguistic science was preoccupied by figuring out how Proto-Indo-European, the language of the ancestors of Homer, Virgil, and Rigvedic poets, sounded like.</p><p>Ferdinand de Saussure was the first to shift this perspective: instead of focusing exclusively on the history of language, he argued that studying language in its current state is equally important. Speakers of English, for example, have no awareness of how Proto-Indo-European sounded, so according to de Saussure, we need to build an understanding of the internal workings of language in human individuals, here and now. While this line of thought was losing popularity in the US, Ljubljana remained heavily influenced by structuralism, in part due to the influence of the Prague linguistic circle and others. This is why I got an extensive training in structuralism as part of my double major degree.</p><p>De Saussure’s structuralism was heavily criticized by another important figure in the history of linguistics, Noam Chomsky who started a new school of thought within linguistics known as the generative grammar. Boston, where I continued my education as a Ph.D. student at Harvard, is one of the most generative towns in the world. After all, Chomsky was a long-time professor at MIT. By moving from Ljubljana to Boston, I necessarily got trained in this new approach to language.</p><p>Linguistics is constantly evolving, just like the object of its study — language. Linguistics now encompasses fields as diverse as sociology, philosophy, cognitive science, and machine learning, to name just a few. As a faculty member first at the University of Washington and now at UC Berkeley, I focus on using language to better understand how artificial intelligence learns. Humans have been studying language for centuries, amassing a rich understanding of it. Language is the perfect medium to untangle the complex inner workings of current AI models. As the Linguistics Lead of Project CETI, I aim to demonstrate that integrating linguistics and AI not only deepens our understanding of human language, but also sheds light on the communication systems of animals.</p><p>My linguistic education gave me two crucial skills that I now apply in my AI research. First, I got used to being almost obsessed with details. Reverse engineering a proto-language demands meticulous attention to detail, perhaps even more so than other fields. In today’s world of big data, data points that diverge from global trends might be discarded. However, in reconstructing a proto-language, these divergent data points are invaluable. For example, the English plural form of <em>ox</em> — <em>oxen</em> — gives us a window into the past stages of English language that are lost in a more common way to form plurals (by adding an -<em>s</em>). Of all my papers, I’m still most proud of the one in which I propose a rule in <a href="https://doi.org/10.7817/jameroriesoci.135.3.541">Vedic Sanskrit poetic meter</a>. It has nothing to do with machine learning, but uncovers a detail that was overlooked for hundreds of years.</p><p>Secondly, linguistics is an unsung hero among sciences. It has initiated several groundbreaking trends in global history, yet it seldom receives the acknowledgment it deserves. The idea that similarities in Greek, Latin, and Sanskrit can only be explained by a proto-language that no longer exists predates Darwin’s evolutionary theory by several years. In fact, Darwin used examples from the proto-language to support his evolutionary theories. If languages like Greek and Sanskrit could have evolved from a common ancestor, why not species? A few decades later, structuralism, championed by De Saussure, profoundly influenced philosophy and comparative literature, even birthing new fields like semiotics. It had a profound impact on the culture and philosophy of the time.</p><p>Because my education followed the evolution of the field of linguistics so closely, it gave me a unique insight into how ideas from the humanities can influence the world of natural science and society in general. In other words, linguistics is proof that a relatively small field obsessed with details can have global impacts on our understanding of humanity.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f612f248bc3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Artificial and Biological Intelligence: Humans, Animals, and Machines]]></title>
            <link>https://medium.com/@begus.gasper/artificial-and-biological-intelligence-humans-animals-and-machines-142bc3c4b304?source=rss-5f79bfc6de09------2</link>
            <guid isPermaLink="false">https://medium.com/p/142bc3c4b304</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[humanity]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[brain]]></category>
            <dc:creator><![CDATA[Gasper Begus]]></dc:creator>
            <pubDate>Tue, 19 Sep 2023 18:10:35 GMT</pubDate>
            <atom:updated>2023-09-19T18:12:11.259Z</atom:updated>
            <content:encoded><![CDATA[<p>I believe a highly promising direction in AI research is to use <strong><em>artificial intelligence to better understand biological intelligence</em></strong>, and conversely, to use our understanding of biological intelligence to better understand how artificial intelligence works.</p><p>Understanding how AI works is the next frontier with a potential to bring enormous benefits to fields as diverse as scientific discovery, finding causal relationships in various data types, and introducing effective AI regulation. By studying human, animal, and artificial intelligence, we can enrich our understanding of the three components and build the next generation of AI models.</p><p><strong>Understanding human language.</strong></p><p>One of the main goals of the <a href="https://twitter.com/berkeleysclab">Berkeley Speech and Computation Lab</a>, which I lead, is to develop artificial intelligence systems that learn in a way more <a href="https://www.sciencedirect.com/science/article/pii/S0893608021001052">similar to human infants</a>.</p><p>Unlike large language models such as GPT-4, which are trained on massive amounts of text data by predicting the next token in a sequence, our models learn from raw speech. They learn in a fully unsupervised manner using <a href="https://www.frontiersin.org/article/10.3389/frai.2020.00044">imitation and imaginative learning</a>. We introduced <a href="https://ieeexplore.ieee.org/document/10096800">embodiment</a> into AI models of language: we’ve designed the models to control representations of the mouth and tongue, enabling them to produce sounds that closely mimic sounds that they hear as the input. In other words, our models learn by listening to sounds of language and by trying to imitate them using articulators such as mouth and tongue.</p><p>We have demonstrated that the models can not only learn words and other <a href="https://direct.mit.edu/tacl/article/doi/10.1162/tacl_a_00421/107834/Identity-Based-Patterns-in-Deep-Convolutional">processes in language</a>, but can also create new English words that they have never encountered before. We also argue that symbolic, algebraic-like rules emerge within these purely connectionist models and provide a framework for exploring emergence of language-like properties in artificial neural networks devoid of human-specific attributes.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FFuupduZw9Lw%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DFuupduZw9Lw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FFuupduZw9Lw%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/80cbdff64284939fc5b005cacf04ce64/href">https://medium.com/media/80cbdff64284939fc5b005cacf04ce64/href</a></iframe><p><strong>Understanding AI.</strong></p><p>The second goal of my research is to better understand learning mechanisms of AI models. Interpretability of AI is the next frontier in machine learning research. Most interpretability work has centered on vision, a domain substantially more complex than spoken language. I argue that spoken language is the ideal testing ground for AI interpretability.</p><p>First, spoken language is fundamentally simpler than the visual world. Second, humans have an innate “generative” tool to produce speech — the articulators — while no such generative ability exists in the visual domain. For example, we can’t directly depict our visual imagination, but we can readily produce new words, sentences, and sounds with our mouth, tongue, and other articulators.</p><p>The AI industry has so far mainly centered on enhancing performance, leaving interpretability somewhat overlooked. However, understanding how AI learns is not only pivotal for gaining novel causal insights from data but is also key in developing effective regulations.</p><p>To address this, we have introduced <a href="https://ieeexplore.ieee.org/document/9903569">several techniques</a> that facilitate a deeper exploration into the <a href="https://ieeexplore.ieee.org/document/9746849">inner workings</a> of the models. For instance, we have demonstrated that the models can learn symbolic-like, discrete, and causal representations. Using our technique, we can introspect how the networks process language internally.</p><p>Our lab was the pioneer in illustrating that artificial neural networks and the human brain <a href="https://www.nature.com/articles/s41598-023-33384-9">share striking similarities</a> in processing language sounds, even when examining the raw, untransformed signals. This discovery gives us crucial insights for our understanding of human language acquisition. The proposed computational models can also serve as a basis for testing hypotheses that are ethically impossible to explore using the human brain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2db0y_dfIH8OWtCyPqy-qA.png" /><figcaption>The most similar untransformed signal between the brain and artificial neural network when they hear the exact same syllable.</figcaption></figure><p>While current large language models like GPT-4 are not realistic models of human language learning, they are instrumental for testing the limits of artificial neural intelligence. For example, our research has demonstrated that <a href="https://arxiv.org/abs/2306.07195">explicit recursion</a> and a metalinguistic awareness thereof — a feature absent in non-human communication systems — can emerge in transformers trained on text. We also show that linguistic formalism can serve as a tool to interpret LLM’s metacognitive performance, an approach we refer to as <a href="https://arxiv.org/abs/2305.00948"><em>behavioral interpretability</em></a>.</p><p><strong>Understanding animals.</strong></p><p>Leveraging AI interpretability techniques opens up new avenues to analyze data where ground truth is absent. We use AI models that emulate human language learning to study <a href="https://www.sciencedirect.com/science/article/pii/S2589004222006642">whale vocalizations</a>. The unknown in whale vocalization is not only what their communication means but also how to approach something as unknown as their vocalizations. Our strategy involves training networks that simulate whale communication and that embed information within whale vocalizations. We then employ the proposed interpretability techniques to introspect what meaningful properties the model had learnt.</p><p>AI models hold an advantage of being less biased compared to human analysis, capable of recognizing any significant data properties. While they don’t offer conclusive answers presently, they help narrow down the hypothesis space, paving the way for insightful post-hoc analytical verifications.</p><p>Our initial findings are encouraging, revealing not only that our methodology successfully identifies rules and properties previously presumed to be significant but also discerns new potentially meaningful properties, such as spectral mean and variance, that were not assumed meaningful before.</p><p><strong>Two related questions.</strong></p><p>Collectively, this research sheds light on fundamental questions about human intelligence. Language is the defining property of humans. While many animals have individual properties of language, none possess the exact language that humans have, not even our closest relatives such as bonobos and chimpanzees. By employing artificial neural networks to model human language, we are testing what can emerge in non-biological neural networks with no language- or human-specific properties.</p><p>This line of work addresses two pivotal and related questions. First, it explores whether animals exhibit rudimentary forms of language, with humans having advanced further in language evolution due to superior intelligence, or if there is a unique property exclusive to humans that enables language. Secondly — in a parallel fashion, it questions if the existing neural architectures in artificial intelligence are sufficient for achieving human-level intelligence, or if discovering new properties is essential to create highly intelligent models.</p><p>Answering these questions is crucial to deepen our understanding of what it means to be human and to discern how we are similar to and different from animals and machines.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=142bc3c4b304" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>