Skip to content

zfifteen/pole-shadow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Pole's Shadow

Most introductions to control theory begin with a sensible question: is the system stable?

That question matters. A stable system settles. An unstable system can run away. But if we stop there, we miss something important. A system can be perfectly stable and still be disappointing. It can be too forgetful. It can settle so aggressively that it loses the ability to respond well to slow changes in the world around it.

This repository is built around that tension.

The project asks whether the location of a system's dominant poles tells us more than "safe" versus "unsafe." It asks whether pole location also tells us how long the system stays alive enough to carry useful information forward in time.

That is the idea behind the phrase the pole's shadow.

The newer studies in this repository make that picture more precise. Long shadows look best in the clean slow-tracking regimes that first motivated the project, but they are not a free resource. As nuisance grows, the preferred shadow budget can move inward rather than staying at the longest-shadow extreme.

The Project Idea

The short version is simple:

A pole near the stability edge may give a system a longer useful memory window, while a pole pushed farther into the stable region may buy classical robustness at the cost of temporal sensitivity.

In the language of the project, distance from the imaginary axis may act like a kind of cognitive budget. A long shadow means the transient response lingers. A short shadow means the system forgets quickly.

That does not mean "less damping is always better." It means damping may trade one resource for another:

  • faster settling,
  • stronger classical stability margin,
  • but shorter temporal integration capacity.

The later study capsules add an important refinement: clean environments tend to reward longer shadows, while noisier environments can favor an interior shadow-mass budget instead.

The concise thesis note for that claim lives in docs/HYPOTHESIS.md.

The Hidden Design Choice

The project can now say this more directly. Choosing damping is not only choosing a safety margin. It is also choosing how the closed loop weights evidence across time. For a stable LTI system, the present output can be written as a weighted history of past input:

y(t) = integral from 0 to infinity of h(tau) u(t - tau) d tau

The impulse response h(tau) is a temporal weighting kernel. Pole placement shapes how quickly that kernel decays. Push the poles deeper into the left half-plane and the weighting collapses toward the immediate present. Leave them nearer the stability edge and the system preserves a longer temporal receptive field.

That is the precise sense in which pole placement acts like an implicit prior over time horizons. A high-damping design says, before any specific signal arrives, that older information should be discounted quickly. A longer-shadow design says that slower evidence may still matter. Classical robustness language therefore carries a quiet bias toward the present whenever it treats faster forgetting as automatically preferable.

This collapses two vocabularies that are usually kept apart. The same eigenstructure that sets decay rate also sets how much past structure the loop can still use. A more heavily damped design is not only more classically conservative. It is also more epistemically short-sighted by construction.

The later study capsules sharpen the design implication. Once the preferred shadow budget moves with nuisance level, a fixed eigenstructure is only conditionally optimal. The next design question is not simply "more damping or less damping?" It is "how far back should this controller care in this regime?" The current studies do not yet deliver a finished adaptive controller law, but they do show that the question belongs inside controller design rather than outside it.

What This Repository Contains

This repository now has a small shared docs layer and a set of study capsules.

If you want to reproduce the figures, the main scripts are:

What follows is a guided landing-page version of the foundation story. It is shorter than the full walkthrough in studies/foundation-pole-shadow/README.md, and it focuses on the clean-regime intuition that started the project. The newer capsules later in the repo complicate that picture by showing hidden settling-time blind spots, measurement-noise regime shifts, and environment-conditioned shadow-mass sweet spots.

The Story in Pictures

1. The First Intuition: Some Systems Forget Faster Than Others

Before talking about formulas, it helps to ask a physical question: after a system is disturbed, how long does the disturbance remain visible in its motion?

Pole shadow decay

The blue system dies away quickly. The orange system keeps oscillating longer. Both may be stable, but they are not equally persistent. That is the first doorway into the project: pole location changes not only whether motion decays, but how long meaningful transient behavior remains available.

The figure is intentionally structured to teach the eye what matters. The full response gives context, the zoom makes the separation readable, the log-scale amplitude view exposes the different decay rates, and the cumulative panel turns "lingering dynamics" into something you can compare directly.

2. The Tradeoff: Robustness Can Spend Memory

Once that intuition is in place, the next question is whether it reflects a genuine design tradeoff.

Tradeoff between robustness and memory

This figure makes the project's central tension explicit. As the stability margin grows, the effective time horizon and memory proxy shrink. In plain language: the more aggressively we push the system away from the stability edge, the less long-term temporal budget it appears to keep.

That is the heart of the hypothesis. Classical design goals such as fast settling and conservative damping are valuable, but they may also make the system temporally myopic.

3. The First Prediction: Slow Signals Should Favor a Longer Shadow

If the idea is more than a metaphor, it should produce a concrete prediction: on slowly drifting inputs, a more lightly damped system should sometimes outperform a more heavily damped one.

Slow tracking prediction test

This figure compares a classically robust tuning with a lighter-damped "long shadow" tuning on a slow ramp plus a low-frequency sine. The top panels show the overall tracking behavior and the early-time separation. The bottom panels reveal the real difference: one system accumulates substantially more tracking error over time.

That cumulative error view matters because near-overlapping response curves can be visually misleading. Two systems can look similar in the large and still differ meaningfully in the total amount of error they generate.

4. Supporting Tests: The Claim Should Survive More Than One Example

One plot is never enough. A useful idea should still say something coherent when the input changes shape.

Pure Slow Ramp

Falsification test: pure ramp

The simplest slow signal already reveals the pattern: the more heavily damped system lags more, and that lag accumulates into larger error.

Ramp Plus Low-Frequency Sine

Falsification test: ramp plus low-frequency sine

This is a more realistic slow signal. The same basic story survives: the lighter-damped system remains closer to the target, and the cumulative error panel makes the difference easy to see.

Ultra-Slow Sine

Falsification test: ultra-slow sine

This test isolates slow variation without a ramp. The result again points in the same direction, suggesting the effect is not tied to one special input shape.

Slow Input with Noise

Falsification test: slow input with noise

This is the most cautious of the supporting plots. The lighter-damped system still wins on the chosen metric, but the advantage is smaller. That nuance matters. The project looks strongest on slow, clean tracking tasks, and more modest once noise becomes prominent.

5. The Broad Summary: What Happens Across Many Damping Ratios?

The final summary plot steps back from one pair of tunings and asks what happens across a sweep.

Performance sweep across damping ratios

For the specific model and signal used here, performance worsens as damping ratio increases. The lighter-damped choice outperforms the more classically robust one, and the sweep makes that penalty visible from several angles rather than just one.

This does not establish a universal law. It does show that, within this family of examples, the pole-shadow hypothesis leaves a measurable footprint.

What the Results Suggest

Taken together, these plots support a simple but powerful reframing:

Pole location may regulate not only stability, but also the duration over which a system can integrate information through time.

That makes the distance from the stability edge interesting in a new way. It is not just a margin. It may also be a budget. A system with a longer shadow has more time to respond to gradual structure in the input. A system with a shorter shadow may be safer in the classical sense while also being less sensitive to slow unfolding change.

The newer study capsules refine that story in an important way. They suggest that the framework is not really about declaring "less damping is better." It is about identifying the right temporal budget for the task environment. Clean regimes reward long shadows. Noisier regimes can move the preferred design inward, toward a smaller but still nonzero shadow mass.

Said in stronger language, the closed loop is acting like a temporal inference device whose receptive field is fixed in advance by its poles. If the best receptive field changes with signal-to-noise conditions, then the natural long-run target is not one universally preferred damping ratio. It is a design vocabulary, and eventually a controller class, that can adapt how much of the past it keeps alive.

For students, this is a useful conceptual upgrade. Control design is not only about preventing instability. It is also about deciding what kind of time-behavior you want the system to have.

What This Does Not Yet Prove

The repository is making a serious claim, so it is worth being explicit about its limits.

These plots do not prove that lighter damping is always better. They do not settle questions involving:

  • model uncertainty,
  • actuator limits,
  • nonlinear effects,
  • safety-critical robustness requirements,
  • full feedback architecture and measurement noise behavior.

What they do show is narrower and still valuable: in these linear examples, with these slow-signal tasks, the usual instinct to damp more aggressively can carry a hidden performance cost.

The later capsules also show the complementary risk: in noisy environments, the longest shadow is not automatically best either. That is why the project now talks more naturally about environment-aware diagnostics than about a single one-direction design rule.

That is enough to justify the hypothesis as a real design question rather than a poetic slogan.

Where to Go Next

If you want the project in three different levels of depth:

If you want to explore the evidence directly, start with:

The deepest question in the repository is also the simplest one:

How long should a system remember?

About

The Pole's Shadow: The distance of dominant poles from the imaginary axis sets the cognitive budget of linear systems. Determines how long they can remember and integrate slow inputs before transients decay. Explores the robustness vs memory tradeoff with theory, math, simulations and visualizations.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages