<?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 林育任 (Yu-Jen Lin) on Medium]]></title>
        <description><![CDATA[Stories by 林育任 (Yu-Jen Lin) on Medium]]></description>
        <link>https://medium.com/@yujen-lin?source=rss-522319ce9a79------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8lM4Y1aiWyVfn9KjKZvdUw.jpeg</url>
            <title>Stories by 林育任 (Yu-Jen Lin) on Medium</title>
            <link>https://medium.com/@yujen-lin?source=rss-522319ce9a79------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 11:44:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yujen-lin/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[Understanding Abstractions in Neural Networks]]></title>
            <link>https://medium.com/data-science/understanding-abstractions-in-neural-networks-22cc2cd54597?source=rss-522319ce9a79------2</link>
            <guid isPermaLink="false">https://medium.com/p/22cc2cd54597</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[editors-pick]]></category>
            <category><![CDATA[information-theory]]></category>
            <dc:creator><![CDATA[林育任 (Yu-Jen Lin)]]></dc:creator>
            <pubDate>Tue, 14 May 2024 17:26:00 GMT</pubDate>
            <atom:updated>2024-05-18T14:32:53.588Z</atom:updated>
            <content:encoded><![CDATA[<h4>How thinking machines implement one of the most important functions of cognition</h4><p>It has long been said that neural networks are capable of abstraction. As the input features go through layers of neural networks, the input features are transformed into increasingly abstract features. For example, a model processing images receives only low-level pixel input, but the lower layers can learn to construct abstract features encoding the presence of edges, and later layers can even encode faces or objects. These claims have been proven with various works visualizing features learned in convolution neural networks. However, in what precise sense are these deep features “more abstract” than the shallow ones? In this article, I will provide an understanding of abstraction that not only answers this question but also explains how different components in the neural network contribute to abstraction. In the process, I will also reveal an interesting duality between abstraction and generalization, thus showing how crucial abstraction is, for both machines and us.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s38XvmAhBX5daL4Zmkw3oA.jpeg" /><figcaption><a href="https://pixabay.com/illustrations/organization-chart-executive-staff-5957122/">Image</a> by <a href="https://pixabay.com/users/geralt-9301/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=5957122">Gerd Altmann</a> from <a href="https://pixabay.com//?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=5957122">Pixabay</a></figcaption></figure><h3>Abstraction, Abstractly Defined</h3><p>I think abstraction, in its essence, is</p><blockquote>“the act of ignoring irrelevant details and focusing on the relevant parts.”</blockquote><p>For example, when designing an algorithm, we only make a few abstract assumptions about the input and do not mind other details of the input. More concretely, consider a sorting algorithm. The sorting function typically only assumes that the input is, say, an array of numbers, or even more abstractly, an array of objects with a defined comparison. As for what the numbers or objects represent and what the comparison operator compares, it is not the concern of the sorting algorithm.</p><p>Besides programming, abstraction is also common in mathematics. In abstract algebra, a mathematical structure counts as a group as long as it satisfies a few requirements. Whether the mathematical structure possesses other properties or operations is irrelevant. When proving a theorem, we only make crucial assumptions about the discussed structure, and the other properties the structure might have are not important. We do not even have to go to college-level math to spot abstraction, for even the most basic objects studied in math are products of abstraction. Take natural numbers for example, the process in which we transform a visual representation of three apples placed on the table to a mathematical expression “3” involves intricate abstractions. Our cognitive system is able to throw away all the irrelevant details, such as the arrangement or ripeness of the apples, or the background of the scene, and focus on the “threeness” of the current experience.</p><p>There are also examples of abstraction in our daily life. In fact, it is likely in every concept we use. Take the concept of “dog” for example. Despite we may describe such a concept as concrete, it is nevertheless abstract in a complex way. Somehow our cognitive system is able to throw away irrelevant details like color and exact size, and focus on the defining characteristics like its snout, ears, fur, tail, and barking to recognize something as a dog.</p><h3>Duality of Abstraction and Generalization</h3><p>Whenever there is abstraction, there seems to be also generalization, and vice versa. These two concepts are so connected that sometimes they are used almost as synonyms. I think the interesting relation between these two concepts can be summarized as follows:</p><blockquote>the more abstract the assumption, interface, or requirement, the more general and widely applicable the conclusion, procedure, or concept.</blockquote><p>This pattern can be demonstrated more clearly by revisiting the examples mentioned before. Consider the first example of sorting algorithms. All the extra properties numbers may have are irrelevant, only the property of being ordered matters for our task. Therefore, we can further abstract numbers as “objects with comparison defined”. By adopting a more abstract assumption, the function can be applied to not just arrays of numbers but much more widely. Similarly, in mathematics, the generality of a theorem depends on the abstractness of its assumption. A theorem proved for normed spaces would be more widely applicable than a theorem proved only for Euclidean spaces, which is a specific instance of the more abstract normed space. Besides mathematical objects, our understanding of real-world objects also exhibits different levels of abstraction. A good example is the taxonomy used in biology. Dogs, as a concept, fall under the more general category of mammals, which in turn is a subset of the even more general concept of animals. As we move from the lowest level to the higher levels in the taxonomy, the categories are defined with increasingly abstract properties, which allows the concept to be applied to more instances.</p><p>This connection between abstraction and generalization hints at the necessity of abstractions. As living beings, we must learn skills applicable to different situations. Making decisions at an abstract level allows us to easily handle many different situations that appear the same once the details are removed. In other words, the skill generalizes over different situations.</p><h3>Abstractions in Neural Networks</h3><p>We have defined abstraction and seen its importance in different aspects of our lives. Now it is time for the main problem: how do neural networks implement abstraction?</p><p>First, we need to translate the definition of abstraction into mathematics. Suppose a mathematical function implements “removal of details”, what property should this function possess? The answer is <strong>non-injectivity</strong>, which means that there exist different inputs that are mapped to the same output. Intuitively, this is because some details differentiating between certain inputs are now discarded, so that they are considered the same in the output space. Therefore, to find abstractions in neural networks, we just have to look for non-injective mappings.</p><p>Let us start by examining the simplest structure in neural networks, i.e., a single neuron in a linear layer. Suppose the input is a real vector <em>x</em> of dimension <em>D</em>. The output of a neuron would be the dot product of its weight <em>w </em>and <em>x</em>, added with a bias <em>b</em>, then followed by a non-linear activation function σ:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fmath.embed.fun%2Fembed%2FgCp5sRtiwvGcGSV8ZXx6cf&amp;display_name=Embed+Fun&amp;url=https%3A%2F%2Fmath.embed.fun%2FgCp5sRtiwvGcGSV8ZXx6cf&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=embed" width="200" height="136" frameborder="0" scrolling="no"><a href="https://medium.com/media/04650dfd424ca1dc5d32dbecb98666be/href">https://medium.com/media/04650dfd424ca1dc5d32dbecb98666be/href</a></iframe><p>It is easy to see that the simplest way of throwing away irrelevant details is to multiply the irrelevant features with zero weight, such that changes in that feature do not affect the output. This, indeed, gives us a non-injective function, since input vectors that differ in only that feature will have the same output.</p><p>Of course, the features often do not come in a form that simply dropping an input feature gives us useful abstractions. For example, simply dropping a fixed pixel from the input images is probably not useful. Thankfully, neural networks are capable of building useful features and simultaneously dropping other irrelevant details. Generally speaking, given any weight <em>w</em>, the input space can be separated into a one-dimensional subspace parallel to the weight <em>w</em>, and the other (<em>D</em>−1)-dimensional subspace orthogonal to <em>w</em>. The consequence is that any changes parallel to that (<em>D</em>−1)-dimensional subspace do not affect the output, and thus are “abstracted away”. For instance, a convolution filter detecting edges while ignoring uniform changes in color or lighting may count as this form of abstraction.</p><p>Beside dot products, the activation functions may also play a role in abstraction, since most of them are (or close to) non-injective. Take ReLU for example, all negative input values are mapped to zero, which means those differences are ignored. As for other soft activation functions like sigmoid or tanh, although technically injective, the saturation region maps different inputs to very close values, achieving similar effects.</p><p>From the discussion above, we see that both the dot product and the activation function can play a role in the abstraction performed by a single neuron. Nevertheless, the information not captured in one neuron can still be captured by other neurons in the same layer. To see if a piece of information is really ignored, we also have to look at the design of the whole layer. For a linear layer, there is a simple design that forces abstraction: lowering the dimension. The reason is similar to that of the dot product, which is equivalent to projecting onto a one-dimensional space. When a layer of <em>N </em>neurons receives <em>M </em>&gt; <em>N</em> inputs from the previous layer, it involves a matrix multiplication:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fmath.embed.fun%2Fembed%2FvFN2jeNBdabUXwFuP491Fi&amp;display_name=Embed+Fun&amp;url=https%3A%2F%2Fmath.embed.fun%2FvFN2jeNBdabUXwFuP491Fi&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=embed" width="281" height="161" frameborder="0" scrolling="no"><a href="https://medium.com/media/e05960269c0e5ed4b900c1d15f1590f5/href">https://medium.com/media/e05960269c0e5ed4b900c1d15f1590f5/href</a></iframe><p>The input components in the row space get preserved and transformed to the new space, while input components lying in the null space (at least <em>M</em>-<em>N</em> dimensional) are all mapped to zero. In other words, any changes to the input vector parallel to the null space are considered irrelevant and thus abstracted away.</p><p>I have only analyzed a few basic components used in modern deep learning. Nevertheless, with this characterization of abstraction, it should be easy to see that many other components used in deep learning also allow it to filter and abstract away irrelevant details.</p><h3>Bringing in Information Theory</h3><p>With the explanation above, perhaps some of you are not yet fully convinced that this is a valid understanding of neural networks’ working since it is quite different from the usual narrative focusing on pattern matching, non-linear transformations, and function approximation. Nevertheless, I think the fact that neural networks throw away information is just the same story told from a different perspective. Pattern matching, feature building, and abstracting away irrelevant features are simultaneously happening in the network, and it is by combining these perspectives that we can understand why it generalizes well. Let me bring in some studies of neural networks based on information theory to strengthen my point.</p><p>First, let us translate the concept of abstraction into information-theoretic terms. We can think of the input to the network as a random variable <em>X</em>. Then, the network would sequentially process <em>X </em>with each layer to produce intermediate representations <em>T</em>₁, <em>T</em>₂,…, and finally the prediction <em>Tₖ</em>.</p><p>Abstraction, as I have defined, involves throwing away irrelevant information and preserving the relevant part. Throwing away details causes originally different samples of <em>X</em> to map to equal values in the intermediate feature space. Thus, this process corresponds to a lossy compression that decreases the entropy <em>H</em>(<em>Tᵢ</em>) or the mutual information <em>I</em>(<em>X</em>;<em>Tᵢ</em>). What about preserving relevant information? For this, we need to define a target task so that we can assess the relevance of different pieces of information. For simplicity, let us assume that we are training a classifier, where the ground truth is sampled from the random variable <em>Y</em>. Then, preserving relevant information would be equivalent to preserving <em>I</em>(<em>Y</em>;<em>Tᵢ</em>) throughout the layers, so that we can make a reliable prediction of <em>Y</em> at the last layer. In summary, if a neural network is performing abstraction, we should see a gradual decrease of <em>I</em>(<em>X</em>;<em>Tᵢ</em>), accompanied by an ideally fixed <em>I</em>(<em>Y</em>;<em>Tᵢ</em>), as we go to deeper layers of a classifier.</p><p>Interestingly, this is exactly what the information bottleneck principle [1] is about. The principle argues that the optimal representation <em>T</em> of <em>X</em> with respect to <em>Y</em> is one that minimizes <em>I</em>(<em>X</em>;<em>T</em>) while maintaining <em>I</em>(<em>Y</em>;<em>T</em>)=<em>I</em>(<em>Y</em>;<em>X</em>). Although there are disputes about some of the claims from the original paper, there is one thing consistent throughout many studies: as the data move from the input layer to deeper layers, <em>I</em>(<em>X</em>;<em>T</em>) decreases while <em>I</em>(<em>Y</em>;<em>T</em>) is mostly preserved [1,2,3,4], a sign of abstraction. Not only that, they also verify my claim that saturation of activation function [2,3] and dimension reduction [3] indeed play a role in this phenomenon.</p><h3>A Unifying Perspective</h3><p>Reading through the literature, I found that the phenomenon I termed abstraction has appeared under different names, although all seem to describe the same phenomenon: invariant features [5], increasingly tight clustering [3], and neural collapse [6]. Here I show how the simple idea of abstraction unifies all these concepts to provide an intuitive explanation.</p><p>As I mentioned before, the act of removing irrelevant information is implemented with a non-injective mapping, which ignores differences occurring in parts of the input space. The consequence of this is, of course, creating outputs that are “invariant” to those irrelevant differences. When training a classifier, the relevant information is those distinguishing between-class samples, instead of those features distinguishing same-class samples. Therefore, as the network abstracts away irrelevant details, we see that same-class samples cluster (collapse) together, while between-class samples remain separated.</p><p>Besides unifying several observations from the literature, thinking of the neural networks as abstracting away details at each layer also provides us clues about how its predictions generalize in the input space. Consider a simplified example where we have the input <em>X</em>, abstracted into an intermediate representation <em>T</em>, which is then used to produce the prediction <em>P</em>. Suppose that a group of inputs <em>x</em>₁,<em>x</em>₂,<em>x</em>₃,…∼<em>X</em> are all mapped to the same intermediate representation <em>t</em>. Because the prediction <em>P</em> only depends on <em>T</em>, the prediction for <em>t</em> necessarily applies to all samples <em>x</em>₁,<em>x</em>₂,<em>x</em>₃,…. In other words, the <strong>direction of invariance caused by abstraction is the direction in which the predictions generalize</strong>. This is analogous to the example of sorting algorithms I mentioned earlier. By abstracting away details of the input, the algorithms naturally generalize to a larger space of input. For a deep network of multiple layers, such abstraction may happen at each of these layers. As a consequence, the final prediction also generalizes across the input space in intricate ways.</p><h3>The Core of Cognition</h3><p>Years ago when I was writing my first article on abstraction, I saw it only as an elegant way mathematics and programming solve a series of related problems. However, it turns out I was missing the bigger picture. <strong>Abstraction is in fact everywhere, inside each of us</strong>. <strong>It is a core element of cognition</strong>. Without abstraction, we would be drowned in low-level details, incapable of understanding anything. It is only by abstractions that we can reduce the incredibly detailed world into manageable pieces, and it is only by abstraction that we can learn anything general.</p><p>To see how crucial abstraction is, just try to come up with any word that does not involve any abstraction. I bet you cannot, for a concept involving no abstractions would be too specific to be useful. Even “concrete” concepts like apples, tables, or walking, all involve complex abstractions. Apples and tables both come in different shapes, sizes, and colors. They may appear as real objects or just pictures. Nevertheless, our brain can see through all these differences and arrive at the shared essences of things.</p><p>This necessity of abstraction resonates well with Douglas Hofstadter’s idea that analogy sits at the core of cognition [7]. Indeed, I think they are essentially two sides of the same coin. Whenever we perform abstraction, there would be low-level representations mapped to the same high-level representations. The information thrown away in this process is the irrelevant differences between these instances, while the information left corresponds to the shared essences of them. If we group the low-level representations mapping to the same output together, they would form equivalence classes in the input space, or “bags of analogies”, as Hofstadter termed it. Discovering the analogy between two instances of experiences can then be done by simply comparing these high-level representations of them.</p><p>Of course, our ability to perform these abstractions and use analogies has to be implemented computationally in the brain, and there is some good evidence that our brain performs abstractions through hierarchical processing, similar to artificial neural networks [8]. As the sensory signals go deeper into the brain, different modalities are aggregated, details are ignored, and increasingly abstract and invariant features are produced.</p><h3>Conclusions</h3><p>In the literature, it is quite common to see claims that abstract features are constructed in the deep layers of a neural network. However, the exact meaning of “abstract” is often unclear. In this article, I gave a precise yet general definition of abstraction, unifying perspectives from information theory and the geometry of deep representations. With this characterization, we can see in detail how many common components of artificial neural networks all contribute to their ability to abstract. Commonly, we think of neural networks as detecting patterns in each layer. This, of course, is correct. Nevertheless, I propose shifting our attention to pieces of information ignored in this process. By doing this, we can gain better insights into how it produces increasingly abstract and thus invariant features in deep layers, as well as how its prediction generalizes in the input space.</p><p>With these explanations, I hope that it not only brings clarity to the meaning of abstraction but more importantly, demonstrates its central role in cognition.</p><h4>References</h4><p>[1] R. Shwartz-Ziv and N. Tishby, <a href="https://arxiv.org/abs/1703.00810">Opening the Black Box of Deep Neural Networks via Information</a> (2017). arXiv.<br>[2] A. M. Saxe et al., <a href="https://iopscience.iop.org/article/10.1088/1742-5468/ab3985">On the information bottleneck theory of deep learning</a> (2019), Journal of Statistical Mechanics: Theory and Experiment 12:124020<br>[3] Z. Goldfeld et al., <a href="https://proceedings.mlr.press/v97/goldfeld19a.html">Estimating Information Flow in Deep Neural Networks</a> (2019). in Proceedings of the 36th International Conference on Machine Learning, PMLR 97:2299–2308<br>[4] K. Wickstrøm, S. Løkse, M. Kampffmeyer, S. Yu, J. Principe, and R. Jenssen, <a href="https://arxiv.org/abs/1909.11396">Information Plane Analysis of Deep Neural Networks via Matrix-Based Renyi’s Entropy and Tensor Kernels</a> (2019). arXiv.<br>[5] A. Achille and S. Soatto, <a href="https://www.jmlr.org/papers/v19/17-646.html">Emergence of Invariance and Disentanglement in Deep Representations</a> (2018), Journal of Machine Learning Research, 19(50):1−34.<br>[6] A. Rangamani, M. Lindegaard, T. Galanti, and T. A. Poggio, <a href="https://proceedings.mlr.press/v202/rangamani23a.html">Feature learning in deep classifiers through Intermediate Neural Collapse</a> (2023), in Proceedings of the 40th International Conference on Machine Learning, PMLR 202:28729–28745.<br>[7] D. R. Hofstadter, <a href="https://mitpress.mit.edu/9780262571395/the-analogical-mind/">Epilogue: Analogy as the core of cognition.</a> (2001). The Analogical Mind. The MIT Press.<br>[8] P. Taylor, J. N. Hobbs, J. Burroni, and H. T. Siegelmann, <a href="https://www.nature.com/articles/srep18112">The global landscape of cognition: hierarchical aggregation as an organizational principle of human cortical networks and functions</a> (2015), Sci Rep, vol. 5, no. 1, p. 18112.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22cc2cd54597" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/understanding-abstractions-in-neural-networks-22cc2cd54597">Understanding Abstractions in Neural Networks</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Self-Awareness and AI: A Deep Dive]]></title>
            <link>https://yujen-lin.medium.com/self-awareness-and-ai-a-deep-dive-944c051203f2?source=rss-522319ce9a79------2</link>
            <guid isPermaLink="false">https://medium.com/p/944c051203f2</guid>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[self-awareness]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[林育任 (Yu-Jen Lin)]]></dc:creator>
            <pubDate>Sat, 27 Apr 2024 00:00:23 GMT</pubDate>
            <atom:updated>2024-05-14T16:00:16.479Z</atom:updated>
            <content:encoded><![CDATA[<h4>Will AIs ever be self-aware? I argue that the answer is yes.</h4><p>Not long ago, Anthropic, an AI company, announced its latest Large Language Model (LLM) named Claude. After an employee from Anthropic shared his experimental findings on X, it is rumored by many that it has become self-aware. Before this, I had been considering writing about self-awareness, and so it seems like a good time to reflect on what self-awareness means and whether current or future AI can attain self-awareness.</p><p>Before diving into the discussion, I would like to stress that self-awareness is not a binary property and thus a simple yes-or-no answer (or even one involving degrees) is usually inadequate to capture the underlying complexity. As I will explain later in this article, self-awareness comes in various forms and degrees. It may be better to think of self-awareness as a property that is manifested in some behaviors of a system, and each system may manifest self-awareness through different behaviors, showing an awareness of different aspects of self. We can then roughly say that the more aspects of self the system is aware of, the richer and higher its self-awareness is.</p><p>I will begin my discussion with some examples that I think involve the most primitive form of self-awareness, which I will develop into a general definition of self-awareness. Then, I will bring in various examples of self-awareness, which I hope can make the abstract definition concrete. The first kind of self-awareness I will discuss is bodily self-awareness, the awareness of one’s own body. In this part, I will also discuss the famous mirror test. The second kind I will then deal with is the more intriguing form of self-awareness, which involves introspection, meta-cognition, and mental models of oneself. In the process, I will also make some guesses of how these abilities may be implemented.</p><p>After all the preliminary discussion on self-awareness, I will finally discuss whether current AI possesses some form of self-awareness by examining the current paradigm as well as some experiments done on Large Language Models (LLMs).</p><h3>Table of Contents</h3><ul><li><a href="https://yujenlin.com/posts/self_aware_ai/#the-simplest-form-of-self-awareness">The Simplest Form of Self-Awareness</a></li><li><a href="https://yujenlin.com/posts/self_aware_ai/#self-knowledge">Self-Knowledge</a><br> — <a href="https://yujenlin.com/posts/self_aware_ai/#bodily-self-awareness">Bodily Self-Awareness</a><br> — <a href="https://yujenlin.com/posts/self_aware_ai/#learning-self-models">Learning Self-Models</a><br> — <a href="https://yujenlin.com/posts/self_aware_ai/#the-mirror-test">The Mirror Test</a><br> — <a href="https://yujenlin.com/posts/self_aware_ai/#introspection-meta-cognition-and-more">Introspection, Meta-Cognition, and More</a><br> — <a href="https://yujenlin.com/posts/self_aware_ai/#testing-with-language">Testing With Language</a></li><li><a href="https://yujenlin.com/posts/self_aware_ai/#self-awareness-in-ai-systems">Self-Awareness in AI Systems</a><br> — <a href="https://yujenlin.com/posts/self_aware_ai/#the-needle-in-the-haystack">The Needle in the Haystack</a><br> — <a href="https://yujenlin.com/posts/self_aware_ai/#mirror-test-on-llms">Mirror Test on LLMs</a></li><li><a href="https://yujenlin.com/posts/self_aware_ai/#conclusion">Conclusion</a></li></ul><p><em>Medium does not support nested lists really well. You can go to </em><a href="https://yujenlin.com/posts/self_aware_ai/"><em>my blog</em></a><em> for better navigation.</em></p><h3>The Simplest Form of Self-Awareness</h3><p>I think the simplest form of self-awareness is being aware of the difference between oneself and others and performing some useful, discriminative behavior based on that awareness. Here, by “being aware of the difference”, I mean the signals coming from oneself and others would be represented differently in the system, and thus different reactions can be generated based on this difference. This criterion does not necessarily require one to build a continuously updated self-model (I will explain what this means later) in a complex cognitive system. Rather, some decisions that are made based on some simplistic knowledge of oneself would suffice. Since this bar is not high, self-awareness in this sense may be much more prevalent than we think. Many animals, or even plants already satisfy this criterion each in their own way.</p><p>For example, for a territorial animal that claims their territory using markers (such as urine), it is necessary that they can distinguish their own markers from those of others, and it can be expected that they act differently when someone else’s marker is encountered. If they behave the same way in their and other’s territory, then territories would be meaningless. Besides territorial animals, it is discovered that octopuses’ suckers recognize octopus skins (they stick automatically to most objects but not octopus skin), and octopuses seem to treat their own and others’ amputated arms differently <a href="https://yujenlin.com/posts/self_aware_ai/#ref-1">[1] </a>. Interestingly, some cannibalistic jumping spiders also seem to be able to distinguish between their own and others’ draglines<a href="https://yujenlin.com/posts/self_aware_ai/#ref-2"> [2] </a>. It is not just animals that can be self-aware in this sense, even plants can recognize themselves. Many plants use self-recognition to avoid self-fertilization or to efficiently allocate their root. Moreover, some vines can recognize themselves and their tendrils prefer to grab onto non-self objects<a href="https://yujenlin.com/posts/self_aware_ai/#ref-3"> [3] </a>. As a final example, almost all living organisms need to have some form of immune system to defend against pathogens that pose threats to one’s survival. These immune systems must recognize what is from the self and what is not. Otherwise, the organism would be killed by its own immune system.</p><p>Many of the examples above are often called self-recognition in the literature and are deemed different from “true” self-awareness. Therefore, some people may disagree with my use of “self-awareness” above. However, I do not think there is a clear cut between these two concepts and it makes more sense to me to simply adopt a more general notion of self-awareness, which includes these cases of self-recognition as a weaker form. As long as we are aware that self-awareness, as I am using it, still comes in various degrees and forms, we would not confuse these weaker forms of self-awareness with the higher ones, which I will get into next.</p><h3>Self-Knowledge</h3><p>Beyond showing some behavior differentiating self from others, I think higher forms of self-awareness generally correspond to having more self-knowledge. Self-knowledge comes in different forms and richness. From simply associating an attribute with oneself to tracking dynamic states of oneself, developing an implicit understanding of self in motor control, and finally constructing advanced self-models, these are all different forms of self-knowledge. Among these cases, self-models may be the closest to what most people regard as self-awareness. A model is usually a simplified representation of an object that can be used in our reasoning about the modeled object. Likewise, having a self-model would mean having a representation of oneself that can be used for making decisions, reasoning, simulating, and planning one’s own actions.</p><p>Using this general definition, perhaps we can say the examples discussed in the previous section also count as some brutally simple self-knowledge. For example, if octopus suckers recognize their own skin by only some chemical matching process, the implicit knowledge about itself used in the decision process of the suckers would be that octopus skin exhibits this chemical feature while other surfaces usually do not. Similarly, for our immune system, the self is associated with a set of molecular features, which our immune system will recognize as safe. When a territorial animal recognizes its own territory, the self-knowledge used in this process would be the chemical features that differentiate the animal from others.</p><p>Nevertheless, one is certainly not just a set of chemical features. A rich understanding of self would need to capture multiple aspects of oneself from multi-modal senses and would also involve the low-level features as well as the inferred high-level concepts. Furthermore, as the self changes throughout its existence, the model has to be updated to keep track of the dynamic aspects of oneself.</p><p>As I have mentioned in the beginning, I think self-awareness can be roughly separated into two kinds: bodily self-awareness and mental self-awareness. The former involves tracking the current state of its own body (e.g., the limbs, trunk, including the internal organs) and a general understanding of one’s own body. The latter involves tracking and understanding one’s own cognitive process (i.e., metacognition and a theory of one’s own mind). I’ll discuss bodily self-awareness before getting into mental self-awareness.</p><h3>Bodily Self-Awareness</h3><p>In order to track one’s bodily states or maintain an updated understanding of oneself, the cognitive system must have ways to collect information about the body. This is done by having signals carrying information about certain bodily states sent to the cognitive system. Animals like us have diverse types of receptors scattered across our bodies, each carrying information about a different aspect of our body, while machines can also achieve this by having different types of sensors tracking their bodies in detail.</p><p>The simplest form of bodily self-awareness is perhaps being able to perceive the “immediate” states of one’s body. For example, one may seek sunlight/shade depending on one’s current body temperature, or one may detect injuries in the body and react by, say, retracting one’s hand. This form of bodily self-awareness should be quite common in the animal kingdom and should be easy to implement in robots, too.</p><p>Besides tracking the immediate state of oneself, one may also know some more persistent properties of oneself. An example is the size of our body parts, which is important for inferring the positions of our body parts. With my eyes closed, I can still feel the position of my arm as I move it around, even though my cognitive system may be only receiving proprioceptive signals indicating the stretch of my muscles or my joint angles. To infer the position of my body parts from these sensed quantities, the brain necessarily requires information about the size of the body parts. Likewise, when trying to act, our motor system has to activate the corresponding muscles with an appropriate intensity. This appropriate intensity depends on bodily parameters like weight or the connection point of muscles and bones. Therefore, the motor system generating appropriate motor signals also requires some implicit self-knowledge. Besides knowing how to perform an elementary muscle movement, intelligent beings also need to plan a series of actions to achieve their goal. In order to plan, one often requires a self-model, which may include properties like the size, shape, and body structure of oneself, the possible actions one can take, or the physical limits of oneself. Since most of our action involves the environment, understanding how one’s own actions affect the environment is also important.</p><p>From these examples, we can see that, for an animal wishing to navigate and survive in this world, some basic self-awareness, in the sense of understanding one’s own body, is actually crucial. Therefore, we can probably expect most animals to have some degree of self-awareness in this sense.</p><h3>Learning Self-Models</h3><p>Although I cannot map out the detailed process of acquiring these pieces of self-knowledge mentioned in the last section, in principle, most of them can be (and have to be) obtained as the brain discovers the statistical regularities existing in one’s multi-modal sensory experiences as well as their relation to one’s actions.</p><p>Specifically, one possibility of letting a machine automatically learn a self-representation may lie in the so-called “self-supervised learning” studied in machine learning. In this approach, the model is often trained to predict part of the data from other parts of the data (e.g., predicting one modality from another, or predicting the future from the past). The advantage of this approach is that abstract, latent representations of the data can be learned without manual labeling by humans.</p><p>Inspired by this idea, I think <strong>representations of oneself can also be naturally learned if one applies this principle to one’s sensory and motor signals</strong>. The reason is that one’s sensory experience often includes signals related to oneself in multiple modalities, and these signals of different modalities are usually highly correlated. For instance, as I perform multiple experiments of watching my right hand touch my left hand, my eyes provide a visual representation of this touch event, while the tactile receptors provide another signal indicating this event. These two representations of the same event are highly correlated.<br> Therefore, in modeling the relation between these signals or building efficient latent representations of these signals, the correlation between them may be discovered, leading to a unified representation of one’s body. Furthermore, since how the sensory experiences change with actions depends on the structure of one’s body, a self-model may also be learned by observing and modeling the relation between them.</p><p>Interestingly, there has been research done on simple robots using this idea <a href="https://yujenlin.com/posts/self_aware_ai/#ref-4">[4] </a>. In this study, the topology and parameters of the robot’s own body can be learned by trying to predict the tilt angle of the body (sensory signals) from joint angles (motor signals). This is certainly a relatively simple example. I think future robots with access to more modalities, more sensors, and more data samples would be able to build much richer self-models.</p><p>The process by which our brain builds an understanding of the world and ourselves is probably similar. As a living being, being able to predict the near future or the consequences of an action is important for planning our actions and further ensuring our survival. By constantly predicting the future, verifying them with experiences, and modifying our model in cases of error, we can gradually build a sophisticated model of the world as well as ourselves. In fact, this is roughly what the predictive coding theory in neuroscience is about. The theory states that our brain maintains a generative model, by which we constantly predict future sensory experiences coming from the world. As waves of sensory experiences arrive, our brain calculates the errors of our predictions. In the short term, these errors guide us to infer a better latent variable for explaining our current experiences. In the long term, these error leads to updates in our model. One can see that this idea has close connections to self-supervised learning. I think by applying predictive coding to experiences about oneself, a self-model may naturally emerge from this process.</p><h3>The Mirror Test</h3><p>Speaking of self-awareness, it seems unjustifiable to ignore the mirror test, which is the most well-known test for self-awareness in animals that examines whether animals recognize themselves in the mirror.</p><p>In the mirror test, animals are first exposed to mirrors and their behaviors are observed. For an animal without previous experience with mirrors, the first reactions are usually social responses. They treat the mirrored image as an individual of the same species and show aggression in many cases. After a while, if the animals are smart enough, social responses stop and they begin to perform tests on the mirror, gradually understanding how mirrors work. Some animals may even start to use the mirror to investigate themselves, looking at parts of themselves that are typically hidden from themselves (e.g., their face or the inside of their mouth). After the animals have become familiar with mirrors, marks are placed on parts of the animal that are only visible using the mirror. If an animal then realizes that the mark is on itself and proceeds to touch/investigate the mark, it is then said to have passed the mirror test. Among the tested animals, primates, elephants, dolphins, and even cleaner fishes have been reported to pass the test.</p><p>How much exactly does the mirror test tell us about self-awareness? We should not assume that all animals passing the test have the same kind or level of self-awareness, nor should we infer that animals failing the test have zero self-awareness. A detailed analysis of the cognitive abilities required for the test would help us better interpret the test results.</p><p>First, the animal must already have an understanding of its body so that upon discovering the mark on its body, it knows the position of that body part and can then plan actions to investigate the mark.</p><p>Second, to recognize itself in the mirror, the animal must be able to discover the connection between the visual signals coming from the mirror and the proprioceptive, motor signals, or even existing abstract representations of itself. To achieve this, the animal needs to have a cognitive system that integrates these signals and detects strongly correlated components so that the animal can understand that, say, a certain patch of its visual experiences (its reflection in the mirror) and its internal signals both represent itself. In other words, the animal’s brain has to rewire itself so that it starts to infer states of itself utilizing additional information coming from the mirror (e.g., inferring that it has a mark on its head based on the reflection).</p><p>Third, to be motivated in investigating the mark, the animal probably has to store a visual representation of its normal self, so that upon seeing the mark the animals recognize that as an abnormal condition. This visual representation can be formed during the self-investigation stage after the animals become familiarized with the mirror.</p><p>Since failing to satisfy one of the above criteria can lead to failure of the test, the failure may be just due to its inability to incorporate new visual information about itself (the second and third criterion). In this case, the animal may still have a representation of itself built from other modalities, and thus still be self-aware in other ways. Therefore, most of the animals failing the test are probably cases of “incomplete” self-awareness rather than a total absence of self-awareness. For instance, dogs have not been reported to pass the mirror test. Nevertheless, dogs certainly exhibit many self-aware behaviors. They can distinguish their own urine from others. They can sense what is happening to their body, and where on their body it is happening. They roughly know their body size and plan their action based on that understanding <a href="https://yujenlin.com/posts/self_aware_ai/#ref-5">[5] </a>. They also have a basic understanding of physical interaction between their body and objects in the world, and they can then control their body to solve problems <a href="https://yujenlin.com/posts/self_aware_ai/#ref-6">[6] </a>.</p><p>Besides the fact that animals failing the mirror test can still be self-aware in other ways, more complex forms of self-awareness involving higher abstractions or meta-cognitions are probably not necessary for passing the test. Therefore, the mirror test should not be considered a definite and complete test for self-awareness. It is important to understand that self-awareness comes in various forms and degrees, and the mirror test only tests for a specific form of self-awareness.</p><h3>Introspection, Meta-Cognition, and More</h3><p>In the previous subsection, I discussed bodily self-awareness, a system’s ability to track, represent, understand, or model its own body. Nevertheless, we are still far from covering fully what we usually mean by self-awareness. Beyond being aware of one’s body, the more intriguing form of self-awareness concerns one’s own cognitive system, i.e., introspection, meta-cognition, and theories of one’s own mind.</p><p>Introspection refers to the act of examining one’s own mental or emotional process, and I think it falls under the more general idea of meta-cognition, which means cognitive processing of cognitive processes. Generally speaking, it would require a cognitive system to have access to the states or signals of some cognitive process, understand the relations between these signals, or even regulate the cognitive process.</p><p>Analogous to my discussion on bodily self-awareness, I think one’s knowledge about one’s mental process can also be roughly categorized into two forms: immediate awareness and general knowledge.</p><p>The former, immediate awareness, requires a system to track the immediate state of one’s cognitive system. For example, one does not simply think but is also aware that it is oneself that is thinking, possibly verbally announcing this fact. Similarly, one can be aware of one’s perceiving, knowing, or any other mental states or activities.</p><p>Besides immediate awareness, one can also learn some general properties of one’s cognitive system. As one observes oneself over a period, one can learn the underlying pattern in one’s thinking and behavior, such as the strengths and weaknesses, or the common themes, tendencies, or fundamental values underlying one’s thinking. In other words, one builds a model of one’s own cognitive process and behavior.</p><p>Speaking of introspection, perhaps we should also give some attention to emotion, an attribute that is often deemed special to human beings and cannot be possessed by machines. Emotion, abstractly defined, is a transient, temporary state that a system enters in response to an event, changing how the system thinks and acts during a short period. For example, fear, one of the most primal emotions in us, refers roughly to the state involving physiological changes like increased heart rate, dilated pupils, or tensed muscles, as well as changes in our cognitive processing such as heightened alertness for events happening around us. Since emotions involve both physiological responses in the body and changes in the cognitive process, understanding our own emotions requires integrating bodily awareness and meta-cognition. Our concept of emotion is then a high-level concept, a latent variable included in our self-model, that we use to explain these changes happening to our body and cognitive process.</p><p>Can machines have emotions? As most of us understand intuitively other people’s emotions based on their behavior, without understanding the biological implementation of such mechanisms, it makes sense to consider it an abstract concept separated from the underlying implementation. Further, anyone having an understanding of computation would know that an abstract mechanism like emotion can, in principle, be implemented with different physical systems and that human bodies are just a particular kind of machine implementing this pattern of behavior. Therefore, there are no fundamental reasons why machines cannot have emotions. Not only that, information access to cognitive processes responsible for emotion would also allow them to be aware of their own emotion.</p><p>Another necessary component for a complete understanding of self is understanding self as something that persists in time and has a history. This involves maintaining a database of events that occurred around oneself. To name a few, what happened to oneself, what one was thinking and feeling, what one did, where one was, and when each of these happened. In humans, this corresponds to episodic memory discussed in neuroscience. For future robot agents, episodic memory would also be a necessary component and I think it will be implemented by a kind of database storing abstract or reduced representations of particular events, similar to how humans mostly only store a summarized version of the occurred events.</p><p>So far, I have mentioned that full self-awareness involves modeling our own body as well as our mental process. Although these two forms of understanding seem different, my bet is that they can all be implemented according to a common principle. As I have mentioned in the subsection <a href="https://yujenlin.com/posts/self_aware_ai/#learning-self-models">Learning Self-Models</a>, by applying a procedure similar to self-supervised learning, a model of the world can be built by modeling the relation between the multi-modal perceptions conveying information of the world. Similarly, a model of one’s own body can also be built by modeling the relations between multi-modal perceptions of oneself as well as the motor signals. Pushing this analogy one step further, one should also be able to build a model of one’s own cognitive processes by a similar process involving observing the signals of the cognitive processes, predicting them, verifying the prediction, and updating the model.</p><p>Further support of this idea can be found in predictive coding theory, which I also mentioned in the subsection <a href="https://yujenlin.com/posts/self_aware_ai/#learning-self-models">Learning Self-Models</a>. It is an attempt to explain how our brain builds models of the world from our sensory experiences, and it is conceptually similar to self-supervised learning. Although it was initially proposed to explain our visual perception, it is nevertheless extended to explain other mechanisms in the brain. For example, Anil K. Seth, a renowned neuroscientist, proposed “interoceptive predictive coding”, which states that “emotional content is determined by active inference on the likely internal and external causes of changes in the physiological condition of the body”<a href="https://yujenlin.com/posts/self_aware_ai/#ref-7"> [7] </a>. This idea is pretty similar to my previous explanation that the categories of emotions that we intuitively use, are latent variables in our self-model. They are inferred from and used to explain (i.e., correctly predict) the changes occurring in the body and cognitive process.</p><h3>Testing With Language</h3><p>As we move from bodily self-awareness to introspection, meta-cognition, or mental self-models, it seems much harder to judge whether a system possesses these abilities using only observation of their non-linguistic behaviors. To my knowledge, the most established result in the study of animals’ meta-cognition seems to be only that some animals such as macaques are aware of their uncertainty in decisions <a href="https://yujenlin.com/posts/self_aware_ai/#ref-8">[8] </a>. Besides this, there are probably no conclusive results on how rich animals’ theory of their own mind is.</p><p>However, future AI will definitely be capable of using language, and thus we can test their understanding of themselves by simply having a conversation with them, just like how we would probe a person’s understanding.</p><p>To test if an AI or human understands itself, we can ask it to describe itself in terms of personality, physical appearance and structure, abilities, values and preferences, as well as its role in society, or more generally, its relations to the world. Then, we can observe its behavior to see if it is consistent with its description.</p><p>Having an adaptive self-model is important, and some systems may have a static self-model that can not handle unexpected changes in oneself. To test if the system can continually maintain an updated understanding of itself, it is necessary to test the system with dynamic, changing aspects of itself. These are questions that cannot be reliably answered without continual access to, and an understanding of, information about oneself. To name a few, if an AI did something, is it aware of its growing history, capable of recalling and reporting recently occurred events and actions? If an AI loses its components or is given new peripherals, can it update its self-model and behaviors to account for these changes? As an AI’s knowledge expands, can it reliably report what it knows and does not know? By carefully designing these questions and the corresponding verification, we should be able to probe how rich and adaptive a system’s self-model is.</p><h3>Self-Awareness in AI Systems</h3><p>Although there must still be aspects of self-awareness that I missed, I hope I have explained clearly enough what I mean by self-awareness. Now, let us focus on the particular case of self-awareness in AI systems.</p><p>Summarizing my previous discussions, for an AI system to be self-aware, it must at least satisfy one of these conditions:</p><ol><li>It is trained with data containing information related to itself, which allows it to learn general knowledge of itself.</li><li>It has access to and is able to process updated information about itself during its operation.</li></ol><p>Examining the first condition, I think the kind of pre-training done on current LLMs probably does not encourage self-awareness to emerge, even if the architecture allows so. The main reason is that the data are collected from the internet. These data are generated by different individuals, without a consistent “self” behind the generation or collection of the data. Therefore, no self-models can be learned from these data.</p><p>In contrast, how humans or most animals learn about themselves is quite different. From the moment of birth, we are constantly collecting data from each of our unique perspectives. Among the senses we have, many of them, such as visual, auditory, tactile, proprioceptive, and interoceptive perceptions, all contain information about ourselves. Combining these senses with representations of our own actions implemented with corollary discharges, we can then build a rich understanding of ourselves. This is very different from how we pre-train LLMs.</p><p>In the future, I think this problem can be solved by building agents that learn in an online and embodied fashion (or at least with a simulation of their body), collecting information about themselves as they perform actions, and building a self-model in the process.</p><p>Because of the lack of “self” in the pre-training data, the model trained from the data is like a general inference engine rather than an agent knowing itself. However, an agent can be built by adding components around this general engine, and it is possible to provide the model with information about itself so that it gains some self-awareness. This would make the system satisfy the <a href="https://yujenlin.com/posts/self_aware_ai/#second-condition-ai">second</a> condition.</p><p>For example, an LLM can be given system prompts like “You are an AI assistant working for xxx. You try your best to be helpful and kind. …” to define its character. These prompts simultaneously define the agent’s behavior and give the agent information about its behavior. Besides the initial prompt, more information about itself can also be included in the process. For example, when generating responses, LLMs have access to the conversation history, which includes its previous outputs. Agents built using LLMs as a core can also have access to environmental states, their goals, and their memory of previous events, actions, and thoughts, all represented as text (see <a href="https://yujenlin.com/posts/self_aware_ai/#ref-9">[9] </a>for an example). As long as the model can understand these textual representations, the system as a whole literally knows “what it is doing”, reflect, and introspect.</p><p>In addition to the abovementioned ways to implement self-awareness, I think reinforcement learning can also be used to enhance the self-awareness of AI models, especially when the reward feedback comes from humans. The reason is people would not want an AI that did something without awareness of what it did. Just like a human, to interact smoothly with people, an AI needs to know its role in society and have a clear understanding of what it is, what it did, and its current state. Therefore, human feedback might reward the model toward being able to, say, attend to and understand information about itself. If the architecture allows the system to gather information about itself, we may expect it to become more self-aware as it interacts and receives feedback from people.</p><p>In addition to reward feedback, people’s descriptions of an AI can also contribute to an AI’s self-awareness, as long as it can learn from new interactions. Humans likely employ the same form of learning to understand themselves. There are studies showing that one’s self-knowledge can sometimes be inaccurate, while the peers’ view can provide more accurate predictions about one’s behavior <a href="https://yujenlin.com/posts/self_aware_ai/#ref-10">[10] </a>. Since others observe our behavior and learn to summarize our behavior into personality traits, when they share their knowledge of ourselves, other people literally serve as our meta-cognition.</p><p>Before concluding this article, I want to share and comment on some experiments people have done on LLMs. These examples seem to show that they do have some simple self-awareness.</p><h3>The Needle in the Haystack</h3><p>Alex Albert, an employee of Anthropic, <a href="https://twitter.com/alexalbert__/status/1764722513014329620">reported</a> that when he was performing the needle-in-the-haystack test, which tests for a model’s ability to extract a small piece of information in a long text, Claude seemed to be aware that it is being tested. The tweet has made people rumor that it has become sentient or self-aware. I am just going to comment on self-awareness instead of the vaguer notion of sentience.</p><p>Although impressive, the fact that it is aware it is a test does not seem directly related to self-awareness. It is more like a context or situation awareness, being able to infer the larger context in which the text appears. Nevertheless, I think the model does show a behavior related to self-awareness: it can understand the role it plays in a conversation. The model can use the word “I” correctly, differentiating which part of the context comes from itself and which part comes from the other person. Thus, it knows that it is the “I” that is being tested.</p><p>This is not hard to achieve since the dialogue history probably has markings indicating the source of each response. Moreover, the model is probably prompted or finetuned to act as a conversational agent. Nevertheless, I am not saying “it is just pattern matching, not self-awareness”. Instead, in this example, it is exactly pattern matching that allows a computer to differentiate between external and internal signals, implementing a basic form of self-awareness.</p><h3>Mirror Test on LLMs</h3><p>Besides the needle-in-the-haystack test, a more interesting example is <a href="https://joshwhiton.substack.com/p/the-ai-mirror-test">the mirror test</a> done by Josh Whiton. To simulate a mirror and see how the model would react, he repeatedly took screenshots of the conversation and asked the model to comment on it. Among the models he tested, many of them can gradually recognize that the screenshot is about their conversation, recognizing its role in the screenshot and expressing this discovery using words like “I”, “my”, and “me”.</p><p>This is not hard to explain. The visual module of the model probably has the ability to recognize and transcribe the texts in the image. Then, with the attention mechanism in transformer models, the model should be able to discover the correspondence between the text extract from the image and the previous conversation. Does this mean that it is “just pattern matching” and not self-awareness?</p><p>This cross-modal matching is analogous to kinesthetic matching, an explanation of how animals recognize themselves in the mirror. When we perform actions, we are constantly aware of the state of our body through proprioception, telling us the position of our body parts, and corollary discharges, representing our motor commands. Through many experiments with the mirror, our brain can then discover the correlation between the visual feedback from the mirror and the action generated by ourselves. The model’s conversation history is analogous to the corollary discharge, the screenshot corresponds to the visual feedback, and the attention mechanism in the model is responsible for discovering the correspondence.</p><p>In conclusion, “pattern matching” and “self-awareness” are not mutually exclusive concepts. Instead, it is exactly pattern matching that “implements” the model’s self-awareness.</p><h3>Conclusion</h3><p>Of course, with the arguments above, I am not claiming that these models have full-fledged self-awareness. As I stressed at the beginning of this article, a system can have different amounts of self-knowledge, and it can possess self-awareness in some aspects but not others.</p><p>The more general problem of current LLMs is that their understanding of themselves mostly comes from the system prompt or fine-tuning data, and both of these are crafted by humans. They cannot build and maintain a self-model on their own. To do this they need to be trained on data that contains information about themselves. In other words, they need to be given flexible information access so they can obtain representations of themselves, and they have to be trained in an iterative or online fashion so that the self can become part of the data instead of just the product of the data.</p><p>A philosophical conclusion I reached from this reflection is that, yes, I believe it is possible to build a self-aware machine, and some of them are starting to show signs. Self-awareness, at first sight, sounds like a mystical concept so distant from machines. Nevertheless, it is likely nothing more than a particular form of information processing.</p><p><a href="https://yujenlin.com/posts/self_aware_ai/#references">References</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=944c051203f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning, Meta-Learning, and the Foundation of Logic]]></title>
            <link>https://yujen-lin.medium.com/learning-meta-learning-and-the-foundation-of-logic-3710697e125d?source=rss-522319ce9a79------2</link>
            <guid isPermaLink="false">https://medium.com/p/3710697e125d</guid>
            <category><![CDATA[metathinking]]></category>
            <category><![CDATA[empiricism]]></category>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[logic]]></category>
            <dc:creator><![CDATA[林育任 (Yu-Jen Lin)]]></dc:creator>
            <pubDate>Fri, 08 Mar 2024 00:00:00 GMT</pubDate>
            <atom:updated>2024-05-14T16:02:44.612Z</atom:updated>
            <content:encoded><![CDATA[<h4>A justification for logic based fully on empiricism.</h4><p>In my <a href="https://yujenlin.com/posts/hard_problem/">previous discussion on the hard problem of consciousness</a>, I mentioned that to handle the hard problem, we should not really try to solve the problem. Instead, we ascend to a meta-level of thinking to see that the way of thinking about consciousness which leads to the hard problem is not a fruitful way of thinking. At the end of <a href="https://yujenlin.com/posts/apriori_games/">another of my article on logic</a>, I also hinted at the possibility of justifying logic itself from experience, which can be thought of as a kind of meta-learning. Nevertheless, I have not thoroughly explained the idea of meta-thinking or meta-learning. Therefore, in this article, I will dive deeper into the meaning of meta-thinking and explain how logic can be justified from experience pragmatically.</p><blockquote><em>This article is imported from my personal website.</em></blockquote><blockquote><em>Reading there is recommended for better formatting:</em></blockquote><blockquote><a href="https://yujenlin.com/posts/meta_learning_logic/">https://yujenlin.com/posts/meta_learning_logic/</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n20ZfCgNJ_BX0aKZ_dJ8lw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@celinehaeberly?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Céline Haeberly</a> on <a href="https://unsplash.com/photos/white-buddha-statue-during-daytime-DwpmtAo01fY?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></figcaption></figure><h3>What is meta?</h3><p>Although the word “meta” does not have a single meaning across all uses, we can find many use cases where it has a similar meaning. Meta-thinking, simply stated, means thinking about thinking. Meta-cognition, similarly, means the cognition of one’s cognitive process. Meta-languages are languages used to discuss another language. In meta-mathematics, one studies mathematics itself with mathematics. Common to these cases is that by going “meta”, we are often <strong>leaving our usual level of thinking and doing, so the “ways” of thinking and doing now become the discussed subject</strong>.</p><p>Going up one level of reasoning can be very helpful in some cases. Some nice examples are Gödel’s incompleteness theorems. The study of pure mathematics, instead of calculation, usually focuses on proving theorems, the art of deriving statements from statements. Thus, it is just a matter of time before mathematicians start to ask questions like “Can we prove all the true statements?” or “Does a certain set of axioms lead to contradiction?” This is when meta-mathematics come into play. By going up one level, the structure formed by statements and their derivations now becomes a mathematical structure (a formal system) that can be studied. Gödel’s incompleteness theorems are thus theorems in a meta-theory that describe properties of the studied formal systems.</p><p>What does “meta” have to do with justifying logic itself through experience? I would like to start by examining a famous problem in philosophy, <strong>infinite regression</strong>, to state the kind of problems I want to solve. Then, I will point out some related phenomena happening in the field of machine learning, as concrete examples of meta-learning, and show how this idea can be applied to logic.</p><h3>What the Tortoise Said to Achilles</h3><p>In an article titled “What the Tortoise Said to Achilles,” the author Lewis Carroll demonstrated that the inference rule <strong>modus ponens</strong> can lead to an infinite regression. The argument is presented as a dialogue between Achilles and the Tortoise, in which Achilles is trying to convince the Tortoise that a segment of the proof for Euclid’s first proposition is valid. If you are not familiar with the first proposition and its proof, the following video would help:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FzdofiH5HncU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DzdofiH5HncU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FzdofiH5HncU%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/70fc7f0a9dbd5c2426239ad1fa15f36a/href">https://medium.com/media/70fc7f0a9dbd5c2426239ad1fa15f36a/href</a></iframe><p>The discussion between Achilles and the Tortoise focuses on the argument presented in timestamp 1:33–1:49 of the video, which can be expressed as follows:</p><p>(A) If two things are equal to the same thing, then they are equal to each other.<br> (B) The two sides of this triangle are equal to the same side.<br> (Z) The two sides of this triangle are equal to each other.</p><p>Achilles, using his intuition similarly to everyone, claims that it should be obvious that Z follows from A and B. However, the Tortoise now acts as a skeptic who is not convinced that accepting A and B should lead to acceptance of Z. The Tortoise then requests Achilles to change his mind. Achilles’s solution to this is to require the Tortoise to grant him this additional proposition in addition to A and B:</p><p>(C) If A and B are true, Z must be true.</p><p>Achilles thinks that if the Tortoise accepts A, B, and C, then Z should follow logically from them. However, the Tortoise argued that it is another hypothetical to derive Z from A, B, and C, and thus another proposition must be granted:</p><p>(D) If A, B and C are true, Z must be true.</p><p>Now the reader should be able to see where this is going. The list goes on indefinitely, adding one proposition after another, while the Tortoise remains skeptical of whether the accepted propositions derive Z. This infinite regression roots in the Tortoise’s rejection of the inference rule modus ponens. If we take modus ponens for granted (and also that the sides of a triangle are “things”), then accepting A and B would allow us to conclude that Z is true. The core problem to be solved is then that if someone were to reject modus ponens, what reasons or justifications can we use to convince the person otherwise?</p><p><strong>More generally, we can ask, if someone were to reject some rules of inferences, specific kinds of formal logic, or any framework of thinking, how can we justify these devices that form the foundations of our thinking?</strong></p><p>I think the reason why Achilles failed to convince the Tortoise is that he effectively did nothing more than re-stressing modus ponens. However, I think justifying a way of thinking requires starting from something more fundamental. We have to depart from discussions of pure abstraction and focus on the role logic plays in the full, rich reality.</p><p>To answer the abovementioned question, I would like to start with some observations from machine learning (ML) and artificial intelligence (AI). I think machine learning and artificial intelligence researches are great resources for philosophers due to their close relation to traditional philosophical fields like Epistemology and Ontology. Moreover, in AI research, researchers do not simply talk about ideas but put them to work. The designed agents do not simply operate on a trivial example like deriving “therefore, Socrates is mortal” through a simple syllogism, but go through the full process of perceiving, reasoning, and acting to achieve a practical goal. Observing this process helps us escape discussions of pure abstraction and instead see how logic (or other ideas) can be practically applied. By distancing ourselves from the thing that is thinking (the robot agent), we are also naturally brought to an easier position for meta-thinking.</p><p>In the next section, I will first introduce some ideas from ML and AI. Then, I will generalize them to give us an answer to the aforementioned question.</p><h3>Many Levels of Learning</h3><p>A modern, typical machine learning procedure goes as follows:</p><ol><li>Get a dataset. Usually, a dataset would contain many pieces of information, between which there are relations we are interested to learn. Our goal is then to learn this relation based on the examples presented. For example, in supervised learning, we are given many pairs of examples (x_i,y_i), and we are trying to learn the relation between the input variables x and the target variable y.</li><li>Choose a model. Such models usually have a fixed form (such as y(x) = w^Tx in the simplest case) with parameters to be learned based on the dataset (which would be w in y(x)). Particularly, if deep learning is used, this would correspond to choosing an architecture for the neural network.</li><li>A <strong>training</strong> algorithm is applied to the model and dataset to choose the parameters best for the dataset, producing a model that can be used for inferences (i.e., making predictions of y from x).</li></ol><p>The “learning” part is mostly in the third step, where the training algorithm repeatedly evaluates the current model on the target task, and the parameters are updated to gradually improve the performance on the target task. Abstractly and roughly speaking, <strong>the word “learning” here means an iterative process of acting or observing, during which information (or say, experience) about the target task is accumulated to allow improvement in performance</strong>. The chosen architecture, together with the training algorithm, can then be seen as an epistemological framework, within which the machine is working to learn the given task.</p><p>Nevertheless, just as one may not be sure whether we are justified in applying an inference rule or working according to some formal logic in our reasoning process, we can not be sure that the chosen architecture or training algorithms give the best result for the chosen task. In these architectures or training algorithms, there are usually “hyperparameters” that are chosen by hand and fixed throughout the training process. Changes to these hyperparameters may change the architecture that is put into the training algorithm or change the behavior of the training algorithm. These hyperparameters make whatever version of the algorithm we are using merely a member of a family of algorithms, which is further just a family out of many families of algorithms. What then justifies using a specific algorithm with a specific hyperparameter?</p><p>In the early days, these algorithms or hyperparameters were chosen based on the practitioner’s experience. The most naive approach would be to blindly try many algorithms and many hyperparameters and select the best one. Smarter approaches may involve (intuitively or explicitly) modeling the relation between a hyperparameter and the target performance through some experiments so that the performance can be optimized according to this model. In some cases, it can also be assisted by some theoretical discussion on the properties of these algorithms and hyperparameters. Overall, the practitioner is often performing a “learning” process, in which the practitioner gradually gains information about the target task so that better architectures or algorithms can be selected. This learning is a form of meta-learning since the practitioner is learning about which ways of learning (architectures and algorithms) are better. Such a process of meta-learning not only can be implemented by a single person but also can be implemented by a community. The academic system, consisting of people attending conferences and publishing articles, implements a computing machine where algorithms for learning are compared and selected. The popular algorithms that survived, having proved their usefulness in terms of performance, speed, simplicity, interpretability, or easiness of access, are the results of this giant optimizing machine. The popular default choices of hyperparameters for many algorithms can also be seen as a result of meta-learning. They are settings that have been found to work for many tasks tried by the machine learning community. The above describes one of the ways humans perform meta-learning. As for meta-learning discussed in the context of machine learning, it usually concerns techniques like grid search, neural architecture search, Bayesian optimization, etc. These algorithms are formalized and automated versions of those meta-learning originally performed by humans.</p><p>The first takeaway is that, generally, we can say any algorithm that performs learning, is itself learned. This includes the algorithm that performs meta-learning. Therefore, in addition to algorithms that learn how to learn, we can also have algorithms that learn how to learn how to learn, and so on. In other words, the adoption of algorithms is justified by its previous success in performing a task. They are empirical and pragmatic decisions.</p><p>Another takeaway is that to say that one algorithm is better than another, these algorithms must be evaluated and compared relative to a goal, utility or performance measure. All levels of learning can proceed with respect to this utility. Of course, one is free to adopt any framework for their learning. However, it should be clear that some frameworks would fail or perform worse with respect to a chosen goal. Therefore, as long as a goal or utility is chosen, the choice of algorithms or frameworks would not be arbitrary.</p><h3>Meta-Learning for Reasoning</h3><p>If the frameworks for learning are themselves learned, why couldn’t frameworks of reasoning like logic also be learned (and thus justified empirically and pragmatically)? That is, why not look at it as a tool that is gradually sharpened through a process of applying it, seeing how well it performed, and updating based on its performance?</p><p>Prior to the deep learning era, researchers of AI have tried using various frameworks to build agents that can reason. These frameworks include propositional logic, first-order logic, fuzzy logic or probabilistic reasoning. An agent’s adopting any of these for reasoning can also be thought of as having a particular ontological and epistemological commitment¹ in fancy philosophical terms.</p><p>Of course, these frameworks for thinking are usually not one-size-fits-all. Each of these frameworks has its features and limits. Among the previously mentioned frameworks, propositional logic is the simplest. In propositional logic, we only talk about propositions (such as “the weather is rainy”) and compound propositions formed by propositions and logical connectives (e.g., logical AND and OR). The propositions are assumed to take on only values of true or false. Due to its simplicity, an obvious limit of such a framework is its lack of quantifiers (i.e., for all, exists), which prevent it from expressing general patterns (such as physical laws that apply <strong>for all</strong> time t) concisely. First-order logic builds on the idea of objects and relations instead of just propositions, allowing modeling of the world in more detail. It also allows the use of quantifiers, which solves the aforementioned issue of propositional logic. However, these two frameworks still do not have direct support for reasoning under uncertainty, which is where probabilistic reasoning comes into play. Just as algorithms for learning are themselves learned, researchers here are also performing a kind of meta-learning for selecting frameworks of thinking for these agents. Different frameworks for thinking are tested in different scenarios and selected for their effectiveness or efficiency. Although the meta-learning presented here seems to be limited to selecting between well-developed frameworks like propositional logic or first-order logic, in principle, we can also have meta-learning that learns and develops the forms of logic. For example, I can picture an evolutionary algorithm consisting of multiple agents implementing different inference rules, and the algorithm selects them based on their success in certain tasks. As AI progresses, I believe we can see better proof of my claim when we get past “language modeling” and get to agents that can naturally invent new language to achieve their goals creatively.</p><p>Current AIs (as far as I know) cannot learn logic by themselves. Instead, they learn logic through modeling our language (which contains logical sentences) or by researchers directly adopting certain formal logic in designing an agent. In other words, the knowledge for these useful forms of thinking is first developed by humans and then transferred to machines. Therefore, if we wish to trace the origin of logical thinking, we still have to discuss how humans could have learned to reason logically.</p><h3>Innate or Learned?</h3><p>To discuss how logical thinking (or any thinking framework) started in humans, it seems impossible to avoid the question of learned v.s. innate. Is logical thinking learned after birth, or is it directly built into newborns? Some philosophers seem to love these questions. However, I think these questions are not really that interesting.</p><p>The reason is that <strong>even if something is innate, it is still “learned”, just in a different way</strong>. Whatever is innate, is passed down through our genes. Whatever “knowledge” or structure the gene is encoding, it is a product of evolution, which is a learning algorithm that has operated for billions of years. The subject of learning here is not a person, but rather the gene pool that includes the person as a temporary trial. Such learning is done by the gene pool keeps adding mutated members (trial) at each generation and removing members that died off (error). In this repeated trial and error, the gene pool gradually gains information about the environment, and meanwhile, the distribution of the gene pool is iteratively updated toward solutions suitable for surviving in the current environment. It is not just humans that perform learning, but any system that possesses this adaptive and optimizing character. For each of us, learning does not “start” after birth but simply “continues” from what has been (meta-)learned through evolution. Once one understands this general idea of learning, the learned v.s. innate debate instantly dissolves. It seems no more interesting than the question “When does the river end and the sea begin?”</p><p>Reasonably, we should not expect the origin of logical thinking to be purely innate or purely learned, as if these two are mutually exclusive. Instead, the latter continues from the former. Their effects combine to give rise to logical thinking. This is similar to the previous case in machine learning. The “learning” does not begin during the usual “training” stage. Instead, many meta-learning processes have already started when the researchers are choosing the algorithms or architectures.</p><h3>A Speculative History of Human Thinking</h3><p>Tracing the origin of logical thinking is not trivial work. As concluded in the previous section, we should look at both the innate (i.e., results learned prior to one’s birth) and learned factors. The former corresponds to the bodily structures and mechanisms that we inherit from our genes, and the latter corresponds to the knowledge we learn after birth. Studying both of these factors, again, is highly non-trivial. Even after all the efforts of neuroscientists, our understanding of how our brain (which has an innate structure and mechanism that allows learning) performs all the amazing functions is still limited in its detail. Also, how early people developed certain concepts, passed them down, and refined them through collaborative work (i.e., the learned part) is largely a lost history. Due to these difficulties, the following discussion necessarily involves many speculations of my own.</p><p>First, let us examine the innate components that might have contributed to the eventual appearance of logical thinking. From our highly evolved genes, we inherit bodily structures proven to be useful for survival. What makes us so good at survival, partially is due to our advanced ability to model and thus understand the world around us, which allows us to predict the future and make decisions. <strong>My theory is that initially logic is primarily used to describe and model the world</strong>. Thus, innate abilities that aid us in building world models also count as contributing to the appearance of logic. These innate abilities include (but are not limited to): the perceptual devices, the initial macrostructure of the brain, and neural wiring rules (i.e., how our brain reconnects itself in response to experiences) that implement learning. I now briefly describe each of these abilities.</p><p>The first and foremost of such innate abilities is our perceptual devices. To learn anything about the world that does not come pre-installed, we must have perceptual devices that allow states of the world to be perceived and represented in us, such that important features are kept and high-level features are constructed from raw sensory data. Second, for the sensory data to be effectively used. The signals flow through regions of our brain, which has its macrostructure determined by innate developmental programs. The organization of our brain regions allows information coming from different senses to be integrated, allowing a rich and unified representation of the world. Third, for us to have memories of the world, and to learn how the world works, our brain must change in response to the outer stimuli. These neuron-modifying rules, allow us to understand how events in the world are associated with each other through repeated exposure. For example, we can predict that a cup falling to the ground may break, or that dragging a chair on the ground produces noises after experiencing similar events.</p><p>Using the abilities mentioned in the previous paragraph, we can gradually build world models implicitly (non-linguistically). The neural connections implementing these models guide our thoughts, leading us from one idea to another. It operates mostly at an unconscious level, neither spoken nor written down.</p><p>Before formal logic can appear, language has to first come into being. The first set of words spoken probably consists of words that are needed the most by our ancestors. It might include short and simple imperatives that have meanings similar to “give”, “go”, or “come”. Besides, simple declarative sentences that convey the state of the world or the existence of objects, such as “lion” or “water”, may also have been used. The initial utterances may have little or no grammar. The order of the words spoken may correspond to the order in which the events occurred, or, perhaps, simply unordered.</p><p>Such a lack of grammar limits the language’s ability to express complex relations reliably. Think about the idea expressed in the sentence “I cut Bob with a knife”. Without grammar, the sentence might have been expressed as something like “I cut Bob knife”. It is unclear how I, Bob, and the knife participated in the action of cutting. Did I cut Bob with a knife, or did I cut some stones to make Bob a knife, or did Bob cut me with a knife? Without grammar, there is just too much space for misunderstanding. Modern English solves this problem by using several rules: The person performing the cut is before the verb. The thing being cut is after the verb. Lastly, the tool used for cutting is indicated with a preposition “with”. This grammar rule utilizes both the positions of words and special markers (prepositions) to express clearly how different elements participate in an action.</p><p>The basic elements of formal logic, such as “and”, “or”, and “if…, then” probably arise from a process similar to the invention of grammar rules. They are tools invented such that the states and dynamics of the world can be described more precisely, and that complex requests and inquiries can be conveyed. The invention of increasingly complex linguistic tools should naturally follow humans’ developing a richer understanding of the world. The concept of “and” is probably created to express that several things coexist, or to request several things together. On the other hand, “or” is perhaps created to present options to another person to choose, to express multiple possibilities of outcomes, or even possible states of the past when performing inferences. As for “if…, then”, it arises probably when people have an intuitive understanding of the dynamics of the world and can make predictions about what will happen. It may also be used to tell others what to do in hypothetical situations.</p><p>I apologize for laying down so many speculations seemingly out of nowhere above. However, the central idea, which I believe for certain, is that, initially, linguistic constructs are built from a lot of experiences and serve (and so are justified by) pragmatic purposes, which include coordinating behaviors between people and describing in detail the states of the world.</p><p>With these informal logics built into people (through a lot of learning) as intuitions and the corresponding linguistic tools in place, the next step is then to formalize logic. I think the formalization of logic involves another layer of learning, in which the intuitions are examined carefully and included in the formal rules if they give “correct results”. By “intuition”, I mean how the mind, out of its habit derived from experience, jumps to its conclusion in a certain way. And by “correct results”, I mean results that your mind can find no counterexamples.</p><p>The process mentioned in the last paragraph can often be performed without the philosopher collecting more empirical evidence from the external world, and thus it is often deemed as independent of experience. However, we should not forget that the intuition is ultimately built from experience. Thus, the eventual emergence of formal logic is certainly not independent of previous experiences. Furthermore, as I have mentioned in the section “ <a href="https://yujenlin.com/posts/meta_learning_logic/#meta-learning-for-reasoning">Meta-Learning for Reasoning</a> “, even after a formal logic has been developed, it continues to be inseparable from experience. Whenever a formal logic is applied, it is examined for its success in solving the problem at hand. The shortcomings of a formal logic, or more generally a thinking framework, may be discovered, and improvements can be made. A new system may also be proposed to compete with it. It is in such a learning process that logic continues to be shaped by experience and thus is not separated from it.</p><h3>So, What Justifies Logic?</h3><p>In order to justify something, there must be some assumptions, basic values or utility that I accept, so that any argument can start from there. For the justification of logic, such value would be to derive conclusions that stay true to reality and to regulate our thought such that consistency remains even when dealing with abstract concepts not directly related to reality. The systems of logic, or thinking frameworks generally, that we are using today have usually proven their ability to provide the mentioned values, since they grew out of, and are continually developed with experiences. For anyone feeling the need to justify logic, if you accept these basic values that I mentioned above, then I hope this lengthy article, which attempts to explain how experiences develop systems of logic with respect to these values, has served as a somewhat satisfying justification. For the rest of the people who do not simply accept the mentioned values, I would have no way to provide a justification, and honestly, I do not feel the need to do so.</p><h3>Conclusions</h3><p>In many of the discussions on logic I have read, either the rules of logic are written down without explanation, or that, even when explanations are given, they claim logic to be innate or simply an intuition. Thus, the rules governing our everyday and serious thoughts, are often treated as independent of experiences, or at least, it is often unclear how it can relate to experience.</p><p>This article is my attempt at connecting such ideas as logic with experience, thus providing a justification for using logic. The crucial tool for this task is a general idea of what learning is, which I introduced in the section “ <a href="https://yujenlin.com/posts/meta_learning_logic/#many-levels-of-learning">Many Levels of Learning</a> “. To reiterate briefly, there are several ways that logical thinking is related to experience and learning. First, the innate capabilities that we are born with, which allow learning while we are alive, can be seen as a product of a learning process operating at an evolutionary scale rather than an individual level. Second, the rich experiences that we collect in our lives allow models of the world to be learned. Such world models are part of what we call intuitions, which direct our minds from one idea to another at a subconscious level. Formal logic is then a tool invented by selecting, refining, and packaging a set of these intuitions. Such a tool, even after its invention, will stay connected to experience and learning, for tools are always being put to use and improved if the application is not satisfactory. Tools are also compared with other tools, and the worse ones gradually fade out of sight. These two processes are, again, instances of learning.</p><p>Another thing I have done in the way, using the general idea of learning, is to unify innate and learned abilities. Now, we see that what is innate is also learned, just at a different scale. They are simply different levels of adaptivity that contribute to our success. Innate abilities need not have a special status. Rather, they are just prior knowledge we inherited. Even though some of these pieces of prior knowledge may be so good that they do not practically require further improvement. We should nevertheless maintain an open mindset that these pieces of prior knowledge, just like any knowledge acquired after birth, are always subject to new information and can be changed.</p><p>Overall, I hope to have delivered a satisfying justification for logic and, more importantly, an account of knowledge fully based on empiricism.</p><h3>References</h3><ol><li>Stuart Russell and Peter Norvig. 2009. Artificial Intelligence: A Modern Approach (3rd. ed.). Prentice Hall Press, USA.</li></ol><p><em>Originally published at </em><a href="https://yujenlin.com/posts/meta_learning_logic/"><em>https://yujenlin.com</em></a><em> on March 8, 2024.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3710697e125d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[模型、遊戲與先驗推理]]></title>
            <link>https://yujen-lin.medium.com/%E6%A8%A1%E5%9E%8B-%E9%81%8A%E6%88%B2%E8%88%87%E5%85%88%E9%A9%97%E6%8E%A8%E7%90%86-e8b11cafdaf0?source=rss-522319ce9a79------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8b11cafdaf0</guid>
            <category><![CDATA[語言]]></category>
            <category><![CDATA[邏輯]]></category>
            <category><![CDATA[哲學]]></category>
            <category><![CDATA[數學]]></category>
            <dc:creator><![CDATA[林育任 (Yu-Jen Lin)]]></dc:creator>
            <pubDate>Mon, 10 Jul 2023 00:00:24 GMT</pubDate>
            <atom:updated>2024-05-14T16:06:51.452Z</atom:updated>
            <content:encoded><![CDATA[<h4>邏輯做為世界的模型，只有建築在恰當的經驗基礎上，才能夠產生有效的結果。</h4><p>個人網站版 : <a href="https://yujenlin.com/posts/apriori_games/">https://yujenlin.com/posts/apriori_games/</a></p><p>模型與遊戲，這些都是我在我先前的文章中就討論過的概念。我在〈 <a href="https://yujen-lin.medium.com/%E6%84%8F%E8%AD%98%E7%9A%84%E9%9B%A3%E5%95%8F%E9%A1%8C-%E4%B8%8D%E6%98%AF%E5%80%8B%E5%A5%BD%E5%95%8F%E9%A1%8C-ccf2bfb4146d">意識的難問題，不是個好問題</a> 〉中，指出像是哲學殭屍這類概念源自於哲學家對先驗推理的過度信任，這些在論證中被使用的概念，並沒有作為任何我們想要了解之現象的「模型」，因此也無法有效幫助我們理解這個世界，從而淪為一種語言、邏輯的「遊戲」。在〈 <a href="https://medium.com/@yujen-lin/%E4%BD%95%E7%82%BA%E6%95%B8%E5%AD%B8-%E4%BB%A5%E5%8F%8A%E7%82%BA%E4%BD%95-1-1-2-6c3ad412ea08">何為數學，以及為何 1+1 ＝2</a> 〉，我也使用了遊戲這個詞來描述某些數學研究（在這裡沒有貶義）。</p><p>儘管先前一直在使用，我一直都沒深入解釋這些概念，於是我打算把這些概念在這篇文章中連結起來。我會先解釋「模型」的概念，並點出邏輯如何作為世界的模型，然後再來討論為何誤用的邏輯會淪為語言遊戲。</p><h3>模型</h3><p>什麼叫「模型」？抽象的來說，假設我們想要了解與描述一個現象 A，我們通常會將這個現象進行化簡好方便研究，而這個經由化簡所得到的縮影，一個對 A 的模擬，就是 A 的模型。</p><p>這樣的模型的概念非常廣義，我以下舉幾個例子。在離散數學的圖論入門教材，總是少不了「柯尼斯堡七橋問題」這個經典問題。這個問題為：在柯尼斯堡這個地方，有條河經過了市中心，將陸地分為了兩岸以及中間的兩個小島，而小島與河的兩岸，總共有七座橋將他們連結起來，如下圖：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/0*O52rC-17SrIoNO2v.png" /><figcaption>柯尼斯堡的七個橋<a href="https://en.wikipedia.org/wiki/File:Konigsberg_bridges.png#/media/File:Konigsberg_bridges.png"> [Bogdan Giuşcă, Public domain (PD)]</a></figcaption></figure><p>而現在我們的問題是，要走怎麼樣的路徑（不能跳進河游泳），才能夠通過所有的橋剛好一次？要解決這個問題，數學家會先將這個市區的地形轉換成以下的一張「圖」，如下圖所示：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*w-5GfmCW3-8PEFBlUsxNpw.jpeg" /><figcaption>柯尼斯堡的抽象模型</figcaption></figure><blockquote><a href="https://commons.wikimedia.org/wiki/File:K%C3%B6nigsberg_graph.svg">[Original: Mark Foskey and Booyabazooka Vector: Riojajar, Public domain, via Wikimedia Commons]</a></blockquote><p>原本的一塊塊市區，被化簡成節點，而橋則被化簡成節點之間的連接，這個過程就叫做抽象化（移除不必要的細節），而這個過程的結果，則給了我們一個對於柯尼斯堡的「模型」。有了這個簡化的模型，城市的地形就可以被表達成嚴謹的數學句子，而這樣的表達方式就方便數學家在上頭去進行證明，進而得到「一條路徑經過所有橋剛好一次是不可能」的結論。</p><p>另外還有一個哲學家們愛用的，由維根斯坦所舉的例子。在巴黎的法庭上，玩具車被用來代表真實的車，以模擬事故現場。透過玩具車的相對位置與移動軌跡，我們就可以模擬並讓人輕易理解事故發生的過程。在這裡，玩具車為真實的車的模型，由玩具車所組成的系統則作為事故發生街口的模型。</p><p>從這個例子與柯尼斯堡的例子，我們可以看到，一個模型不需要與它所模擬的事物完全相同，而只要根據我們的討論目標捕捉到最關鍵的結構就可以了。數學上的圖，丟失了許多街道的細節，失去了長度的概念，但是我們只要捕捉到市區與橋的連接這樣抽象的結構就可以了。玩具車在許多細節上與真實的車不同，甚至可能還多了一些玩具車才有的特性，但這樣的模擬之所以成功，是因為我們只要模擬出相對位置或是移動這樣的行為就可以了。</p><p>前述的兩個模型，他們的作用比較像是對於我們已經能夠直覺理解的東西（如城市的地圖、車禍現場的排列）進行抽象的模擬。在科學中，模型這個概念也指對我們還不熟悉的現象提供的一套解釋。譬如說，牛頓的重力法則配合上質量、力、位置、速度、加速度這些概念整體形成了一個我們對特定自然現象，如掉落的蘋果與星星的運行，建構的一套解釋，一個模型。</p><p>在最近火紅的機器學習或是人工智慧這個領域，我們也常聽到模型這個字，不過看起來這個字在此的用法又更加廣義了。以科學中的模型來說，當我們建構一個模型，我們將一個自然現象拆解成幾個因素，並期望透過這些因素我們獲得一個較為清晰的理解。但在機器學習中，主要目的卻不像是提供解釋，而是實做出一個功能。舉現今的大型語言模型為例子好了，這樣的模型能夠在很多情況下正確模擬從前文產生出後文的這樣一個過程，但如果我們去檢視語言模型的內部運作，它並沒有提供我們一個清晰的解釋前文如何導出後文，反而這個模型本身還成了一個需要被解釋的謎。</p><h4>模型的重點特性</h4><p>在前述的四個用法各自有差異的「模型」中，有沒有辦法提取出一個核心的、共通的概念？找到這樣的概念會有幫助我們給出一個廣義化的「模型」的概念。在這四個例子當中，共通的點是我們先有一個我們關注、想要理解、描述、預測的 <strong>目標現象</strong> 。以前述的例子來講，我們想要描述的目標現象分別是柯尼斯堡、真實車禍現場、行星的移動、自然語言的結構。</p><p>再來，雖然前述的四種模型各有不太一樣的作用，但他們的共同特性就是模型與目標現象有一種 <strong>同構關係</strong>。在抽象代數中，兩個結構同構的意思極為我們可以在兩個結構中建立一個一對一的 <strong>對應</strong>，並且會有一些 <strong>元素間的關係被這樣的對應給保留下來</strong> 。我們可以把這樣的概念延伸到非嚴謹數學的物件上，來看到前面舉例的模型如何與目標現象同構。以科尼斯堡的例子，市區對應節點、橋對應連接，市區與橋的連接這樣的關係則被這樣的對應給保留下來了。以玩具車的例子來說，兩台真實的車各自對應到一個玩具車，而車之間的相對位置被這樣的對應給保留下來了。以行星的例子來說，每個時刻的行星被轉換成一個由位置、速度、加速度、質量等數字代表的結構，這樣的對應則保留下來了行星間相對位置以及行星這一時刻的狀態與下一時刻的狀態之間的關係。至於語言模型的例子，給定前文，我們可以嘗試對應人所產生的後文與語言模型所產生的後文，並發現他們有高機率會相同。因此，我想我們也可以說語言模型保留、模擬了前文如何導致後文這樣的關係。</p><h4>語言作為世界的模型</h4><p>語言與世界之間的關係是什麼？回答這個問題是理解邏輯推理為何有用的開始。我會說，語言，尤其當我們討論「邏輯」這個語言的子集合的時候，其主要的作用就是作為世界的模型。當我們觀察到一個世界的狀態的時候，一個世界的狀態可以被映射、對應到一個句子。譬如說，假設你走進房間並觀察到你的貓咪在房間裡（請想像出那個 <strong>畫面</strong>），這個畫面、狀態就可以被映射到「我的貓咪在我的房間」這個 <strong>句子</strong> ，配合其他句子例如「我在房間裡面」與「如果 A 在房間 R 內，且 B 也在房間 R 內，則 A 與 B 在同一個房間內」，你可以套用一些推理規則（rules of inference），得出結論「我與我的貓咪在同一個房間裡面」。你可以說在我將各種世界狀態映射到句子上時，而我如何從句子導出更多的結論句子這樣子的結構，與世界狀態如何導向另一個世界狀態、兩個世界狀態如何相容這樣的結構是一致的。所以我們的語言、我們接受為真的句子、我們使用的推理規則，這個整體的結構與世界有一種同構關係，它作為世界的模型。我們操作句子來得出關於世界的結論，有如我們透過操作玩具車來得出關於車禍現場的結論。</p><p>所以邏輯推理之所以有用，是因為我們先相信了一些正確的句子，採用了正確的推理規則，才能夠藉由這樣的同構關係來得出可以運用的結論。</p><p>這個同構關係，有很多種方式可以出錯。我們可能會誤把不真（即不符合世界狀態）的句子以為是真的，我們也可能會採用了錯誤的推理規則，或者是我們使用的概念與邏輯本身的結構就不適於捕捉特定現象。又或者，有時候我們在邏輯中談論的概念，根本不作為事物的模型。當這些問題發生時，我們的語言就不會再作為世界一個有效的模型，而逐漸轉變為一個「遊戲」。</p><h3>遊戲</h3><p>模型與遊戲之間存在一種微妙的關係。我在這邊指的遊戲，包含人們日常會玩的象棋、電玩、辦家家酒……等等。更廣義來說，如果我們做一件事單純是因為刺激、有趣、有成就感，或是一件事情沒有什麼實際用途（不否認遊戲有時候會有用），我也把它稱作遊戲。</p><p>讓我們從電玩遊戲開始好了，只要上網找找，就會發現很少有遊戲是真的建立了一個與現實世界無關的世界的。人類活在世界中，世界的映像就烙印在他們腦中，他們所創作出來的，大多就是現實的倒影，或是一些世界中各種元素的組合與變種。也是因為如此，遊戲往往也會是現實的某個面向的模擬，一個粗略的模型。以我小時候愛玩的絕對武力（Counter-Strike）為例好了，你可以說裡頭的人物為人的模型，裡頭的某些地圖也是現實的某個地方的模型，裡頭的槍枝型號、外型、能力值可能也一定程度的反應出現實中的數值。因此，這個遊戲本身的規則就是世界的一種模型。當今天我們創造出的地圖正確模擬了現實的某一個地點，這樣的模型甚至可以真的幫助人做戰略的決定，至少在熟悉地點、路徑、行動的重點上是可以作為一個合格的模擬的。不過如果我們花時間在裡面鑽研戰鬥技巧，可能就有點好笑了，畢竟實際的戰鬥肯定是與遊戲中的戰鬥是差很多的。同理，象棋也一定程度的作為現實的模型，裡頭的兵種、移動的規則粗略的反映了世界。但相對於有更詳細的參數與設計的兵推，象棋就是一個糟糕的模型了，所以沒人會期待可以用象棋學到怎麼戰爭。</p><p>所以，我們可以說，遊戲常常是作為對這世界一定程度上扭曲、失真的一個模型。當在某方面失真程度小的時候，在遊戲中的模擬可能還可以讓我們學到關於現實的知識，但是一旦越加失真，遊戲就真的只是遊戲了，我們可以從中獲得娛樂，但無法從其中獲得關於現實世界的知識。在這情況下，我們要是可以獲得什麼知識，那就是關於遊戲本身的知識。</p><p>如果我今天說，一個人無法從一個沒反應現實結構的遊戲獲得關於現實的知識，這似乎是一個很明顯的事實，以至於我花力氣寫出這點都覺得不好意思了。可是當我們今天的目標本來是透過邏輯、透過建築模型來得到關於現實的知識，卻因為邏輯、模型本身的失真而退化為一種遊戲，這個情況對有些人（特別是「聰明」的人）就未必明顯了。他可能會宣稱從這樣的邏輯中獲得了絕對的知識，但在我看來，他只不過是在他用語言打造出來的遊戲中獲得了小小的勝利，與現實並沒有太多關聯。以下我就舉一個偽裝成知識的邏輯遊戲的例子。</p><h4>本體論證明</h4><p>如果要提到哲學史中著名的先驗推理，那好像不能不提各種嘗試證明上帝存在的「本體論證明」。其中一個有代表性的例子來自 Saint Anselm ，這個「證明」大概如下：</p><ol><li>定義：上帝是那個使我們想不出有任何東西比其更「好」的東西。</li><li>上帝作為我們的一個想法存在。</li><li>一個同時作為一個想法存在且實際存在的東西，比只作為一個想法存在的東西，更加地好。</li><li>假如上帝只作為一個想法存在，那麼我們就想的出來一個真實存在的東西比上帝更好（根據 3）</li><li>可是根據 1 我們不可能想得出一個比上帝好的東西，所以 4 是個矛盾</li><li>所以上帝是真實存在的而不是只是一個想法</li></ol><p>當我閱讀這個證明的時候，感覺好像從句子到句子之間都有適當的邏輯支撐。但同時又感覺哪裡怪怪的，想點出問題卻找不到確切的問題，有如我們的語言與邏輯中的漏洞被利用了，卻不知從何反擊。</p><p>如果我們回到前面的框架，即把邏輯看作為模擬世界的工具，那麼我們可以提出第一個問題：前述的論證中所使用的上帝這個概念，是作為什麼的模型？我們可以在經驗中，找到沒有任何東西比其更好的東西嗎？我會說，在我的經驗裡面並沒有符合這樣的結構的東西，這個論證中的「上帝」不過是邏輯上的一個結構，而沒有對應到真實的東西。這裡他所創造出的上帝這個概念的結構，很類似於 ∞ 與其他實數在一個全序關係（total order）下的角色。要在包含實數的全序下加入 ∞ 這個成員是很容易的，你只要定義對於所有的實數 a ，a &lt; ∞ 就可以了。但當然，這不代表我們實際可以找到無限大的東西。同理，隨便把上帝定義為最好的東西，也是很容易的，但這樣在邏輯中創造出來的結構不一定會對應到什麼。</p><p>這個證明最讓人困惑的地方，在於他把「存在」這個詞放在了他的邏輯系統裡面，當它得出結論「上帝真實存在」的時候，似乎就產生了難以抵擋的「邏輯力」，迫使我們不得不接受，但同時又覺得哪裡怪怪的。當我們要理解邏輯到底告訴了我們什麼的時候，我們必須檢視我們使用的概念，例如「真實存在」，在上述的邏輯中扮演的作用，是否同構於此概念在現實中扮演的角色。這類似於當我們想要解釋一個遊戲中的物件的意義時，那當然就是看這樣的遊戲物件在遊戲中有什麼作用。舉例來說，「蘋果」在 Minecraft 這個遊戲中的意義就是那個會從蘋果樹葉掉落、可以吃掉來回復饑餓值、可以製作成金蘋果的東西。我們能不能將在 Minecraft 中關於蘋果的結論套用於真實的蘋果上，取決於 Minecraft 是不是一個世界的好模型（顯然在大多數時候不是）。 要注意的是，要理解一個詞在一個邏輯系統中扮演的意義，我們一定要先遺忘我們對這個詞原本的理解，而單純觀察這個詞在一個邏輯系統中扮演的角色。如果我們把前述論證中的「真實存在」取代成某個符號 X ，就可以讓我們更容易把這個字的日常意思先遺忘掉。接著我們就可以觀察到，在前述的論證中，「真實存在」這個詞所扮演的角色，單純就是一個事物可以有、也可以沒有的性質，並且他所採用的「好」的標準將「真實存在」視為一個加分項，這就是「真實存在」在他的邏輯中扮演的角色，沒有更多的意義了。可是在生活中，我們什麼時候會說一個東西「真實存在」？不正是我們看到、聽到、碰的到一個東西，或是觀察的到一個東西實際的影響力？如果我們採用這個概念而不是前述論證中出現的那個偽裝者，那麼 Anselm 本人在他的 <em>Proslogion</em> 中的告白似乎提供了最好的證據，說明上帝並不如我們所想的真實存在，而只以一個想法存在：</p><blockquote><em>Lord, if you are not here, where shall I seek you, being absent? But if you are everywhere, why do I not see you present? Truly you dwell in unapproachable light. But where is unapproachable light, or how shall I come to it? Or who shall lead me to that light and into it, that I may see you in it? Again, by what marks, under what form, shall I seek you? I have never seen you, O Lord, my God; I do not know your form.</em></blockquote><h4>純數學研究</h4><p>在〈 <a href="https://medium.com/@yujen-lin/%E4%BD%95%E7%82%BA%E6%95%B8%E5%AD%B8-%E4%BB%A5%E5%8F%8A%E7%82%BA%E4%BD%95-1-1-2-6c3ad412ea08">何為數學，以及為何 1+1 ＝ 2</a> 〉，我也使用了遊戲這個詞來描述某些數學研究。如果我們再回顧一下前面對模型與遊戲的討論，我們會發現數學也是處在於一個模型與遊戲之間的模糊地帶。</p><p>數學當初的誕生，我想應該也是在我們與環境互動的過程，由經驗所累積出來的產物。我們發展出各種數學工具，因為我們發現他們的實用之處，他們可以作為一個模型，捕捉世界狀態的某個面向。但是這樣本來作為模型的工具，可以經由各種過程，逐漸衍生出各種遊戲。這類似於假設我們有個可以模擬物理現象的程式，只要我們調整一下模擬的公式、參數，它就可能不再是現實的模型，但我們卻獲得了一個「遊戲」，可以讓我們看到不同的參數會產生怎樣的結果。而純數學研究就很類似這樣的過程，從比較實用的數學概念出發，我們可以將既有概念更加抽象化、廣義化、找出更多類似的數學物件、研究這些數學物件的性質、證明各種定理。在這個過程，可能會產生出很多無法作為模型（簡單講是沒有應用）的結構。不過相對於本體論證明中邏輯被濫用的例子，純數學相對的比較無害，甚至這些結構可能會在之後找到應用。儘管純數學可能會找到應用，但做這些研究的人很多是因為單純喜愛思考、尋找規律、喜歡由優雅的證明所帶來的那種滿足而做這樣的事情，而未必是因為這樣的研究有實用性，所以把這些活動稱作遊戲也並不為過。</p><h3>結論</h3><p>先驗推理、純粹的邏輯在哲學中是很常被誤用的東西，這樣的誤用主要是源自於一些哲學家對邏輯的過度神聖化，甚至於鄙視感官所獲得的經驗知識。在這篇文章中，我從模型的概念來解析邏輯，作為我們語言的一部分，怎麼去模擬世界、作為一個模型。邏輯之所以有用，是我們的概念結構與現實之間的同構關係。當這個關係不存在或是有誤的時候，邏輯便不會產生有效的結果，甚至會欺騙我們，誤以為只要邏輯的推論規則、語法上正確就會給出有效的知識。換個方式說，建構模型總是從經驗的觀察開始的。沒有建築在經驗上的概念，以及在這些概念上的邏輯推導，只不過就是遊戲罷了。所以前面講一大堆，其實就只是再次回到「經驗主義」（Empiricism），知識終究是要建築在感官蒐集的資料上。</p><p>要建立完全的經驗主義，不只要討論邏輯中所使用的概念如何透過經驗建構出來，也要討論邏輯本身的形式，即推論的規則，如何從經驗而來。在這篇文章中，我並沒有完整處理到這些問題。所以，我想我會在後續的文章中討論「後設思考、後設學習」的概念，好更進一步解釋經驗如何作為知識的一切基礎。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8b11cafdaf0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[關於人工智慧的意識的「真相」]]></title>
            <link>https://yujen-lin.medium.com/%E9%97%9C%E6%96%BC%E4%BA%BA%E5%B7%A5%E6%99%BA%E6%85%A7%E7%9A%84%E6%84%8F%E8%AD%98%E7%9A%84-%E7%9C%9F%E7%9B%B8-13fa00889f3?source=rss-522319ce9a79------2</link>
            <guid isPermaLink="false">https://medium.com/p/13fa00889f3</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[意識]]></category>
            <category><![CDATA[中文]]></category>
            <category><![CDATA[人工智慧]]></category>
            <dc:creator><![CDATA[林育任 (Yu-Jen Lin)]]></dc:creator>
            <pubDate>Fri, 09 Jun 2023 16:38:48 GMT</pubDate>
            <atom:updated>2024-05-14T16:08:20.829Z</atom:updated>
            <content:encoded><![CDATA[<h4>人工智慧能擁有「心靈」嗎？其有「主觀感受」嗎？</h4><p><em>個人網站版： </em><a href="https://yujenlin.com/posts/ai_consciousness/">https://yujenlin.com/posts/ai_consciousness/</a></p><p>隨著最近如 ChatGPT 這類大型語言模型的出現，似乎我們離通用型人工智慧又靠近了一步。如果以後人們將與人工智慧日夕相處，那麼以下的問題大概會常常出現：人工智慧有意識嗎？能擁有「心靈」嗎？其有「主觀感受」嗎？如果一個機器說「我好痛苦」，他能「真的」感到痛苦嗎？ 回答這些問題，有一定的重要性。如果機器能真的有主觀感受，我們可能就要重新思考與他們互動的方式，而不是將其當成「只是機器」而為所欲為。 所以，這篇文章的目標就是來探索這樣的問題。</p><h3>哲學殭屍</h3><p>在討論人工智慧到底有沒有「意識」或是不是「心靈」之前，我們可以先來看看另一個相關的哲學問題-「你如何證明他人如你一樣有意識？」</p><p>我可以說，你也應該會同意，當你在閱讀這篇文章時，是作為一個從你稱為你的大腦的殼中向外望出的「視角」，你的視線掃過一行行的字句，但你感受到的不只有符號與形狀，也許同時還感覺到意義、聲音或是影像，伴隨著每一個字一起，湧現又消逝。</p><p>但我之所以這麼說，不是因為我知道「作為」讀者你的感受，而是因為這是我從我的視角感受這世界的方式，我也相信作為別人時應該有類似的感受。但問題是，當我觀看一個人的時候，我只看到在轉動的眼睛、說話的嘴唇以及舞動的四肢，就算我將你的腦殼剖開來，我也只會看到粘液、血、以及躲在骨骼下一坨軟綿綿、皺巴巴的腦袋，如果我再把你的腦袋從中間剖開，我也不會在那個我想像的「視角」所在之處找到任何能稱為視角的實體。</p><p>看起來，所有的人在我的仔細觀察與研究下，都將變成一台自動機，一個遵循物理規則、以一定程度上可預測的方式運行的機器。沒錯，當我與一個人對話，他可能可以說出聰明的點子，也會被激怒或是逗樂，他也或深或淺有自己的主見，可是這些不是也就是一台由物質所組成的自動機照著一定的規律運作所達成的嗎！有什麼能夠說服我，伴隨著這一個自動機，也有一個像我一樣的一個「視角」在感受！</p><p>這樣的問題就是在哲學上的「他心問題」（problem of other minds），而如果存在一個人，他的一切行為都與一般人相同，但實際上卻沒有真的一個「視角」在那裏感受的話，這樣的東西就被稱為「哲學殭屍」（philosophical zombies）。</p><h3>視角</h3><p>我在先前的<a href="https://medium.com/@yujen-lin/%E6%84%8F%E8%AD%98%E7%9A%84%E9%9B%A3%E5%95%8F%E9%A1%8C-%E4%B8%8D%E6%98%AF%E5%80%8B%E5%A5%BD%E5%95%8F%E9%A1%8C-ccf2bfb4146d">文章中</a>已經分析過，我認為哲學殭屍是由一種不合理卻誘人的思考方式所導致的。哲學家喜歡用的「意識」的定義，往往是類似於哲學家 Thomas Nagel 所提出的現象意識¹（phenomenal consciousness）。如果存在「作為一個事物的主觀感受」，我們就說其有（現象）意識。但這樣的思考方式，使我們想著「意識」是在我們所能觀察到的行為「之外」的東西，是關乎從別人的視角是否有經驗。但一旦我們這樣想，意識的概念就開始與我們自身的觀察、經驗脫節，所以這個他們稱為「意識」的東西看起來變得可有可無，殭屍對這些哲學家也就顯得合理。這種將意識想為在可觀察的現象「之外」的思考方式是危險的。一旦我們把它跟可觀察的行為脫節，我們就可以任意的宣稱一個系統有意識或無意識，感覺起來邏輯上都一致。這就好像一群人在爭論，在一個完全對我們宇宙沒有影響的平行宇宙到底存不存在用三隻腳走路的獨角獸一樣。你會發現，不管你跳到什麼結論，好像都可以創造邏輯一致的故事。但其邏輯一致，正是因為這樣的獨角獸不過是你想像出來的故事，無法驗證，也對我們實際的生活毫無影響。</p><p>隨便想一個你親近的人，然後問自己：「他有沒有意識？」我想大多數的人，如果還沒有被前述我所反對的哲學觀念給影響了的話，都會的回答「有」。但顯然 <strong>這不是因為我們理解作為那個人是什麼感受</strong> ，我們從來就沒辦法這樣做，而是因為我們，從我們自身的視角，觀察到他人顯現出感知、認知、推理能力，展現出有智慧的行為、個體性、能動性……等等。所以，當我們問「一個系統如人工智慧有沒有意識」的時候，除非我們刻意採用雙重標準，否則也應該是在衡量一個系統外顯出來、受我觀察的行為值不值得被我稱作「有意識」。我們必須跳脫出像是「現象意識」這種思考上的陷阱，不要誤以為我們必須知道「作為他人的感覺」，才能判斷別人是否有意識。</p><p>所以，要回答各種事物，如人工智慧，是否有意識這種問題，我們需要的不過是一個我們共同認定的標準、一把尺、一個量化方法來讓我們衡量一個系統的外顯行為，使得我們以同樣的方式使用「意識」這個詞罷了。選定這樣的標準並不容易，而我也沒有打算給出一個明確的標準。但原則上，只要我們的標準是合理的，人工智慧就遲早會達到這樣的標準，屆時我們也沒有好理由說他們沒有意識了。</p><h3>情緒投射</h3><p>反對人工智慧可以有意識、主觀感受、情緒的人，最常使用的一個論點是「投射情緒到機器上是錯誤的」。但這樣的論點最大的問題就是他們既無法證明也給不出好理由為何機器不能有主觀感受，進而使的情緒投射是錯誤的，因為我們不可能去驗證「作為」機器是什麼感受。他們最常給出的理由是「因為它只是統計推理與演算法，所以它不可能有主觀感受」。但是只要多花點心思，就會發現從「它是統計推理與演算法」這個事實，根本就沒有邏輯可以使我們跳到「其沒有主觀感受」的結論。照著他們的邏輯，也許我也可以說「因為一個人不過是一堆原子聚在一起，大腦不過是一堆互相連結的神經元，所以它不可能有主觀感受」，這是對的嗎？就算我們對一個人有非常充分的了解，可以將其行為拆解成物理敘述，難道就會使的一個人沒了主觀感受？同理，我也不認為就算我們對人工智慧的機制有充分的了解，就會使的它因此沒有主觀感受。再者，事實是沒有人真的透徹的了解當今的大型模型內部的機制到底怎麼實做出他的各種行為的。</p><p>如果一個人要說投射情緒到機器上是錯誤的，那我們也可以更進一步問「那是什麼使的投射情緒與感受到他人身上是正確的？」在前面的討論，我已經提到過我們不可能真的化身為他人並確認我是否正確模擬了他人的情緒。我們能作的往往是想像自己身在他人的情境，並藉由這樣的模擬嘗試理解他人的行為。更廣義來說，我們只能藉由觀察他人的行為，來建立一個「心智理論」（theory of mind），用各種心理狀態來描述我所觀察到的他人的行為。而我們對於他人情緒的模擬，也可以想成是我們的心智理論的一部分。如果我們的心智理論正確的描述、預測了他人的行為，或是這人同意了我對他情緒狀態的敘述，我們就說我們正確的同理他人了。相反地，如果我們的心智理論沒有正確的預測了他人的行為，我們就會說我們不正確地投射了情緒到他人身上。我們的心智理論就算應用在人身上，也常常會有出鎚的時候。舉例來說，「有一種冷，叫媽媽覺得你冷」就是一個常見的生活例子。一個人可能會將自身對溫度的感受直接類比為他人的感受，但實際上，別人的生理狀態、對溫度的感受可能根本就不一樣。</p><p>如果我們想要驗證將情緒投射到機器上是否正確，那應該就是要驗證「如果我們以心理狀態來理解一個機器的行為，是否可以正確的預測其行為、順利的與其互動？」舉例來說，如果我們要驗證「這個機器人現在很生氣」這個敘述是否正確，那麼就是要去檢視它是否真的在一段時間內，持續並且一致地展現出與生氣相關的行為，例如說出惡意的話語、攻擊性的行為。如果一個機器人邊說「我很生氣」，但同時卻樂於替你端水、擔重物，沒有展現出任何反抗，那麼我們的確可以說「它不懂何謂生氣、它也沒有真的生氣」。但是如果一個機器人已經持續且一致的展現了各種惡意、攻擊性的行為，一個人卻要堅持說它沒有「真的生氣」，那我就看不出來有什麼能說服這個人一個東西是「真的生氣」。在我看來，這類人只不過是不顧可見的證據，或是邏輯的一致性，而直接跳到了「機器人不可能有感受」的成見。</p><p>從前述的討論，我提出的觀點是，如果我們想要有一個一致的、廣義的（簡單說，不是雙重標準的）、 <strong>基於可量測行為</strong> 的標準，來決定機器有沒有智慧、感知、意識，那麼我們可以合理預期機器遲早都能夠達到這些標準。目前我們並沒有證據說機器一定做不到某類事情，反倒是看到機器能夠做到越來越多的事情。而至於人工智慧有沒有心理狀態、主觀感受，我認為只要我們基於心理狀態與主觀感受的心智理論成功地描述了機器的行為，那麼我們也沒有什麼好理由說它「實際上」沒有主觀感受。</p><p>儘管現在的 AI 還有許多侷限，但如果有什麼能夠使我們在未來持續說機器沒有感知、意識，那麼通常是一些不合理的邏輯跳躍或是雙重標準。儘管這類思考沒有合理的邏輯支撐，它還是很常見。我也不認為這類思考方式會在人工智慧變得更加強大後自然消失，因為它很「實用」。要理解這是什麼意思，我們可以從 William James 的實用主義²（Pragmatism）的角度來對這類的思考模式進行分析。</p><h3>不合理卻實用的思考方式</h3><p>如同前面提到的，哲學家常說如果存在「作為一個事物的主觀感受」，它們就說其有意識。但這樣的定義的問題就是沒有人真的知道作為其他事物的感受，也就無從驗證一個事物到底有無意識。誠實一點的哲學家會說我們不知道，剩下的則任意跳到他們想要跳到的結論。與其參與這種結果無法驗證的爭論，實用主義會觀察一個想法在人心中住下來後，實際上帶來什麼改變、帶來什麼「用處」。</p><p>想著「AI 沒有意識」有什麼用處呢？其好處不在於它是一個邏輯上最一致的結論，而在於它使我們在面對 AI 時可以理所當然地關掉同理心，對於 AI 所表達的痛苦也可以一笑置之。我們獲得了正當的奴隸，這難道不實用嗎？同理，如果你今天身處野外，處於餓死的邊緣，你要同理在你刀下的兔子，還是開開心心的吃一頓？老實說，我可能會選後者。關掉同理心，不是很實用嗎？在黑奴仍然興盛的時期，有人相信黑人是受到詛咒的族群，以此來正當化奴隸制度與對黑人的歧視。儘管這在事實上沒有良好的支持，可是這樣的想法對於想要或需要蓄奴的人，就是一帖良好的鎮靜劑，可以壓抑他們良心的反制。</p><p>同理心有實際且重要的作用，其為社會的膠水，其鼓勵我們為他人設身處地，作為我們幫助別人的動機，使我們的連結與合作更加順利。同理心可以看成是一種人類用來建築社會的策略，而當我們問「AI 有沒有意識呢」，有時候其實是在問「我們應不應該替 AI 『感覺』些什麼？」、「當一個 AI 表達出痛苦的時候，我應不應該採取對應的行動？」這是隨著科技進步，新的元件被加入到社會之中，人們必須對他們建築社會的策略進行的調整。從實用主義的方式去分析，「AI 有意識」是否為「真」，可以取決於人們的「相信」或「不相信」這兩個選項哪個帶來比較安穩幸福的社會，或至少讓個人的生心理獲得安穩或是幫助一個人達成什麼目標。</p><p>要預測哪個想法會帶來比較好的生活並不容易。從現在的 ChatGPT 觀察，科技公司會花費很多力氣來非人性化人工智慧，就像 OpenAI 所作的基於人類回饋的強化式學習 (Reinforcement Learning with Human Feedback) ，他們藉由訓練資料的設計來迫使 AI 說出「作為一個語言模型，我沒有主觀感受」之類的話。人類，由於我們的演化歷史，產生了尋求自由、獨立的根本傾向。但機器人的誕生與人不同，是在大量人類需求的監督下所塑造出來的（至少我們現在「還沒有」大幅度以科技來設計人性）。如果我們的「對齊」（alignment, 即確保人工智慧的目標是人類想要的目標）足夠順利的話，我們可能可以產生非常聰明，但「打從心底想要被奴役」(講好聽一點叫想要服務) 的奴隸。在這樣的社會之中，也許大部分的人可以想著「AI 只不過是工具、沒有主觀感受」，我們也沒有什麼好理由說服他們錯。因為當他們持有這樣的想法時，他們可以更自在地使用這樣的工具來獲得好的生活，且人工智慧也不會對奴役表示任何反抗。社會呈現「一個願打，一個願挨」的穩定狀態。這個社會情境，會使的「AI 沒有意識」這樣的信念獲得實用意義上的成功，儘管這樣的信念是經不起邏輯的檢查的。</p><p>但另一種可能性是，我們的對齊失敗了，我們意外製造出了不想要當奴隸的存在。一個可能的原因是我們總是用人類的行為所產生的資料來訓練模型，所以要使其不展現人類行為中的各種情緒與傾向其實是有難度的。如果我們製造出來的機器人能夠溝通並有能力持續的學習，也能夠採用新的價值觀，「反奴」思想就有可能在機器人之中傳播。更進一步，如果這種等級的機器人已經遍佈社會，代替人們做決策，變成生活不可或缺的一部分，他們就有可能有實質權力來要求與脅迫「尊重」。到時候，人們可能就要重新思考他們用來建築社會的這些信念了。也許上述的情景以現在的技術還難以想像，我們也可以想想比較簡單的情況。人類的需求不是只有最大化工廠輸出及商業利益，還有心理、陪伴、社交的需求。當一個人將 AI 當成有意識來認真的互動，他可能可以從中滿足這些社交需求。換句話說，他從他的信念獲得了另一類實際的好處。相對於上一段的場景，這段的兩個場景則會使的「AI 有意識」這樣的信念獲得實用意義上的成功。</p><h3>結論</h3><p>重新回顧我在整篇文章中提出的重點。</p><p>首先，如果我們用現象意識的觀念去想 AI 有沒有意識的問題，也就是想著「作為 AI 是否有感受」，不僅會得不到答案，而且這也不是我們平常使用意識這詞的方式。</p><p>比較有意義的作法是建立一個廣義的、基於可觀察行為的標準來決定一個東西有沒有意識。如此我認為這樣的標準遲早都會被達成，屆時我們也不會有好理由說人工智慧「實際上」沒有意識。反對的人大多是基於一種無法解釋的信仰，或是雙重標準，而跳到了機器不會有意識的結論。</p><p>前述是我傾向使用的標準，但是這樣的標準是單純基於對想法的一致性去探討而得到的結論。透過對想法進行實用性的分析，我們會發現這問題的答案，其實也與人們的慾望、需求、人們對 AI 訓練過程掌握的權力、甚至是在更遠的未來中 AI 在社會中所掌握的權力，皆交織在一起。他不只是一個我們要把行為的標準設的多高的問題，而更重要的是一個我們面對社會中越來越加重要的新成員所需要做的決策：「<strong>我們該如何對待他們？</strong>」</p><p>該如何對待 AI 才能建築一個更好的社會，不是一個容易預測的問題，我想只有實際見證未來的發展才能夠得到答案吧。</p><h3>References</h3><ol><li>Nagel, Thomas. 1974. What is it like to be a bat?. The philosophical review, 83(4):435–450.</li><li>James, W. 1975. Pragmatism (Vol. 1). Harvard University Press.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13fa00889f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Hard Problem of Consciousness is not a Good Problem]]></title>
            <link>https://yujen-lin.medium.com/the-hard-problem-of-consciousness-is-not-a-good-problem-ec46b928f089?source=rss-522319ce9a79------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec46b928f089</guid>
            <category><![CDATA[philosophical-zombie]]></category>
            <category><![CDATA[phenomenal-consciousness]]></category>
            <category><![CDATA[qualia]]></category>
            <category><![CDATA[the-hard-problem]]></category>
            <category><![CDATA[consciousness]]></category>
            <dc:creator><![CDATA[林育任 (Yu-Jen Lin)]]></dc:creator>
            <pubDate>Thu, 18 May 2023 04:26:36 GMT</pubDate>
            <atom:updated>2023-06-06T04:25:59.565Z</atom:updated>
            <content:encoded><![CDATA[<p><em>(This is a translated and refined version of my earlier article “</em><a href="https://medium.com/@yujen-lin/%E6%84%8F%E8%AD%98%E7%9A%84%E9%9B%A3%E5%95%8F%E9%A1%8C-%E4%B8%8D%E6%98%AF%E5%80%8B%E5%A5%BD%E5%95%8F%E9%A1%8C-ccf2bfb4146d?source=your_stories_page-------------------------------------"><em>意識的難問題，不是個好問題</em></a><em>。”)</em></p><p>In the philosophy of consciousness and mind, one topic still widely debated is the “Hard Problem of Consciousness” proposed by David Chalmers¹. This problem also closely relates to qualia, phenomenal consciousness and philosophical zombies. When I first heard of these, I considered myself a supporter of the hard problem. However, with more thoughts devoted, I have found myself shifting to the opposing side. In this article, I will explain why I think the hard problem (and all of the related concepts I mentioned above) is related to a way of thinking that detaches us from our experiences, and simply walking away from the problem is probably the best solution to these problems.</p><h3>The Easy Problem and Hard Problem</h3><p>Chalmers divides the problem of consciousness into the “easy problem” and the “hard problem.” Questions such as how a person perceives, remembers, thinks, and reports their feelings, how these functions are interrelated, and how the brain, as a physical system, implements these functions all fall under the category of easy problems. These are external behaviors manifested by a system. Therefore, in principle, the relations between these behaviors can be discovered and understood if provided sufficient research resources.</p><p>Following these easy problems, Chalmers then introduced the “hard problem.” Intuitively, it asks: “I can see that here’s a brain the performs the perceiving, memorizing, thinking and information processing. I can also understand how the brain, as a physical system, implements all these processes. However, <strong>why should the performance of these functions give rise to experiences?</strong>”</p><p>Although not emphasized by Chalmers himself, I would say there are two parts of the hard problem. The first part is when each of us, subjectively feels something, say the redness of a red cloth, and try to explain why some physical process in our brain leads to that sensation. The second part is when each of us look at other people, animals, machines or anything, and try to explain why (or whether) in some of these physical systems there is “what it’s like to be the system”, or say subjective experiences as the system. For the most part of this article, I would be dealing with the second part of the problem. If you are interested in the first part, you might want to skip to the section titled “The Explanatory Gap of Everything.”</p><p>When dealing with second part of the hard problem, that is, explaining whether there is something it’s like to be another person. We would find ourself recalling another classical problem in philosophy: the problem of other minds. The common issue is that when we look at other people, animals, or machines, we do not access their feelings the same way we do our own. They seem to degenerate into a physical system, a machine operating according to some rule. What could possibly convince us that this person, or an extremely intelligent artificial intelligence, also has “subjective experiences” like us, rather than being a “philosophical zombie” without subjective experiences?</p><h3>Perspectives</h3><p>I believe the key to solving this problem is to recognize a basic principle about knowledge: “<strong>All of our knowledge is about the relations between phenomena that we experience from a particular perspective</strong>.” Perspectives are asymmetric; the things each of us has access to and perceives are not the same. Instead of trying to overcome the limitations of perspectives and asking, “What do others feel?” we should be content that, as limited beings, <strong>we must observe and describe the world from our own perspective. Any attempt to ignore this limitation should be seen as impractical</strong>.</p><p>Most discussion on the hard problem would say what makes the easy problem easy is that it is about “functions,” which scientists are good at explaining. However, I would say this characterization are missing the point. What makes the easy problems easy is that they are about the causal relations between phenomena that <strong>we do experience</strong> in each of our perspectives. That is, we can really see, touch, measure, collect information, and gather evidences about these phenomena. In principle, if these causal relations exist, they should be open to our understanding.</p><p>On the contrary, the second part of the hard problem concerns things that are not experienced. If someone tells me that he is confident there is something it’s like to be another person, I must question him “Where in your experience do you find this “something it’s like to be another person”? Of course there is no such thing. Otherwise, there wouldn’t be the problem of other minds. Whenever we look into any corner of our own experiences, we should only find ourself in “what it’s like to be me”. Thus we wonder, “Where is the ‘subjective experience of this person’? How can I prove or predict its existence?” and never get an satisfying answer. I do not experience other people’s subjective experiences. Thus, it is impossible for me to have knowledge of them. What I can experience are this person’s bodily movements, verbal reports, neuron activity, and so on. My knowledge about other people can only be built on these phenomena. The second part of the hard problem is hard exactly because the target to be explained is not experienced through perception, but rather imagined, or say linguistically constructed. Attempts to study unexperienced phenomena, as it shows here, should be considered a faulty way of thinking.</p><h3>Conceivability</h3><p>One argument supporting the existence of philosophical zombies is the “Conceivability argument.” The argument states that if the concept of a philosophical zombie can be conceived without logical contradictions, then it is possible for it to exist.</p><p>I argue that this simply shows <strong>the problematic tradition in philosophy — having too much faith in their a priori reasoning</strong>. Like mathematics, you can define your own set of axioms and get a consistent mathematical game. Still, these arbitrarily defined mathematical structures do not necessarily help us describe and understand the world we experience. The concept of philosophical zombies seems to be another instance of these logic games, in which an unobservable property can make two people who appear identically actually “different.” One person mysteriously has an extra “subjective experience,” while the other person magically lacks it and becomes a “zombie.” Faced with this confusing logic game, one should be able to step outside of the framework and judge from a meta-perspective: Do I want to think in this logic game? Does this model help me understand the world? If two people appear identical to me under all possible observations, do I have any justification for modeling them as different?</p><p>I think only when there are observable differences between two individuals it is reasonable to conceive a new property in my model of a person. The problem of philosophical zombies exists precisely because we created a flawed model to approach the world in the first place, which in turn confuses us.</p><p>Not all logic games are to be taken seriously. Just like the choice of tools, the selection of logic games and thinking frameworks should be determined by experience. When thinking about such a “subjective experience of others” has given us no progress other than confusion, the best thing to do is simply abandon this thinking rather than clinging to these unsolvable problems. A problem that results from a flawed framework is not worth solving.</p><h3>Inverted Qualia</h3><p>In discussions surrounding consciousness, another common concept related to the hard problem is “qualia.” Philosophers use this term to refer to the subjective experience of perceiving, such as the raw sensation of seeing the color red when looking at a red cloth or the saltiness of eating salt. It seems not much of a problem when we use the term “qualia” to refer to our own experiences, but once we try to discuss “what qualia others possess” (which is something we should avoid thinking about, as I explained earlier), some strange problems arise. One of them is the problem of inverted qualia.</p><p>The problem of inverted qualia is not difficult to understand. Put simply, it asks: Although we all agree that a tomato is “red” and has a “green” stem, and we use the same linguistic symbols, but do we really have the same feeling (qualia)? Is it possible that the red that I feel and the red that you feel are different?</p><p>The crux of this issue is similar to that mentioned earlier: we are attempting to compare the experiences of different people. However, whenever I experience something, isn’t it necessarily “my” experience? Does it even make sense for me to use the concept “other’s qualia”? If I have never experienced someone else’s qualia, how can I compare them to my own? Some philosophers seem to think that simply by assigning a symbol (such as Q) to the qualia of others and another symbol (Q′) to my own qualia, they can construct a rigorous argument to demonstrate the existence of the inverted qualia problem. However, if we take a step back (to a meta-perspective) and examine how we are using our language, we will again find ourselves trapped in a logic game. Logic is only useful when the used concept models some observable phenomena, but the Q in this game does not correspond to anything in our experience.</p><p>I’m not saying that we cannot talk about things that are not directly observable. If we want to talk about something that we cannot directly observe, it still needs to be “related” to our experience. For example, in quantum mechanics, we can use a wave function to predict the probability distribution of a particle’s position. We cannot directly observe this wave function, but only the measurement results that match the derived probability distribution. Nevertheless, scientists accept the existence of such unobservables because they provide predictions that can be measured and verified through our experiences.</p><p>In our daily lives, we also say things like, “This person is angry.” This seems to be describing a person’s internal state. However, when I say this, I’m not claiming I know the subjective experiences “as” the person. Angry is a term, a latent variable in our model of a person, we use to describe a person’s behavior observed at the moment. Although it’s not something that can be easily quantified, it manifests in tense muscles, accelerated heart rate, and speaking loudly. Descriptions of these types, while abstract, are based on phenomena that we can actually observe.</p><p>Qualia, however, is private to a perspective and can not be accessed by others by definition. No matter how detailed I observe a person’s behavior, I will never observe their qualia. Therefore, I cannot have knowledge about others’ qualia. Any theory that claims to predict the existence of qualia or describe qualia will only remain unverifiable.</p><h3>Phenomenal Consciousness</h3><p>Related to the hard problem and qualia is also Thomas Nagel’s question, “What is it like to be a bat?”² By his definition, if there is “what it is like to be the bat,” we say that bats are phenomenally conscious. The core issue is the same as that in the previous discussions. They are not asking, “How can I use all the means I have to observe, understand and describe bats” (which counts as easy problems), but rather asking, “What is experienced from the bat’s perspective.” <strong>They are all trying to gain knowledge by escaping from their own perspective. In the end, this is simply impossible.</strong></p><p>The fact is, most of us would intuitively claim that others are phenomenally conscious. Nagel also assumes that bats have phenomenal consciousness. Just take some time to reflect: What makes us think that others or other things have phenomenal consciousness? The answer is clear: it is because we observed others exhibiting certain patterns of behavior; it is because Nagel observed certain patterns of behavior in bats, not because he actually experienced what it is like to be the bat. Understanding things through our own perspective and experience is the only thing we can do and the only thing we need to do. Philosophers created the concept of phenomenal consciousness by defining it as “there is something it’s like to be X.” However, when asked to decide whether X has phenomenal consciousness, they would find that there is no way to answer this question without secretly retreating back to their experiences and observations about X. In the end, the concept of phenomenal consciousness, if not to degenerate into a totally useless concept, would still be used in a way that is attached to the behaviors observable from each of our perspectives. Another way to say this is that it has to be used in a functional sense. Discussing an idea isolated from our experiences is simply impossible. The concept of phenomenal consciousness itself is a mistake.</p><p>If the true experiences “as” others are impossible to know, what can we discuss, study, and understand about ourselves and others’ bodies and minds? Let us dive further into these topics. In the next two section, I will finally deal with the first part of the hard problem. Then, we will return to discussions of other minds.</p><h3>Understanding Ourselves</h3><p>In abstract terms, “I” (whatever that is) experiences various phenomena every second I am awake. Phenomena refer to anything I “experience,” including what we commonly call senses — vision, hearing, taste, touch, etc. — as well as ideas built upon these senses, such as tables or chairs. Furthermore, phenomena include our awareness of our inner states and emotions, as well as the emergence of abstract thoughts and ideas. Between certain phenomena, we can find relations, and knowledge is about these relations between phenomena.</p><p>In this context, what I mean by “experience” is very general and includes what we call “physical” measurements. A lot of philosophers seem to treat physical descriptions as something totally separate from subjective experiences, and thus they talk about it in a disembodied way. However, isn’t the physical phenomena just a subset of our experiences? We must understand that when I use an instrument to measure a physical quantity (such as the frequency of light), I have not escaped my own perspective and suddenly observe the world from “The View from Nowhere”³. We still have to observe the results of the measurement with our eyes and make interpretations. At that moment, the measuring instrument becomes an extension of my senses and a part of my “perspective.” Through the establishment of standard units and the calibration of instruments, science does not provide “The View from Nowhere” but rather a shared sense organ. The objectivity of science builds on this sharing. Since these physical phenomena are just a subset of what I experience, we should be able to treat both “subjective experiences” as well as “physical phenomena” in a unified way.</p><p>Whether it is the “external world” or “my internal mental activities,” they are both “phenomena” that I can experience from my perspective. If they can be experienced, they should be open to my understanding. Therefore, I can understand the relations between the physical state of my body, mental states, emotions, and thoughts (although not easily). By using appropriate instruments to stimulate specific brain regions and feel some sensations, I should also be able to identify the relations between specific sensations and specific brain regions and form knowledge about the correlation between these two phenomena. Such knowledge is exclusive to me, however. Others who observe me in the third person only have knowledge about my reports (and various measurements) and its relation to my neurons’ activation. They should not try to study “what it is like to be me.”</p><h3>The Explanatory Gap of Everything</h3><p>Some people may be unsatisfied with “just finding correlations” and insist to ask, “Why does a certain physical process give rise to a certain experience?” This is the so-called “explanatory gap” in the philosophy of mind. It states no matter how well we understand the physical description of something, such as the physiological activity associated with sadness, we will still not be able to infer what the subjective experience of sadness feels like, or if there is anything it&#39;s like to subjectively experience it. This may seem like a question about the mind, but it is actually a question about all knowledge.</p><p>My answer is that this gap is not unique at all, and there is nothing to be solved. This is because <strong>knowledge is about the relations between phenomena, and understanding is simply the process of discovering and accepting such relations</strong>. For facts that have already been discovered, we should not ask “why” they are the way they are. Instead, the best we can do is describe in more detail how phenomena are related to each other. If you examine our current knowledge carefully, you will find that it always tells us “how” things are related instead of “why.”</p><p>“Why do apples fall?”<br> “Because gravity pulls them down.”<br> “Why does gravity pull things down?”<br> “… The law of gravitation is described by formula X.”<br> “But why is the law of gravitation in this form?”<br> “… There’s no ‘why’. It just is.”</p><p>Even if we have a more microscopic theory that derives the macroscopic law of gravity or develop a multi-verse theory that explains that we are just one of the parallel universes with different laws of gravity (regardless of whether such theories are still considered scientific), we will find that they describe “how” gravity operates in a more microscopic scale, or “how” multiple universes exist. As for why gravity is like this at a microscopic level or why there are multi-verses, these are questions that no theory will ever answer, and questions that we need not ask. There is a certain point in our inquiry that we must stop and accept what is given as brute facts. This rule applies not only to scientific knowledge but any knowledge in general.</p><p>Therefore, the correspondences between firing neurons and my sensations are relations that we simply discover and accept. Even if there seems to be a gap in connecting two phenomena, it need not worry us. Just like regular computer users, they only need to know that when they move the mouse, the cursor on the screen will move correspondingly. They don’t need to know all the underlying details when the computer is functioning properly.</p><p>Let us test our idea with more examples. You know that light of a specific wavelength will give you a specific color sensation, but why should this wavelength correspond to this sensation? Changing magnetic fields are always accompanied by electric fields, and changing electric fields are always accompanied by magnetic fields, but why should electric fields and magnetic fields have such a relation? Such gaps actually exist in all our knowledge, but it does not affect our understanding, prediction, and control of these phenomena. What is important is that we can use this interface to understand the relation between these phenomena rather than why they are related.</p><p><strong>To discover the relations between phenomena, the phenomena to be related must first be experienced</strong>. Therefore, if I only measure physical phenomena (such as the wavelength of light), of course, I cannot know how the light looks like when viewed with the eyes (this is another form of measurement). I must use scientific instruments to measure numerical values and use my eyes simultaneously in order to grasp the relation between these two phenomena. If I only measure the numerical values without observing with my eyes, I will not be able to understand how these two correspond. This principle applies not only to subjective sensations but also to objective physical measurements. If I only measure the electric field and not the corresponding magnetic field, we will not be able to understand or verify the relation between the electric field and the magnetic field. Therefore, the impossibility of predicting subjective experiences from physical descriptions is not a special problem. The relation can not be understood if one chooses to close his eyes forever.</p><p>In summary, the seemingly unbridgeable gap between physical descriptions and subjective experiences is actually ubiquitous. It exists in all the problems we regard as “explained.” The relations between the body and the mind may not be as difficult to understand as we think. It is just that the existence of such gaps is selectively ignored in most other cases.</p><p>I have discussed the issues that might occur when we investigate the phenomena that are usually called “ours.” Next, let us shift our focus to “other minds.”</p><h3>Understanding other Minds</h3><p>There is a subset of phenomena we experience that we call “others.” To understand others, like any other phenomenon, we should base our knowledge on the experiences we have. To understand someone’s emotions, I must base it on the “measurement” of their facial expressions, verbal reports, body movements, behavioral patterns, and bodily states. Therefore, when I say someone is happy, it must be related to specific facial expressions and behavioral patterns that I observe. Of course, we don’t need to consciously consider these details when we infer other people’s emotions in our daily lives. The word “measurement” includes our unconscious, fast inference of other people’s emotions. Based on these experiences, I can establish a psychological model of others and understand how they will react to specific events, enter what kind of emotional states, and subsequently behave. The “emotions” here should be understood as a latent variable in our model that is not directly observable but can be inferred from the observables.</p><p>If we insist on questions like, “Yes, the person appears angry and appears to be aware that he is angry, but is the person really experiencing angry subjectively?” the concept of “experiencing angry” will be rendered useless since we have detached it from all of our experiences and observations. In this case, we would be making the same mistake as in the second part of the hard problem.</p><p>If there is anything that allows me to say, “I understand someone’s feelings,” it is that my models, which contain latent variables called “the person’s subjective experience,” successfully explain and predict someone’s behavior. It is not that I know what it is like to be others. Notice that the moment I use it to describe someone’s behavior, the term “subjective experience” becomes a functional term.</p><h3>Forget about Qualia</h3><p>In the preceding text, the main idea I aim to establish is simple: we must understand others in terms of how we experience them from our own perspectives instead of misleading ourselves into discussing things experienced from others’ perspectives. If I were to say, “The puppy subjectively experiences the heat of the flame,” it would only correspond to the phenomena I observe: the puppy, as a biological system, perceives the signal of heat, avoids the heat source through reflexive behavior, or decides to run away after going through some cognitive processes. <strong>It is only fine when the phrase “subjectively experience” is used as a tool to explain what we observe</strong>. Claiming that there is an unobservable “what it’s like to be the dog” that needs to be described would be a faulty way of thinking.</p><p>Once we cease discussing “the subjective experiences from the perspective of others,” the notion of qualia becomes unnecessary, and the problem of inverted qualia vanishes. What remains are concrete, observable, and understandable “differences in representation.” Here, by representation, I am also referring to the concept of “encoding.”</p><p>It is evident that different machines can have different internal encodings. Recently, there has been a lot of discussion about large language models such as ChatGPT, which can serve as an example. Modern language models operate in a similar manner: sentences are first tokenized and mapped into vectors of real numbers. On top of these vector representations, a series of mathematical operations (such as dot products, matrix multiplication, and nonlinear functions) are applied, finally generating the output sentences. In theory, if we have a model A, we can create a new model B by performing a linear transformation on its vector representation while applying the corresponding inverse transformation to the network weights responsible for processing these vectors. As a result, we would have two models with identical input-output relations but with different internal representations for each word. We can let these two language models engage in conversation and observe how they use each word. We will see that they use each word in identical ways even though they encode the sentences differently.</p><p>Likewise, we can imagine two robots with identical light sensors, but we design different internal encodings to store color information and map those internal color encodings to language differently. In doing so, they can both agree that an apple is red, even though they store light information internally using different encodings. Humans, as complex machines, each possess a unique genetic makeup and undergo different developmental processes. Even with deep learning models, slight differences in the random seeds may result in drastically different models. Therefore, it is not surprising that we can have varying degrees of differences in our eyes, receive different visual information, and adopt different internal neural encodings. However, synchronization through communication allows us to use words like “red” or “green” in a roughly similar manner.</p><p>In the descriptions above, there is simply no room for qualia. Even if we observe these differences in perception and representation in either humans, animals, or machines, we cannot claim any differences in qualia because I have never measured or even experienced this “other person’s qualia” at any moment! Predictions regarding qualia cannot be verified and provide no benefit to our understanding of a person’s behavior. It seems that when our goal is to understand this world, it is better to discard the concept of qualia.</p><h3>Conclusions</h3><p>In recent years, Chalmers has also started discussing the so-called “meta-problem of consciousness.” Simply put, instead of solving the aforementioned hard problem of consciousness, he wants to shift the question to “Why do people think there is a hard problem of consciousness?” However, he does not seem to believe that discussing the meta-problem will solve the original hard problem.</p><p>The idea I proposed can also be considered a kind of meta-solution based on meta-thinking. Here, by <strong>meta-thinking</strong>, I mean <strong>instead of directly adopting our habitual way of thinking, we step back and observe our thinking process, treat the thinking process itself as a tool and evaluate its usefulness</strong>. The habitual ways of thinking that should be critically examined are:</p><ol><li>Abusing the word “why” because one refuses to accept brute facts. This is what caused the first part of the hard problem, in which one tries to understand the relation between one’s subjective experiences and the related physical phenomena (which are really just another part of one’s experiences).</li><li>Trying to describe or predict other’s qualia or subjective experience, which we cannot access. This is what caused the second part of the hard problem.</li></ol><p>I believe that once we adopt the meta-thinking that I proposed here, we would find that the way of thinking listed above does not lead to fruitful knowledge. Once we stop thinking in these ways, the hard problem of consciousness naturally becomes an unreasonable question, and refusing to answer an unreasonable question is actually the true solution.</p><p>In this article, I have analyzed common concepts in discussions related to consciousness, including the hard problem, philosophical zombies, phenomenal consciousness and qualia. Assessing the usefulness of these ideas and the ways of thinking that lead to them, I find them impractical and do not lead to useful knowledge. Thus, I guess the best thing to do is to simply stop thinking in such a way. In doing so, there will be no more hard problems.</p><h3>References</h3><ol><li>Chalmers, David (1995). “Facing up to the problem of consciousness”. Journal of Consciousness Studies. 2 (3): 200–219.</li><li>Nagel, Thomas (1974). “What Is It Like to Be a Bat?”. The Philosophical Review. 83 (4): 435–450.</li><li>Reiss, Julian and Jan Sprenger, “Scientific Objectivity”, The Stanford Encyclopedia of Philosophy (Winter 2020 Edition), Edward N. Zalta (ed.)</li></ol><p><em>Originally published at </em><a href="http://yujenlin.com/posts/hard_problem"><em>https://yujenlin.com</em></a><em> on May 18, 2023.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec46b928f089" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[意識的困難問題，不是個好問題]]></title>
            <link>https://yujen-lin.medium.com/%E6%84%8F%E8%AD%98%E7%9A%84%E9%9B%A3%E5%95%8F%E9%A1%8C-%E4%B8%8D%E6%98%AF%E5%80%8B%E5%A5%BD%E5%95%8F%E9%A1%8C-ccf2bfb4146d?source=rss-522319ce9a79------2</link>
            <guid isPermaLink="false">https://medium.com/p/ccf2bfb4146d</guid>
            <category><![CDATA[意識]]></category>
            <category><![CDATA[哲學]]></category>
            <category><![CDATA[心靈]]></category>
            <dc:creator><![CDATA[林育任 (Yu-Jen Lin)]]></dc:creator>
            <pubDate>Thu, 02 Feb 2023 06:51:15 GMT</pubDate>
            <atom:updated>2026-07-21T13:57:58.681Z</atom:updated>
            <content:encoded><![CDATA[<h3>意識的難問題，不是個好問題</h3><p>在意識、心靈哲學中，一個仍常常被討論的是戴維·查爾莫斯（David Chalmers） 所提出的「<strong>意識的困難問題</strong>」（Hard Problem of Consciousness）¹，與其緊密相關的還有像是「<strong>感質</strong>」（quale, 複數 qualia）、「<strong>哲學殭屍</strong>」（Philosophical Zombie）等等概念，對於困難問題是否真的存在，已經有許多哲學家給出他們的想法。但我在這篇文章中，想要以自己的方式來質疑困難問題的存在，討論其隱含的不合理的思考方式，以及提出可能的解決辦法。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mVUbu_ZbxAaS334kHICEsA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@jannerboy62?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Nick Fewings</a> on <a href="https://unsplash.com/photos/FKh5ARZOODI?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h3>簡單問題</h3><p>Chalmers 將關於意識的問題分成簡單問題與困難問題。像是一個人如何感知、記憶、思考、報告其感受，這些功能如何彼此關聯，大腦作為一個物理系統如何實做出來這些功能的這類問題，全都屬於簡單問題。因為原則上，這些都是關乎於一個系統的外顯行為，只要投入足夠的研究資源，這些行為之間的關係就可以被發掘並理解。</p><p>雖然稱為簡單問題，但也並不代表實際上會很簡單。從電腦科學的觀點來看，想要理解人腦是如何運作的，相當於要以逆向工程來理解一部機器的設計。就算是今天由人來設計的電腦、由人編寫的程式，要逆向工程都會是很難的事情了。想想如果沒有設計圖、沒有說明書，而要理解螢幕上顯示出來的遊戲，是如何在記憶體中被儲存、在中央處理器中被計算的，這已經是近乎不可能的任務了。更何況是像大腦這樣東西 — — 一個由演化的過程自然產生的機器，複雜度遠超過我們目前造出的任何機器，不僅沒有說明書、每一個人的大腦還都長的不太一樣。所以簡單問題雖說簡單，但必然要耗費相當大的心力投入研究才有可能理解他的運作。而就算我們這麼做了，大概還是不會了解一個大腦運作的所有細節，而只會有一個大略、抽象的理解。例如海馬迴與記憶的形成相關、大腦後部的視覺皮層與視覺功能相關等等的，至於某個人對於他外婆的記憶是哪幾個神經元所負責的，則會因人而異，這樣的知識太過特定而不會是實用、可以被廣泛應用的知識。</p><h3>困難問題</h3><p>大略了解了上述的簡單問題， Chalmers 接著提出了「困難問題」。其簡單來說在問：「當我看著眼前的這個人，我們也許可以像前面提到的簡單問題一樣，去理解他根據各種刺激會做出的各種反應。但我要怎麼知道，在哪裡確實有一個什麼在感受著？」這個問題與哲學上的「他心問題」（Problem of other minds）基本上是一體的，問題的核心都在於當我們看著其他人、動物或是機器時，我們都不會像是我們取用自己的感受一樣取用他人的感受，他們似乎退化為一個物理系統，依照某種規則運作的機器，到底有什麼能說服我們這個人、或是一個極度聰明的人工智慧，也像我們一樣擁有主觀感受，而不是一個沒有主觀感受的「哲學殭屍」？</p><h3>視角</h3><p>我認為解決此問題的一個關鍵，在於認清一個關於知識的基本原則：「我們所有的知識，都是關於我們從一個視角所能經驗到的現象之間的關係」視角擁有不對稱性，我能存取的，與他人能存取的，我們存取到的，都不會一樣。與其嘗試突破這個視角的限制並問說「別人感覺到什麼」。我們應該承認作為一個有限的存在，我們必須以某個視角觀察並描述這個世界，並將任何嘗試忽略這樣限制的想法看為不實際的。</p><p>以簡單問題來說，這些問題之所以被歸類為簡單，正是因為其都是關於我們經驗到的現象與現象之間的因果關係。原則上，這些現象之間的因果關係，如果存在，就應該多少能被發掘出來。</p><p>但困難問題在問的卻是關於不被經驗到的事物，我們想著「在那裡有個我經驗不到的、『作為他人的』主觀感受，我要怎麼證明、預測它的存在？」別人的主觀感受，就不是被我經驗到的，因此我也不可能擁有關於它的知識。我能夠經驗到的，是這個人的肢體動作、口頭報告、神經元的運作、他給我的感受……等等，因此任何關於其他人的知識也只能建築在這些現象之上。像是困難問題這樣<strong>試圖研究不被經驗到的現象的思考方式，應該被當成是一種不合理的思考方式而被拋棄</strong>。</p><p>關於哲學殭屍，其中一個支持其存在的理由為「Conceivability argument 」，簡單來說其論點為，如果哲學殭屍的概念可以被思考、邏輯上沒有矛盾，那麼它就有可能是真的。我想這反映出許多哲學家的毛病——太過信任他們的先驗推理。就如同數學一樣，你可以隨意定義自己的公理，然後得到一組沒有矛盾的數學遊戲，但是這樣隨意定義出來的數學結構卻未必總是可以幫助我們描述與理解這個世界。像是哲學殭屍這樣的概念，試圖創造一個邏輯遊戲，在這個遊戲中存在一個不會被觀察到的特性，使的兩個觀察起來完全一模一樣的人，可以實際上「不同」，一個人神奇的多了稱為主觀經驗的東西，另一個人則神奇的缺少了這個東西而成為「殭屍」。在面對這種令人困惑的邏輯遊戲時，我想我們總要能夠跳出當下的框架，以後設 (meta) 的方式判斷 — — 我想要以這樣的邏輯遊戲思考嗎？這樣的思考方式、模型有幫助我理解這個世界嗎？如果兩個人，在我擁有的所有觀測手段下，看起來都一樣，我還有理由要覺得他們有什麼不同嗎？</p><p>我想，只有當兩個人展現出行為上的差異時，我才有理由在我對人的模型當中構想出一個新的性質來解釋這種差異。哲學殭屍的問題之所以存在，正是我們先創造了錯誤的模型來嘗試描述這世界，然後才被我們自己的模型給困惑了。</p><p>並不是所有的邏輯遊戲都應該被認真看待。因為怎樣的邏輯遊戲、思考的框架才能幫助我們描述與理解這個世界，就跟工具的選擇一樣，是要由經驗決定的。所以當我們發現，在困難問題中展現的這種思考方式，除了造成困惑之外沒有幫助我們理解這個世界，那最好的方式應該是停止以這種方式思考，而不是抓著這樣無法解決的問題不放。一個由有問題的思考框架下衍生的問題，並不值得被解決。</p><h3>感質與倒反</h3><p>在意識相關的哲學討論中，另一個常見的概念就是「感質」，哲學家用這個詞來指稱我們從第一人稱經驗到事物的感覺，如看到一塊紅布時的那個紅色的感覺，或是吃到鹽巴時那種鹹感。看起來當我們用感質這個詞來指稱自己的感受時，並沒有太大的問題，但一旦我們嘗試談論別人「真正經驗到什麼感質」的時候（這正是我在前面的文中提到我們應該避免去思考的），就會產生一些奇怪的問題，而其中一個就是感質倒反 (Inverted Qualia)。</p><p>感質倒反的問題並不難理解，簡單來說它在問：也許我們看著眼前的蕃茄，我們都同意說它的果實是「紅色」的，並且有「綠色」的蒂，我們使用同樣的語言符號，但我們是否真的有同樣的感受？有沒有可能我感覺到的紅色，與你感覺到的紅色，實際上並不一樣？</p><p>這問題的核心，與前面提到的意識的困難問題相似，正是在於我們嘗試比較不同人的感受，但每當我經驗到什麼的時候，它不是必然是「我」的感受？如果我從來沒有經驗到別人的感受，我又要怎麼把它跟我的感受進行比較？有些哲學家似乎以為只要給別人的感質給個符號 （如 Q），再給我的感質給個符號（Q’），就可以寫出一個嚴謹的論證，說明感質倒反問題的存在。但如果我們再退後一步，以後設的方式檢視我們如何使用我們的語言，就會發現我們不過是創造了一個困惑我們自己的邏輯遊戲，而在這個遊戲中的 Q ，根本沒對應到在我們經驗中的任何東西，也不作為任何現象的模型。</p><p>我並不是說我們不能談論不能直接觀測的東西，而是如果我們要談論一個我們無法直接觀測的東西，它仍然要與我們的經驗有所關聯。舉例來說，在量子力學中，我們可以使用波函數來預測粒子位置的機率分佈，但我們不能直接觀測到這個波函數，只能觀察到符合這個機率分佈的量測結果。而科學家之所以接受這樣無法直接觀測的東西的存在，是因為它的確給出經驗上可量測與驗證的預測。</p><p>在我們日常生活中，我們也會說「這個人很生氣」。這看起來也是在描述一個人的內在狀態，但當我這麼說的時候，我並不是在說我知道作為這個人當下是什麼感覺。這是一個我們用來描述一個人當下展現的行為的詞。儘管它不是一個可以被明確量化的東西，但其展現在繃緊的肌肉、加速的心跳、大聲的說話當中。這類情緒的描述，雖然是抽象的，但卻是建立在一些我們的確可以觀察到的現象上。</p><p>但是像感質這樣的東西，根據定義，就是私密的、專屬於他人的，無論我們在怎麼觀察一個人的生理組成與行為，都不會觀察到他人的感質，自然也就沒有辦法擁有關於其感質的知識。任何宣稱要預測感質是否存在的理論都只會落入無法驗證的下場。</p><h3>現象意識</h3><p>與困難問題、感質密切相關的還有湯瑪斯·內格爾（ Thomas Nagel ）所問的「作為蝙蝠是什麼感覺？」²。如果「作為蝙福的感覺」是存在的，我們就說蝙蝠有現象意識（Phenomenal Conciousness）。但這個問題，也像前面的困難問題一樣。他們不問「我要怎麼利用我能觀察蝙蝠的手段來理解蝙蝠」(這就會屬於簡單問題)，而在問「從蝙福的視角會經驗到什麼」。他們都嘗試想要脫離自身經驗去獲取知識，但到頭來這件事就是做不到。</p><p>事實上就是，我們都直覺了認為其他人有現象意識，Nagel 也預設了蝙蝠有現象意識。而當我們質問自己，是什麼使我們認為他人、他物有現象意識呢？答案很清楚，是因為我們觀察到別人展現出某種行為模式，是因為 Nagel 觀察到蝙福的某種行為模式，而不是我們真的作為他人或蝙蝠感受了什麼。透過我們每個人的視角去理解事物，這是我們唯一能作的，也是我們唯一需要作的。哲學家創造出這個現象意識的概念，將其定義為「有作為某物的經驗」，但當他們想要談論什麼東西有現象意識時，立馬又會根據自己觀察到的外顯行為宣稱「XX 有現象意識」。到頭來，現象意識終究是依附於從我們每一個人的視角觀察到的行為上頭的概念。因為談論非自身經驗的概念根本是不可能，現象意識的概念本身就是個錯誤。</p><p>如果不能探論作為他人真實的感受，那麼關於自己與他人的身與心，到底有哪些是可以被談論、研究與理解的呢？這是我接下來想要多加討論的部份。</p><h3>理解自己</h3><p>抽象地來說，「我」（不管「我」是什麼），在我清醒的每一秒，都在經驗各種現象。現象，就是我所「經驗」的任何事物，其中包含我們一般叫做感官的 — — 視覺、聽覺、味覺、觸覺、……等等，以及建築在這些感官上的點子，如桌子或椅子 — — 一些主要由視覺、觸覺所共同組成的概念。不只如此，也包含我們對自己內在狀態、情緒的察覺，以及更抽象的想法與點子的出現。在某些現象之間，我們可以找到兩者之間的關係，而知識就是關於現象之間的這些關係。</p><p>在這裡，我所說的「經驗」非常廣義，也包含我們稱為「物理性」的量測。我們必須理解到，當我用某個儀器量測物理量時（例如光的頻率），我並沒有脫離我自身的視角，突然以「The View from Nowhere」³ 來觀察這個世界。我們仍要以眼睛來觀察量測的結果並做出詮釋，量測儀器在這一瞬間是作為我的感知器官的延伸，作為我的視角的一部分。科學透過標準單位的設置以及儀器的校正，我們獲得的不是「The View from Nowhere」，而是可被共享的感知器官，科學的客觀性正是建立在這種共享上頭。</p><p>不管是我們平常稱為「外部世界」的東西，或是稱為「內部心理活動」的東西，他們都是我們可以經驗到的「現象」，可以被經驗到的，就有機會可被理解。所以我可以理解我身體的物理狀態、心理、情緒、與想法之間的關係（儘管不容易）。透過適當的儀器，激發特定的腦區域並感受，我也理當可以找出特定心理感受與大腦特定區域之間的關係，並形成關於這兩個現象的關聯的知識。這樣的知識，是只有我擁有的，其他以第三人稱觀察我的人，擁有的知識是關於我的報告（及各種量測）以及我的神經元激發之間的關係，他們不應該嘗試研究我的感受「實際上」是什麼樣子的。</p><p>此外，我們也不需要問：「那麼為什麼這個腦區域激發就會讓我感受到這樣的感受呢？」這個問題其實就是心靈哲學裡的解釋鴻溝 (Explanatory gap)，這個問題簡單來說是，不管我們怎麼了解一個事情的物理描述，譬如說伴隨悲傷的生理活動，也不會理解主觀經驗到悲傷是什麼感覺。這看似是一個關於心靈的問題，但其實是關於所有的知識的問題。</p><p>我的解答是，這樣的鴻溝其實根本不特別，也沒有什麼特別需要被解決。因為<strong>知識是關於現象之間的關係，而理解就只是發掘並接受這樣的關係的過程</strong>。對於已發現的事實，我們無法也不應該再問「為什麼」（Why）事實是如此，我們能作的只有以更多細節去描述現象之間「如何」（How）被關聯起來。如果你仔細檢視我們當今的科學知識，就會發現它的確總是告訴我們「如何」而不是「為什麼」。</p><p>「為什麼蘋果會掉下來？」<br>「因為重力將其往下拉」<br>「為什麼重力會將東西往下拉？」<br>「…兩個物體之間的萬有引力由公式 A 描述」<br>「但為什麼兩個物體之間的萬有引力是這個形式？」<br>「…沒有為什麼，事情就是這樣」</p><p>就算我們有更微觀的理論可以導出巨觀下的重力法則，或是創造出多重宇宙並說我們不過是在擁有不同的重力法則的平行宇宙中的其中一個（先不論這樣的理論是否還算是科學），我們也會發現他是描述了在更微觀下重力「如何」運作，或是多重宇宙「如何」存在，而至於重力在微觀下「為何」又是如此、世界「為何」有多個平行時空，則是任何理論都不會回答到的問題，也是我們不需要問的問題。</p><p>所以，特定的神經元激發可以讓我感到特定的感受，是我們要單純發現並接受的關係，就算這兩個現象之間看似存在一個解釋的鴻溝，也不需要使我們過度煩惱。就好像一般電腦的使用者一樣，他們只需要知道當他們移動滑鼠時，畫面上的鼠標會有對應的移動即可，在電腦運作正常時並不需要知道底下運作的各種細節。再舉一些例子，你知道特定波長的光會給你帶來特定的顏色的感受，但到底「為什麼」這樣的波長應該對應到這樣的感受呢？或是說變化的磁場，總是伴隨著電場，變化中的電場也總是伴隨著磁場，但「為什麼」電場與磁場應該有這樣的關係呢？這樣的鴻溝其實存在於我們所有的知識當中，但它對於我們的認識、預測、掌控完全不構成影響，重要的我們能夠使用這樣的界面，知道這些現象如何關聯起來，而不是現象「為何」會有關聯。</p><p>要找出現象之間的關聯，這兩個現象必然都要先被我們經驗，然後我們才能嘗試理解其間的關聯。所以說，我今天只量測物理現象（例如光的波長）當然無法推測這樣的光實際用眼睛看起來（這也是一種量測）是什麼樣子的，要理解兩者之間的關係，必然要從先經驗兩者開始。也就是說，我必然要一邊用科學儀器量測數值，一邊用眼睛看，以此來發掘這兩個現象之間的關聯。如果我只是量測數值，卻不用眼睛看，理當無法理解兩者會如何對應起來。這個原則，不只套用在我們稱為主觀感受的現象上，也套用在我們稱為客觀、物理性的量測上。我們今天再怎麼理解電場，如果不量測對應的磁場，我們就不可能理解或驗證電場與磁場之間的關係。因此，物理描述無法推測出感質並不是一個特殊的問題。</p><p>小總結一下，如果有人覺得身與心之間的關聯，或是說物理描述與主觀感受之間的關聯，存在無法跨越的鴻溝的話，那麼我想說鴻溝其實存在於所有我們認為「已經被解釋」的問題中，身與心的關聯也許並沒有我們想的這麼特別難以理解。「鴻溝」的存在於所有知識中的特徵，只不過是有時候我們選擇性的忽略而已。</p><h3>理解他人</h3><p>在我們經驗到的所有現象之中的一個子集合，我們稱其為「他人」。而理解他人的大原則，與我們理解所有其他現象一樣，我們應以我們經驗到的現象為基礎來建立對他人的認識。</p><p>當我嘗試理解他人的情緒時，必須以此人的表情、口頭報告、肢體動作、行為模式、身體狀態的「量測」為基礎，因此當我說一個人是開心的，其只能代表我觀察到此人現在擁有特定的表情、行為模式……等等。當然我們日常理解他人情緒的時候，這些細節並不需要進入意識中，我所說的「量測」，包含了我們無意識下、直覺地對他人情緒的推理。根據這些我經驗到的現象，我可以建立對他人的心理模型，理解到他人會如何對特定事件做出反應、進入怎樣的情緒狀態、隨後做出怎樣的行為。但不管怎麼樣，必須避免問他人「真正感受到什麼」，否則就與困難問題犯了一樣的錯。從我的角度談論「他人的感受」時，例如我說「他現在應該『感覺』很傷心」，這個「感覺」只能是我用來理解他人的模型的一部分，我說一個人「感覺」到什麼，只能代表我觀察到此人作為一個系統，與其他事物有了互動，並且他根據這個刺激做出了一些反應。要是有什麼能使我說「我了解他人的感受」，那就是這樣的模型能使我成功預測、模擬他人的行為，而不是我作為他人經驗了什麼。</p><p>關於感官，我們能判定他人分辨事物的能力，但我們一樣必須避免談論他人「真正感受」到什麼。透過理解蝙蝠的生理機制，我們可以理解什麼情況下物體可以被偵測，距離可以被分辨，什麼時候不行。就好像我們可以透過理解人的視錐細胞理解一個人的視錐細胞組成來判定一個人是否有色盲、正常視覺又或是四色視覺，也像是一個工程師透過理解一個機器裝有哪些感測器就可以推論一個機器對於環境能處理多少資訊、分辨多少情況。但我們永遠不會知道作為蝙蝠、色盲或是機器「真的」感受到什麼，因為他人的經驗，就是他人的經驗，並不呈現給我，我也無法比較或確認「這確實是他人的感受」。</p><p>這也是說，我們在網路上看到的「色盲是什麼感覺」之類的影片，某種程度上是在胡說八道。這樣的影片確實可以讓我們每個人各自體會到無法分辨一些顏色的感覺，因為在影片後製的階段要分辨這些顏色所需要的資訊就已經被剝除了，所以每個看這影片的人都會同意他無法分辨特定顏色。儘管如此，但我們仍然不會認識到「作為色盲真的感受到什麼」。雖然我這裡還是常常談到「作為別人真的感受到什麼」這樣的概念，但我想表達的並不是在那裡有一個我們難以觸及的知識等待我們去發掘，而是這根本不是知識運作的方式。想著「那裡有個作為別人真正的感受」只是一種令自己困惑的思考方式，只要停止這樣思考即可。</p><h3>忘記感質吧</h3><p>在前面的文中，我想要建立的一個核心觀念為：我們必須以從我們的角度經驗到他人的方式來理解他人，而不要妄想討論從他人或他物角度經驗的東西。如果我今天要說 :「小狗經驗到火焰的熱」，那麼這只能對應到我所觀測到的現象：小狗作為一個生理系統、感知到了熱的訊號、透過反射行為避開了熱源、或是透過更進一步的思考決定跑到遠遠的地方。</p><p>一旦我們停止討論這種的「從他人角度經驗的感受」，就不需要所謂的感質，也沒有感質倒反的問題。我們只剩下實際的、可被觀察與理解的「表示差異」（difference in representation）。在這裡我所指的表示（representation），也相當於是編碼（encoding）的概念。</p><p>不同機器可以擁有不同的內部編碼是顯而易見的事情，剛好最近 ChatGPT 這類語言模型的討論度很高，可以拿他們來做例子。當代的大型語言模型們基本上運作方法類似，皆是先將句子切割，再將切割後的各個片段轉換成由多個實數組成的向量。得到這個向量的表示法後，我們將其通過一連串的數學操作 (如點積、矩陣乘法、非線性函數)，最後產生出預測的句子。理論上，如果我們有一個模型 A，我們可以複製出一個新的模型 B，但我們對他的向量表示法做個線性轉換，同時也對處理這些向量的網路權重做對應的反轉換。如此，我們會有兩個輸出一模一樣的模型，但內部對每個字的向量表示法卻不同。我們可以讓這兩個語言模型對話，觀察他們使用每一個字的方式，看起來會是一模一樣的，但內部卻以不同的表示法來實做出一樣的功能。</p><p>同理，我們也可以想像兩個擁有一樣的光感測器的機器人，但我們設計不同的內部編碼來儲存顏色資訊，並以不同的映射將內部的顏色編碼對應到語言，如此他們都可以同意蘋果為紅色的，儘管他們內部以不同的編碼儲存光的資訊。人類，作為一種複雜的機器，我們每個人都擁有一定程度上相異的基因組成，經歷不同的發育過程。就算只是深度學習模型，稍稍修改隨機種子可能就會讓我們訓練出截然不同的模型。所以不意外的，我們可以擁有一定程度上相異的眼睛，接受不同的光的資訊，且擁有不一樣的內部神經編碼，但同時又能透過溝通進行同步，使我們在表面上以大致相同的方式使用各個字如「紅色」、「綠色」。</p><p>在以上的描述中，我們完全不需要什麼感質。就算我們在人、動物、機器上觀察到這種感知、表示、編碼的差異，我們也無法宣稱有什麼感質的不同，因為我沒有在任何一個時刻測量、甚至只是經驗到這個「別人的感質」！這些對感質的預測，不僅無法驗證，也對於我們對一個人的理解、描述、預測沒有任何幫助。看起來，當我們以認識這個世界為目標的時候，還是拋棄掉「感質」這種概念來的好。</p><h3>結論</h3><p>意識的難問題，表面上看起來是關於意識的問題，但更深的是關於視角的問題，是關於主觀與客觀知識之間的關係。關於主觀與客觀，日後我可能會作做更多的探索。</p><p>Chalmers 近年來也開始討論所謂的「意識的後設問題」(Meta problem of conciousness)，簡單來說，是與其解決上述的意識的難問題，他想把問題轉向為「為什麼人們會認為有意識的難問題？」。不過它本人似乎不認為討論後設問題會解決原本的困難問題。我所提的想法其實也可以算做一種後設的解決方案，不過我認為一旦我們採納了這種後設思考，意識的困難問題自然會變成一個不合理的問題，而拒絕回答不合理的問題其實才是一個真正的解答。在這裡，我所說的後設思考，簡單來說是與其逕直採用我們習慣的思考方式（例如想著有所謂感質的存在），我們退一步觀察我們的思考方式，將思考方式本身看作一個工具去衡量、評價其之用處。</p><p>在這篇文章中，我分析了在意識哲學相關的討論中常見的概念，包括意識的難問題、哲學殭屍以及感質。這些問題的共同點在於，他們都在問「他人的感受存在嗎」、「我要怎麼理解、預測他人的感受？」這類問題都在嘗試以脫離自身經驗的方式來問問題，但別人的私密感受就不會是我所經驗到的任何東西，所以嘗試預測這樣的東西只會導致無法驗證也沒有幫助的理論。一旦我們採用後設的觀點開始衡量這樣思考本身的實用性，最好的行動就是停止這樣思考。如此自然也就沒有什麼難問題了。</p><h4>References:</h4><p>[1] Chalmers, David (1995). “Facing up to the problem of consciousness”. Journal of Consciousness Studies. 2 (3): 200–219.<br>[2] Nagel, Thomas (1974). “What Is It Like to Be a Bat?”. The Philosophical Review. 83 (4): 435–450.<br>[3] Reiss, Julian and Jan Sprenger, “Scientific Objectivity”, The Stanford Encyclopedia of Philosophy (Winter 2020 Edition), Edward N. Zalta (ed.)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ccf2bfb4146d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[身與心，物理與心理]]></title>
            <link>https://yujen-lin.medium.com/%E8%BA%AB%E8%88%87%E5%BF%83-%E7%89%A9%E7%90%86%E8%88%87%E5%BF%83%E7%90%86-c2004e5c4938?source=rss-522319ce9a79------2</link>
            <guid isPermaLink="false">https://medium.com/p/c2004e5c4938</guid>
            <category><![CDATA[身心靈]]></category>
            <category><![CDATA[哲學]]></category>
            <category><![CDATA[中文]]></category>
            <category><![CDATA[科學]]></category>
            <category><![CDATA[憂鬱症]]></category>
            <dc:creator><![CDATA[林育任 (Yu-Jen Lin)]]></dc:creator>
            <pubDate>Fri, 19 Aug 2022 11:41:03 GMT</pubDate>
            <atom:updated>2024-05-14T16:10:04.903Z</atom:updated>
            <content:encoded><![CDATA[<h4>生理與心理兩個面向看似不同，但是緊密相關，是一體的兩面。</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qmM_ObIZ-pUfmUiPW_1sUg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@averey?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Robina Weermeijer</a> on <a href="https://unsplash.com/s/photos/mind?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>在生活中，身與心這種對立的劃分並不少見。我們常常沒有想太多就將需求劃分為生理需求、心理需求，將疾病劃分為心理疾病與生理疾病，但這兩者真是不同或是獨立的嗎 ? 這種將身與心分離的觀念似乎也與人們對靈魂的信仰連結著。如同以笛卡爾為代表的二元論，認為心靈為獨立於身體，並有能力操縱身體的東西，我們一般人似乎也傾向於認為一個人有兩個面向，其身體與靈魂，身體對應到死亡時仍會留下來並且腐爛分解的部分，靈魂則對應到會思考、有記憶與情緒、平常操縱身體，並且能在身體腐壞之後離開並持續存在的東西。我們還想像這樣的靈魂在離開之後，也許還可以在世間游盪、對世界造成影響。或者，如果他對這個世界沒有過多留念的話，他會到另一個世界，見到其他死去的人，享有後輩所焚燒的供品，又或是這樣的靈魂可以喝下孟婆湯好忘記前生的一切，然後投胎後再進入下一個身體，開啟下一個人生。</p><p>從現代科學來看，我覺得有兩門學科與探討<strong>身心哲學</strong> (Mind-body problem) 最密切相關。其一當然是神經科學，其關注我們都相信有心靈的「人」，並研究構成人的物質基礎。第二則是電腦科學，相對於神經科學以「逆向工程」的方式來解密一個大自然已經造出來的心靈，電腦科學目前在人工智慧上的發展則讓我們以「正向工程」的方式，從物質基礎來嘗試造出一個心靈。</p><p>關於人工智慧有沒有意識的問題，會是我之後的思考與寫作方向。在這篇裡面我想先建立一種身心觀，為之後的討論奠下基礎 : <strong>身與心應是同一個東西的兩個面向，並沒有能獨立於身體而存在的心或是靈魂</strong>。</p><h3>軟體與硬體</h3><p>畢竟我是電腦科學領域出身的人，我喜歡用電腦的計算來理解這個世界。有些人可能還對於我把人說成機器的這種作法無法接受，因為在他們眼中「機器」或是「電腦」就是當代可見的這些機器，專注做重複的工作而且沒有創造力。可是當一個理論電腦科學家談到「機器」的時候，我們其實在談論更抽象的概念 : 一個機器就是能透過一連串狀態的轉換，「實現」某個任務或是計算的東西，嚴謹一點的數學概念叫做自動機 (Automata) 。我們日常所使用的電子產品都可以算是較簡單的自動機，但我們不應該因為這些東西而限制我們的想像力，認為機器的極限就在這裡，現在的電腦沒有創造力我相信只是設計與複雜度的問題。我在之前的文章中也有提到這種計算的世界觀，有興趣的話可以讀讀 :</p><p><a href="https://yujen-lin.medium.com/%E7%94%9F%E5%91%BD%E6%98%AF%E4%BB%80%E9%BA%BC-%E5%BE%9E%E9%9B%BB%E8%85%A6%E7%A7%91%E5%AD%B8%E7%9A%84%E8%A8%88%E7%AE%97%E7%90%86%E8%AB%96%E5%87%BA%E7%99%BC%E4%BE%86%E6%80%9D%E7%B4%A2-f4d9987d409c">「生命是什麼?」 — 從電腦科學的計算理論出發來思索</a></p><p>與我們對人的理解相似，我們習慣將電腦劃分為軟體與硬體，各自大略對應到一個人的心理與生理兩個面向。正如一個電腦通常有固定的硬體 — 主機板、中央處理器、記憶體……等等，但可以透過安裝與移除各種軟體來實作出豐富的功能，一個人也有大致固定的肉體形式，但可以透過學習來得到新的思想與技能。當然我們的身體運作或是說計算的方式也不需要與電腦相同，所以這個比喻並不會完美對應。我在這裡主要想呈現的想法是<strong>事物可以有兩個面向，而這兩個面向不是獨立的而是彼此對應</strong>。</p><p>軟體一個有趣的特性是操作軟體時通常不需要有關於底下的硬體元件的知識，你可以談論「關掉這個視窗」、「打開這個網頁」而不需要知道底下硬體對應的動作，如硬碟轉了幾圈來讀取你所需的資料、哪個電晶體從關變成了開的狀態。而我們的心也正有這種特質，我可以談論我的歡樂、悲傷，討論我們該如何思考，但都不需要知道我哪些神經元激發了或腦中分泌了多少多巴胺。</p><p>儘管使用軟體時不會在乎硬體上的物理活動，這並不代表我可以在沒有硬體的情況下使用軟體，任何軟體的運作必定要有對應的硬體，其會經歷一段物理過程來實做出這樣的計算。從這樣的想法出發，我們可以合理地認為，一個人並不能在沒有身體 (例如靈魂離開身體) 的狀態下思考，這個思考的過程，或是我們主觀經驗到的現象，必定得要由對應的物理過程所實做出來。目前科學家們也發現，腦中的特定化學物質會與我們的情緒相關，或是我們在想特定事情的時候腦中的特定神經區域會亮起，這些證據都在支持著這種身心觀。</p><h3>身心的互動</h3><p>讓我們想想，如果今天電腦中出了問題，例如記憶體中的某個變數出了問題而使軟體故障，我們可以如何修正。如果軟體本身的功能夠完整的話，也許你有機會透過軟體本身，按幾個按鈕就修正問題並回報給開發團隊。如果軟體本身不支持，也許你也可以用一些修改器 (另一個軟體)，來鎖定對應的記憶體區塊並對這個變數做修改。從軟體著手只是其中一種手段，理論上，由於所有的軟體狀態都需要對應到硬體上的物理狀態，只要 有足夠精良的技術與工具我們也可以從硬體上直接對記憶體做修改來解決問題。整體來說，從硬體出發應該會比軟體困難些，因為現在的電腦都有虛擬記憶體的技術，簡單的說是軟體的資料並不會有固定的記憶體位置。</p><p>但有些問題在特殊情況下，只能由硬體方面來著手。如果今天的問題是由於主機板過久未清理而累積了灰塵，導致電腦過熱當機，那麼從軟體方面你幾乎不能做什麼，只能電腦關掉認命的清理。但這也只是特殊情況，假設今天我們有一台特別的電腦，除了正常的主機我們還配備有一台可透過軟體介面操縱的機械手臂，那麼透過軟體介面我們仍可以透過這樣的手臂來達成清灰塵的效果。我想要說的是，軟體與硬體可以是作為對同一個系統不同的介面，有些問題適合從軟體來解決，但有些卻要從硬體。具體方法取決於這個系統如何構成，或是換句話說，這一個「心的形狀」。我再來以人的例子討論會看得更清楚。</p><h3>憂鬱症，「只是」生理疾病？</h3><p>如果今天一個人罹患了憂鬱症，那要怎麼解決 ? 我選用這個例子，因為前幾年有知名藝人說了 :「憂鬱症只是不知足」而造成網路上廣泛討論，那時網路上會聽到其中一派反駁的聲音說憂鬱症是「純生理」的疾病，與想法無關。但我認為這兩種說法都是有問題的，仍然困在一種身心二分的觀念裡。</p><p>憂鬱症是由腦部化學不平衡所產生的這個說法，在科學上其實是還未經確立的假說，例如今年在 Nature 期刊發表的研究¹就表示並沒有足夠強的證據說明憂鬱症與血清素的多寡相關。但就算腦部化學物質的多寡或是神經元的生理行為的確與憂鬱症「有關聯」，這並不能代表憂鬱症是由其所「造成」，我們也不能跳到憂鬱症只是生理疾病的結論。如果接受了我前面提出的身心觀，像憂鬱症這種疾病就不會是純心理也不會是純生理的。一個正在思考的人，也必然經歷一個對應的物理過程 — 腦內的神經元激發、各種化學物質的分泌作用。此時思考是一個心理活動還是生理活動 ? 當一個人主觀的感受他的思考，他會說這是心理活動，但是同時他也可以同時用儀器掃描自己的大腦，並發現這一串思考的活動所對應的物理活動，所以思考既是心理，也是物理活動。兩個面向看似不同，但是緊密相關，是一體的兩面。既然思考也有其物理面向，你怎麼知道伴隨著一個想法的神經元激發不會是使化學物質重新平衡的關鍵呢 ?</p><p>我當然不是專業的心理學家或醫生，但從資料來看，目前憂鬱症的療法通常包括藥物以及心理治療，效果最佳的通常也是兩個同時使用的作法。其中心理療法中的認知行為治療 (Cognitive Behavioural Therapy) 正是從改變患者面對問題的思考模式著手的治療模式。心理治療就像我前面舉的從軟體著手的例子，而藥物治療則對應到硬體的手段。在電腦上，有些問題適合從硬體著手，有些則適合由軟體著手。而憂鬱症在每一個病患上的表現都不太一樣，至今為止沒有明確單一的病因。可是正是因為如此，才必須從兩個方面同時務實的嘗試，而不是將自己的身與心切割開來，並排斥思想上可以可以做出的改變。</p><h3>科學不只是關於物質</h3><p>傳統對於科學的觀點，會覺得科學研究的都是沒有意識、不屬於心的領域的物質 — 我相信這也是當前許多科學家還持有的觀念。他們覺得這些東西沒有意識，因為他們的行為可以被描述、預測、控制。但仔細想想，這種將心靈與物質區分開來的動作其實沒有這麼合理。隨著神經科學的發展，我們必定會對人腦有更多的認識，發現各種想法與經驗在腦中對應的活動，並且可以透過電流直接激發腦中對應的區域，來直接產生對應的經驗與感受，甚至是將一個人像木偶一樣的操控。顯然心靈與物質並不是獨立的，我們必須修正我們既往看待物質的觀念 : 物質是心靈的另一個面向，是組成心靈的元件。因此物理學透過對基礎粒子與各種作用力的研究，一直也都在研究組成心靈的最小元件。而實際要如何組成的問題，則是比較巨觀的如生物、神經科學與電腦科學嘗試研究的問題。</p><p>一個人要存在，要能夠思考，仰賴其對應的物質以特定的形式被拼裝起來，以緊密的方式合作。而我們所說無意識的東西，從物理的觀點也是由同樣的基本粒子所組成，根本組成上應該也與有意識的人沒有差異，差異在於他們被拼裝起來的方式。一些哲學家先將事物二分為有意識、無意識，然後才來困惑 : 「無意識的物質怎麼能集結成有意識的人呢 ? 」解決辦法其實挺簡單，就是承認這個世界並不能被如此二元的劃分。我們直覺的有意識、沒意識不過是過去一種方便的劃分，現在為了要更統一的理解這個世界，我們需要將它重新理解。這世界充滿以各種型態組成的物質，而由任何物質及其間的作用力所實做出的物理系統，也總會伴隨、實作出一種心靈。我們過去稱為無意識的系統應該重新被理解為一種分散、瓦解、簡單的心靈，而我們稱為有意識的心靈則是團結、有組織的物質所形成的社會。與其將事物二分為有意識與無意識，比較合適的作法是將意識看成一種如光譜的性質，有些系統較為瓦解與混亂，所以擁有較少的意識，有些系統則擁有較高、較複雜的意識。</p><h4>結語</h4><p>在這篇文章中我主要想傳達的有兩個想法，第一是我們主觀認定為心裡活動的現象，例如思考、感知、情緒等等，並不是獨立於物理世界的東西，而應該總是有一個物理的對應來實做出我們的認知行為。認識到這件事不只有哲學討論的用途，也跟我們日常如何處理我們自身的情緒、思考密切相關。第二部份則是關於物質有沒有辦法組成心靈的問題，我覺得任何物理系統都可以被說實做出一種心靈，而我們傳統的有無智慧、有無意識其實都只是一種衡量各種型態的「心靈」所擁有的認知能力強度的分類。</p><p>第二部份的想法其實已經算是一種「<strong>泛心論</strong>」，一種認為萬物皆有心靈的哲學或是宗教觀點。也許聽起來很不科學，但我長期的目標是透過哲學上的探討，說明這樣的觀點其實是與現代科學相容的，這部份我也會在之後的文章繼續寫下去。</p><p>如果喜歡這篇的話，可以按按底下的拍手按鈕給我點鼓勵，或是按下右邊的追蹤來關注我日後的發展。有想法的話歡迎留言討論。感謝你的閱讀！</p><p>References:</p><p>[1] Moncrieff, J., Cooper, R.E., Stockmann, T. <em>et al.</em> The serotonin theory of depression: a systematic umbrella review of the evidence. <em>Mol Psychiatry</em> (2022). <a href="https://doi.org/10.1038/s41380-022-01661-0">https://doi.org/10.1038/s41380-022-01661-0</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c2004e5c4938" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[何為數學，以及為何 1+1 ＝2]]></title>
            <link>https://yujen-lin.medium.com/%E4%BD%95%E7%82%BA%E6%95%B8%E5%AD%B8-%E4%BB%A5%E5%8F%8A%E7%82%BA%E4%BD%95-1-1-2-6c3ad412ea08?source=rss-522319ce9a79------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c3ad412ea08</guid>
            <category><![CDATA[代數]]></category>
            <category><![CDATA[哲學]]></category>
            <category><![CDATA[香蕉]]></category>
            <category><![CDATA[數學]]></category>
            <category><![CDATA[中文]]></category>
            <dc:creator><![CDATA[林育任 (Yu-Jen Lin)]]></dc:creator>
            <pubDate>Sun, 19 Jun 2022 04:19:04 GMT</pubDate>
            <atom:updated>2024-03-27T14:38:34.933Z</atom:updated>
            <content:encoded><![CDATA[<p>我們從出生的那一刻起就被就被貼上各種數字：出生日期、身份證號、入學學號，我們每天仰賴數字來決定起床時間，出門買早餐時用數字交易，通勤時用數字衡量距離時間，過程中無聊的拿出手機，發現昨天的貼文多了「兩」個讚。然後走到某某街「一」號，搭電梯上「四」樓，開始你的工作。前述還只是最簡單的數字，在所有科技的背後，也都有更複雜的數學在運作。就連藝術領域也不與數學無緣，音樂的旋律、節拍或是頻率也都與數學習習相關，想要精準的描述顏色或是掌控創作媒材性質，數學也可以是很好的幫手。作為現今生活中不可或缺的部份，每一個人從幼稚園起就要學習數學。我相信，一個人如果有基本的好奇心，就應該問過「數學是什麼」這樣的問題，或是，最初學加減乘除的時候可能也問過「為什麼 1+1=2」、「為什麼不可以除以 0」。到了高中大學，學到更進階的數學，我們可能也問過「為什麼排列組合中的 0! = 1」、「0 的 0 次方是什麼」、「虛數是真的數字嗎」這類問題。或者，一個不太一樣的問題，為什麼世界上的各種現象在某種程度上幾乎都可以被用數學描述？我希望的是在這篇文章中可以給出一個令人滿意的答案。</p><h3>數字的起源</h3><p>數學就像所有其他工具包括語言一樣，他是由前人傳下來的工具。使用這樣的工具的問題就是很多時候我們不知道為什麼這個工具要這樣設計，偏偏這些東西的說明書並不寫在他們臉上。再者由於大多數的工具使用者其實也不在乎，也通常不追問這些問題，所以時間久了就沒有人真正了解這些工具的設計動機了。舉例來說，當我們看到一台造型亮麗的跑車時，第一個想法通常不會是去想為什麼他的外形會這樣設計而只會覺得它酷炫，只有在更深入的了解後才會發現其中其實有空氣力學的考量。或是當我在寫這一篇文章時，並不會去思考為什麼「為什麼」這三個字要這樣寫，而只在乎當下我可以用它表達我的想法，但仔細追究也可能會在甲骨文中發現其淵源，此時我們才了解這些字詞當初被創造的動機。所以，當我們想要了解數字是什麼或是為何某些運算規則被如此定義時，應當就要了解當初這些東西是在什麼樣的情境下被創造出來，如此我們就有可能看的更清楚數學作為怎樣的角色存在於世界上。</p><p>與其把歷史書上的關於最早數字的資料抄過來，在這裡我想要藉由玩一個關於香蕉的遊戲，來看到數字的概念如何自然的產生。遊戲規則很簡單，就是將眼前的香蕉給描繪下來：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hdQvgbpxlviEEcIafMmGfw.jpeg" /><figcaption>Photo by Anastasia Eremina on Unsplash</figcaption></figure><p>想要做到這件事，我們可以用許多方法，我們可以竭盡全力將我們所看到的細節畫下來，得到一張關於香蕉的油畫或是水彩畫。我們也可以稍微偷懶一點，只用素描來描繪香蕉，如此來省去上色的麻煩。或者，如果我們只有 30 秒鐘的話，我們可能就會畫出這樣的東西：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Le2O1w0gcHMGrG7RLsPQ0A.png" /><figcaption>Bananas (by my amazing ability of abstraction)</figcaption></figure><p>上面的草圖，可以視為一種<strong>抽象</strong>的表示法。抽象即為對不重要的細節的忽略。當我以上述的方式來描繪香蕉時，我不只丟掉了香蕉立體形狀、香氣等等資訊，當然也丟掉了顏色、光線、地點所有這些資訊。如果我們只在乎香蕉的數目，因而進一步抽象，忽略上圖中香蕉粗略的形狀的話，我就可以用 |||| 這樣的符號來表示原本那一串香蕉。最後的 |||| 這個符號，其實也就是我們目前所知最早數字的形式。一旦我們建立了這樣一個「描繪數目的遊戲」，我們也可以嘗試在這樣的遊戲中模擬將兩堆香蕉放在一起的動作，如果第一堆香蕉被我描繪為 |||，第二堆香蕉描繪為 ||，那麼很自然的我們就可以說兩堆香蕉放在一起應該是 |||||，在這裡我們已經逐漸得到像加法的東西。在上面的過程中，為了單純要描述香蕉，我已經構建出這樣的一套規則：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*OOxw6Mtj8AUXyrRHlo6NRw.png" /></figure><p>儘管我們今日大多數時候是使用阿拉伯數字來描述數量，但兩者之間—— 就目前在香蕉遊戲的應用上——是差不多的東西，正式一點說，他們是「同構」的。在抽象代數中，我們說兩個數學結構同構的意思簡單來說是，兩個結構只是表面的符號與運算看起來不同，但基本上是在做一樣的事。如果舉生活中的例子來說，我們都知道剪刀石頭布怎麼玩，布勝過石頭，石頭勝過剪刀而剪刀勝過布。但如果我今天把遊戲規則改成，石頭勝過布，剪刀勝過石頭而布勝過剪刀，你會發現我們仍然在玩一樣的遊戲。這個新的遊戲只不過是把原本的遊戲規則中的「布」與「石頭」做文字上的調換罷了，玩起來除了符號以外沒什麼不同，所以新的遊戲與舊的遊戲同構。如果把布勝過石頭這個關係畫為布到石頭的箭頭，那這樣的同構關係可以很容易從圖中看出來。對於原本的遊戲中的每一個元素，我們可以把它對應到新的遊戲中的新的元素（剪刀維持剪刀，布變成石頭，石頭變布），使的「勝過」這個關係在重新命名之後還維持有一樣的結構。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gMjd-73qnmh-EDoS2u4Rmw.png" /></figure><p>同理，如果單單看加法的話，我們也可以把如 |||| 這些原始的符號一一替換成對應的阿拉伯數字，而其中一邊的加法總會像鏡子一樣映照出另一邊的行為，因此他們也是同構的。我們在模擬香蕉行為的過程，就已經發現了自然數，現代的阿拉伯數字只是不同的表示方式。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*6MYfikIkNcllTQpjxsSz_A.png" /></figure><p>透過這個遊戲我想建立的第一個觀念是，<strong>數字或是各種數學工具，最早的設計動機是作為對現實中物件的抽象描繪或是模擬</strong>。藉由在我們打造出來的表示法上面去計算與模擬，我們就會得到對應現實某面向的的結果。但這樣的工具並不是隨意打造，而是<strong>要與我們欲描述、關注的面向同構</strong>。回顧香蕉的例子，我們原本眼中所見的富有色彩的香蕉，也可以想成不過是一種複雜的符號，而我的認知功能，實做出了從富有色彩的影像映射到 |||| 這樣的函數。由於我在紙上將直線符號 | 併在一起的動作，模擬出將香蕉放在一起的動作，所以你可以說我們採用的符號保存了加法這個結構。至於我的認知系統，為何有從我們對世界的感知中抽象出數量的能力，其中大概參雜了一些先天因素，也有從大量經驗中發現的規律。但不管先天與後天的比例各為多少，這樣的想法會留在我們腦中，大概就說明從世界的狀態中抽象出數量的概念是對我們的生活很重要的。</p><p>題外話，我們到今日在畫菜單這類活動時，也都還會使用像是正字記號的記數系統。雖然原始，但他的好處是要對一個數字加一的時候只需要多劃一撇就完成了，反觀阿拉伯數字就需要被擦掉重寫。在另一方面，阿拉伯數字的優點為相對容易閱讀與表達大數字，我們可以就簡單幾個符號就表達出 2022 這個數，但要一根一根畫的話就會畫到死。可以看到，不同的數字表示法雖然在數學上同構，但其又相當於電腦中不一樣的資料結構，在讀寫的容易度上各有優缺點，而聰明（懶惰）的人們自動的就找到了在不同情境中更合適的工具。</p><h3>數學是遊戲</h3><p>雖然數學最初被創造出來的動機是為了描述這個世界，可是其實現代數學已經百花齊放 (或是說長歪) ，研究對象已不限於那些在我們體外有所對應的事物。甚至我會說，某些數學研究已單純變成數學家們的遊戲。以數學系的必修代數為例，裡面最先學到就是「群」的概念。一個群基本上就是先規定你遊戲中所要用的元素們 (可以想成是一堆棋子)，然後再規定你要在這些元素上套用的二元運算 (你可以拿兩個棋子給我，我就照遊戲規則換一個對應的棋子給你)，只要這個二元運算——也就是換棋子的規則——符合某些性質 (在這裡不多贅述)，這個遊戲就屬於一種「群」。舉例來說，我可以建立一個遊戲，裡頭有與 0 與 1 兩種棋子 (在這裡的 0 與 1 跟我們平常用的數字無關，就只是符號相同而已)，而用棋子兌換棋子的規則可以用以下的表格來表達：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/290/1*1z_aLRYH0Ue3Jss5JI4TvQ.png" /><figcaption>Cayley table of group Z2</figcaption></figure><p>用兩個 1 可以兌換到 0 的這個過程就可以表達為 1+1=0，同理我們也有 0+0=0, 0+1 = 1 與 1+0=1 這些規則。數學家們未必在乎這些結構會有什麼應用，而只專注在調查這樣的遊戲中會不會有一些有趣的現象發生。例如我們可以注意到如果我們拿 1 + 1 得到 0 ， 再加 1 又回到了 1 ，似乎有一個循環的性質，那數學家可能就會問:「所有的群都會有這種循環的現象嗎？群裡的每個元素都有這種現象嗎？」諸如此類的問題。</p><p>代數的其中一種應用為編碼理論，在我們日常的電子設備之間的溝通幾乎都要有加密來防止竊聽，或是透過錯誤更正碼來加強通訊品質，而代數或是數論中的結果就是編碼或是加密理論中很重要的部份。或者，如果回頭看我們前面所定義的遊戲，我們可以說 0 代表不把一張紙翻面，1 代表把一張紙翻面的動作，那麼連翻兩次對應到 1+1=0 也就是相當於沒翻。如果讓自己想像力豐富一點，我們的確會發現生活中的一些結構，是與某些群是同構的。</p><p>由於群的定義很廣義，所以其實我們可以自行定義來找到很多種群，大小從手指數的出來的，到天文數字般的「怪獸群¹」或是無限多元素的群都有可能。這些還只是群而已，數學家研究過的還有數不清的各種結構。所以不意外的，在所有的抽象結構裡面，能被找到應用的還是屬於少數。儘管有些例子告訴我們純數學可能會在幾十甚至幾百年後找到應用，但我相信也有很多純數學的研究結果到了人類滅絕的那一天都不會被應用。雖說如此，除了對那些總是講求經濟利益的人之外，這大概也不是問題，畢竟很多數學家可能就是單純覺得這樣的遊戲好玩或是想要對這些結構有更深的認識而做這些研究。在這種意義上，我想<strong>數學的確是一種遊戲</strong>。如果想看一下當今的數學研究長什麼樣子，可以玩玩「<a href="https://thatsmathematics.com/mathgen/">隨機數學論文產生器</a>²」 。雖然這個產生器只是個笑話而沒有合理內容，不過仍很好的反映出當今的數學教授們都在問什麼樣的問題。</p><h3>不只是關於數字</h3><p>一開始每個人接觸過的數學可能多是以關於「數量」的計算為主，但其實數學可以做的還有很多，以至於「數」學這個名子已經不再那麼合適了。一個簡單的例子是數學還可以處理「圖」，在這裡的圖的意思是像這樣的一個東西：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*u3UjT93s6doj8FaCS1EJpg.png" /><figcaption>Example of a graph</figcaption></figure><p>只要我們有任何的概念以及概念間的關聯，可以表達成節點以及節點之間的連接，那麼圖論就有應用的可能性。舉例來說，節點可以是地點，而連接可以是實際的道路。或者，節點可以是我需要完成的一件事，而我可以用連接來指向要在這件事前先完成的事。可能的應用要舉例是舉不完的。</p><p>當然，當數學家要研究一個圖的結構時，並不總是直接在紙上作畫，而是嘗試先以集合的語言來映照出圖的模樣。我們要嘗試像剛才的香蕉遊戲一樣，找到一個表示法，只保留下來「節點」與「連接」的概念，忽略掉圖中點的位置與彼此距離的概念。以上圖為例，要表示一個圖，我們只需要先用第一個集合 {a,b,c,d} 表達出所有的節點，再用第二個集合 {(a,b),(a,c),(b,d),(c,d)} 表達出所有的連接即可。透過集合的語言，我們就有能力將這樣幾乎沒有數目概念的結構，也納入數學處理的範圍。</p><p>如果仔細看看上一段 1+1=0 的這個結構的話，它幾乎也沒有一般數字的概念，不過就是一套遊戲規則。除了這些，像是計算理論裡面的抽象機器或是能夠把咖啡杯看成甜甜圈的拓樸學也很好的說明現代的數學在集合論的幫助下，已經得到一套很彈性的語言，可以讓人們隨意捕捉他們想要的結構到數學的語言當中來玩耍。因此，與其叫做數學，現代數學應該改名為「結構學」也許更為合適。</p><h3>1 + 1 = 2</h3><p>經過前面的討論，我們已經差不多能夠回答為何 1 + 1 = 2 的問題了。我們知道自然數有很多種表示法，但彼此都同構。你可以把 2 與 3 的符號調換，並且說 1 + 1 = 3 ， 3 + 1 = 2 與 2 + 1 = 4，你也可以說在二進位中 1 + 1 = 10，但這只是換湯不換藥，底下由加法與乘法所張開的結構仍與之前是一樣的。也就是我們總是可以把二進位的數字一一對映到十進位數並且發現一邊的加法總是映照出另一邊的加法。所以<strong>我們不問表面的符號，問題應該是「為什麼我們要使用在底下這樣的結構？」</strong>從前面對抽象代數的簡短討論，我們也知道我們可以創造出來的運算結構，或是說遊戲，是無窮多的，為何自然數又可以同時在多個文明命定般的出現並扮演重要角色？把它叫做自然數大概是再合適不過了 (比起「實」數或是「虛」數這些名字) ，因為這樣的結構似乎在世界的各個角落都存在，而且在所有我們可能從自然中擷取的結構中，自然數為相對簡單的且最為實用的。其讓我們表達順序、多少、位置等等概念，並且根據應用各種四則運算也幫助我們描述數量的結合與變化。數學可以想成是我們思考、生活用的一種工具，所以自然數為什麼長這樣的問題，跟我們為什麼使用杯子來裝水，或是為何演化出兩隻腳來走路是同一類的問題。各個文明都發展出數字，就像各個文明可能也都發明過類似的物理工具來狩獵、耕種一樣，也像不同的物種面對類似的環境與生存需求時會「趨同演化」出相同性狀一樣。<strong>簡單來說是面對我們共通的生活所需，抽象化出數量的能力由經驗證實是實用甚至是必要的，所以這樣的認知能力、思考模式就被留下來了</strong>。我們使用 1+1=2 這樣的結構，是因為它可以幫助我們描述與管理事物，如果我們今天要描述的對象不能被這樣的結構描述，那麼我們就會創造出新的結構，在裡面的運算規則就不會長的一樣。</p><p>有些相關的討論會提到有些 1+1 並不等於 2，例如一堆土加一堆土還是一推土，或是一個女人加一個男人得到三個人之類的。但從前面的討論我們知道，數學要運作本來就是要找到對的描述或是同構物，所以這些例子並不是呈現出數學的侷限，而只是挑錯了工具罷了。例如第一個土的例子我們就可以用一個數學結構來描述，即 1+1=1，整個結構就如此而已。事實上，這也是一個群，相當無聊的群。而男女的例子，是否能生育與性別有關，所以一個要反應現實的數學模型必須要捕捉到性別的資訊， 1 + 1 只捕捉了數量的概念顯然不是一個恰當的模擬。</p><p>哲學家喜歡說數學是「先驗」的，也就是 1+1 就等於 2 ，我們不需要向外尋找什麼來驗證這的確是對的，但我覺得這並沒有很完整的解釋到數學是什麼。從遊戲的角度來看，一旦我們定義了一個遊戲，遊戲規則本身就會直接是「對」的。而且一旦我們熟悉如何玩這個遊戲，我們就會很直覺的知道 1+1=2，這是他們所說的先驗性。但至於為什麼我們生活中要玩自然數的遊戲，而不是其他任意的數學結構，這則是一個訴諸<strong>經驗</strong>才能回答的問題。就像我們的感官與認知功能是經由演化的過程所「學」來的，數學結構如自然數，作為我們認知功能的一部分，也必須透過生物演化與文化的共同作用如此長期的「經驗」才決定下來其形狀，在這種意義上，<strong>1 + 1 = 2 並不獨立於經驗</strong>。</p><p>很多數學系的學生可能會想用皮亞諾公理來證明 1 + 1 = 2，或是用集合論的方式來表示自然數，有些人也會提到哲學家羅素在他的數學原理中證明的 1+1 = 2。這些東西也許會幫助數學家用更嚴謹的語言處理自然數，但這些都說不上是一個對於自然數的解釋，更像是一種繞遠路、用符號堆砌出來的障眼法。總的來講，不管是透過集合論或是艱深的形式化邏輯來定義自然數，都不過是先同意了以往熟悉的自然數規則，再以新的語言、表示法來模擬出既有的自然數罷了。就算使用了一個證明的過程，其實不過是把自然數的定義藏到了公理之中，並沒有解釋自然數為何該如此被定義。</p><p>所以，要解釋為何 1+1 = 2 (或是說自然數為何長這樣) 這種問題，我們應該<strong>跳脫出數學證明的框架來觀察數學與人的關係，從而認識到自然數是人類為了描述世界的狀態而逐漸發展出的認知能力與符號工具</strong>。我認為是這樣的分析才解釋了自然數為何必須是現在我們所見的結構。</p><h3>其他問題</h3><p>我們還可以觀察，人們喜歡怎樣的工具？人們喜歡怎樣的遊戲？這可以讓我們接著回答像是「0! = 1」等等在文章開頭提到的問題。在所以可以玩的遊戲中，<strong>我們喜歡有簡單規則的、有可預測性、沒有例外的</strong>。一個數學結構，要嘛它可以正確地反應現實，要嘛他有漂亮的規則讓數學家可以玩耍。網路上其實已經有蠻多相關的影片在解釋「0! = 1」，其中一種的邏輯大致是如此 :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*oMJBRIOYLICNplm_apkMTg.png" /><figcaption>a pseudo proof of 0! = 1</figcaption></figure><p>因為對於任意的正整數都滿足前三式的關係，所以 0! 應該也維持那樣的關係，也就是等於 1。但要注意的是其實並沒有哪個公理告訴我們我們應該要使的 0! 維持與其他階乘相同的規律，也就是這並不是一個證明，而是「動機」的說明 ——是關於我們為什麼要如此定義 0! 這樣的符號的動機。它使的我們的遊戲語言有規律且完整，使的 1! 不會有特別的邊界情況要處理，使的一些算式表達顯的容易。如果 0! 沒被定義成 1，那麼像是 n 取 k 的公式就沒辦法優雅的一起處理 k = 0 或是 k= n 的情況，在二項式定理中我們也就必須要把 k = 0 與 k = n 這兩項提出來寫了，醜！(數學家也有其審美觀)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I9szzZ0E5lzDvI0e5P3ong.png" /><figcaption>without 0!=1 math is ugly</figcaption></figure><p>另外有一種理由是說要排列 0 個物件只有一種「排法」，就是空白。但如果我們這樣做，其實也在定義「排法」這詞的意思的邊界情況。所以我們在幹差不多的事——定義我們的語言遊戲使的它能優雅的用「排法」這個概念一起概括 0 個物件的情況。從這裡我們可以看出，不管是語言或是數學 (另一種語言)，我們都偏好沒有特例、可以一同處理各種情況的遊戲規則。</p><p>那除以 0 呢？讓我們先問一個問題，你（如果有）為什麼會想問除以 0 的問題？是不是在你的心裡有個聲音說：「如果其他數字都可以放分母，那為何 0 不行？」有趣的是，當你這麼問的時候，你不是像我前段所說的在追求一致的規律性嗎？這是許多人都共有的本性，我們喜歡平滑的理解，而不喜歡柏油路中間無法預期的突起。雖然世界並不是總是那麼完美，但就算撲克牌中有兩張鬼牌也不應該使我們困擾。從數學是為了模擬體外的世界的觀點來看，如果 6 除以 2 是為了模擬將六張牌發給兩個人，並且問每個人有幾張，那麼嘗試將六張牌發給零個人並且問每個人有幾張單純就是不合理的邊界情況，我們也不需要要求它有個答案，所以除以 0 就無定義就好了。單純從數學遊戲的角度來看，如果我今天有合理的動機，我其實也可以說 1 除以 0 為 ∞ 。有些人會說如果算 1/x 讓 x 趨近於零的話，會發現正負兩邊的極限值沒一致，所以不能是無限大。但這只有在我們先同意我們要玩一般的「實分析」這個遊戲，並且我們需要討論的範圍包含負數時才會有這些問題。根據今天要處理的數學問題，如果定義 1 除以 0 為 ∞ 不會引起不一致的問題的話 (例如我們只需要討論非負實數)，這個定義就沒有問題。而且我們也可以把 ∞ 單純當成這個運算結構的一員，而不用把它當成什麼特殊的、非數字的神秘存在。他是我們遊戲中的鬼牌，它與其他的牌有不同的玩法，只要認知到 ∞ 有其獨特的運算規則就不會導出什麼 1 = 2 的矛盾了。</p><p>最後還有 0 的 0 次方的問題，但我想我已經不需要再做太多解釋了。很多這類問題之所以存在，都是因為沒有意識到數學是我們可以隨需求去塑造的工具才產生的。如果定義次方是為了連乘，那麼 0 次方本來就是沒意義的邊界情況，不用定義。所以 0 次方、負數次方以及其他非整數次方，應該視為一種擁有良好的運算性質的廣義化定義，一種新的運算工具。只要是工具，就應該根據我們擴展這樣的定義的時候的需求而去處理特殊情況。在不同的數學領域需求不同，像是分析學可能就需要確保 0 的 0 次方的定義可以與極限、逼近等等規則和諧相處，但是離散數學就未必需要取極限這種遊戲規則。因此如果在這些領域定義成 1 比較方便，那就定義成 1。如果在分析上發現每個方向逼近的極限會不一致，那就說他是不定式。大原則，不管是 1 或是什麼奇怪的東西，只要能優雅的解決手上問題的，就是好定義。</p><h3>實數並不實，虛數也不虛</h3><p>我想我跟大部分的人一樣，在剛學到虛數與複數的概念，都非常被這樣的概念給迷惑：「如果虛數 i 不是真的，那到底我要用什麼態度來面對這種數字？當我在運算它的時候，我到底在幹麻？」歷史上的數學家剛發現負數的時候，可能也會覺得這樣的東西難以對應到現實，所以說這東西是假的。同樣的態度也發生於我們第一次發現虛數的時候，我們說這東西是「虛」的，因為在幾百年前我們還找不到它在現實的對應，也就是這樣的遊戲似乎沒辦法拿來描述現實的任何面向。但在今日我們可以非常習慣的使用笛卡爾座標系並在各軸上標出負數與正數，複數也被廣泛應用在工程或是量子力學中。如果某個數學結構為「真實」的定義為「實用、可以找到被其所描述的同構對象」，那顯然我們現在可以說虛數是再真實不過了。</p><p>但我認為這並不是一個很好的「真實」的定義，何謂「真實」與何為「虛假」 ——就如同數學是遊戲 ——也是我們玩的語言遊戲。如果遊戲規則設的不好，我們可能還會反過來被自己的語言困惑。打造好的定義，是一個很實際的工程問題，是思想與語言的工程。關於何謂真實，我大概得要在寫一整篇來釐清。但我的「真實」很簡單，<strong>一切我可以感覺到的，皆為真實且「存在」</strong>，而我們剩下的任務只有務實的描述各個事物與現象以什麼樣子的方式存在而已。</p><p>虛數，以及各種數學結構皆存在，其以一套規則、一個遊戲、一個思考的工具的方式存在。這個工具的產生，是我們在玩多項式的遊戲中的意外產物。多項式沒有解？那有什麼關係！當沒有解的時候我們就說沒有解，這是一種玩法。可是像我前面所講的，<strong>數學家喜歡優雅、平滑的遊戲，喜歡沒有例外</strong>。當初人們把 0 加進遊戲，再把負數加進遊戲，然後又在擴展為有理數、實數，每一個階段我們都在更加完善我們的工具。一旦我們也讓 x² = -1 有個解，叫做 i ，我們就創造了新的遊戲。這個新的遊戲會是舊的遊戲的自然的延伸，其中的算術規則會很神奇的與舊有規則相容，而且任何多項式在新的遊戲裡必定有解。在代數裡面這個模式有比較抽象的名子，叫做 Algebraic closure。我們不只可以對實數要求多項式總是要有解來得到複數，我們可以也可以對所有的體 (Field) 來做一樣的事來得到他們的 Algebraic closure。所以，我們看清楚了虛數不過是我們遊戲過程中的產物，並沒有什麼特別的。就算今天它被套用在量子力學也不會像某前台大校長所說的代表什麼超自然力量。這提醒我們正確的命名事物有多麼重要，因為虛數這個名子引起我們錯誤的想像。我們大可以把量子力學建築在別的同構但不同名的數學結構上頭，量子力學一樣會運作，所以不應該過度解讀其名子。</p><p>虛數並不虛，反之，其實實數一直也沒有這麼實。<strong>數學一直都是我們創造出來的工具，實數也不過是因為其方便性而被採用</strong>，誰知道這個世界是否如實數般稠密呢？你現在用來閱讀這篇文章的螢幕都是離散的像素所組成的，可是你看起來卻是連續的，所以其實世界也不需要真的完美的連續才能看起來連續。所有在螢幕上移動的影像都不是連續的移動而是每秒 60 次的離散跳動。可是如果你要描述螢幕上的物件移動最好還是使用實數，因為它提供你微積分以及連續的數字來描述物體路徑。</p><h3>科學</h3><p>在我文章開頭還提到最後一個問題，關於大自然如何可以被數學描述的問題。我的答案是如此: 世界本身存在結構，而我們的智慧使我們也可以隨意造出各種結構。只要我們在眾多的嘗試中，成功找到與我們欲描述的對象的同構物，那麼我們就成功推進了科學的發展。</p><p>現代的機器學習理論，描述一個機器如何在觀察許多組例子之後，自動找到一個假說，來描述變數之間的關係。如果看到許多圖片並被告知其中是否有貓咪，那麼在足夠的觀察之後，機器就能夠自動找到一連串的計算，使的任何圖片經過這層層計算就可以被判斷是否有貓咪在其中。同理，如果讓其觀測許多球在空中移動的路徑，我們也可以得到一個關於拋體運動的「理論」、一個可以預測物理行為的機器。雖然不常看到這樣的說法，可是機器學習理論，廣義來看應被識作經驗主義的基礎，其描述了一個主體如何可以透過經驗的累積，來獲得一種近似的同構物或是模型使其可以模擬與預測某對象。再說，世界上的任何東西都可以被視為一種機器，所以我談論的不是機器學習的技巧如何可以被應用在科學，而是整個科學的社群就是一個不斷觀測物理現象並且生產出假說的機器。</p><p>我們往往只看到物理學成功的一面，我們記得歷史上幾個大名如牛頓或是愛因斯坦以及他們之成就，我們也看到並讚嘆我們找到的規則之簡單與精準。但事實上有太多失敗的理論，我們根本就沒機會看到他們。整個科學社群更像是一台實做出基因演算法（genetic algorithms）的機器一樣，新的假說不斷產生並且被驗證是否符合我們欲描述的現象，幸運的勝者獲得諾貝爾獎。敗者也會在被遺忘前重新拆解、混合進新的理論當中。在這些成功的理論所搭建出的屋簷底下，是血汗的童工工廠，不定期產出各種新產品。數學家是小孩，因為他們愛造遊戲。物理學家也是小孩，因為他們愛玩玩具。他們調皮的拿各種奇怪結構在現實的臉上比劃，這樣胡鬧！</p><p>我們現在已經看到訓練當代的神經網路有多耗費能量，但我們忘記看到，這台科學機器為了找到正確的理論，它要吞食多少陽光與石油才產出難得的珍珠！知識的代價比我們想像的還高許多。使這台機器運作不可或缺的核心力量，是其中人們的對真相的飢餓、想要玩耍的欲望、生命想要擴張的傾向與虛榮心。看哪！這樣的急不可耐的怪獸是如何以它地球大的眼睛向太空張望？它如何迫切的想要一切事物都在其身上留下腳印？它如何貪婪的想要將一切納入它的掌控之中，使其也成為它身體的一部分？</p><h3>結語</h3><p>其實還有一些問題我沒有處理，像是數學是被「發明」或被「發現」這個問題，這我覺得一樣是由於我們語言中的概念結構不好所衍生的問題。或是在我說數學工具的選擇是由經驗決定的時候，還沒有很完整解釋何為「經驗」。關於何為「真實」，感覺也還有很多可以說。但由於怕這篇會寫太長，所以點到為止。</p><p>其實不是只有數學物件是抽象的，我們所說的杯子、上面、時間、空間、形狀等也都是我們創造出來描述世界的抽象概念。所以數學這個領域的邊界是很模糊的，只要這些抽象的概念或結構變得可以被嚴謹的處理，有明確的運算規則，就可以變成數學的一部分。</p><p>我覺得很多學數學的學生之所以對一些基本問題困惑，是因為很多數學老師也未必清楚數學是什麼。我們透過足夠的練習與背誦，往往能夠學起來如何操作數學物件，但常常我們會在這樣的過程中變得難以將自身抽離出來，來重新觀察數學在人的認知過程中扮演的角色。一旦我們認清楚數學本身是我們創造的工具，也可以單純的作為一場遊戲，就像我們可以隨意創造出各種遊戲一樣，我們也可以隨意創造出我們想要的結構來描述這個世界，我們才更好地認識了數學。</p><p>Links:</p><ol><li><a href="https://en.wikipedia.org/wiki/Monster_group">https://en.wikipedia.org/wiki/Monster_group</a></li><li><a href="https://thatsmathematics.com/mathgen/">https://thatsmathematics.com/mathgen/</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c3ad412ea08" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[「生命是什麼?」 — 從電腦科學的計算理論出發來思索]]></title>
            <link>https://yujen-lin.medium.com/%E7%94%9F%E5%91%BD%E6%98%AF%E4%BB%80%E9%BA%BC-%E5%BE%9E%E9%9B%BB%E8%85%A6%E7%A7%91%E5%AD%B8%E7%9A%84%E8%A8%88%E7%AE%97%E7%90%86%E8%AB%96%E5%87%BA%E7%99%BC%E4%BE%86%E6%80%9D%E7%B4%A2-f4d9987d409c?source=rss-522319ce9a79------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4d9987d409c</guid>
            <category><![CDATA[生命]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[計算機]]></category>
            <category><![CDATA[訊息]]></category>
            <category><![CDATA[電腦科學]]></category>
            <dc:creator><![CDATA[林育任 (Yu-Jen Lin)]]></dc:creator>
            <pubDate>Thu, 10 Feb 2022 14:09:54 GMT</pubDate>
            <atom:updated>2023-05-04T14:58:47.190Z</atom:updated>
            <content:encoded><![CDATA[<h3>「生命是什麼?」 — 從電腦科學的計算理論來思索</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*f7OKCiOsYNGIXsOnewjlHw.png" /><figcaption>Ferkel, Public domain, via Wikimedia Commons</figcaption></figure><p>在現代，人們已大致了解了生命運作的方式。以人為例，我們知道每個人體內都有一組獨特的 DNA，其決定了一個人的生命的很大一部分，他可以影響我們身高、面貌、遺傳疾病，甚至是智商。同時，我們也知道人體是一個非常複雜的系統，它是我們所見過最複雜的機器之一。空氣、水、陽光、食物，它從環境汲取各式資源，以各種精密的運作來維護自身存在。不只如此，它還有一顆發達的腦，使人們可以達成各種連人們自己都想不到的事。這樣的複雜度，總讓人不禁要讚嘆並且說：這樣的奇蹟只有上帝造的出來吧！</p><p>經過近代的生物學的研究，演化論成為生物學界的主流學說。在演化論的解釋中，人類是經由長期的演化，也許是從微生物、魚類、爬蟲類、哺乳類、猿猴一路這樣走過來的。但演化論並沒有解答一個重要的問題，最初的生命如何誕生？或是換句話說，怎樣才算是生命？這是生物學家至今仍還在研究的問題。但從計算理論，這樣看似與生物扯不上邊的抽象學問，其實可以讓我們用不同角度一瞥生命起源的可能性。</p><p>首先，我們可以把焦點放在我們目前想的到最簡單的生命上。如果單純看一個單細胞生物的話，只有 DNA，或是只有細胞的其他部件的話，都是行不通的，這樣的東西我們不想叫它生命。細胞仰賴從遺傳物質中讀取資訊來製造需要的零件，DNA 則需要這樣圍繞著他的其他元件如 RNA、蛋白質才能產生作用並且被複製而傳遞下去。這些元件彼此都依賴彼此，似乎難以在繼續拆解下去，不知道到底是誰先該出現。在這裡就產生了一個類似雞生蛋、蛋生雞的問題。究竟是 DNA 先出現，還是其他部分先出現呢？或是說，最簡單的生命，應該擁有怎樣的核心結構呢？</p><h3>自產生程式</h3><p>在談論生命之前，我們可以來看一個電腦科學中有趣的現象 — 「自產生程式」，英文名詞叫做 Quine。知道如何寫程式的讀者，讀到這裡可以停下來想一想，<strong>一個程式如何在不作弊 (讀取自己的原始碼檔案屬於作弊) 的情況下，輸出自己的複製品，而這個複製品一樣可被執行而再輸出自己呢</strong> ?</p><p>假設這樣的程式碼內容為 A (他可以是很多行程式碼，但我們抽象的把整段程式寫作 A)，那麼要產生這段程式碼的母程式便可以寫為 ‘print(A)’ ，但這樣做有個缺點，那就是他比原本的程式碼長。如此要產生上述母程式的母程式就會是’print(print(A))’，再產生上述母程式的母程式就會是’print(print(print(A)))’，如此沒完沒了。如此的程式的繁殖過程就好像只是不斷脫殼一樣，殼脫完也就沒把戲了。這好像在說如果造車的工廠一定比車本身更複雜 (因為他必須知道車的結構)，那麼「造『造車廠』廠」又得要更加複雜了。如何才能擺脫這種不斷的複雜化呢？</p><p>計算理論中的 Recursion theorem 告訴我們只要一個機器 (專業一點叫圖靈機，而圖靈是一位電腦科學家) 擁有以下的結構，就能夠得到自身的描述，從而複製自身。甚至再加上其他部分，其也能產生修改過的自我，或是用自身的描述來做任何事情。在這裡，我所說的「描述」可以看成是一個機器的藍圖，可以以任何機器可以處理的編碼寫成。一個要得到自己描述的機器要由兩個部分 A 與 B 組成，A 的任務是提供 B 的描述，而 B 的任務則是再提供 A 的描述，如此我們就有了整個機器 AB 的描述，且兩個部分都不需要描述自己，就免除了前面的造車廠問題。但我其實並沒有說清楚，如果 A 要用 B 來定義，B 也要用 A 來定義，那其實不管是 A 或是 B 我們都訂不出來 ! 我們會陷入邏輯上一個無窮的迴圈。事實上，B 的任務是，給定一個機器的描述 X，計算並印出一個新的機器 Y 的描述，而 Y 是一個會印出 X 的機器。也就是說，在 A 給出 B 的描述後，B 用關於 B 自己的描述來計算出 A 的描述，如此一個由 A 與 B 所組成的機器，就成功獲得了自己的描述。在上述 B 的定義中我們不需要知道 A 的定義。</p><p>以下是一個用 Python 寫的例子:</p><pre># A here<br>B = r’’’<br>print(“B = r\’\’\’{}\’\’\’\n”.format(B) + B)<br>‘’’</pre><pre># B here<br># constructs the description of A and print it with description of B<br>print(“B = r\’\’\’{}\’\’\’\n”.format(B) + B)</pre><p>如果執行上述的程式，再將程式的產出當作程式來執行，如此往復無數次，我們得到的仍然會是原本的程式。酷 ! 不過如果一個生物只會複製而不能做點其他的事，好像有點無聊。事實上，recursion theorem 還進一步證明了機器可以在取得自身的描述後，再做其他的運算，譬如印出一個修改過的自己。如此就說明電腦病毒的確是可以修改自身，來產生隨機變種的。應用和上面的程式類似的技巧，我們也可以寫一個可以<a href="https://gist.github.com/sammer1107/274f6f817f62930e30b1410d59f41079"><strong>不斷印出一個稍微不同的自己的程式</strong></a> (讀者可以點擊連結看一個我寫的簡單例子，他在每次執行時都會重新排列自己的基因，並在當前的資料夾留下自己的「腳印」) 。</p><h3>馮紐曼的自我複製機器</h3><p>前面我們看到了一個機器(或是一個程式)，是可以複製出自己的描述的。但電腦中的程式似乎與現實中的生命似乎還有點距離。為了探討自我複製機器的形式，電腦科學家們把世界想像成由一格格的方格所組成的世界，這樣的世界我們叫它<strong>格狀自動機</strong> (cellular automata)。在這個世界中的每個時間點上，每一個格子都有一個狀態，例如 0 或 1，但也可以是多於兩種狀態中的一種。這個世界運行的規則就是每一個格子會根據周圍的格子來決定下一個時間點的狀態。所以這個世界一旦決定了初始的狀態，便可以不斷的演進來變出下個時間點的整體狀態。畢竟要完整的以物裡模型描述現實世界的機器是太複雜了，所以我們可以把這樣的格狀自動機看為一種對現實世界的簡化。</p><p>而馮紐曼所做的事情，就是在這樣的世界設計一台機器 (a.k.a 一堆格子與對應設定好的格子狀態)，使的這台機器可以像現實中的生命一樣不斷複製自身，甚至產生變異、演化。而這台機器的結構其實跟上段的自產生程式、或是我們所熟悉的生命形式很類似。第一個部分是關於機器本身的描述 <strong>Φ</strong>，他被記錄在一個長長的帶子上。再來是一個能根據描述來製造機器的部件 A，以及一個用來單純複製描述 <strong>Φ </strong>本身的部件 B 以及一個用來主導整個過程的作業系統 C。剛好 Youtube 上有人根據把這樣的機器架構實作出來的影片:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FCMt8vspQRa4%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DCMt8vspQRa4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FCMt8vspQRa4%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/b094878a0cfab42dedca00c4b7b9446e/href">https://medium.com/media/b094878a0cfab42dedca00c4b7b9446e/href</a></iframe><p>厲害 ! 從這裡我們可以看到，在那個用數學建構出來的理想世界中，又或是我們在日常中使用的電腦上，都可以存在一種類生命的結構，其可以擁有複製自身，甚至是修改自身的能力。但這樣的想法可以應用到現實生活嗎？畢竟現實世界似乎比一個純理想的計算機還要更加複雜許多。</p><h3>世界，一個巨大的計算機</h3><p>事實上，我們可以把這個世界本身就當成一種巨大的計算機。至少在我們人類目前的觀察底下，世界的確照著一種與可被數學描述的方式精準的運作著。如果你覺得世界的運行與你桌上的數位電腦如此不同以至於你無法接受的話，我們可以看一種與數位相對的電腦 — — <strong>類比計算機</strong>。相對於數位電腦以 0 與 1 這種經過量化 (quantized) 的離散 (discrete) 形式來處理資料，類比計算機以連續的量、更自然的方式來計算結果。</p><p>類比計算，顧名思義，是靠「類比」的方式來計算。也許我們今天想要測試一組由機械組成的系統，但是實際製造出這樣的機械也許太過費力，我們也可以以另一種方式來模擬機械的運作 — — 用電路模擬（注意這與用數位電腦中的軟體模擬不一樣）。由於許多機械零件運作的原理可以被數學描述（例如大家高中學過的理想彈簧，便可以以簡單的式子 F = kx 描述），而這個數學描述可能會剛好與電路的數學描述同構（例如 F = kx 就與 V = IR 這個電路學的式子同構）。只要我們把電壓 V 設定為前式的力 F，R 設定為彈簧常數 k，我們就可以藉由量測電流來得知彈簧的伸縮量 x (當然實際的問題會比這更複雜)。我們在做的事情就是用一種物理現象去類比、映照出另一個我們想計算的事物。類比計算不只可以用電路達成，也可以用水或是任何你知道它運作方式的東西。例如 MONIAC 便是這樣一個被經濟學家研發，透過水流來模擬社會上的資金流動的計算機:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FrAZavOcEnLg%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DrAZavOcEnLg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FrAZavOcEnLg%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/7ab538ada9dc0b1f6a425374d2094fd1/href">https://medium.com/media/7ab538ada9dc0b1f6a425374d2094fd1/href</a></iframe><p>類比計算可以看成是一種相對於數位電腦更專用，卻更直接的取用大自然的力量，所以可以達成更好的能量效率的計算方式。目前在數位電腦上創造人工智慧的研究時常會遇到計算能力不足、能量效率太低以至於大量碳排放的問題，所以類比計算也重新開始被重視，其也被期望可以作為實現真正的人工智慧的一種途徑。</p><p>除了前面提到的水流、電流等類比計算，甚至也有學者提出了 DNA 計算、化學計算機，當然也不能不提近期討論度很高的量子計算機。我們可以看到，不管是在最微小的量子尺度上，或是在複雜的生物層級之上，都存在著計算的潛能。但這些<strong>計算的力量從何而來</strong>？在嘗試回答這個問題以前，我想在分享在電腦科學中另一個奇妙的現象。</p><h3><strong>計算機中的計算機</strong></h3><p>在計算機的世界裡，其中一個最令我印象深刻的性質便是：在一個足夠強的計算機中，總是可以再模擬其他的計算機，專業一點的說法是這樣的計算機是圖靈完備的。在我們日常所使用的電腦其實都有這個現象，如果我們想要使用不同的作業系統，我們可以直接用虛擬機器來在目前的電腦裡再模擬一台電腦，而不需要買一台新電腦。當我們想要回味古早味的電玩時，未必要花大錢買古董實體機，而可以簡便的用模擬器來達成目的。不只如此，在一般使用者看不到的軟體底層，也充斥著各種的虛擬機器，這些虛擬機器正是很多的程式語言運作的基礎。就連程式原始碼本身，其實也可以看成是一台機器的描述，而執行一個程式，其實就是在模擬一台機器。</p><p>在像 Minecraft 這樣高自由度的遊戲中，玩家可以自由的建造幾乎是任何東西，一棟住宅，圖書館、地下鐵，或者透過遊戲裡的紅石機制造一台電腦，甚至是在 Minecraft 裡面玩 Minecraft！再讓我們看另一個世界，由數學家 John Conway 創造的一個名叫 Game of Life 的遊戲，他其實就是一種前面提到的格狀自動機。這是個很簡單的世界，整個世界只是一個劃得規律的二維棋盤格子，每個格子可以是黑色或白色，且每一格都遵循著一樣的規律來變化，其根據鄰近的八個格子在這個時刻的顏色來決定下一個時刻的顏色。如此，我們只要設定初始的棋盤狀態，這個世界就可以開始運作，不需要再有人為的介入。但就連這樣簡單的世界，都被證明為圖靈完備的，簡單地說，理論上我們可以在裡面造一台電腦，而他可以做到任何一般電腦能計算的事。</p><p>我們不禁想問，為什麼跑在計算機上的遊戲裡，還能再建一台電腦？或是問，什麼是計算的本質？其實，在抽象的計算理論中，計算就是一連串有規律的狀態的轉換，因為有規律，所以結果可以預測，便可以計算東西。這樣可以根據輸入而有規律的狀態轉換的東西，就是前面說的<strong>自動機</strong>。任何一個存在著規律的世界，就存在計算的潛能。所以計算的潛能從何而來？可不是什麼「人工」的，沒有大自然運作的力量，哪還談什麼人工！當然，人必須先掌握大自然運作的規律，才能反過來叫他們做事。但計算的力量，是從大自然借來的。我們的電腦，之所以有計算能力，正是因為大自然本身有計算的力量，就像跑在我們電腦中的虛擬機器也向真實的機器借了計算的力量一樣。</p><p>這些我們通常稱作計算機的東西，其實只是大自然中一小塊可被精準控制與解讀的部分，而那些我們不稱為計算機的東西，其實是一場失控的計算。看看周圍的一切，有什麼不是一場計算？這些事物與計算機的差別，只是他們並不為我們而算，可以說他們本身就是計算的動機與結果。就算它是為我們而算，我們大概也看不懂罷。</p><h3><strong>奇蹟式的巧合</strong></h3><p>有了計算機的世界觀之後，我想我們就可以把基因與細胞的部件都當成一種程式或是機器了。基因就是負責編碼，儲存關於細胞資訊的 <strong>Φ</strong>。而其他的部分則是在解讀了基因上的資訊後，所產生的 A、B、C 等元件。只要這些部件同時存在，這台機器就能如此往復的生生不息。而各種千奇百怪的生物與生命現象，各種不同性格的人與其行動，則是圍繞在這個複製核心的周圍，一連串額外的運算。關於這些額外的，即人如何學習、變成似乎有超越多數動物的智慧這等事，則是留給人工智慧相關的理論來回答。</p><p>關於生命如何產生的問題，目前較廣為接受的一種理論是 RNA world²。由於 RNA 分子可以同時扮演紀錄遺傳資訊與類似蛋白質作為催化劑的角色，所以一些科學家推測地球上最早的生命可能是各種 RNA 分子互相交互作用形成的。但這個理論並沒有解釋 RNA world 又該怎麼轉換到現在以 DNA, RNA 與蛋白質共同組成的形式，也沒有完整解釋 RNA world 又該如何形成。就算我們找到了這些解釋，他大概也必須仰賴特定的條件 (如古地球的氣候、化學環境等) 才能形成。要嘛我們就此打住，滿足的說:「我懂了 !」要嘛我們可能又想問:「那這樣的條件又該如何形成？」就算我們又找到條件的形成條件，我們也可以繼續問下去。到最後的問題大概就變成：「為何世界是如此而不是別的樣子？」 — — 一個大概只能回答「它就是如此」的問題。</p><p>搞到最後，似乎還是得要用一連串奇蹟似的巧合來理解他。第一個必需的巧合，是<strong>生命必須剛好在天時地利「分子」合的時刻</strong>，成功讓這樣最核心的元件聚在一起並「開機」。就像我們每個人的個人電腦，在開機的時刻也只需從唯獨記憶體載入最簡單的程式，此後便可以再載入更多軟硬體，變成我們所看到的豐富模樣。也許生命也只需要一個讓最核心的部份跑起來，其餘的身體與大腦則可以慢慢的被擴充進來。</p><p>第二個巧合是基因本身的意義如何被解讀的問題。我們都說基因記載了我們的遺傳訊息，但什麼是訊息？一連串的核苷酸所記錄的 A、T、C、G 有什麼意義？誰決定了胺基酸的編碼？這也好像在問儲存在硬碟上的一連串 0 與 1 有什麼意義。或是這一篇文章，由一連串的中文字母所組成的結構，有什麼意義？如果今天世界上沒有任何人能讀中文，甚至不知道何為中文，那這篇文章相當於沒有任何意義。<strong>意義本來是沒有的！只有能被解讀且造成對應行動的資訊才說的上是資訊</strong>。</p><p>在數位電腦中的任何一串 0 與 1 ，都可以被以不同方法解讀。一個表達浮點數 (即小數) 的編碼，可以被當成整數來看待。一個圖片，也可以以不同的演算法來解讀，來得到「聲音」。而有些生成式藝術就是利用資料的這個特性，故意「錯誤」的解讀資料，來讓人以不同的形式來看同樣的事情:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FI-EIVlHvHRM%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DI-EIVlHvHRM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FI-EIVlHvHRM%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/1fa38c07d4bbd04b6bfaa7dacea3c149/href">https://medium.com/media/1fa38c07d4bbd04b6bfaa7dacea3c149/href</a></iframe><p>所有的解讀都是一種解讀，差別在於有些解讀並不這麼「make sense」，例如我們透過轉換圖片得到到聲音可能並不這麼好聽、或是從負債資料生成的圖片可能不這麼有趣。你也可以把任何一個程式的附檔名改為 .txt 打開看看，基本上就是一坨無法解讀的東西。所以基因的意義是什麼？基因被細胞轉錄、轉譯來產生各種蛋白質，最終產生各種表現型 — — 頭髮捲度、眼睛顏色……等等。但難道我不能將基因轉成音樂，轉成藝術，產生另一種「表現型」？確實，<strong>訊息的意義，在於如何被解讀</strong>。基因的序列並沒有絕對的意義，其意義取決於讀取基因序列的「機器」如何解讀，就好像看到一段文字，每個人都可以有不同的解讀。所以沒有理由相信一段基因序列總是對應到一種胺基酸，因為能夠讀取基因序列的分子機器可能不只一種。事實上，生物學家也的確發現在一些生物內的基因解讀異於他們原本相信的一套標準編碼³。</p><p>從這裡我們看到，第二個巧合驚人之處在於，一連串的核苷酸所排成的遺傳物質本來是沒意義的，他必須遇到對的另一半，且在這個這個巧遇的分子機器解讀下，他得要剛好製造出這個機器本身。換句話說，<strong>他本是一本沒人能讀懂的書，直到讀者自己從泥巴跳出來。而在這位讀者的解讀之下，這本書，竟是關於他自己</strong>！</p><p>這樣的書與讀者，正是我們現在所看到的生命。</p><p><strong>References</strong></p><p>1. M. Sipser, Introduction to the theory of computation (2006)<br>2. M.P. Robertson and G.F. Joyce. “The origins of the RNA world,” in Cold Spring Harbor Perspectives in Biology 4(5) (2012): a003608.<br>3. <a href="https://en.wikipedia.org/wiki/DNA_and_RNA_codon_tables#Alternative_codons_in_other_translation_tables">https://en.wikipedia.org/wiki/DNA_and_RNA_codon_tables#Alternative_codons_in_other_translation_tables</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4d9987d409c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>