<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Controls on Omanshu Thapliyal</title><link>https://omanshuthapliyal.github.io/tags/controls/</link><description>Recent content in Controls on Omanshu Thapliyal</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 12 Aug 2026 01:02:49 -0400</lastBuildDate><atom:link href="https://omanshuthapliyal.github.io/tags/controls/index.xml" rel="self" type="application/rss+xml"/><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>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>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>Why I am studying this: Data Driven Safety</title><link>https://omanshuthapliyal.github.io/blog/data-driven-safety/</link><pubDate>Wed, 16 Mar 2022 12:32:31 -0400</pubDate><guid>https://omanshuthapliyal.github.io/blog/data-driven-safety/</guid><description>&lt;p>This is my attempt to try to motivate and justify why I am studying what I study, and to try to justify the title of my dissertation.&lt;/p>
&lt;p>While most emphasis on safety has been provided from a model-driven perspective, data-driven approaches present a novel semi model-driven method by employing model-discovery. As data becomes more inexpensive, and system capabilities highly nonlinear, and often subject to parameter variations during mission, data-driven approaches are utilized more and more in controls engineering. Further, online and real-time applications increasingly require unknown models and nonlinear interactions to be learned for control synthesis. To this end, more established fields of system identification are increasingly utilizing data-driven models by using neural networks, autoregressive models, and other machine learning techniques. Due to the expressive nature of such machine learning techniques, they are utilized to learn models of unknown dynamical systems from observed data sequences. In such approaches, a `discovered model&amp;rsquo; is arrived at using data, and employed to perform control design. Even though purely model-driven are slowly getting harder to apply to more recent, realistic, and complex scenarios, they provide a strong basis to study extensions of similar approaches to data-driven techniques for estimation and control. As a result, I attempt to utilize model-driven techniques and extend them to study safety and security properties of cyberphysical systems using data. Therefore, &lt;em>my primary aim is to study data-driven approaches to safety, and data-driven vulnerabilities against cyberattacks, of complex control systems.&lt;/em>&lt;/p></description></item><item><title>The Industry-Academia split in Control Systems</title><link>https://omanshuthapliyal.github.io/blog/split/</link><pubDate>Mon, 16 Sep 2019 12:32:31 -0400</pubDate><guid>https://omanshuthapliyal.github.io/blog/split/</guid><description>&lt;p>I often wonder why the &amp;ldquo;cutting edge&amp;rdquo; research that we read about in the foremost scientific journals &amp;amp; conferences in Control Systems are never applied in the industry.
Because whenever we read/write papers, Section-I always tries to ground itself to industry and/or practical applications. However, it&amp;rsquo;s pretty well known that a majority of the controllers used in the industry are still tuned PIDs.
Even though sub-fields of modern control &amp;ndash; adaptive, and robust control are very mature and pretty old in their own rights, the real world&amp;rsquo;s inertia against using modern control techniques bears substantial weight.&lt;/p></description></item></channel></rss>