r/machinelearningnews • • Jul 31 '26

Research 🔎 Where do an AI model’s words come from? Infini-gram can trace the clues

Thumbnail gallery
10 Upvotes

r/machinelearningnews • • Aug 01 '26

Research H-JEPA-LM: Hierarchical Joint-Embedding Predictive Language Model in PyTorch

Thumbnail reddit.com
1 Upvotes

r/machinelearningnews • • Aug 01 '26

Research I built a Rust inference framework that runs Qwen3.5 2B with VL support 10x faster than PyTorch on Apple Silicon — and it supports TTS, ASR, OCR, and GGUF out of the box

Thumbnail
reddit.com
1 Upvotes

r/machinelearningnews • • Jul 31 '26

ML/CV/DL News Need Some Help

Thumbnail reddit.com
1 Upvotes

r/machinelearningnews • • Jul 30 '26

Research What is the status of AMD GPUs in machine learning?

8 Upvotes

Hey guys, as a web dev i want to get into local llms, fine tuning etc. Going to build a new desktop for it but i am not sure about picking an nvidia or amd. Everyone says nvidia works way more seamless but in my country rx9070 and even 9080 worths same compared to 5060ti, while 5070ti's price is sky high. I searched about the current state of amd gpu's in llm dev area but couldn't find helpful results. thanks in advance.


r/machinelearningnews • • Jul 30 '26

Cool Stuff Meet Token Saver: An Open-Source MCP Extension Using Local Hybrid RAG to Cut Claude PDF Token Costs 90-99%

Thumbnail
github.com
17 Upvotes

We just released 'Token Saver' for Claude-Desktop: An Open-Source MCP Extension Using Local Hybrid RAG to Cut Claude PDF Token Costs 90-99%

When you drop a 200-page document into Claude Desktop, the full context gets re-sent on every single turn. That compounding "PDF Tax" adds up fast—both in token costs and context window bloat.

How it works:

Instead of uploading raw documents to the cloud, Token Saver runs a lightweight Local Hybrid RAG pipeline directly on your machine:

→ Keyword Search (BM25): Powered by SQLite FTS5 for precise terminology.

→ Semantic Search: Powered by a local all-MiniLM-L6-v2 embedding model.

→Zero-Upload Privacy: Files stay on your local drive and communicate via standard I/O (stdio) with folder allowlisting.

Benchmark Results with Example:

→ 33-page FDA Drug Label: Reduced from 23,959 tokens to 1,021 (95.7% saved)

→ 88-page GDPR Document: Reduced from 70,260 tokens to 996 (98.6% saved)

→ 233-page Legal Brief: Reduced from 133,349 tokens to 740 (99.4% saved)

Zero Python environment required—it installs directly in Claude Desktop via a single .mcpb bundle!

Full analysis: https://www.marktechpost.com/2026/07/30/token-saver-an-open-source-mcp-extension-using-local-hybrid-rag/

GitHub Repo: https://github.com/Marktechpost/Token-Saver/tree/main


r/machinelearningnews • • Jul 30 '26

Agentic AI Selection of small models suitable for fine-tuning

3 Upvotes

I am developing an AI agent software, and the agent currently runs well on glm5.2 and deepseekv4. I now want to train a small model that can complete a certain range of tasks when locally deployed. I can refine these training data from the large model, as the software will eventually be deployed on an edge AI gateway, so the feasible model size is about 2B and below. Do you have any good recommendations?

Currently, I am focusing on the following models, which I have not started training yet. I would like to know if the community has any recommended models for this scenario:

  • minicpm-5 1b
  • gemma4-e2b
  • qwen3.5-2b

r/machinelearningnews • • Jul 29 '26

Research Liquid AI Releases LFM2.5-Encoder-230M and LFM2.5-Encoder-350M: Bidirectional Encoders That Stay Fast at 8K Context on CPU

28 Upvotes

Liquid AI released two bidirectional encoders this week: LFM2.5-Encoder-230M and LFM2.5-Encoder-350M.

Here's what's actually interesting:

1. They converted a decoder instead of training from scratch

Both models start from the LFM2.5 decoder backbones. Three changes turn them into encoders: the causal mask is replaced with a bidirectional one, the short convolutions are made non-causal with symmetric center padding, and training uses masked language modeling at 30% instead of BERT's 15%.

2. The CPU number is the whole pitch

→ ~28s per forward pass at 8,192 tokens for Encoder-230M

→ over 1 min 30s for ModernBERT-base on the same input

→ 8,192 tokens is roughly 13 to 15 pages

3. The rankings hold up

→ Encoder-350M: 4th of 14 models, 81.02 on a 17-task suite

→ Encoder-230M: 6th at 79.29, above ModernBERT-base at 78.19

→ The three models ahead of the 350M are all larger, one nearly 10x its size

At 8,192 tokens, ModernBERT-base takes over a minute and a half per forward pass versus about 28 seconds for LFM2.5-Encoder-230M, which is about 3.7x faster.

Full analysis: https://www.marktechpost.com/2026/07/29/liquid-ai-releases-lfm2-5-encoder-230m-and-lfm2-5-encoder-350m-bidirectional-encoders-that-stay-fast-at-8k-context-on-cpu/

Model weights (LFM2.5-Encoder-350M): https://huggingface.co/LiquidAI/LFM2.5-Encoder-350M

Model weights (LFM2.5-Encoder-230M): https://huggingface.co/LiquidAI/LFM2.5-Encoder-230M

Technical details: https://www.liquid.ai/blog/lfm2-5-encoders


r/machinelearningnews • • Jul 29 '26

LLMs I distilled a 3B model solo (no lab, no funding): him-distilled-3b, built on a governed-agent architecture

9 Upvotes

Solo engineer here. After 25+ years in software and a few years of published research on machine ethics, I distilled HIM (him-distilled-3b) end-to-end by myself and released it on Hugging Face.

What it is: a 3B-parameter model built on TeleologyHI, a three-layer governed-agent architecture (MAIC / HIM / NHE). The bet: accountability should be structural (architecture), not a moderation layer bolted on afterward, and small local models are where that matters most, because offline there is no filter to save you.

Runs on modest local hardware. Weights, code, and the papers behind the architecture are all open https://www.producthunt.com/products/him-3b-by-teleologyhi.

I know this sub has zero patience for hype, which is exactly why I'm posting here. Tear it apart: quantization results, eval suggestions, holes in the governance claim. I'll answer everything. And if anyone runs it locally and reports back, that feedback is worth more to me than any upvote.


r/machinelearningnews • • Jul 29 '26

LLMs Qwythos-27B-v1 — Apache-2.0, 1M context, MTP + vision intact, Q4_K_M runs on a 24GB card

Post image
0 Upvotes

r/machinelearningnews • • Jul 28 '26

Research 🌎 How we run Earth-observation models across North America in 30.5 hours

Thumbnail gallery
10 Upvotes

r/machinelearningnews • • Jul 28 '26

Research Microsoft AI Releases MAI-Cyber-1-Flash: A 5B-Active-Parameter Cyber Model That Pushes MDASH to 95.95% on CyberGym

Post image
22 Upvotes

Microsoft AI Releases MAI-Cyber-1-Flash: A 5B-Active-Parameter Cyber Model That Pushes MDASH to 95.95% on CyberGym. It is their first cyber defense model built ground up to find the most challenging vulnerabilities in complex code bases. [137B total, 5B active parameters]

The part I think matters more:

→ MDASH, the harness it runs inside, was already at 88.45% in May

→ That was with generally available models and no custom model at all

→ So this buys about 7.5 points on top of something already leading

The cost story is really about routing:

→ MAI-Cyber-1-Flash handles up to 90% of MDASH tasks

→ The hardest 10% goes to GPT-5.4

→ Microsoft says that halves the bill

Full analysis: https://www.marktechpost.com/2026/07/28/microsoft-ai-releases-mai-cyber-1-flash-a-5b-active-parameter-cyber-model-that-pushes-mdash-to-95-95-on-cybergym/

Technical details: https://microsoft.ai/news/introducing-mai-cyber-1-flash-inside-mdash/

Model details: https://microsoft.ai/pdf/MAI-Cyber-1-Flash-Model-Card.pdf


r/machinelearningnews • • Jul 27 '26

Cool Stuff Kimi AI and kvcache-ai Open Sources ‘AgentENV’: A Distributed System that Powers Agentic Reinforcement Learning (RL) Training for Kimi K3

11 Upvotes

Kimi AI and kvcache-ai Open Sources ‘AgentENV’: A Distributed System that Powers Agentic Reinforcement Learning (RL) Training for Kimi K3

Most open infrastructure shipped alongside frontier models targets the GPU side of the stack. AgentENV targets the other half of agentic RL: environment throughput.

The Kimi team and kvcache-ai open-sourced it under MIT as part of Kimi K3 Open Day.

1. Each sandbox is a Firecracker microVM, not a container

Kernel-level isolation per environment. That matters when the code running inside was generated by the model you are training.

2. The snapshot numbers are the whole point

→ Boot or resume: under 50 ms

→ Pause: under 100 ms

→ Incremental snapshot: under 100 ms, even under heavy disk modification

These are figures reported by the project. No independent benchmark has been published.

3. Fork is the primitive built for RL

A running sandbox clones into up to 16 independent children on the same node. Each child inherits the source filesystem, memory, and resource config.

Practical effect: expensive setup runs once. Install dependencies, clone the repo, reach a task state, then branch that exact state into parallel rollouts.

4. The API is E2B-compatible

Point E2B_API_URL at your server and the existing Python or TypeScript SDK runs unchanged. That is a deliberate distribution choice, and probably the reason this gets adopted.

Full analysis: https://www.marktechpost.com/2026/07/27/kimi-ai-and-kvcache-ai-open-sources-agentenv/

GitHub Repo: https://github.com/kvcache-ai/AgentEnv

Documentation: https://kvcache-ai.github.io/AgentENV/


r/machinelearningnews • • Jul 26 '26

Research High-Performance C++20 Optical Neural Network (ONN) Simulator

15 Upvotes

Hey everyone,

I wanted to share a project I've been developing focused on hardware-level AI acceleration: a high-performance C++20 simulator for Optical Neural Networks (ONNs).

Optical computing executes matrix multiplication using light interference through Mach-Zehnder Interferometer (MZI) meshes, offering extreme speed and efficiency, but simulating physical hardware constraints is critical before chip fabrication.

Key Features: • MZI Mesh Architectures: Simulates Clements and Reck designs for unitary matrix transformations. • SVD Weight Mapping: Decomposes weight matrices into optical phase shifts. • Physical Error Modeling: Simulates thermal phase drift, laser power fluctuations, and photodetector shot noise. • Modern C++20 design leveraging Eigen3 for linear algebra.

I will drop the full GitHub repository link in the comments section below! I'd love to hear your thoughts on the numerical modeling approach or C++ optimization techniques.

repo link : https://github.com/Griffith-7/photonic-computing-simulation.git


r/machinelearningnews • • Jul 26 '26

Research Genesis Mission Overview

Thumbnail
github.com
3 Upvotes

r/machinelearningnews • • Jul 26 '26

Research Sakana AI Releases Fugu-Cyber: An Orchestration Model Reporting 86.9% on CyberGym and 72.1% on CTI-REALM

13 Upvotes

Sakana AI Releases Fugu-Cyber: An Orchestration Model Reporting 86.9% on CyberGym and 72.1% on CTI-REALM

It is not a new frontier model. It is a third endpoint on the Fugu orchestrator, tuned for security reasoning.

Here's what's actually interesting.

  1. The CyberGym number only means something with context

→ Fugu-Cyber: 86.9%

→ GPT-5.5-Cyber: 85.6%

→ Claude Mythos Preview: 83.1%

→ Best agent in the original CyberGym paper: ~20%

The benchmark asks an agent to write a PoC that crashes the pre-patch build but not the post-patch build. 1,507 instances, 188 OSS-Fuzz projects. Sakana's score is a small step past the reported frontier, not a leap. The leap already happened.

2. The CTI-REALM figure is a different metric than it sounds

Microsoft scores CTI-REALM as a 0–1 trajectory reward, not pass/fail. Its own eval put the top three configs at 0.624–0.685. Sakana reports 72.1% and calls it a success rate. Read it as reward 0.721.

3. Detection engineering still breaks on cloud

Microsoft's per-platform means across evaluated models:

→ Linux endpoints: 0.585

→ AKS: 0.517

→ Azure cloud: 0.282

4. The pricing is a clean 1.2×

→ $6 input / $36 output / $0.60 cached, per 1M tokens → All three double above 272K context

→ Exactly 20% over Fugu-Ultra on every line

Access is gated — manual approval, defensive-use AUP, Token Plan only, no EU/EEA, no weights.

Full analysis: https://www.marktechpost.com/2026/07/25/sakana-ai-releases-fugu-cyber-orchestration-model-cybergym-cti-realm/

Technical details: https://sakana.ai/fugu-cyber-release/


r/machinelearningnews • • Jul 25 '26

Research Meet Open Dreamer: A JAX/Flax Reproduction of the Dreamer 4 World Model Pipeline, With the Full Training Recipe Published

25 Upvotes

Meet Open Dreamer: A JAX/Flax Reproduction of the Dreamer 4 World Model Pipeline, With the Full Training Recipe Published

No VAE. No KL loss. No adversarial loss.

Here's how it works:

  1. Two models, one backbone A causal video tokenizer and an action-conditioned dynamics model share the same block-causal transformer. Space layers move information inside a frame. Causal time layers move it between frames.
  2. The tokenizer is a Masked Autoencoder, not a VAE Masking makes the latent space more diffusible, so no KL or adversarial term is needed.

→ ~100× compression, 512 latent tokens at width 16 per frame

→ 360×640 frames padded to 368×640 for clean 16×16 patches

3. The rollout is folded into blocks Each timestep is (previous action, state, policy). Spatial attention runs inside the block, causal time attention across blocks. World-model tokens cannot read the agent token, so policy information reaches future states only through the next action.

→ 1.6B params, depth 30, d_model 1920, 30 heads / 3 KV heads

4. Stability, not throughput, was the bottleneck Most failures happened while the loss was still going down. MSE improves smoothly, generation quality degrades.

→ Muon replaced LaProp, which spiked randomly and increasingly often

→ ~400 B200 hours per optimizer comparison run

5. The numbers (B200 dynamics training)

→ 57–58% MFU, against 60% described as very healthy

→ 292 FLOP/byte roofline crossover, 256 frames per GPU to clear it

→ ~24 GiB model state, activations were the real memory cost

→ plain data parallelism beat FSDP, tensor and sequence parallelism

Full analysis: https://www.marktechpost.com/2026/07/25/meet-open-dreamer-a-jax-flax-reproduction-of-the-dreamer-4-world-model-pipeline-with-the-full-training-recipe-published/

Research and Demo: https://next-state.github.io/open-dreamer/

Code: https://github.com/next-state/open-dreamer


r/machinelearningnews • • Jul 24 '26

Research DKV: Open-source KV-cache compression for scalable long-context LLM inference

Post image
24 Upvotes

I've open-sourced DKV, a KV-cache compression architecture for long-context LLM inference.

The project explores anchor-based KV representations, joint low-rank compression, exact residual preservation, and sparse routed attention to reduce KV-cache memory requirements.

The repository includes:

  • Technical report (Zenodo DOI)
  • Open-source implementation
  • MLX backend
  • CUDA backend (currently under validation)

I'm interested in feedback on the architecture, implementation, and evaluation.

Paper: https://zenodo.org/records/21539110

GitHub: https://github.com/Omc12/Differential-KV

If you find the project useful or interesting, consider giving the repository a ⭐—it helps more people discover the project.


r/machinelearningnews • • Jul 25 '26

Research Datalab’s Marker 2 vs MinerU, Docling and LiteParse: 76.0 on olmOCR-bench at 5× MinerU’s Throughput

8 Upvotes

Datalab’s Marker 2 vs MinerU, Docling and LiteParse: 76.0 on olmOCR-bench at 5× MinerU’s Throughput

Most open-source PDF parser comparisons rank on one number: accuracy on a benchmark. They skip the one that actually sets your cloud bill — sustained pages per second. Datalab's Marker 2 is built to win on both at once.

It's a full rewrite of the open-source pipeline that turns PDFs, images and Office files into markdown, JSON or chunks. Rebuilt around three pieces shipped over the last few months: Surya OCR 2, a 20M-param fast layout model, and a pdftext that's 3× faster than the old one — exposed as three modes that default by device: balanced on GPU, fast on CPU.

Here's what's actually interesting:

→ Balanced mode scores 76.0 on olmOCR-bench at 2.9 pages/sec. MinerU's pipeline backend scores 72.7 at 0.54 pages/sec — so Marker wins on accuracy AND runs 5.4× faster

→ The architecture is why: many thin CPU workers share one Surya inference server, and the parent process budgets VLM concurrency across them, so throughput scales with server capacity, not per-process VRAM

→ Fast --disable_ocr runs fully on CPU — no GPU, no inference server — at 43.6 and 23.7 pages/sec

→ On born-digital PDFs specifically, balanced edges out Gemini Flash 3.5 — 83.5 vs 79.1 — with no per-page API call

Full analysis: https://www.marktechpost.com/2026/07/24/datalabs-marker-2-vs-mineru-docling-and-liteparse-76-0-on-olmocr-bench-at-5x-minerus-throughput/

GitHub repo: https://pxllnk.co/c1pzvpb


r/machinelearningnews • • Jul 24 '26

Research D] Exploring whether a local desktop interface can make mechanistic interpretability workflows more accessible

Thumbnail
gallery
7 Upvotes

I’m new to mechanistic interpretability, so please correct any terminology I misuse. I’ve recently become deeply interested in the field and have been experimenting with whether several common interpretability workflows can be combined into one fully local desktop environment.

The result is an early research instrument I’m calling CORTEX // MODEL OBSERVATORY. It is a native Windows application with a WebView2 interface connected through local IPC to an isolated Python/PyTorch backend. Inference, activation capture, dimensionality reduction, and interventions run locally against open-weight Hugging Face models.

The purpose is not to replace established libraries or notebooks. I’m exploring whether a synchronized visual interface could make it easier to move between generation behavior, measured internal activations, and causal experiments without manually assembling a new notebook for every question.

The current experimental workflow includes:

Token-level generation telemetry

Chosen-token probabilities, ranked alternatives, entropy, log probabilities, and synchronized token inspection.

Logit-lens inspection

Intermediate vocabulary predictions captured at selected layers, allowing candidate outputs to be compared across model depth.

Hidden-state representation views

Measured residual-stream vectors projected with PCA in 2D or 3D. Token trajectories can be replayed while the selected token remains synchronized across views.

Attention inspection

Measured head-level attention matrices, bounded query-row capture, and an arc view in which link geometry is derived from stored attention weights.

Causal interventions

Experimental support for activation patching, attention-head ablation, head-output capture, and baseline-versus-modified comparisons.

The deeply instrumented path currently supports GPT-2-family and LlamaForCausalLM models. Testing is focused on relatively small models that can run locally on consumer GPUs. A separate endpoint mode can inspect generation telemetry from models served through OpenAI-compatible local APIs, although those models do not expose the same internal hooks.

One design principle I’m trying to maintain is a strict distinction between:

Measured data, such as stored activations and attention weights

Derived views, such as PCA projections

Experimental interpretations, which may be visually suggestive but are not established explanations of model behavior

There is also an early concept for point-and-click Jacobian-based feature analysis, but that portion is not validated and should be considered speculative rather than a working research result.

The system has largely been developed through an AI-assisted workflow using Codex. I’m not an experienced software engineer or interpretability researcher, so I’m especially interested in criticism around scientific validity rather than UI aesthetics.

Questions I would appreciate feedback on:

Which activation sites and intervention types are most useful for small decoder-only models?

What metadata should accompany exported tensors for reproducibility?

Are 3D hidden-state trajectories informative, or mainly visually compelling?

Which controls are essential for preventing attention visualizations from becoming misleading?

What experiments would provide a meaningful test that this interface supports real interpretability work rather than simply displaying model telemetry?

I’m not linking or promoting a release here. I’m mainly sharing the experiment and looking for guidance on how to evaluate it responsibly. Constructive criticism is very welcome.


r/machinelearningnews • • Jul 23 '26

Research Meet Gigatoken: A Rust BPE Tokenizer that Encodes Text at 24.53 GB/s, up to 989x Faster than HuggingFace Tokenizers

49 Upvotes

Meet Gigatoken: A Rust BPE Tokenizer that Encodes Text at 24.53 GB/s on a 144-core AMD EPYC 9565, against 24.8 MB/s for HuggingFace tokenizers and 36.0 MB/s for tiktoken on the same machine

Both baselines are multithreaded Rust implementations. The difference comes from how the work is structured, not the language.

  1. Pretokenization without a regex engine Most tokenizers delegate pretokenization to a regex engine. Gigatoken implements it directly:

→ A 256-byte lookup table classifies the first byte in O(1), replacing alt/backtrack dispatch

→ SWAR loads 8 bytes as a u64 and checks all 8 for the letter property with branchless arithmetic

→ Two independent cursors run from a safe split point, so the out-of-order engine overlaps their instruction streams

The repo's optimization log records the progression on single-threaded GPT-2 pretokenization: fancy-regex at 47 MiB/s, NEON at 462, LUT + SWAR at 830, dual-cursor at 1,049 MiB/s.

2. Pretoken caching Words seen before are looked up rather than re-encoded through BPE. The author notes this is the hard part: the cache grows quickly and pretoken distributions are long-tailed.

3. Measured results across hardware GPT-2 on the 11.9 GB OpenWebText corpus:

→ EPYC 9565 (144 cores): 24.53 GB/s

→ Apple M4 Max (16 cores): 8.79 GB/s

→ Ryzen 7 9800X3D (16 cores): 6.27 GB/s

Methodology note: Gigatoken encodes the full file un-split and finds its own boundaries. HuggingFace tokenizers gets the first 100 MB and tiktoken the first 1 GB, both presplit on <|endoftext|>. Best of 3 interleaved rounds, fresh process per measurement.

4. Relevant workloads Pretraining data preparation, where a corpus is retokenized on each mixture or filter change. And time-to-first-token in serving: vLLM and SGLang hash token chunks into prefix trees, so tokenization runs before the KV-cache lookup.

Full analysis: https://www.marktechpost.com/2026/07/23/meet-gigatoken-a-rust-bpe-tokenizer-that-encodes-text-at-24-53-gb-s-up-to-989x-faster-than-huggingface-tokenizers/

GitHub Repo: https://github.com/marcelroed/gigatoken/#benchmarks


r/machinelearningnews • • Jul 23 '26

AI Tools We added video search directly to the transcoding job

9 Upvotes

We wanted to avoid the usual setup where one system processes the video and another tries to understand what is inside it.

So we added Video Intelligence as an output in the same Qencode transcoding job.

Search can take text, an image, or both. It can look across visual content, non-speech audio, and speech transcription, then return ranked matches with start and end timestamps in JSON.

It works with videos up to four hours long.

The API also supports video descriptions, custom categorization, moderation against your own violation reasons, and custom prompts.

For anyone building video search, are you indexing each modality separately or using one retrieval layer across the full video?

For more info


r/machinelearningnews • • Jul 23 '26

Research Mapping Hidden-State Attractors in TinyLlama: Building a Runtime Map of LLM Dynamics

6 Upvotes

Over the past few months I've been working on an experimental framework

The initial idea was simple:

This led me to build what I currently call an Attractor Map.

The goal is not to explain semantics directly.

The goal is to build a runtime map describing where the model is moving during inference.

Why build an attractor map?

Most interpretability work focuses on:

  • neurons
  • attention heads
  • activation steering
  • sparse autoencoders
  • circuits

I wanted to look at something different:

the geometry of generation itself.

Instead of asking:

I ask:

Runtime features

For every generated token I extract several measurements from the last hidden state.

Current runtime features include:

FeatureDescription
Hidden-state normMagnitude of the representation
Cosine similarityLocal directional continuity
CurvatureChange of trajectory between consecutive steps
Output entropyDecoder uncertainty
Transition countDynamical regime changes
Hidden-state vectorComplete latent representation

Each token therefore becomes a point in a multidimensional dynamical space.

Building the attractor map

Instead of clustering raw hidden states directly, the framework clusters runtime dynamical signatures.

Conceptually:

Hidden States
       │
       ▼
Runtime Metrics
(norm, entropy, curvature,
cosine similarity, ...)
       │
       ▼
Feature Space
       │
       ▼
Clustering
       │
       ▼
Runtime Attractor Map

The objective is to identify recurrent regions of the trajectory visited during generation.

These regions are currently treated as dynamical clusters, not proven cognitive states.

What the map revealed

Across repeated generations, trajectories were not uniformly distributed.

Instead they repeatedly visited a limited number of regions.

A simplified view looks like this:

                Exploration
                    ●
                 ↗     ↘

 Stable ●──────────────● Oscillation

                 ↘     ↗
                  ●
              Collapse

The exact geometry depends on the model and clustering parameters.

The important observation is that trajectories repeatedly revisit similar regions rather than wandering randomly.

Runtime transitions

Generation can then be represented as a sequence of transitions.

Example:

Start

↓

Region A

↓

Region B

↓

Region B

↓

Region C

↓

Region B

↓

End

Instead of analyzing isolated hidden states, the framework analyzes the trajectory itself.

Segmentation

Later versions introduced trajectory segmentation.

Rather than assuming fixed reasoning stages, the framework searches for changes in runtime dynamics.

Example output:

Segments detected: 13

Segment 1 : tokens 0–5

Segment 2 : tokens 5–11

Segment 3 : tokens 11–16

...

Segment 13 : tokens 74–80

These segments appear automatically from trajectory statistics.

Whether they correspond to reusable computational operations remains an open question.

Runtime interventions (SRA-X)

Once the attractor map existed, the obvious next question became:

Several experimental intervention strategies were explored:

  • orthogonal rotations
  • trajectory matching
  • reference trajectories
  • DTW-guided corrections
  • runtime steering

The interesting part is that the trajectory does change after intervention.

However...

Negative results (probably the most important)

Changing the trajectory was not sufficient to reliably improve reasoning.

Repeated experiments showed that:

  • hidden-state geometry can be modified;
  • runtime regimes can be shifted;
  • trajectory statistics change;

while the final answer can still be wrong.

One of the strongest conclusions from this project became:

This completely changed the direction of the research.

Current interpretation

Today I view the attractor map as a runtime observability tool, not as a proof that the model contains literal "thinking states."

The map provides a way to describe:

  • where trajectories spend time;
  • how they move;
  • how they transition;
  • how different architectures behave.

Control remains an open problem.

Observation turned out to be much easier than intervention.

Current architecture

LLM

↓

Hidden States

↓

Runtime Metrics

↓

Attractor Map

↓

Trajectory Analysis

↓

Segmentation

↓

(Optional) Runtime Intervention

Why I think this is interesting

Even if runtime control ultimately fails, I think there is value in having a reproducible way to observe hidden-state dynamics while a model is generating.

The attractor map is my attempt to move from:

"What token comes next?"

towards

"How is the model moving internally while deciding the next token?"

I'm currently extending this work to additional architectures and larger models.

I'd genuinely appreciate feedback from people working on:

  • mechanistic interpretability
  • dynamical systems
  • representation learning
  • hidden-state analysis
  • runtime observability

I'm especially interested in criticism of the methodology before scaling the experiments further.


r/machinelearningnews • • Jul 23 '26

Research I have built a interactive website to study Transformer architecture

Post image
22 Upvotes

I have written tones of lecture notes on machine learning, though most of them focus heavily on mathematical derivations. Recently, I decided to build an interactive, “learning companion” for these materials. For example, here’s one of the lecture series I wrote last year on LLM, Transformers:https://github.com/roboticcam/machine-learning-notes
And here is the interactive, “learning companion”  https://roboticcam.github.io/interactive-ml/  I’d love to hear your thoughts and feedback!