<?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 Derek Larson on Medium]]></title>
        <description><![CDATA[Stories by Derek Larson on Medium]]></description>
        <link>https://medium.com/@dereklarson?source=rss-76f846d3471a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*9CfsckAsOa_E1Qzo.</url>
            <title>Stories by Derek Larson on Medium</title>
            <link>https://medium.com/@dereklarson?source=rss-76f846d3471a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 01:43:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dereklarson/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[Positioning Mechanistic Interpretability]]></title>
            <link>https://dereklarson.medium.com/positioning-mechanistic-interpretability-a0f2186bdbe1?source=rss-76f846d3471a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0f2186bdbe1</guid>
            <category><![CDATA[interpretability]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Derek Larson]]></dc:creator>
            <pubDate>Sun, 27 Aug 2023 23:13:50 GMT</pubDate>
            <atom:updated>2023-08-27T23:13:50.823Z</atom:updated>
            <content:encoded><![CDATA[<p>The field of artificial intelligence continues to debate its path forward, with a wide spectrum of takes including Yann LeCun’s <a href="https://twitter.com/ylecun/status/1695056787408400778">“nothing to see here”</a> to Elon Musk <a href="https://www.nytimes.com/2023/03/29/technology/ai-artificial-intelligence-musk-risks.html">discussing societal risk</a>. Part of this debate includes the role of one slice basic, foundational science — developing a microscopic theory of how neural networks work, generally termed “mechanistic interpretability”. A <a href="https://www.lesswrong.com/posts/LNA8mubrByG7SFacm/against-almost-every-theory-of-impact-of-interpretability-1">recent post on LessWrong</a> caught my attention because it was rather critical of the value of interpretability work, and the comments didn’t push back as much as I’d expect. So I thought I’d lay out a series of concise arguments that either weren’t raised or could use amplifying.</p><h3>Key Points</h3><ul><li>AI is <a href="https://www.lesswrong.com/posts/5rsa37pBjo4Cf9fkE/a-newcomer-s-guide-to-the-technical-ai-safety-field#Different_paradigms">pre-paradigmatic</a>, paradigms are how we build understanding, and developing a microscopic theory seems the best path towards a paradigm.</li><li>Without a paradigm, we will largely continue with empirical science. Continuing empirically has an analog to artificial selection, where we should expect unintended consequences in our systems.</li><li>MechInterp doesn’t seem like an accelerator. If Sutton’s Bitter Lesson is true, diverting resources to MechInterp and other safety measures should actually dampen capabilities progress.</li><li>Meanwhile, MechInterp is still early, we shouldn’t prematurely draw conclusions about effectiveness.</li></ul><h3>Establishing a Paradigm</h3><p>It is generally natural to establish a paradigm for any scientific field, in order to focus and facilitate frontier research. More to the point, the paradigm is an abstraction that allows us to better understand the topic. In contrast, one can engage in empirical science or engineering, without a paradigm, in order to push outcomes. By iterating through experiments that make small changes to a system, and watching the metrics of interest, those metrics can be made to increase. This is mostly the current state of how AI progress is made.</p><p>Sometimes, there is no expectation for an appropriate paradigm. When the Romans developed their <a href="https://en.wikipedia.org/wiki/Roman_concrete">formula for concrete</a>, it wasn’t because they knew the relevant materials science. A mix of trial-and-error and serendipity (having the right ash available) is enough. Only in 2023 can we finally explain <em>why</em> the concrete is so durable. And the Roman Senate had no need to call for a slowdown in concrete development.</p><p>However, for any advancement that has many unknowns and broad impact, the paradigm allows us to build certainty around its use. An obvious (edge) case would be the Manhattan Project. Physics provided a sufficient paradigm to predict outcomes of a nuclear bomb, so its development was more theoretical than empirical — thus sufficiently safe (from unintended consequences; plenty of problems with the intended ones…). A more relevant example is the development of CRISPR. Gene-editing has sufficient unknowns and impact that a <a href="https://www.nature.com/articles/d41586-019-00726-5">moratorium was called</a> (<a href="https://weilab.pku.edu.cn/docs/20190314092044438347.pdf">pdf here</a>). There’s plenty of ancillary reasons for the moratorium, but the straightforward “we can’t sufficiently predict how editing a gene affects humans” is the focus here. And I don’t believe there’s any debate that paradigmatic research in genetics needs to fill this gap (see the “technical considerations” subsection of “the need” in the Nature article).</p><p>Similarly, its hard to see how we can safely progress in AI without building a paradigm. The real debate is, perhaps, at what scale do we pursue this paradigm? MechInterp is the fully reductionist approach, which I naturally lean towards. We may find alternatives, especially if we start developing more modular architectures. In a mixture of experts model, we might be able to sufficiently understand how the experts interact to give us enough confidence in predicting their behavior, without understanding the internals of the expert. However, it seems difficult to develop modular architectures without MechInterp! Perhaps one approach is to use MechInterp only to “ladder up” to modular architectures, and then focus on that scale (and climb any more rungs as needed).</p><p>I think a good way to think about paradigms and safety is the following: paradigms allow us access to different conceptual scales, which may have a smaller “surface area” than the full system. A good analogy may be unit testing for software. We don’t want to continually run full systems tests to try and debug our software; its useful to have unit tests that limit the surface area, localizing the problems. A multi-scaled paradigm would allow us to find the right unit tests of AI, so we don’t regress as we develop.</p><h3>Artificial Selection in AI</h3><p>I wrote about <a href="https://dereklarson.medium.com/artificial-selection-in-ai-development-c805aef770eb">this bullet point here</a>. I’ll aim to condense that and connect it to this thread later!</p><h3>The Bitter Lesson</h3><p>Rich Sutton’s <a href="http://www.incompleteideas.net/IncIdeas/BitterLesson.html">Bitter Lesson</a> essentially says that progress in AI is driven by compute scaling, not understanding of fundamentals. It’s definitely held true quite generally, and we should be afraid that it will continue to hold true for a while. Meanwhile, <a href="https://www.lesswrong.com/posts/BinkknLBYxskMXuME/if-interpretability-research-goes-well-it-may-get-dangerous">some argue</a> that putting more research into MechInterp could accelerate capabilities and isn’t worth the net benefit. These seem to be opposing points, so can we discern which one applies?</p><p>Probably we simply don’t know. If MechInterp aids capabilities, that may simply get overshadowed by the next large-scale, empirical architecture shift. The moral part of the bitter lesson is how we keep going back to the trough thinking “this time we’ll understand!”. One might even argue that MechInterp takes away resources from further empirical exploration, which has historically been the successful path. My underlying take is that it is probably too hard to parse right now, and you need clear arguments to convince people to change. As the field evolves, it does deserve regular check-ins.</p><p>For example, I think MechInterp has subfields we haven’t developed yet. One of these we could call “circuits”, which focuses on understanding structures of networks that yield capabilities — say induction heads. Another subfield could be labeled “representation”, aimed at understanding internal state (e.g. LogitLens). Clearly, these help each other and its a tenuous divide. I’d argue the “circuits” work is more likely to yield capabilities advancements, by identifying important components and how they arise. On the other hand, representation work might focus on: defining how we think of features, parsing network state, understanding the process of extracting features. It would have fewer opinions on how networks should be designed, and more on how can we tell what a model is “thinking”. By taking an intentional path towards developing representation science, perhaps we lessen the impact on capabilities.</p><h3>MechInterp is a Nascent Field</h3><p><a href="https://www.lesswrong.com/posts/LNA8mubrByG7SFacm/against-almost-every-theory-of-impact-of-interpretability-1#False_sense_of_control_">One point</a> from the LessWrong post argues that MechInterp results are overhyped, and <a href="https://arxiv.org/abs/2307.15043">direct adversarial research</a> is having success, and I think it’s common to believe MechInterp is failing, too hard, not fast enough, etc. My take is that the field is simply too early to make such measurements. Finding adversarial attacks are currently easy because empirical science can’t effectively protect against that. We end up with a catch-22 where “look, we shouldn’t do MechInterp because direct attacks work”, “we can’t reasonably prevent some user finding an attack without some paradigm for safety”, “MechInterp is our best approach to establishing a safety paradigm”.</p><p>My simple answer here is to re-evaluate the field in a few years. This may be enough time to discern a trajectory for where it goes: impact on capabilities, contributions to safety.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0f2186bdbe1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Artificial Selection in AI Development]]></title>
            <link>https://dereklarson.medium.com/artificial-selection-in-ai-development-c805aef770eb?source=rss-76f846d3471a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c805aef770eb</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[interpretability]]></category>
            <dc:creator><![CDATA[Derek Larson]]></dc:creator>
            <pubDate>Thu, 17 Aug 2023 06:41:26 GMT</pubDate>
            <atom:updated>2023-08-17T06:41:26.821Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This was a quick post inspired by </em><a href="https://twitter.com/fchollet/status/1688934549127090176"><em>this tweet</em></a><em>. It’s rough and I hope to polish it up as I read more relevant research and think through the ideas!</em></p><p>Discussions of AI doom and boom have reached the mainstream: extended family have begun asking me pointed questions. This ends up a bit frustrating — not because of the questioning, but because of the futility of providing quality, scientific answers. We’re in this tough state where neither party (the public nor the experts) are in a good position to dive into the topic together. There are well-known, trusted voices across the spectrum, from speaking about sub-decade humanity-ending scenarios to scoffing at recent accomplishments with a “nothing to see here” vibe.</p><p>This article aims to help normalize part of the discussion, by addressing one facet of AI risk: <strong>the hidden costs of progress</strong>. With an analogy to artificial selection, I believe we can grasp (and predict) how problems may show up as we develop stronger AI. Where we saw health problems show up in purebred dogs, and nutrient loss in modern crops, what will happen in artificial intelligence?</p><h3>Immeasurable Complexity</h3><p>The core ingredient in a recipe for unintended consequences is a system with very many variables that can’t be easily measured. Genetics certainly meets this requirement, where organisms like humans, dogs, and corn each have something like 10k–100k genes. And we’re making slow progress on understanding them (recall the <a href="https://www.washingtonpost.com/national/health-science/junk-dna-concept-debunked-by-new-analysis-of-human-genome/2012/09/05/cf296720-f772-11e1-8398-0327ab83ab91_story.html">junk DNA debate</a>). Not only are there many genes, but the mechanisms for their expression is complicated (see <a href="https://en.wikipedia.org/wiki/Epigenetics">epigenetics</a>). Furthermore, it would be nice if genes were narrow in their function or effect, but this isn’t necessarily the case — <a href="https://www.nature.com/scitable/topicpage/pleiotropy-one-gene-can-affect-multiple-traits-569/#:~:text=The%20term%20pleiotropy%20is%20derived,pleiotropic%20genes%20(Figure%201).">genes can be pleiotropic</a>, having multiple apparently unrelated functions.</p><p>Cognitive systems, such as the human brain and the aspirational targets of AGI, are arguably even more complex and we understand them even less. Compare 3 billion base pairs in the human genome to 100 billion neurons and 100 trillion synapses in the human brain. And our current language models are pushing trillions of parameters! With the human brain, we have rough map of functionality — e.g. the amygdala is central to emotion. I believe we mostly lack such vision into neural networks, as we’ve just begun to categorize some of the behavior (such as induction heads). Intriguingly, our early AI systems demonstrate a pleiotropic equivalent with <a href="https://transformer-circuits.pub/2022/toy_model/index.html#motivation-empirical">neuron polysemanticity</a>. All to say, these models are certainly complex enough that we will struggle to understand and measure fine-grained function.</p><h3>Optimizing the System</h3><p>It may seem both easy and hard to go about “improving” an organism. The echoes of 20th century conflict around eugenics still occasionally reverberate, promising various levels of human advancement. With so many “flaws” in the human genome, surely we can just selectively patch them up? Meanwhile, those who have thought through the implications of genetic enhancement resist, often on a morality basis. Less common are the arguments that we lack the scientific maturity to engineer humans, but I find these just as compelling.</p><p>First, let’s consider three degrees of genetic development: evolution, artificial selection, and gene editing. Humans owe our genetic gifts to evolution, and it sets a baseline for comparison. Evolution operates extremely slowly, and its fitness target (reproductive suitability) can conceivably tie in most genes. As such, over a long enough period, and subject to a relatively stable environment, we would expect evolution to yield statistically “positive” results.</p><p>Artificial selection is as old as human civilization. By only breeding plants and animals with desired traits, we have quickly guided their genes towards some desired goal: dogs that retrieve, crops that grow quickly. Compared to evolution, however, we’ve relaxed the fitness criteria: we’ve focused on specific improvements, what about other characteristics? For crops, there’s evidence that while improving things like hardiness and yield (targets), nutrient content has diminished (side effect).</p><p>Gene editing, thankfully, has been a cautious pursuit — it’s not easy. Curing hereditary blindness, while likely passing the moral hurdle, <a href="https://www.nytimes.com/2020/10/31/health/crispr-genetics-embryos.html">has a tougher time</a> with the scientific maturity one. With selective breeding, we at least move at the pace of generational change and leverage the consequential viability check. Germline gene editing, say for crops, has no innate speed limit and it’s on us to perform the required checks — potentially long-term, large-scale trials.</p><h3>Selecting AI</h3><p>What can we learn from genetics that we could apply to the future of AI? First off, I think we’re kind of in the “primordial soup” phase. The various model architectures and datasets being developed are like the early single-celled organisms and proteins floating around, rapidly iterating. But let’s focus on taking foundation model and using reinforcement learning with human feedback (RLHF) to guide it towards deployability. This resonates, I feel, with artificial selection: humans are observing an iteration of the entity and nudging it towards a few positive metrics. In an example by Anthropic’s research (<a href="https://www.anthropic.com/index/constitutional-ai-harmlessness-from-ai-feedback">see figure 2 in CAI paper</a>), we find a tradeoff between improving harmlessness and helpfulness for a given model and feedback method. New models and methods can push out that surface, but we must also take care that we have enumerated the quantities we care about. Overt bias might be easy to see, but what about subtle forms like <a href="https://en.wikipedia.org/wiki/Dog_whistle_(politics)">dog whistling</a>? Are answers remaining consistent across lightly modified prompts?</p><p>One example of unintended consequences for RLHF is <a href="https://www.anthropic.com/index/discovering-language-model-behaviors-with-model-written-evaluations">increased sycophancy</a>: models just say what the prompter seemingly wants to hear, regardless of factuality. This was pretty interesting to me as it’s the kind of thing we wouldn’t immediately care about, and perhaps requires a broader pattern to notice. It makes me wonder what other, deeper forms of behavior may be hidden away. With longer contexts, can we elicit frustration or boredom, or even forgetting? One of the issues here is that we’re potentially already asking these systems to go beyond human ability in areas we haven’t psychologically explored in humans.</p><h3>Enter Interpretability Research</h3><p>Scaling oversight of AI will be tough. We’ve already enlisted the help of AI models to review each other, with the complications that entails. Methods like RLHF (with aid from AI) act on a large surface: interpreting model output. In some ways, just like we can’t predict all the ways a new gene affects an organism, it will be hard to generate all of the needed inputs and analyze their outputs to track model alignment. If we crack open the black box, we can begin to shrink that surface.</p><p>This is one of the ways I see interpretability benefitting AI development. If we can begin to categorize internal functionality of LLMs — find their amygdalas — then we can imagine replacing large-scale prompting tests with fine-grained internal diagnostics. Imagine it like, for a human, skipping the hours of behavioral observation and therapy for a brain MRI.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c805aef770eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Methodology of an AGI Journey]]></title>
            <link>https://dereklarson.medium.com/methodology-of-an-agi-journey-168b3251dba?source=rss-76f846d3471a------2</link>
            <guid isPermaLink="false">https://medium.com/p/168b3251dba</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[scientific-method]]></category>
            <category><![CDATA[methodology]]></category>
            <dc:creator><![CDATA[Derek Larson]]></dc:creator>
            <pubDate>Sat, 03 Sep 2022 01:03:50 GMT</pubDate>
            <atom:updated>2022-09-06T22:50:43.571Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jdOfG2y2gYjUA3BR" /></figure><p><em>(This is the Mindset article of a 3-part series covering “</em><a href="https://medium.com/p/dc4e8ea3a92e"><em>Landscape</em></a><em>, </em><a href="https://dereklarson.medium.com/charting-a-course-for-agi-36bec47f27e4"><em>Direction</em></a><em>, and Mindset” in artificial intelligence. Here, I talk about my approach to problem-solving and how we can get make progress towards our chosen directions in the wild landscape of AGI.)</em></p><p>Unlike in Lord of the Rings, there’s no shortage of willing members (researchers, engineers, etc) for the Fellowship, ready to plunge into the Mordor of Deep Neural Networks. The key will be whether or not we’re mentally prepared for the trials that await. Based on my experience with the field so far, I list out my suggestions for how to mentally prepare for making progress.</p><h4>Avoid Distraction</h4><p>One major factor that, I feel, limits the progress of AI research is the pull of the One Ring — the immense utility of any new incremental feature of a system we build, regardless of our understanding. The <a href="https://www.nytimes.com/2018/04/19/technology/artificial-intelligence-salaries-openai.html">job market for AI talent</a> probably illustrates it best; being able to build these systems is valuable. There’s no judgment here, there’s just so many shiny things distracting from guiding the ox-drawn cart of incremental science. I’m glad that there are still labs able to pay competitively that are also able to focus on things like alignment, ethics, and interpretability.</p><h4>Start Small</h4><p>With great financial opportunities come great resources, such as the ability to leverage 10^n GPUs and near-arbitrary compute. This lets one train gigantic models, hitting the trillion parameter level. And as recent language models have demonstrated, this can pay off. At the same time, we inevitably bemoan the “black-box” problem in that we don’t really know what’s going on under the hood. But this is just the “Distraction” over again, right?</p><p>I don’t think so. I believe there’s a “benchmark-seeking” behavior where researchers elect to tweak a powerful, complicated model to get a top (publishable) result instead of helping to understand the reason the core model works in the first place. What I would hope to see is smaller scale, carefully controlled variants of the popular model applied to smaller problems. Again, this isn’t necessarily an issue, we’re just indexing towards engineering results at the expense of foundational progress. And maybe it’s just my narrow exposure, but I don’t see many of these types of papers (which would seem likely high-citation candidates!) but do see people pushing for more such research. They know that if our training rate is set too small, we won’t find new promising parts of the model landscape!</p><h4>Approachable Datasets</h4><figure><img alt="This task has an output with only a single free parameter, which depends directly on the choice of representation of the input." src="https://cdn-images-1.medium.com/proxy/1*TOz8lo5TRQFqXfk-yQBF3g.png" /><figcaption>A sample ARC task</figcaption></figure><p>Similarly, I think we’ve put a lot of effort into some impressive datasets (Imagenet, and, I gotta say <a href="https://commoncrawl.org/">Common Crawl</a> is pretty nuts), but they aren’t designed for incisiveness. Real-world images and text account for so much variability, it makes the reverse engineering of results that much harder. It feels like there’s a lot of space and need for “dataset engineers” who can take the time to create scientifically-amenable datasets. Great examples are the work from Francois Chollet on <a href="https://github.com/fchollet/ARC">ARC</a>, and the OpenAI gym.</p><p>Between the smaller models and simpler datasets, I’m really only echoing Yoshua Bengio’s <a href="https://www.youtube.com/watch?v=UX8OubxsY8w&amp;t=6740s">call for toy models</a>. It’s telling that Geoff Hinton made a joke about having a conference dedicated to just MNIST, and I think he was at least 40% serious.</p><h4>Divide and Conquer</h4><p>Simplify everything! We’ve attacked models and dataset, on to the conceptual space itself. What if we can break up common tasks into separate cognitive processes? I alluded to this in the Direction article, regarding treating vision problems as at least a two-step process of Perception and Inference. I do think we’re slowly getting there, as our vision dataset benchmarks move away from text labels and more towards pixel-by-pixel scene parsing.</p><p>To frame it another way, when approaching a complicated problem, we should try to define and achieve incremental results. The challenge with Deep Learning is this gets difficult — we have a tripartite chicken-egg problem:</p><ul><li>It’s hard to define incremental measures for a black-box</li><li>It’s hard to “open the box” for complicated models</li><li>It’s hard to simplify (split up) our models without having an incremental measure.</li></ul><p>So one promising development has been to just crack bullet #2 by developing powerful introspective tools, such as OpenAI’s <a href="https://distill.pub/2020/circuits/zoom-in/">Distill: Circuits</a> work. My hope would be that we can start to create a taxonomy for the classes of transforms we expect out of perception models. With these, one could then potentially say something like “we take this portion of a neural net and expect to find every curve in the dataset”. At the same time, perhaps one could find <a href="https://arxiv.org/abs/2203.06026">better alternatives to Frechet Inception Distance</a>, by having a stronger, more universal definition for mid-level features.</p><h4>Also Measure Everything</h4><p>I feel another way out of the black-box problem is through creative metrics and probing methodologies. A good example of this would be ablation studies, which seem to have taken off around 2019. These investigate the performance of a network after “damaging” some portion of it — if nothing changes, perhaps that portion was unimportant. Beyond ablation, I haven’t seen too many standardized approaches, but I feel there’s plenty to explore:</p><ul><li>Neuron Importance: Perhaps a more holistic approach to ablation could be measuring neuron importance (kind of like feature importance in ML). Perhaps by analyzing entropic flow through the model, one could find the portions that aren’t adding any discriminatory power. This seems to have been explored only sporadically.</li><li>Intermediate Compression: Most models abstract inputs into compressed features in stages, and understanding the information flow in this way seems useful. Compression is definitely used as a success metric for a model, but I’m not aware of using it internally.</li><li>Dataset metrics: I think we might have a blind spot in not understanding our datasets better. Not only do I think they should be smaller, but I have a strong feeling they can be also be measured in a variety of ways. This probably involves “bootstrapping” by using a model we’ve trained on that or another similar dataset to provide, say, a feature distribution measure. One could then use that to improve the dataset and iterate. My fear is that without such measurements, we are unaware of “sparsity issues” in the training data. Think of things like the lack of demographic diversity in earlier face recognition models.</li></ul><h4>Focus</h4><p>Lastly, I think the goal is to be aware of all of the above, but don’t get stuck trying to think of or do everything. With good intuitions, tenacity pays off. I hope that includes writing this article. :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=168b3251dba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Charting a Course for AGI]]></title>
            <link>https://dereklarson.medium.com/charting-a-course-for-agi-36bec47f27e4?source=rss-76f846d3471a------2</link>
            <guid isPermaLink="false">https://medium.com/p/36bec47f27e4</guid>
            <category><![CDATA[perception]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[inference]]></category>
            <category><![CDATA[meta-learning]]></category>
            <dc:creator><![CDATA[Derek Larson]]></dc:creator>
            <pubDate>Fri, 26 Aug 2022 23:55:08 GMT</pubDate>
            <atom:updated>2022-09-07T00:45:42.998Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AiXgc-3Pd5H6qGgSqGKXUA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@leolander?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Lino</a> on <a href="https://unsplash.com/s/photos/compass?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p><em>(This is the Direction article of a 3-part series covering “</em><a href="https://medium.com/p/dc4e8ea3a92e"><em>Landscape</em></a><em>, Direction, and Mindset” in artificial intelligence. Here, I talk about my motivations and set what I see as reasonable objectives for the field. These are organic documents, and will be altered as I learn.)</em></p><h4>Motivation</h4><p>I have a long-held desire to see humanity create artificial life. My strongest, formative experiences probably came from watching Star Trek: The Next Generation while growing up. Firstly, this placed me firmly in the nerdosphere and sparked my interest in physics, which I would go on to study. More to the point, the show features <a href="https://en.wikipedia.org/wiki/Data_(Star_Trek)">Data</a>, an android serving on the Enterprise, who is portrayed as an incredibly gifted crew member, with broad abilities in science and engineering while at the same time impeccably moral and nearly faultless. While media more often portrays the <a href="https://en.wikipedia.org/wiki/Existential_risk_from_artificial_general_intelligence">risks</a> and <a href="https://en.wikipedia.org/wiki/The_Terminator#:~:text=It%20stars%20Arnold%20Schwarzenegger%20as,in%20a%20post%2Dapocalyptic%20future.">horrors</a> of artificial general intelligence(AGI or “strong” AI), Data exemplifies a rare positive take — a kind of being of which we could be proud to create. So you could say I’m very “Data-driven” ;)</p><p>He also was engaged in a continual quest to better understand and emulate humanity. It raises the important question, “how well do <em>we</em> understand our species?” and a pointed follow-on, “are we worth emulating?” One could frame our quest towards human-level intelligence as a means to better come to grips with what makes us humans and allow us to grow.</p><h4>A Concrete Objective</h4><p>Of course, achieving AGI is a lofty goal, and we still struggle to define terms like “intelligence” and its cousins. Rather than wade into that territory, I propose aiming for a more modest milestone that is better defined. First off, I believe human intelligence is a combination of separable cognitive abilities and control functions. We can focus research into a few critical cognitive abilities — loosely: abstraction, learning, perception, inference, and memory — and avoid any embodiment, agency, consciousness, and motives. In other words, imagine today’s AI assistants just with greatly improved quality and range, nothing more. This simplifies the scope, reduces certain risks, and I’d argue still contains the most important ingredients.</p><p>Within that scope, I suggest the following as a guideline objective:</p><p><strong><em>Let’s build a system that can learn to learn and perform unconstrained inference.</em></strong></p><p>Here, I define learning as “gaining knowledge or skill through study or being taught”. Today’s machine learning(ML) models do this, usually through being fed large amounts of specialized data and their skill is measured against held-out portions of the data. Humans, however, can go beyond this and reduce how much experience we need to achieve competence in a skill: we can engage in <em>meta-learning</em>. For example, when we learn how to prioritize certain information, such as identifying false items or surprising results (something true that goes against our internal models), we get better at learning. Another aspect is reusable abstractions, such as taxonomies. By understanding things can be categorized, say, by a phase of matter, we don’t need to learn a bunch of new physics for every specific liquid we encounter. It seems unlikely to me that our current paradigm in deep learning will address this gap. Francois Chollet’s <a href="https://arxiv.org/pdf/1911.01547.pdf">“On the Measure of Intelligence”</a> covers this topic in more detail.</p><p>I also push for “unbounded inference” as a natural companion to meta-learning, with inference defined as “the ability to answer challenges posed to the system about prior experiences.” In the case of computer vision, this might entail comparing objects in an image, e.g. “Is the red sphere larger than the blue box?” or “Which objects will fit through the fence?” or solving more general visual puzzles. I use examples based on language for simplicity, but I think it could make more sense to avoid inserting language into vision models.</p><h4>My Vision and Reasoning</h4><p>A list of suggested paradigm shifts and research avenues that seem promisingly necessary:</p><ul><li><strong>Distinguish inference from other processes</strong>. Foremost, I believe we should be treating inference as a different flavor of cognition than perception. Defining the boundary between them does seem tricky, but my working simplification goes: “perception builds up a world model, inference reduces that model towards a specific value.” Models that perform poorly at their tasks could be analyzed separately for their perceptive or inferential failings. I think the trajectory of vision benchmarks is supporting this — moving from simple labels to full scene segmentation and beyond.</li><li><strong>Measure model strength via inference</strong>. It’s ambiguous to define, a priori, correctness among systems that model the world: how a human models the surrounding environment may differ notably from that of a video game or neural network — is the fundamental piece an atom, voxel, or some form of generic entity? The ability of that model to support inference gives us a handle on which model is stronger. A very shallow visual model might correctly label images based on pixel statistics as “classic” image labeling (e.g. CIFAR and Imagenet) is a <a href="https://arxiv.org/pdf/2004.07780.pdf&amp;quot;Bayesian">shallow form of inference</a>: “does the image contain an item of class X?” Meanwhile, the same model would likely fail at “object counting”, relations, etc.</li><li><strong>Allow architecture to adapt during training. </strong>Model architecture choices are critical, and we are generally still hand-tuning them; and they remain fixed during training. A straight-forward interpretation of achieving meta-learning could be: a model that can enhance itself to aid in training. I do recall seeing some earlier attempts at self-modifying neural nets, but I don’t believe there’s any mainstream cases these days. My hunch would be that there are some internal metrics we can measure (e.g. related to <a href="https://en.wikipedia.org/wiki/Minimum_description_length">Minimum Description Length</a>) that would allow for architectural decision-making.</li><li><strong>Use inferential tasks to support interpretability</strong>. I believe in order to best support inference, we have to dig into what happens layer-by-layer in a network. Answering a query could involve different levels of abstraction — e.g. answering “what time is it?” for an image could involve the overall brightness (sunlight level, probably a low-level feature) and the hands or digits of a clock (probably high-level). If these features are all blurred together at higher layers, the model would seem both less useful and interpretable.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36bec47f27e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Evolution in Neural Structure in AI]]></title>
            <link>https://dereklarson.medium.com/evolution-in-neural-structure-in-ai-dc4e8ea3a92e?source=rss-76f846d3471a------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc4e8ea3a92e</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[transformers]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[Derek Larson]]></dc:creator>
            <pubDate>Sat, 20 Aug 2022 03:30:24 GMT</pubDate>
            <atom:updated>2022-09-02T21:27:26.253Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TTs4ELvwxQQM5bNTvKCjdA.png" /><figcaption>“evolution in neural structure in artificial intelligence” by DALL-E</figcaption></figure><p><em>(This is the Landscape article of a 3-part series covering “Landscape, </em><a href="https://dereklarson.medium.com/charting-a-course-for-agi-36bec47f27e4"><em>Direction</em></a><em>, and Mindset” in artificial intelligence. Here, I talk about my view of the field — a light attempt to address the landscape of AI approaches via a simple conceptual framework.)</em></p><p>Most progress towards popular AI benchmarks in the last decade has stemmed from use of neural networks, punctuated by key changes to their architecture. This progress has been faster than many <a href="https://en.wikipedia.org/wiki/AlphaGo#AI_community">expected</a>, and we can point to factors such as increased compute, better software tools, increased collaboration, and sheer researcher attention as explanation. One factor that is <em>missing</em> is a scientific framework to help formalize our understanding (Yann LeCun covers this point well in <a href="https://www.youtube.com/watch?v=4lthJd3DNTM&amp;t=2707s">recent talks</a>). Beyond this, we often don’t even have a <em>proximate</em> explanation for how our systems work — the black box problem that interpretability work (e.g. from <a href="https://distill.pub/2020/circuits/">OpenAI</a> and <a href="https://transformer-circuits.pub/2021/framework/index.html">Anthropic</a>) targets. As such, one can expect significant froth and churn in our research efforts as we overextend ourselves searching for the next advances.</p><h4>Conceptual Framework</h4><p>As I’ve tried to get a handle on the AI field (mostly vision and language), my primary goal has been to mentally fill this paradigmatic gap: what would make a good working model of how deep neural networks function? Better, what perspective can capture both deep learning <em>and</em> the broader problem of artificial cognition? My current framing sentence would be something like the following:</p><blockquote>A general learning system both efficiently builds and arranges a hierarchical set of composable transformations.</blockquote><p>Probably inoffensive to most people, and also not particularly actionable until we pin down the semantics and go deeper. First off, I imagine “transformations” as the programming-function-like members of a domain-specific language (DSL) that pays respects to <a href="https://arxiv.org/pdf/2106.07032.pdf">category theory</a>; or more simply, the DSL obeys a bunch of rules regarding composition, etc. I include the word “hierarchical” partially to indicate “depth of composition” and exclude shallow, rote learners — to paraphrase Clarke, any sufficiently well-read agent is indistinguishable from an advanced intelligence for a fixed dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HK7uS24noSG6vSPCgS01bw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@vlisidis?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Terry Vlisidis</a> on <a href="https://unsplash.com/s/photos/molecule?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>The meat really comes from “builds” and “arranges”, because the meaning here can mutate a bit depending on context. As a quick analogy, imagine a molecular modeling kit (example above). Being able to set up a cognitive process (complex molecule) requires having the right set of constituents (atoms), knowing how they can compose (bonds), and having a sense of how to search the space of possible compositions (chemistry!). Instead of digging into these definitions further up front, I’ll build them up by walking through artificial neural networks (ANNs) and interpreting their functionality.</p><h4>Neural Nets as a Series of Transformations</h4><p>In a <a href="https://en.wikipedia.org/wiki/Multilayer_perceptron">multilayer perceptron</a> (MLP), the original, vanilla feed-forward ANN, each layer takes the prior signal and implements a matrix multiplication followed by an activation (i.e. signal cutoff). Saying each layer implements a “transformation” is pretty obvious, mathematically speaking. However, until the MLP is trained effectively, nothing important is happening. The true transformation arises when the neuronal weights take a pattern of values that can extract information relevant across a domain. In other words, MLPs <em>build </em>their own DSL during training, carved out from the randomly initialized neuronal weights. This is in contrast to (neuro-)symbolic methods that are usually given at least a portion of a DSL up front.</p><p>Thinking further, it should be clear that aspects of a general ANN’s architecture affect the types of transformations that might be built. A pair of fully connected layers with thousands of neurons can express a very large set of functions, though most of these would be very obscure and complicated. On the other hand, if we prune away so many weights that each neuron has a single connection, we’re just left with the ability to do scaled mappings of the inputs. We should expect to set up some happy middle-ground where we have enough connections to do something interesting, but not so many that we make the optimization problem too hard. Good architecture should act as a fertile field for growing useful transformations.</p><p>What about <em>arranging</em>? An alarm should go off for the reader, since we’re in an MLP context: how can directed layers allow any kind of arranging of transformations? If we have a naive three-hidden-layer MLP representing transforms In→A→B→C→Out, we can only run “ABC” and not e.g. “BAC” or “ABACA” or even “B”. We could just drop the feed-forward condition and use recurrence, right? In short, the amount of recurrence we include makes it increasingly difficult to train with gradient descent. For now, assume our transformations come in a stack. Notably, symbolic models have no issue with this, so in a way we’re going to see how neural nets overcome this limitation.</p><p>We can start talking about expressivity now: what is the range of the series of transformations our network can apply? More clearly, if we think of our DSL as letters, how many words are in the network’s transformation language? Our naive MLP above was stuck with “ABC”. By revisiting the <a href="https://paperswithcode.com/sota/image-classification-on-imagenet?metric=Top%205%20Accuracy">history of Imagenet performance</a>, we can see how the architecture was adapted to improve expressivity and ultimately performance.</p><h3>Architectural Milestones in Computer Vision</h3><h4>Convolutional Neural Networks</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3BRLw4lsANPEfGgimG3YVQ.png" /><figcaption><strong>LeNet architecture</strong> — <a href="https://commons.wikimedia.org/w/index.php?curid=45679374">By Aphex34 — Own work, CC BY-SA 4.0</a></figcaption></figure><p>The breakout moment of the <a href="https://www.cambridge.org/core/journals/apsipa-transactions-on-signal-and-information-processing/article/artificial-intelligence-renaissance-deep-learning-and-the-road-to-humanlevel-machine-intelligence/A82CA4909877C98B23755744A18EA64F">neural network renaissance</a> was when convolutional neural nets(CNNs) demonstrated the effectiveness of deep learning. Simply put, a CNN assumes translational invariance of images and achieves this through convolutions (you can <a href="https://towardsdatascience.com/simple-introduction-to-convolutional-neural-networks-cdf8d3077bac">find a gentle refresher here</a>). Equivalently, we can look at the convolution as “weight-sharing” in a standard neural network: the weights feeding an individual neuron form a “receptive field” which are equated across neurons. In addition, the receptive field for a CNN tends to be small compared to the input size, 100 pixels or less. This makes sense as we expect the low-level features to be “local” — say, smaller than the relevant objects in the field of view.</p><p>Let’s look at this from the Expressivity perspective. The two key aspects of the convolutional layer are locality and weight reuse. Locality is a positive feature as it reasonably restricts the space of learned transformations to those we likely care about. Even with only a 3x3 or 5x5 receptive field, a <a href="https://en.wikipedia.org/wiki/Feature_(computer_vision)#Detection">variety of feature detectors</a> can be defined. Then, weight reuse acts like “quality control” on the learned transformations; we avoid learning position-dependent transforms that might differ only slightly, instead finding the “correct” general one.</p><p>Weight reuse also means the convolutional layers use few weights. Thus, there is significant “parameter budget” left over, which can be devoted to many parallel convolutional “channels”. Each one of these can learn a different transform. This is an easy, first step towards expressivity — learning many different, parallel, general-use transforms in each layer. And it works! OpenAI’s <a href="https://distill.pub/2020/circuits/early-vision/">Circuits work</a> showed that the early convolutional layers generally learn interpretable functions of the input — for example, families of edge and contrast detectors. <strong>Parallelization of small, well-motivated transforms has given us a set of letters at each layer with which to compose words.</strong></p><h4>Going Deeper: VGG-19 and GoogLeNet</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sjfzX5WmTyeBjEwMxmv_Wg.png" /><figcaption>GoogLeNet Architecture</figcaption></figure><p>Two contemporaneous vision models that pushed the performance boundary were <a href="https://arxiv.org/pdf/1409.1556.pdf">VGG-19</a> and <a href="https://arxiv.org/pdf/1409.4842.pdf">GoogLeNet</a>. The fairly obvious benefit of these models was depth, which allowed longer series of transforms. This was partly enabled by shrinking the size of the convolutions; VGG-19 only uses 3x3 convolutions. You can position this as the logical conclusion of only learning the most important, basic visual filters.</p><p>Another important inclusion from GoogLeNet is alternative pathways. To approach this, let’s imagine tracing a single pixel value through an entire CNN by following the weight lines it interacts with. At each convolution, we have a branch for each weight (e.g. 9 different paths for a 3x3 filter). We could visualize the “<a href="https://en.wikipedia.org/wiki/Light_cone#:~:text=In%20special%20and%20general%20relativity,directions%2C%20would%20take%20through%20spacetime.">light cone</a>” (weight cone?) of each input, and get a sense for how deep in the network two distant pixels start interacting. However, what I think is more pertinent is the nature of the transformations along this path. In most models, every path has an equivalent “transformation characteristic”: all paths share the same ordered convolutions and poolings. GoogLeNet’s Inception module allows this to vary, as we can trace paths that favored 1x1 or 5x5 convolutions, for example. This further broadens the “alphabet” that we’re allowed to use in each layer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ua-lsVQ2LQvzemXt-AxqHQ.png" /><figcaption>ResNet architecture</figcaption></figure><h4>ResNet</h4><p>Out of the desire for more depth arose <a href="https://arxiv.org/pdf/1512.03385v1.pdf">ResNet</a>. The authors noted that adding more layers to their models would decrease accuracy, and theorized that “well if we added ‘identity’ layers, that shouldn’t happen”. Thus, the residual (or “skip”) connection was born, which forms direct links between non-adjacent layers. This way, each layer/module could be thought as starting from an identity transformation and learning to move away from that (as opposed to starting from a “noise” transform).</p><p>Critically, we are now able to express a much wider range of transformation paths. By skipping layers, when our original network allowed “ABC”, we can now achieve just “C”. Prior networks essentially forced a learned transformation to happen at each layer; so either we had to learn the identity from scratch each time, or we just hope whatever got applied didn’t screw things up too much.</p><p><a href="https://arxiv.org/pdf/1611.05431v2.pdf">ResNeXt</a> ultimately combined the insights of Inception and ResNet, and led to a series of very effective models.</p><h4>Transformers</h4><p>Originally developed for language modeling, <a href="https://proceedings.neurips.cc/paper/2017/file/3f5ee243547dee91fbd053c1c4a845aa-Paper.pdf">transformers</a> have also <a href="https://arxiv.org/pdf/2010.11929.pdf">crossed into vision</a>. This is fairly surprising, as you can forget anything to do with convolutions and still achieve SOTA performance. It seems like a major lateral move. If we analyze the change in expressivity, however, we can see it as a milestone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/207/1*eMZ-l7pV2-ZKMEzP7THO2Q.png" /></figure><p>Put simply, transformers allow for “dynamic gating” of signals — think transistors. A primary signal is mediated by a secondary signal that controls its expression. The attention pattern of the transformer is acting like the base voltage for a transistor. This adds another dimension to expressivity. In standard CNN designs, such as ResNet, there’s no direct way for one signal/feature to gate another. At best, they are “mixed” by adding weighted signals together prior to an activation, but there’s no <em>multiplication</em> of signals. For a transformer, the attention score can be thought of as a type of weight that is signal-dependent. See the diagram below, focusing on the magenta portion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yDnUw5a43bgHqtQU0DhpIQ.png" /><figcaption>Elhage, et al., “A Mathematical Framework for Transformer Circuits”, <a href="https://transformer-circuits.pub/2021/framework/index.html">Transformer Circuits Thread</a>, 2021.</figcaption></figure><p>The attention score — the value the query-key circuit takes — depends on the matrix expression listed (with Query, Key, and Embedding matrices), as well as the <em>tokens themselves</em>. And this is used to determine the strength of the output value of the attended token. Put simply, where before we had a constant weight matrix W, we now can have W(<em>x</em>) where <em>x</em> is our input signal.</p><p>I think at a minimum, this allows for more condensed transformations. As in, even if the transformers can’t do anything new, they can do it more succinctly than prior architectures. And this type of “expressive efficiency” is more important than is, I think, often realized. It would be quite interesting to research this and quantify some aspects of it.</p><h4>Wrapping Up</h4><p>I’ve talked about how I use a “language of transforms” model for AI, and tied some of our past achievements into it. By building deeper, wider, circuit-like nets, we have perhaps overcame the lack of “freedom to arrange” that symbolic methods enjoy. Speaking of which, I didn’t spend time on how the language of transforms can bridge deep learning and symbolic methods. Partly, my thoughts aren’t well-formed about that yet, and it also deserves its own article. In the meantime, I do think there’s some promise that a framework like this could conceptually tie them together, and even encourage more blending of methods (see e.g.<a href="https://arxiv.org/abs/2006.08381"> DreamCoder</a>).</p><p>On the optimistic front, I’m excited about transformer models and how we can continue to innovate along these lines. Just as transistors enabled the basic logical gates and became the foundation for modern computing, it’s plausible we could see transformer-like architecture form the basis for artificial cognition.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc4e8ea3a92e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How far has the apple fallen?]]></title>
            <link>https://dereklarson.medium.com/how-far-has-the-apple-fallen-f0a33421947d?source=rss-76f846d3471a------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0a33421947d</guid>
            <category><![CDATA[intelligence]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[cognition]]></category>
            <dc:creator><![CDATA[Derek Larson]]></dc:creator>
            <pubDate>Mon, 28 Dec 2020 07:31:03 GMT</pubDate>
            <atom:updated>2021-01-24T04:31:19.413Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Wc59DyCtg-10Q_3K.jpg" /><figcaption>Are we just evolved to enjoy our digital dopamine drip?</figcaption></figure><p><em>(This is my second article on cognition, which </em><a href="https://dereklarson.medium.com/defrosting-our-views-on-intelligence-87f83ec60efe"><em>started here</em></a><em>)</em></p><h3>Special in a Special way</h3><p>We love to think we are special: individually, tribally, and as a <em>species (etymology alert!). </em>We <em>are</em> unique, but in most comparisons, we just aren’t too special — pick a set of traits and we are probably near the middle on most of them. For that we can blame statistics. As a species, we aren’t particularly fast, strong, long-lived, etc. So how can an organism with mundane physical characteristics achieve things like building a global information network and landing on the Moon?</p><p>A web search will yield untold articles that cover at least a dozen or two unique features or things about humans, and how we got here. But don’t bother. I believe the book <a href="https://en.wikipedia.org/wiki/Sapiens:_A_Brief_History_of_Humankind">Sapiens</a> covers the salient point, from which any of the other important aspects derive. In short, homo sapiens started cognitively generating fictions around 70k years ago. This allowed for increased cooperation via improved language, shared causes, stronger relationships, and better systems of exchange. More than anything, we are our ability to cooperate. This fits nicely, to me.</p><p>But what underlies this? Why can humans generate abstract, fictitious concepts and not animals? Here’s where I find an interesting gap.</p><h3>Neuron Measuring Contest</h3><p>Many animals do show levels of learning and abstraction. Mammals are plenty <a href="https://www.youtube.com/watch?v=KMZ7oOCXfP8">smart</a>, especially <a href="https://www.youtube.com/watch?v=MLnhShanZbo">primates</a>, and even amongst birds we have the <a href="https://www.youtube.com/watch?v=LJG3282QU4g">magpie that gathers bottle caps</a>, the <a href="https://www.youtube.com/watch?v=3dWw9GLcOeA">snowboarding crow</a>, and the <a href="https://www.youtube.com/watch?v=ZerUbHmuY04&amp;t=1s">corvid Archimedes</a>. So it’s not that we’re the only animals capable of some level of abstraction, adaptation, etc.</p><p>I think we can also infer that our genetic advantage isn’t too distant from our common hominid ancestors, or even other primates. Comparative studies of primate brains show quite a few similarities: common regions, large neocortex, same neuron types (including a <a href="https://mcgovern.mit.edu/2020/09/30/new-neuron-type-discovered-only-in-primate-brains/">newly discovered interneuron</a>). Some recent research does indicate a few potential key differences, though:</p><ul><li>We have <a href="https://www.sciencemag.org/news/2018/01/dopamine-may-have-given-humans-our-social-edge-over-other-apes">more dopamine present</a></li><li>Our neurons <a href="https://neurosciencenews.com/brain-evolution-10733/">grow longer and more deliberately</a></li><li>Our neurons fire in <a href="https://www.nature.com/articles/d41586-019-00198-7">more complex ways</a></li></ul><p>These clues point to a more subtle interpretation to the human advantage. We can reject that it’s simply our <a href="https://en.wikipedia.org/wiki/List_of_animals_by_number_of_neurons">neuron count</a> and other such arguments. More neurons can help, surely. At 0 neurons, sponges aren’t going to outwit anyone. But think of a computer — is it the magnitude of CPU power that makes it become useful? No, it is the <em>existence</em> of a CPU as well as RAM, an OS, etc. We should be thinking in terms of criticality, what can cause a phase transition from animal cunning to human cognition?</p><h3>Deductions</h3><p>One of the simplest explanations might be tied to the dopamine research. Perhaps, we are simply the only animal that is rewarded (chemically) for our cognition, such as how we feel good when we figure something out. If other animals don’t have that feeling of epiphany, their brains might not choose to wire up in support of abstractive or problem-solving structures. It’s worth noting that it seems we have to use food as a reward mechanism for just about all animal training…</p><p>Another is that our development cycle allows us the time to develop more complex structures. Imagine if most of our abilities were frozen in at a few years of age. It would explain a portion of contemporary politics, and it would preclude us from forming any meaningful civilization. Similarly, if we were directly barred from forming certain types of neural structure, because of limited neuron length or connection patterns, we could also end up devoid of our capacity to reason.</p><p>One thing consistent with all these cases is a need for more complicated structures in the brain. I argue, then, that higher cognition is an emergent property of the special ways in which our neurons connection, and I’ll make an attempt to <a href="https://dereklarson.medium.com/intelligence-as-structure-d0c2b1da92f7">go into it here</a>…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0a33421947d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Defrosting our Views on Intelligence]]></title>
            <link>https://dereklarson.medium.com/defrosting-our-views-on-intelligence-87f83ec60efe?source=rss-76f846d3471a------2</link>
            <guid isPermaLink="false">https://medium.com/p/87f83ec60efe</guid>
            <category><![CDATA[intelligence]]></category>
            <category><![CDATA[draft]]></category>
            <dc:creator><![CDATA[Derek Larson]]></dc:creator>
            <pubDate>Sat, 12 Dec 2020 03:16:50 GMT</pubDate>
            <atom:updated>2021-01-26T19:56:08.172Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yGI1_i8fA-CM5FrbH0homw.jpeg" /><figcaption>A manifestation of the field of cognitive science as of 2020: frost buildup on a limb of the Tree of Knowledge</figcaption></figure><h3>Introduction</h3><p>Succeeding as a <a href="https://en.wikipedia.org/wiki/Data_science">data scientist</a> in 2020 depends on a well-tuned BS meter. Machine Learning (ML) and Artificial Intelligence (AI) are hot topics — they promise immense potential value while being <em>cool</em> — meanwhile, everyone (including you and me!) has a poor grasp of the AI/ML field. When you mix greed and rampant <a href="https://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect">Illusory Superiority</a> (Dunning-Kruger), you end up with a thriving population of <a href="https://en.wikipedia.org/wiki/Shyster">shysters</a> and <a href="https://xkcd.com/451/">imposters</a> (Meanwhile, inducing <a href="https://en.wikipedia.org/wiki/Impostor_syndrome">impostor syndrome</a> in many of the real, humble practitioners).</p><p>Mostly, I chalk this up to the rapid growth of the field. However, it also partly stems from a lack of real authority on the fundamentals of intelligence: there’s no academic consensus or broad institutional understanding of what we mean by “intelligence”, “learning”, or “abstraction”. As such, it becomes very difficult to meaningfully discuss the big picture around AI. Which is rather annoying, because it’s something we both want and need to discuss!</p><p>So here begins my assessment of “intelligence” and what it means to us. I will mostly use the term “cognition” going forward, to indicate the specific processes and abilities that humans possess.</p><p><em>Caveat Lector</em>: I studied physics, and claim no professional expertise in understanding intelligence. This is just <a href="https://xkcd.com/793/">my hot take</a>. Consume this like the scientific equivalent of fast food: be skeptical of the ingredients and enjoy what you can!</p><h3>Shaping Up</h3><p>Imagine that human academic disciplines take on some physical state. This state reflects the stability, predictive ability, and integrated knowledge a field has. Our theories on electromagnetism, for example, might look like <a href="https://www.ex-astris-scientia.org/observations/datalore/21-datalore-r.jpg">a single crystal</a> — solid, ordered, and connected — as they are able to correctly predict and explain our everyday encounters with light and electricity. In fact, Richard Feynman described <a href="https://en.wikipedia.org/wiki/Quantum_electrodynamics">quantum electrodynamics</a> as “the jewel of physics”, so I’ll give him the prior art nod. In other words, this subfield of physics is “solved” to a meaningful degree — mostly because physics is the easiest science on which to make this type of progress.</p><p>On the other end of the spectrum, we have fields that are quite difficult to tame — namely, anything involving interacting humans, like markets and political movements. We might come up with some explanations, handy rules, and descriptive equations, but as <a href="https://xkcd.com/435/">they aren’t directly grounded </a>in the basic sciences it is difficult to develop quantitative theories and apply predictive rigor. Take economics, where we can make some use of notions of supply and demand, but we don’t have a full theory that can predict the price of any good. These disciplines might be thought of as a type of soft clay — moldable into different large shapes, but unfixed and lacking smaller structure.</p><h3>Studying Cognition</h3><blockquote>…the field as a whole seems to have lost impetus, focus, and recognition.*</blockquote><p><a href="https://en.wikipedia.org/wiki/Cognitive_science#:~:text=Cognitive%20science%20is%20the%20interdisciplinary,%2C%20process%2C%20and%20transform%20information.">Cognitive science</a>, a young inter-disciplinary field representing our best attempt to combine our knowledge and understanding of how the brain works, is in a different state. The above quote comes from an *<a href="https://www.nature.com/articles/s41562-019-0626-2">article</a> (<a href="https://github.com/rdgao/WH2CogSci/blob/master/nunezetal_final.pdf">pdf here</a>) from summer 2019 which bemoans the failure of the field to coalesce into a mature state. In their analysis, traditional psychology has dominated the field, to the detriment of more hardened fields like neuroscience and AI, and they point to a lack of curricular consensus — a student would learn different things from different universities. You have a collections of contributions from some noteworthy folk, like Douglas Hofstadter, Marvin Minsky, and Daniel Dennet; but these don’t link up into anything coherent. I imagine the field manifesting as a layer of small crystals, as you’d find in a freezer in need of a cleaning. There’s lots of little quantitative facts, but it’s not clear if they’re going to work together and produce anything meaningful. Time to defrost it! Here goes my attempt to make some basic sense of it…</p><h3>Applying the Heat</h3><p>The ultimate goal I have is to develop a working sketch of a theory of cognition: the first layer of fundamental abstraction of what’s happening in our heads. So, after clearing the slate of noise, what guiding principles can we use to set our path towards this sketch? I came up with these motivating questions:</p><ul><li><em>What </em><a href="https://dereklarson.medium.com/how-far-has-the-apple-fallen-f0a33421947d"><em>differentiates us from other animals</em></a><em>?</em></li><li><em>What is the </em><a href="https://dereklarson.medium.com/intelligence-as-structure-d0c2b1da92f7"><em>simplest explanation</em></a><em> of this difference?</em></li><li><em>Does this fit with what we perceive in ourselves?</em></li></ul><p>A tall order, so we definitely need to bring as much firepower as we can, and apply a divide and conquer strategy. First off, we’ll make a few necessary assumptions to avoid getting hung up on details:</p><ul><li><a href="https://en.wikipedia.org/wiki/Naturalism_(philosophy)"><em>Naturalism</em></a><em>: no supernatural forces are at work.</em></li><li><em>Universality: we share a common, fundamental </em><a href="https://en.wikipedia.org/wiki/Human_condition"><em>human condition</em></a></li><li><em>Reducibility: mental processes are </em><a href="https://en.wikipedia.org/wiki/Reductionism"><em>reducible</em></a><em> to smaller/simpler things</em></li><li><em>At least two types of thought process exist: </em><a href="https://en.wikipedia.org/wiki/Thinking,_Fast_and_Slow#Two_systems"><em>fast and slow</em></a></li></ul><p>The first point should be self-explanatory. By the second, I want to preclude any assumption that humans can be divided into groups that “think differently”. In other words, I’m assuming the simplest case: we are, by and large, similar in our basic function. Our brains have the same regions and these tend to wire up in a certain way, at some large scale.</p><p><em>Reducibility</em> addresses the differences we <em>do</em> see, and says they arise from combining the building blocks of the (as opposed to some emergent, irreducible complexity). Humans exhibit memory, learning, emotions, pattern-recognition, etc and we can abstract cognition, and its surrounding context, into these pieces.</p><p>In the last point, I build on the classification popularized by Kahneman, where he suggests we have two systems of thought: one fast, reflexive, unconscious; the other slow, deliberative, conscious. I figure most people can accept these results (they match everyday experiences) and it gives us a good starting point for classifying different types of mental processes.</p><h3>A Map of Thoughtland</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*wcs4qF3alVYEvtssEX6Qjg.png" /><figcaption>A rough attempt at capturing how we think</figcaption></figure><p>The rest of this article is devoted to scrutinizing this picture: my dinner-napkin-level drawing of what might reasonably happen in our brains. I’ve concocted this as a handy and suggestive reference, nothing more. The rows represent three states of information flow, while the columns are a hierarchy of function. Inputs and Outputs should be self-explanatory, while for <strong><em>Internal</em></strong> states, I am referring to something the brain has learned to do — some kind of adjustable processing. <strong><em>Passive</em></strong> and <strong><em>Reactive</em></strong> functions are both part of fast, non-deliberative thinking (System 1): passive further indicates continuous, common functions while reactive processes are one-off, notable events. <strong><em>Active</em></strong> functions are our slow, deliberative thinking processes, of which we are continually aware.</p><p>Let’s imagine how our body could determine how to sweat. Abstractly, all that’s required is a measure of our body temperature (T) and a response based on how far that temperature lies above a learned threshold (T_max). So we can imagine T as a passive input, while T_max is some hard-coded, genetic constant. The internal process is then a function taking T, T_max and outputting a signal to sweat at an appropriate rate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*0YF4-R8oHykpjUE5CK_ypw.png" /><figcaption>Examples of each box</figcaption></figure><p>The arrows represent the possible interactions between these areas, and contain more of the interesting bits, I think. The downward areas are more straightforward, representing the passing of inputs to, and outputs from, the internal functions. The two diagonal arrows, up and to the right, indicate that lower level abstractions are what generate the inputs to the higher level processes.</p><p>Now the leftward arrows are, I think, interesting. I imagine these as a slow process that is training our internal functions. Consider the following: most of us don’t have an appropriate sense of danger at birth — we’re at the mercy of hot stoves, dangerous animals, etc. However, we can learn to react to these situations in an unconscious way, through some type of reinforcement. When we see the glowing red iron or shark fin, we now immediately recognize the danger and can take quick action. Similarly, the emotions we feel towards people, objects, and concepts are mostly learned; the feelings you have towards your friends was very different when you first met them. This is guided by how we consciously think about what’s happening, what they say and do, whether we should trust them.</p><p>And now time for the punch line:</p><blockquote>The answer to humanity, intelligence, and everything is in that one semicircular arrow that feeds our internal, active state back into itself.</blockquote><p>That arrow is where humans really differentiate themselves from other animals, where “intelligence” lies (hold on for my new definition), and where our sense of free will arises. At least, according to the 2020 version of myself. It’s the process for building upon our conscious knowledge, which lets us construct fictions and abstract concepts. If it helps, you could imagine a 4th column and beyond to the right, where these abstractions live at higher levels. If you go far enough, you might reach where <a href="https://en.wikipedia.org/wiki/G%C3%B6del,_Escher,_Bach">M.C. Escher</a> spent most of his time.</p><p>Are we really the only animal that has this feedback loop? <a href="https://dereklarson.medium.com/how-far-has-the-apple-fallen-f0a33421947d">Read further</a>…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87f83ec60efe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Intelligence as Structure]]></title>
            <link>https://dereklarson.medium.com/intelligence-as-structure-d0c2b1da92f7?source=rss-76f846d3471a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d0c2b1da92f7</guid>
            <category><![CDATA[draft]]></category>
            <category><![CDATA[intelligence]]></category>
            <dc:creator><![CDATA[Derek Larson]]></dc:creator>
            <pubDate>Sat, 12 Dec 2020 03:16:33 GMT</pubDate>
            <atom:updated>2020-12-28T07:55:16.178Z</atom:updated>
            <content:encoded><![CDATA[<h3>Cogito Ab Ordo</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xhTkZV7lLJRSTI1g.png" /><figcaption>Thought from order, or how I probably pissed of a Latin expert</figcaption></figure><p><em>(This is my third article on cognition, which started </em><a href="https://dereklarson.medium.com/defrosting-our-views-on-intelligence-87f83ec60efe"><em>here</em></a><em>)</em></p><h3>Intelligence as Structure</h3><p>In my <a href="https://dereklarson.medium.com/how-far-has-the-apple-fallen-f0a33421947d">previous article</a>, I suggest that it is the way in which we use our neurons that grants humanity our unique abilities.</p><p>I propose some simplifications to how we think about intelligence, including a narrower scope and a new candidate framework.</p><h3>Defining Intelligence</h3><p>Intelligence isn’t a well-defined term, and academics freely admit it. After hours of searching, I struggled to find any definition that succeeds in being explanatory more than being a list of “symptoms” and human baggage. I want to wipe the slate clean and work with the following definition for intelligence:</p><blockquote>Intelligence is the ability of an entity to dynamically structure information in a free conceptual network</blockquote><p>I imagine brows furrowing at “free conceptual network”. My use of the term is intended to indicate a critical aspect of the information processing allowed by the entity, that there is <strong>sufficient freedom allowed in both the structure and types of operations</strong>. I’ll draw a loose analogy between two common ways to structure data: a concept map/knowledge graph and a data table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JLJ4kh3ecJckw97ICya2ng.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/1*pIhoYwe5MmjCWQAubCZ2Eg.png" /><figcaption>A concept map (left) has more ways to relate cells than a data table (right)</figcaption></figure><p>The concept map is able to capture a broader set of relations between information than the data table is. It seems clear that the concept map could be drawn and used in a way that it matches a data table, but the table can’t easily represent certain structures: imagine a genealogical family tree, an electrical circuit, or a social network. In a similar light, it’s the way a system processes information that elevates it into an intelligence.</p><h3>Hallmarks of Intelligence</h3><p>Let me motivate my choice of structure, with some examples of particular things we do that we consider intelligent. Consider these activities:</p><ul><li>Determining which suspect in a lineup is unusual</li><li>Drawing a sketch from a description of an object</li><li>Replacing a golden skull with a bag of sand</li></ul><p>In the police lineup, the viewer’s ability to discern between similar people is being tested. It’s usually not enough that a witness saw someone with a certain height or hair color, as most are pretty common; it’s a problem of unique identity, which might come from a sufficiently large set of characteristics being compared. Each of these characteristics is some aspect of the person that adds them to some group: shapes, colors, textures, quirks. Any one of us could easily list off several traits of a person at a glance, and these traits are processed as <strong>abstract categories. </strong>Our ability to categorize things we see, hear, etc is one of the fundamental intelligent processes.</p><p>If I am asked to draw a person, I can come up with something others would recognize as such. It might be terrible, simplistic, and set back human cultural achievement, but it would be functional. It would also in some cases be completely original, at least that I hadn’t seen that object before. In this case, I was able to <strong>generate</strong> an instance of a category I already knew. Generating is another fundamental process of intelligence.</p><p>When Indiana Jones fails at avoiding the weight trap under the Golden Skull in Raiders of the Lost Ark, he’s actually being pretty intelligent, right? He inferred how the trap might work, estimated sand of equal weight to the object, and came up with a motion that might smoothly swap the two. Dr. Jones is engaging in a path of abstract reasoning that applies pre-categorized knowledge to a situation. This amounts to <strong>relating</strong> different categories.</p><h3>Clearing away the clutter</h3><p>The following things don’t pertain to a structural view of intelligence: emotions, goals, consciousness. Emotions would be a type of interaction between the intelligent agent and some external motivational framework. Similarly, and perhaps more generally, goals could be any framework that intersects with the intelligent agent and causes actions. Consciousness is tougher because we don’t have a good sense of it, but I am guessing it stems from a particular type of process in the intelligent agent that connects to concepts of self, time, and might not be necessary for other intelligent processes to occur.</p><p>An intelligent agent doesn’t need to act. The core of intelligence is just the ability to organize collected information in a way that unlocks a broad set of abilities.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d0c2b1da92f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Monty Hall — Illuminated]]></title>
            <link>https://dereklarson.medium.com/monty-hall-illuminated-3e708864b72d?source=rss-76f846d3471a------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e708864b72d</guid>
            <category><![CDATA[probability]]></category>
            <category><![CDATA[simulation]]></category>
            <category><![CDATA[brain-teaser]]></category>
            <dc:creator><![CDATA[Derek Larson]]></dc:creator>
            <pubDate>Tue, 03 Nov 2020 19:31:10 GMT</pubDate>
            <atom:updated>2020-11-03T19:31:10.571Z</atom:updated>
            <content:encoded><![CDATA[<h3>Monty Hall — Illuminated</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W2dmcgCVYhp2WNOD0UjuXA.jpeg" /></figure><p>Perhaps the most famous probability problem in popular culture, the Monty Hall problem is as follows (<a href="https://en.wikipedia.org/wiki/Monty_Hall_problem">from Wikipedia</a>):</p><blockquote>Suppose you’re on a game show, and you’re given the choice of three doors: Behind one door is a car; behind the others, goats. You pick a door, say №1, and the host, who knows what’s behind the doors, opens another door, say №3, which has a goat. He then says to you, “Do you want to pick door №2?” Is it to your advantage to switch your choice?</blockquote><p>If you haven’t encountered this before, give yourself a chance to solve it on your own! The appreciation only builds with that initial frustration :). Famously, <a href="https://en.wikipedia.org/wiki/Paul_Erd%C5%91s">Paul Erdős</a> needed to be shown computer simulation results to finally believe the answer — showing both the usefulness of simulations and the fallibility of geniuses.</p><p>An acute thinker might realize the problem depends on something not explicitly specified: the host’s system for opening doors. There’s general agreement that the standard interpretation should be: the host will always open a door, and it will have a goat behind it. More on that later.</p><p>Alright, so one of the reasons I’m writing this post is to try explaining a simple way to cut through the mental fog of this problem. To me, this starts from the following statement:</p><blockquote>switching is like getting two doors instead of one</blockquote><p>Let’s juggle that concept a bit. Imagine the host, instead of revealing a door, says, “you can keep your original choice, or you can keep whatever is in the other two doors”. Clearly, two doors are better than one. And why is this equivalent? Because if the car is in either of the two doors you didn’t initially choose, you are guaranteed to get it by switching. This last bit is the crux.</p><p>The reason I like this is that it doesn’t involve any enumeration of states or thinking of conditional probabilities. Instead, it lets us convert the problem into an easier one, something most people would quickly grasp.</p><p>Here’s another angle that might be of use. Instead of asking you to pick a door, the host asks you to mark one door “A” and the others “B”. Then, the host says, “there is a goat behind one of the ‘B’ doors. Would you like to have what’s behind the A or B doors?” This is the same problem, just restyled. So here you didn’t actually “choose” the “A” door, but labelling is effectively the same thing. And, you don’t actually need to know which “B” door has the goat, because you’re getting the other door no matter what.</p><p>So let’s kick it up a notch. 538 has <a href="https://fivethirtyeight.com/features/can-you-beat-the-goat-monty-hall-problem/?fbclid=IwAR0WSfRdy81LMTyTy3AIc6dkWXne6W6LsaCd8C0RsBIoWxAkuxelYnIciwQ">a blog post</a> posing a variant: instead of a known number of goats, there are a random number from zero to three— e.g. all doors could have goats and you’d always lose. Again, it’s good to take some time to mull it over before reading on.</p><p>Some of these scenarios now start running up against the host’s system of opening doors, as there might be no goats behind unchosen doors. In this case, apparently the host states this fact. The way the problem is stated, though, puts you in a position where the host is able to open a door. Not only have we touched on the idea of “host strategy”, but we have to deal with a new concept:</p><blockquote>Our current state eliminates some branches of history</blockquote><p>Now we can heed the call of conditional probabilities. As the problem was stated, there was an equal chance of each number of goats (0–3) being chosen. However, given that we just saw the host open a door with a goat behind it, we know we’re not in one of the “0-goat” universes. Alright, so that means the odds are split evenly between the rest? Not so easy…if there was a single goat and it was behind the door we chose, the host would also be unable to open a door.</p><p>If you’re interested in the math, I won’t deprive you of the process. Instead, I also came here to <a href="https://github.com/dereklarson/MontyHall">share some code</a>. The program lets you simulate the Monty Hall scenario with any number of doors, goats or a random number of doors or goats. Sometimes simulation is the shortest path to insight!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e708864b72d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>