<?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 Aman Khanal on Medium]]></title>
        <description><![CDATA[Stories by Aman Khanal on Medium]]></description>
        <link>https://medium.com/@amankhanal_ai?source=rss-1ebbcedff1ab------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Qs7QWHgqO4DR9C6qXN2kyA.jpeg</url>
            <title>Stories by Aman Khanal on Medium</title>
            <link>https://medium.com/@amankhanal_ai?source=rss-1ebbcedff1ab------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 12:59:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@amankhanal_ai/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[“I Think Human Memory Runs on Emotional Compression — Does AI Need That Too?”]]></title>
            <link>https://medium.com/@amankhanal_ai/i-think-human-memory-runs-on-emotional-compression-does-ai-need-that-too-e211f7dc3fdb?source=rss-1ebbcedff1ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/e211f7dc3fdb</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[agi]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[raw]]></category>
            <dc:creator><![CDATA[Aman Khanal]]></dc:creator>
            <pubDate>Sat, 25 Jul 2026 05:05:34 GMT</pubDate>
            <atom:updated>2026-07-25T05:05:34.296Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Can Emotional Intelligence Be the Missing Piece Toward AGI? (Raw, Unfiltered Thoughts )</strong></p><p>*A disclaimer before I start: I haven’t studied deep learning yet. I’m three months into classical ML. I don’t know the actual math behind how these deep learning systems work under the hood. This is not a research paper — it’s a reasoning exercise. I’m writing down what I independently arrived at, then being honest about where it’s already known territory and where it’s shaky. If you’re an ML researcher reading this, you’ll probably spot the naivety immediately. That’s fine. That’s the point of writing it now instead of waiting until I “know enough.”</p><p><strong>— -</strong></p><p><strong>How this started:</strong></p><p>I was reading a bunch of blogs about AGI — timelines, predictions, doom, hype, all of it — and it spiraled into a real question for me: if AGI comes, what’s even the point of what I’m learning? What will humans do? Is my roadmap wrong? Should I abandon computer science and systems work and just go deep into math and ML?</p><p>I worked through a lot of that fear in conversation, and the short version of where I landed: fear-driven pivots are usually about buying back a feeling of control, not about actually improving your odds. The honest move is to keep building depth — the kind that lets you build, verify, or direct systems — rather than chasing whichever field feels safest this week.</p><p>But the more interesting thread that came out of all this wasn’t the fear. It was a technical question I couldn’t let go of.</p><p><strong>AI vs AGI — the actual difference:</strong></p><p>I used to picture AGI as basically a humanoid robot. That’s wrong — that’s a sci-fi image, not the technical definition. AGI is a software. It’s the same kind of thing current AI is, just uniformly reliable and general instead of narrow and uneven.</p><p>Current models are already “AI” — they do cognitive tasks. What they lack, compared to a hypothetical AGI:</p><p>- They don’t reliably learn from experience across time — no persistent learning without an external memory system bolted on</p><p>- They fail unpredictably outside familiar patterns</p><p>- They can’t operate autonomously over long horizons — multi-day, multi-week work with real feedback loops and course-correction</p><p>- Their capability is uneven — strong in some domains, weak in others, in ways that don’t track how a competent human’s skill generalizes</p><p>So AGI isn’t a different kind of technology. It’s the same kind of intelligence, made consistent and general instead of patchy.</p><p><strong>The thing that’s actually stopping us:</strong></p><p>Two things kept coming up as the real bottlenecks, according to the current research landscape:</p><p><strong>**1. Continual learning.**</strong> Current models can’t learn without forgetting. Train on new data, and it disrupts what was learned before — this is called catastrophic forgetting, and it’s been a known problem since the 1980s. Transformers store knowledge in static weight matrices, so updating them for new information risks wrecking old information.</p><p><strong>**2. World models and long-horizon reasoning.**</strong> Models are good at predicting the next plausible token, not at simulating how the world actually works — cause and effect, consequences that play out over time. Researchers are trying to build in an internal sense of “if I do X, Y will happen,” rather than pattern-matching from training data.</p><p><strong>My own idea: humans don’t do continual learning “deeply” either:</strong></p><p>Here’s where I started reasoning from scratch instead of reading more blogs.</p><p>Humans start from zero. Birth to death, we’re doing continual learning constantly. But we don’t remember most of it in deep detail — we remember a <em>*summarized, bird’s-eye version*</em>. A headline, not the full article. So maybe the answer for AI isn’t “make the model remember everything forever” — it’s “build a compression mechanism that decides what to keep in detail and what to reduce to a summary.”</p><p>I later learned this is a real thing — it’s called memory consolidation, and neuroscience already describes the mechanism: the hippocampus holds recent detailed memory, and over time (notably during sleep) a compressed, generalized version gets transferred to the neocortex for long-term storage. There’s apparently a 2026 research workshop treating this exact hippocampal-to-neocortex mechanism as an open problem for AI memory systems. So I wasn’t inventing something new — I was re-deriving a real mechanism from personal observation, which I’m choosing to take as a good sign about how I think, even if the specific idea isn’t original.</p><p><strong>Where I pushed further: emotional intelligence as the retention signal:</strong></p><p>This is the part I’m least sure about, and the part I want to leave in raw instead of cleaning up.</p><p>I noticed that the things which stay in my memory for years — not decades, forever — are almost always emotionally extreme. Very happy, very painful. Neutral stuff fades. So my idea: what if the “what to keep vs. compress” decision in an AI memory system was driven by a predicted emotional intensity score attached to each piece of context?</p><p>Concretely, what I proposed:</p><p>- The model predicts an emotion (or emotional intensity) associated with a given context — essentially a key-value pair: this context → this emotional weight</p><p>- High-intensity contexts get retained in more detail; neutral ones get compressed or forgotten</p><p>- Train this whole thing with reinforcement learning — reward the model for catching the “right” emotional patterns over time, the way RLHF already shapes model behavior for other things</p><p>I framed this as: humans run on math too, however “miraculous” our minds feel — there’s presumably some mechanism, and hormones are probably that mechanism biologically. So there should be a functional equivalent buildable in a model, even without solving consciousness.</p><p><strong>The flaw I got pushed on, and I think it’s a real flaw:</strong></p><p>The RLHF-for-emotion idea has a problem I hadn’t thought through: <strong>**what’s the ground truth you’re rewarding against?**</strong></p><p>With normal RLHF, you can get human raters to agree reasonably well on “was this response helpful.” Emotion doesn’t work like that. The same context — say, “I lost my job” — could genuinely justify sadness, relief, anger, or numbness depending on the specific person and situation. Even human raters would disagree on labeling it. So an RL loop here doesn’t necessarily converge toward “understanding emotion correctly” — it converges toward whatever the most statistically common labeled response is in the training data. That’s not the same thing as real emotional understanding. It might just be really good stereotyping.</p><p>There’s also a deeper, unresolved distinction I glossed over initially: recognizing/predicting emotion (which current models can already do a rough version of — sentiment analysis) is very different from a system actually having emotion, in the sense of subjective felt experience shaping its own behavior. What I’m proposing is the <em>*functional*</em> version — a salience score standing in for emotion, used mechanically to weight memory. That’s a legitimate research bet, but it’s a bet, not an obvious truth. It sidesteps the philosophical question (does this require consciousness?) rather than answering it, and plenty of researchers would argue affect and cognition are more tangled together than a bolt-on score can capture.</p><p><strong>Where I’ve landed, for now</strong></p><p>- Emotional salience affecting memory retention: grounded in real neuroscience, and a legitimate direction some memory-architecture research is already circling.</p><p>- Using RL to train emotion recognition: coherent as a training loop, but stuck on the same problem all subjective-label tasks have — no clean ground truth to converge toward.</p><p>- Emotion-recognition and memory-salience-weighting are two separate mechanisms that I was bundling together. Recognizing emotion accurately is the hard, unsolved part. Using an emotion score to weight memory, once you have it, is comparatively trivial.</p><p>If I wanted to actually test any of this instead of just theorizing about it: a small, doable project would be training a simple classifier to predict emotional intensity from text, then using that score to weight what gets kept in a toy memory buffer. That would show me exactly where the idea holds up and where it breaks, instead of just sounding plausible in a conversation.</p><p><strong>Why I’m posting this now, unfinished</strong></p><p>I’m not posting this because I think I’ve found something novel. I’m posting it because I reasoned to a real mechanism (memory consolidation via emotional salience) independently, before knowing it was already a research direction — and I think that’s worth having on record at month three, flaws and all, rather than waiting until I know enough to sound polished. Future me can look back at this and see exactly what I got right by instinct and what I was missing by not knowing the field yet.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e211f7dc3fdb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Notes from my AI/ML learning journey :]]></title>
            <link>https://medium.com/@amankhanal_ai/notes-from-my-ai-ml-learning-journey-edfca1ad5de2?source=rss-1ebbcedff1ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/edfca1ad5de2</guid>
            <category><![CDATA[sustainability]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[fundamentals]]></category>
            <dc:creator><![CDATA[Aman Khanal]]></dc:creator>
            <pubDate>Sat, 06 Jun 2026 07:39:24 GMT</pubDate>
            <atom:updated>2026-06-06T07:45:54.879Z</atom:updated>
            <content:encoded><![CDATA[<h3>How a Linear Algebra Lecture Changed the Way I Think About Machine Learning</h3><p>Today, while studying Lecture 6 (Column Space and Null Space) from MIT OCW 18.06 Linear Algebra, taught by Professor Gilbert Strang, I experienced one of those moments where a mathematical concept suddenly connected with machine learning in a way that felt intuitive rather than theoretical.</p><p>This wasn’t a breakthrough or some deep research insight. It was simply a moment where abstract linear algebra stopped being abstract.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cNK41p2cLjc60IxcGPbs0g.png" /></figure><h3>The Question That Started It</h3><p>While studying column spaces, I began thinking about a matrix whose column space has dimension 1.</p><p>Imagine a dataset with 1,000 features.</p><p>At first glance, it seems like the dataset contains a huge amount of information because there are 1,000 columns.</p><p>But what if every column is just a scaled version of one column?</p><p>In that case, the column space would be one-dimensional.</p><p>Geometrically, even though the vectors live in a high-dimensional space, they all lie on a single line.</p><p>The matrix might have 1,000 columns, but it only provides one independent direction.</p><p>This made me realize something important:</p><p>More features do not automatically mean more information.</p><p>If new columns are just combinations of existing columns, they do not expand the column space. They do not create new directions. They do not increase the rank.</p><p>They simply repeat information that already exists.</p><h3>Connecting It to Machine Learning</h3><p>As soon as I thought about this, my mind jumped to machine learning datasets.</p><p>Suppose we have a feature matrix X.</p><p>In linear regression, predictions are generated using:</p><p>y = Xw + b</p><p>The prediction depends on linear combinations of the feature columns.</p><p>Now consider a situation where some columns are dependent on others.</p><p>For example:</p><ul><li>Feature 2 is three times Feature 1.</li><li>Feature 3 is negative two times Feature 1.</li></ul><p>Although we technically have three features, they all lie in the same direction.</p><p>The rank is still 1.</p><p>The column space is still a line.</p><p>No new directions have been added.</p><p>At that moment, I started thinking:</p><p>If these columns are not creating new directions, then why should a model need all of them?</p><p>Removing the redundant columns would not change the span of the data.</p><p>The model would still have access to the same geometric space.</p><p>That was my first intuitive connection between column space and feature redundancy.</p><h3>A Different Way to Think About Features</h3><p>Before learning linear algebra, I used to think about features in a very simple way:</p><p>More features = more information = better model.</p><p>Column spaces forced me to rethink this.</p><p>Now I see that the real question is not:</p><p>“How many features do we have?”</p><p>The real question is:</p><p>“How many independent directions do those features provide?”</p><p>A dataset with 1,000 highly dependent features may contain less useful information than a dataset with 100 genuinely independent features.</p><p>The number of columns and the amount of information are not necessarily the same thing.</p><p>Rank tells us something about the effective dimensionality of the data.</p><h3>Why Feature Selection Suddenly Made More Sense</h3><p>This insight also gave me a new intuition for feature selection.</p><p>Suppose a dataset contains many features that are either:</p><ul><li>Duplicates of existing information,</li><li>Strongly dependent on other features,</li><li>Or contribute very little new information.</li></ul><p>Removing such features may not significantly affect performance because the model is not losing important directions in the data.</p><p>The geometric structure remains largely unchanged.</p><p>Of course, feature selection is not only about rank.</p><p>A feature can be independent and still be useless for prediction.</p><p>For example, random noise can increase rank without helping the model.</p><p>But column space gave me a geometric intuition for why some features can be removed with little impact.</p><h3>The Bigger Realization</h3><p>What fascinated me most was not feature selection itself.</p><p>It was realizing how much of machine learning can be viewed through the lens of linear algebra.</p><p>When I first started studying machine learning, concepts like:</p><ul><li>Feature engineering</li><li>Dimensionality reduction</li><li>Embeddings</li><li>Neural networks</li></ul><p>felt like separate topics.</p><p>But now I am starting to see the underlying geometry.</p><p>Many machine learning ideas can be reframed as questions like:</p><ul><li>How many independent directions exist?</li><li>What space does the data occupy?</li><li>Which directions contain useful information?</li><li>Which directions are redundant?</li></ul><p>These are fundamentally linear algebra questions.</p><h3>Why I Enjoy Learning This Way</h3><p>One habit I try to maintain while studying is active thinking.</p><p>Instead of memorizing definitions, I constantly ask:</p><p>“How does this connect to machine learning?”</p><p>“How would this show up in a real dataset?”</p><p>“What practical problem does this explain?”</p><p>Sometimes those questions lead nowhere.</p><p>But sometimes they create moments like today’s, where a concept from a linear algebra lecture suddenly explains something I have seen in machine learning before.</p><p>Those moments are incredibly satisfying because they make the mathematics feel alive.</p><h3>Why I Like Understanding What Happens Underneath</h3><p>One thing I have realized during my AI and machine learning journey is that I am rarely satisfied with knowing only <em>how</em> to use a model.</p><p>I am much more interested in understanding <em>why</em> the model works in the first place.</p><p>When I learn about a machine learning algorithm, I naturally find myself asking questions such as:</p><ul><li>Why does this model exist?</li><li>What problem was it originally designed to solve?</li><li>What assumptions does it make about the data?</li><li>What mathematical principles make it work?</li><li>What is actually happening underneath the layers and equations?</li></ul><p>Some people are perfectly comfortable treating models as black boxes. There is nothing wrong with that, especially when the goal is simply to build an application.</p><p>However, I have become increasingly convinced that the future of AI is not just about building bigger models. It is about building more efficient, sustainable, and optimized systems.</p><p>As models continue to grow in size, computation, energy consumption, and hardware requirements become increasingly important. At that point, optimization becomes just as valuable as raw capability.</p><p>But optimization is difficult if we do not understand what is happening underneath.</p><p>To optimize something, we first need to understand its structure.</p><p>To improve a system, we need to understand why it behaves the way it does.</p><p>To make models more efficient, we need to understand the mathematics and geometry that govern them.</p><p>That is one reason I enjoy studying subjects such as linear algebra, probability, statistics, and optimization. These subjects are not separate from machine learning; they are the foundations that make machine learning possible.</p><p>When I connect a concept like column space to feature redundancy, I am not just learning linear algebra. I am building intuition about how information flows through machine learning systems.</p><p>For me, that deeper understanding is what makes the field exciting. It transforms machine learning from a collection of tools into a system of ideas that can be analyzed, improved, and ultimately optimized.</p><h3>Final Thoughts</h3><p>Today’s lesson was not really about column spaces.</p><p>It was about learning to see machine learning through a geometric lens.</p><p>A dataset is not just a table of numbers.</p><p>Its columns define directions.</p><p>Its rank tells us how many independent directions exist.</p><p>Its column space tells us what combinations are possible.</p><p>And understanding those ideas provides intuition for why some features matter and others do not.</p><p>I started the day studying column spaces and null spaces.</p><p>I ended the day thinking differently about machine learning.</p><p>For me, that is the best kind of learning.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=edfca1ad5de2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond Overfitting: My Idea of a “Governor AI” That Supervises Learning Systems]]></title>
            <link>https://medium.com/@amankhanal_ai/beyond-overfitting-my-idea-of-a-governor-ai-that-supervises-learning-systems-449b5502a68c?source=rss-1ebbcedff1ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/449b5502a68c</guid>
            <category><![CDATA[ideas]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[research]]></category>
            <category><![CDATA[systems-thinking]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Aman Khanal]]></dc:creator>
            <pubDate>Sat, 16 May 2026 04:02:41 GMT</pubDate>
            <atom:updated>2026-05-16T04:02:41.544Z</atom:updated>
            <content:encoded><![CDATA[<p>While learning about overfitting in machine learning, I came across a simple but powerful realization:</p><p>Machine learning models don’t understand meaning — they only optimize patterns.</p><p>This raised a deeper question in my mind:</p><blockquote><em>If models cannot distinguish between meaningful and meaningless patterns, can we design a system that helps them do it?</em></blockquote><p>This blog is a reflection of that thought process — an intuitive exploration of a possible direction in AI systems, rather than a finalized technical solution.</p><h3>Understanding the Problem: What Overfitting Really Is</h3><p>Overfitting occurs when a model learns not only the true underlying patterns in data, but also noise and accidental correlations.</p><p>For example, consider a dataset involving GDP and life expectancy. A model might correctly learn that higher GDP often correlates with higher life expectancy.</p><p>But in the same dataset, there might also be meaningless coincidences — such as countries with certain letters in their names having slightly higher values purely by chance.</p><p>A sufficiently flexible model might treat both as meaningful.</p><p>This leads to a fundamental question:</p><blockquote><em>Why does a machine learning model treat all patterns as potentially valid?</em></blockquote><p>The answer lies in its nature:<br> A model does not understand causality or meaning. It only optimizes mathematical relationships that reduce error.</p><h3>The Core Idea: A “Governor AI” for Learning Systems</h3><p>This led me to imagine a conceptual architecture:</p><blockquote><em>A secondary intelligence layer that supervises what the primary model is allowed to learn.</em></blockquote><p>I call this idea a <strong>Governor AI</strong>.</p><h3>The role of such a system would be:</h3><ul><li>Analyze datasets and detect potential patterns</li><li>Evaluate whether patterns are likely meaningful or spurious</li><li>Assign importance scores to different relationships</li><li>Guide or restrict what the main model learns from</li></ul><p>Instead of a model learning blindly from all available correlations, learning would happen under a supervisory system that regulates what is worth learning.</p><h3>An Analogy: Learning With and Without Guidance</h3><p>To make this intuition clearer, consider a student preparing for exams.</p><ul><li>The <strong>student</strong> represents the main machine learning model</li><li>The <strong>textbook + distractions</strong> represent raw data</li><li>The <strong>mentor or teacher</strong> represents the Governor AI</li></ul><p>Without guidance, the student may try to memorize everything — including irrelevant details. With guidance, the learning becomes focused on what actually matters.</p><p>Similarly, a Governor AI would act as a guiding layer that helps the system prioritize meaningful structure in data over noise.</p><h3>A More Technical Intuition</h3><p>In a more structured form, such a system could work as follows:</p><ol><li>Extract potential patterns from data</li><li>A supervisory model evaluates each pattern</li><li>Patterns are categorized as:</li></ol><ul><li>relevant</li><li>weakly relevant</li><li>irrelevant</li></ul><p>4. The primary model is trained using only approved or weighted patterns</p><p>This introduces an additional layer of learning supervision on top of standard training pipelines.</p><p>It can be thought of as a “filtering mechanism” that operates before or during model training.</p><h3>Open Challenges and Limitations</h3><p>This concept raises several important questions:</p><ul><li>How do we define “relevance” in a universal way?</li><li>Can relevance change across different domains or contexts?</li><li>Could the supervisory system itself become biased or incorrect?</li><li>Would the added complexity outweigh the benefits?</li></ul><p>These questions highlight that this is not a complete solution, but rather an exploratory direction.</p><h3>Why This Idea Matters to Me</h3><p>This idea came naturally while studying overfitting, and it reflects a deeper curiosity:</p><blockquote><em>Can we design systems that not only learn from data, but also understand what should be learned?</em></blockquote><p>Even if this concept is not directly implementable in its current form, it helps in thinking more deeply about:</p><ul><li>how learning systems behave</li><li>why models fail to generalize</li><li>and what it would mean to control learning itself</li></ul><h3>Closing Thoughts</h3><p>At this stage, I see this idea not as a finished framework, but as a thought experiment that connects machine learning, systems thinking, and model supervision.</p><p>Many important ideas in AI begin this way — as simple intuitions that question how learning could be improved.</p><p>This is one such exploration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g4xgLzaaDnnCIPDTSC53yQ.png" /><figcaption>Architecture Idea</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=449b5502a68c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>