Skip to content

ltm: discovery misses loops active only between saved steps #309

Closed as not planned

Description

@bpowers

Loop discovery looks at link scores only at saved time steps, not at every DT.
When save_step is larger than dt, a loop that is active only between two saved steps is never seen and never reported.
The papers search at every DT (Schoenberg, Davidsen and Eberlein 2020; docs/reference/ltm--loops-that-matter.md section 12.4).

Example

With dt = 1/8 and save_step = 1, a loop that becomes active and then goes quiet within a single time unit is missing from the discovered loop list, while a run with save_step = 1/8 reports it.
This is the expected behavior from the code; no such model has been built.

The recorded scores themselves are correct at every saved step: each is the score over the last DT ending at that time, the same number a save_step = dt run records there.
Only which loops are found is affected.

Why it matters

Only loops that are briefly dominant between saved steps are affected.
Not seen in a real model.
The user workaround is to set save_step = dt for the analysis run.

Fix

Recommended: leave it as a documented divergence (it already is, in the design doc's "Divergences from the Papers").
Alternative: have analyze_model run its own simulation with save_step = dt regardless of the project's setting; this costs memory proportional to dt / save_step on large models such as C-LEARN, and changes the time axis of the returned dominance series.

Pointers

  • src/simlin-engine/src/analysis.rs (run_ltm_pipeline)
  • src/simlin-engine/src/ltm_finding.rs (activity graph over saved steps)
  • docs/design/ltm--loops-that-matter.md, "Integration Methods and Save Step" and "Divergences from the Papers" item 1

Activity

  1. added
    ltm
    on May 1, 2026
  2. changed the title [-]ltm-finding: discovery runs at save_step instead of dt[/-] [+]ltm: discovery misses loops active only between saved steps[/+] on Oct 12, 2026
  3. added
    enhancement
    wontfix
    on Oct 12, 2026
  4. bpowers commented on Oct 12, 2026

    @bpowers
    OwnerAuthor

    Closing as won't fix.

    Already a documented intentional divergence (design doc 'Divergences from the Papers' item 1), recorded scores are correct, the user workaround is save_step = dt, and no real model has shown it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementltmwontfix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions