<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ml on Omanshu Thapliyal</title><link>https://omanshuthapliyal.github.io/tags/ml/</link><description>Recent content in Ml on Omanshu Thapliyal</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 16 Sep 2026 12:02:49 -0400</lastBuildDate><atom:link href="https://omanshuthapliyal.github.io/tags/ml/index.xml" rel="self" type="application/rss+xml"/><item><title>So does your Car fail? (A Small Harness for Mathematical Exploration) - Part 3</title><link>https://omanshuthapliyal.github.io/blog/hrt-conjecture-part-3/</link><pubDate>Wed, 16 Sep 2026 12:02:49 -0400</pubDate><guid>https://omanshuthapliyal.github.io/blog/hrt-conjecture-part-3/</guid><description>&lt;p>Part 1:&lt;a href="https://omanshuthapliyal.github.io/blog/hrt-conjecture/">https://omanshuthapliyal.github.io/blog/hrt-conjecture/&lt;/a>&lt;/p>
&lt;p>Part 2: &lt;a href="https://omanshuthapliyal.github.io/blog/hrt-conjecture-part-2/">https://omanshuthapliyal.github.io/blog/hrt-conjecture-part-2/&lt;/a>&lt;/p>
&lt;p>In the &lt;a href="https://omanshuthapliyal.github.io/blog/hrt-conjecture/">(last couple)&lt;/a> &lt;a href="https://omanshuthapliyal.github.io/blog/hrt-conjecture-part-2/">(of posts)&lt;/a> I explained what the recently (dis-)proven HRT conjecture states, and what it implies.
We looked at how a computer-assisted argument can turn a difficult mathematical question into a finite collection of things that can be checked. Here, we try the more mundane inverse problem: how do we set up a small AI harness such that an LLM can suggest where to look, while the things that matter are still checked deterministically?
Here&amp;rsquo;s a speedy recap. The original HRT conjecture asked whether this could ever happen.&lt;sup id="fnref:1">&lt;a href="#fn:1" class="footnote-ref" role="doc-noteref">1&lt;/a>&lt;/sup> For a function $$g$$, define the time-frequency shift
$$
\pi(a,b)g(x) = e^{2\pi i b x}g(x-a).
$$
Given finitely many distinct points
$$
\Lambda = \{(a_k,b_k)\}_{k=1}^{N} \subset \mathbb{R}^{2},
$$
HRT asked whether the collection
$$\{\pi(a_k,b_k)g\}_{k=1}^{N}$$
is always linearly independent whenever $$g\neq 0$$.
Equivalently, can we find nonzero coefficients $$c_k$$ such that
$$
\sum_{k=1}^{N} c_k \pi(a_k,b_k)g = 0?
$$&lt;/p></description></item><item><title>Contraction can Help Safety Classifiers keep their Promise</title><link>https://omanshuthapliyal.github.io/blog/safety-classifier-ssm/</link><pubDate>Wed, 12 Aug 2026 01:02:49 -0400</pubDate><guid>https://omanshuthapliyal.github.io/blog/safety-classifier-ssm/</guid><description>&lt;p>The code for this project can be found at: &lt;a href="https://github.com/omanshuthapliyal/contraction_constrained-safety-head">https://github.com/omanshuthapliyal/contraction_constrained-safety-head&lt;/a>.
And the paper can be found at: &lt;a href="https://arxiv.org/pdf/2610.02853">https://arxiv.org/pdf/2610.02853&lt;/a>.&lt;/p>
&lt;p>A safety classifier can tell us that a prompt looks harmful.
That is useful. But it is perhaps not the question we should stop at.
Suppose a classifier sees a prompt and says that it is safe. Now suppose we change the prompt slightly. Perhaps we substitute a few words. Perhaps we phrase the same request differently. Perhaps, more abstractly, we nudge the token embeddings of the prompt by a very small amount.
Would the classifier still say safe?&lt;/p></description></item><item><title>Can LLM Finetuning be Stateful? Small states for Large Models - Part 2</title><link>https://omanshuthapliyal.github.io/blog/hrm-part-2/</link><pubDate>Fri, 07 Aug 2026 11:57:21 -0700</pubDate><guid>https://omanshuthapliyal.github.io/blog/hrm-part-2/</guid><description>&lt;p>The code for this project can be found at: &lt;a href="https://github.com/omanshuthapliyal/HRM-adapter">https://github.com/omanshuthapliyal/HRM-adapter&lt;/a>.
And the paper can be found at: &lt;a href="https://arxiv.org/pdf/2606.26290">https://arxiv.org/pdf/2606.26290&lt;/a>.&lt;/p>
&lt;p>In the &lt;a href="https://omanshuthapliyal.github.io/blog/hrm-part-1/">previous post&lt;/a>, I introduced the basic idea behind a stateful adapter. Instead of asking a small trainable module to only modify the current transformer representation, we allow it to maintain a state: $$ s_t = \bar{A}s_{t-1} + \bar{B}h_t, $$ and use that state to generate a residual correction, $$ r_t = Cs_t. $$ The important unresolved question was: if this adapter gets a small amount of memory, what should it remember? The answer I want to explore is the same one that appeared in the discussion of Hankel singular values:&lt;/p></description></item><item><title>Can LLM Finetuning be Stateful? Small states for Large Models - Part 1</title><link>https://omanshuthapliyal.github.io/blog/hrm-part-1/</link><pubDate>Fri, 31 Jul 2026 11:57:21 -0700</pubDate><guid>https://omanshuthapliyal.github.io/blog/hrm-part-1/</guid><description>&lt;p>In the &lt;a href="https://omanshuthapliyal.github.io/blog/hankel-singular-values/">last post&lt;/a> I talked about Hankel operators of simple linear dynamical systems. Such operators, and either eigenvalues, &lt;em>&amp;ldquo;can be used as a proxy for how much memory a task actually requires in a state-space model&amp;rdquo;.&lt;/em> And later we tied their input-output relations empirically tie the memory requirements of a post-trained state space model (SSM) to its Hankel singular value (HSV) rates. Further, HSV-based balanced truncation can offer us to selectively choose &amp;lsquo;some&amp;rsquo; eigenvalues to keep that involve higher input-to-output signal strength over time.
And so, we used Hankel singular values to decide which states of a dynamical system are worth keeping.
However, a language model also processes a sequence of tokens over time.
We saw task-dependent HSV decay rates for various tasks for different SSM-based models.
Similarly, could we give the model a small state, one deliberately built around that same notion of &amp;ldquo;worth keeping&amp;rdquo;, without retraining the entire model?&lt;/p></description></item><item><title>What Hankel Spectra Reveal About Memory</title><link>https://omanshuthapliyal.github.io/blog/hankel-singular-values/</link><pubDate>Tue, 26 May 2026 11:09:02 -0700</pubDate><guid>https://omanshuthapliyal.github.io/blog/hankel-singular-values/</guid><description>&lt;p>Suppose we are given a linear dynamical system $$G=(A,B,C,D)$$ (recall that a linear system is an input $$x$$ to output $$y$$ map such that $$y_k = Cx_k + Du_k, x_{k+1}=Ax_k+Bu_k$$), and $$G$$ has some dimension $$d$$.
Often times one has to find an &amp;ldquo;equivalent&amp;rdquo; system $$\hat{G}$$&amp;ndash; one that has an input-output behavior as close to $$G$$ as possible, while ideally having a lower dimension $$\hat{d}$$.
This very vital demand from the new system $$\hat{G}$$ to model the original (higher dimensional) system as closely as possible has many applications: building smaller plants for controller synthesis, reduced order system modeling, compressing fluid or other PDE-derived dynamical systems into manageable surrogate models, etc.&lt;/p></description></item><item><title>Why are Gaussian distributions present Everywhere?</title><link>https://omanshuthapliyal.github.io/blog/gaussians-everywhere/</link><pubDate>Sun, 11 Jan 2026 11:09:02 -0700</pubDate><guid>https://omanshuthapliyal.github.io/blog/gaussians-everywhere/</guid><description>&lt;p>Well, if one were to cut to the chase, it appears to be because of the Central Limit Theorem (CLT). However, there is more underlying structure under the hood as to why the Gaussians seem to be the &amp;lsquo;chosen&amp;rsquo; distributions. In this post we will go through some in-depth analysis beyond the typical textbook to try to get some juice worth the squeeze. And hopefully it would demystify the ubiquity &amp;ndash; from statistics, to thermodynamics, to measurement errors &amp;ndash; of Gauss&amp;rsquo;s eponymous distributions. To this end, this write up is a shallow dive into Gaussian ubiquity from a few different angles.&lt;/p></description></item><item><title>State Space Models: How Control Theory can echo Machine Learning</title><link>https://omanshuthapliyal.github.io/blog/state-space-models/</link><pubDate>Mon, 06 Oct 2025 18:57:21 -0700</pubDate><guid>https://omanshuthapliyal.github.io/blog/state-space-models/</guid><description>&lt;p>I wrote in a &lt;a href="https://omanshuthapliyal.github.io/blog/transformers/">previous post&lt;/a> how transformers are kind of like system identification methods applied to some sequence in a state space. In this post we try to understand if the other way round is true.&lt;/p>
&lt;p>We already saw previously &lt;sup id="fnref:1">&lt;a href="#fn:1" class="footnote-ref" role="doc-noteref">1&lt;/a>&lt;/sup> how predicting words/tokens is a sequence to sequence mapping problem, which is the subject of a lot of prediction, estimation, and controls problems. In fact, we leveraged a transformer&amp;rsquo;s sequence mapping ability and applied it to a controls problem of trajectory prediction for a simple 2D car model &lt;sup id="fnref1:1">&lt;a href="#fn:1" class="footnote-ref" role="doc-noteref">1&lt;/a>&lt;/sup>. Can we do the other way round? Turns out: &lt;em>yes we can!&lt;/em>&lt;/p></description></item><item><title>How Transformers Echo Control Theory</title><link>https://omanshuthapliyal.github.io/blog/transformers/</link><pubDate>Sat, 27 Sep 2025 11:57:21 -0700</pubDate><guid>https://omanshuthapliyal.github.io/blog/transformers/</guid><description>&lt;p>Transformer models have captivated a lot of AI research in most of the past decade, and in this post my goal is to make them seem more interesting to controls people, who have much to contribute to the field. I will be making gross generalizations to draw such entry points. At least, I found transformer models more interesting after finding a few parallels in dynamical systems &amp;amp; controls &lt;sup id="fnref:1">&lt;a href="#fn:1" class="footnote-ref" role="doc-noteref">1&lt;/a>&lt;/sup>. This post attempts to explore those parallels.&lt;/p></description></item><item><title>Reward is enough — when can we 'reinforce' the learning?</title><link>https://omanshuthapliyal.github.io/blog/reward-is-enough/</link><pubDate>Wed, 13 Aug 2025 11:07:46 -0700</pubDate><guid>https://omanshuthapliyal.github.io/blog/reward-is-enough/</guid><description>&lt;p>&lt;em>This blog post summarizes the papers &lt;strong>Settling the Reward Hypothesis&lt;/strong>&lt;sup id="fnref:1">&lt;a href="#fn:1" class="footnote-ref" role="doc-noteref">1&lt;/a>&lt;/sup> and &lt;strong>Utility Theory for Sequential Decision Making&lt;/strong> &lt;sup id="fnref:2">&lt;a href="#fn:2" class="footnote-ref" role="doc-noteref">2&lt;/a>&lt;/sup>.&lt;/em>&lt;/p>
&lt;p>The &lt;strong>reward hypothesis&lt;/strong> is at the core of Reinforcement Learning (RL) in that whether sequential action problems can be posed as some sort of a reward maximization. One of the founders of modern RL, Richard S. Sutton, puts it as&lt;sup id="fnref:3">&lt;a href="#fn:3" class="footnote-ref" role="doc-noteref">3&lt;/a>&lt;/sup>:&lt;/p>
&lt;blockquote>
&lt;p>&amp;ldquo;That all of what we mean by goals and purposes can be well thought of as maximization of the expected value of the cumulative sum of a received scalar signal (reward).&amp;rdquo;&lt;/p></description></item><item><title>Technology Readiness Levels of AI methods</title><link>https://omanshuthapliyal.github.io/blog/readiness/</link><pubDate>Tue, 15 Oct 2024 11:07:46 -0700</pubDate><guid>https://omanshuthapliyal.github.io/blog/readiness/</guid><description>&lt;p>Recent news of the SpaceX catching its Starship Super Heavy booster&lt;sup id="fnref:1">&lt;a href="#fn:1" class="footnote-ref" role="doc-noteref">1&lt;/a>&lt;/sup> is quite discussed and marveled upon in the media, and rightly so.
Executing what was done can perhaps be explained as trying to catch a falling stick, then balancing it vertically, all while the stick is over 200 ft tall, weighs over 150 tonnes, spews fire, and costs over tens of millions of dollars.
One cannot but feel a little giddy as a controls engineering enthusiast over this massive success.
It makes me think why we are closer to automation in certain domains/problems than others? Why, for example, is your vacuum cleaning robot seemingly better at navigating in a cluttered environment than your possibly self-driving car? Why is the tremendous progress in machine learning &amp;amp; AI not permeating outside of our web lives as much as we expected in the early 2000&amp;rsquo;s?&lt;/p></description></item><item><title>MLP Approximation</title><link>https://omanshuthapliyal.github.io/blog/mlp-approximation/</link><pubDate>Thu, 12 Sep 2019 10:27:01 -0400</pubDate><guid>https://omanshuthapliyal.github.io/blog/mlp-approximation/</guid><description>&lt;p>Almost always we hear about classification or machine learning problems, the go-to methods to solve the problem are neural networks, or multi-layered percetrons (MLP).
Now function approximation problems, which is what classification is, are very well defined in terms of consistency, accuracy, and other abilities of the approximator.
Why are MLPs then able to approximate functions well? Especially given the fact that most of the problems in coming up with candidate architectures, activation functions, etc. are &amp;lsquo;design problems&amp;rsquo;.&lt;/p></description></item><item><title>ML SoTA Resources</title><link>https://omanshuthapliyal.github.io/blog/ml-sota/</link><pubDate>Sun, 18 Aug 2019 22:36:00 +0530</pubDate><guid>https://omanshuthapliyal.github.io/blog/ml-sota/</guid><description>&lt;p>The internet is filled with machine learning resources, and one of the most annoying things about them is the sheer volume.
There are many attempts at making compilations of papers, code, and current status quo in the vastly active, and fast paced field.
This post is to serve as a collection of my own where I will only post &lt;strong>state of the art&lt;/strong> in machine learning.&lt;/p>
&lt;p>Most of these links are updated frequently and maintained by the community, and I have collected these &lt;em>only&lt;/em> for reference. I am not trying to &lt;a href="https://xkcd.com/927/">create a new standard&lt;/a>, but I will try to update the list if and when I come around doing that.&lt;/p></description></item></channel></rss>