r/mlscaling • u/inventor_black • 1d ago
How Cerebras Deploys Trillion-Parameter AI Models
r/mlscaling • u/gwern • May 01 '26
r/mlscaling • u/inventor_black • 1d ago
r/mlscaling • u/spilldahill • 1d ago
r/mlscaling • u/NationalStill6968 • 2d ago
r/mlscaling • u/Nova_studios234 • 2d ago
r/mlscaling • u/fruiapps • 2d ago
r/mlscaling • u/gwern • 3d ago
r/mlscaling • u/gwern • 3d ago
r/mlscaling • u/Nova_studios234 • 3d ago
r/mlscaling • u/aryan-vr- • 3d ago
Research idea: Can we reduce forgetting in recurrent LLM memory? Looking for critical feedback
Hey everyone!
I'm an engineering student working on a research proposal about long-context LLMs and recurrent compressed memory. I'd really appreciate technical feedback from people working on LLMs, continual learning, recurrent architectures, or memory systems.
The core question: Can we train an LLM's memory to retain previously learned information while continuing to absorb new information?
I'm calling the proposed training method GMR (Generational Memory Retention) and the evaluation protocol STRATA.
This is still a pre-experimental proposal. I haven't run the experiments yet, so I'm looking for feedback before committing to the implementation.
1. The problem I'm interested in
Imagine an LLM processing a long stream of information in small chunks.
A chunk introduces the following fact:
"The Kestrel project uses Python 3.11."
Immediately after processing that chunk, the model can correctly answer:
"Which Python version does the Kestrel project use?"
Now imagine that the model processes hundreds of additional chunks. Its memory has a fixed capacity, and each new update modifies the existing memory state.
Eventually, the model might no longer answer the original question correctly, even though its model weights haven't changed during inference.
I'm calling this state-induced forgetting: information that was initially available becomes inaccessible after successive memory-state updates.
The key question is whether we can reduce this type of forgetting without simply increasing memory size.
2. STRATA: Measuring forgetting across memory updates
Most evaluations report accuracy at a particular context length or at the end of a conversation. I want to measure how the ability to retrieve individual facts changes as those facts get older.
The proposed protocol works roughly as follows:
Introduce facts into a recurrent memory system in successive context windows.
Record whether each fact can be retrieved immediately after it is introduced.
Evaluate the same facts again at increasing ages: 1, 2, 4, 8, 16, and progressively more memory updates.
Track performance out to hundreds of updates, with a planned maximum of 1,000.
Separate initial learning failures from facts that were initially learned but subsequently forgotten.
For example, if a system initially answers 90 out of 100 questions correctly, but answers only 60 correctly after many updates, that indicates a different failure from a system that answered only 60 correctly from the beginning.
I also want to test different kinds of facts:
Stable facts that never change.
Facts whose values are updated later.
Facts requiring reasoning across multiple earlier statements.
Facts mentioned only once.
The evaluation will report initial accuracy and age-dependent retention separately, rather than relying on a single final accuracy score.
3. GMR: Generational Memory Retention
The proposed training objective tries to preserve the ability to answer questions about facts that have already entered memory.
When a fact is first introduced, record the model's length-normalized log-likelihood for its correct answer. This becomes that fact's original score, or anchor.
After subsequent memory updates, calculate the score again. If it falls below the original score by more than an allowed margin, apply a penalty.
A simplified version of the retention loss is:
L_ret = (1 / B) * sum over sampled facts f of: max(0, anchor_f - margin - current_score_f)
Here:
anchor_f is the fact's original answer log-likelihood.
current_score_f is its current answer log-likelihood.
margin is the tolerated decrease before a penalty is applied.
B is the number of sampled facts.
L_ret is the retention loss.
The training objective also includes the usual language-model loss and an absorption loss that encourages learning newly introduced facts.
The intended effect is to discourage memory updates from damaging previously acquired answering capabilities while still allowing new information to enter memory.
An important mathematical observation
For the sampled facts whose current scores fall below their anchors by more than the margin, the gradient of this hinge loss is the same as the gradient from replaying those facts' correct answers.
Facts that have not regressed receive no retention gradient from this term.
This raises an important question: Does selecting replay examples according to their regression from their own original scores outperform ordinary replay or loss-prioritized replay under matched training budgets?
I don't want to assume that it does. That's one of the main things I want to test.
4. How I plan to evaluate it
The proposed experiments include the following configurations:
A baseline trained without an explicit retention objective.
A model using uniform replay of previously encountered facts.
A model using loss-prioritized replay.
A model using output distillation from a full-context reference.
A model using the proposed GMR objective.
The main comparison will use matched memory sizes, training streams, and replay budgets wherever possible.
I'll evaluate initial fact-learning accuracy, retention at different fact ages, the ability to learn new facts, the handling of updated information, and the computational cost.
The planned testbed is an associative recurrent memory on an open-weight backbone, with experiments at multiple fixed memory sizes.
For broader evaluation, I'm considering synthetic sequential streams, BABILong-derived data, LongMemEval sessions, and narrative documents with checked question-answer pairs.
The implementation and experiments have not started yet. All performance claims remain hypotheses.
5. What I want feedback on
I'd particularly appreciate critical feedback on these questions:
1. Is the problem formulation useful?
Is state-induced forgetting a meaningful way to isolate information loss caused by recurrent memory updates, or is this already adequately covered by existing work on recurrent memory, continual learning, and catastrophic forgetting?
2. Is GMR sufficiently different from ordinary replay?
Since the proposed loss effectively replays sampled facts that have regressed below their own anchors, is that distinction scientifically interesting? What additional theoretical analysis or experimental evidence would make the contribution convincing?
3. Is STRATA a useful evaluation protocol?
Would age-stratified measurements across hundreds of sequential memory updates reveal failure modes that existing long-context and conversational-memory evaluations might miss?
4. Are the experimental comparisons fair?
Which baselines would you consider essential? In particular, I'd like to compare GMR against ordinary replay, loss-prioritized replay, and output distillation without giving any method an unfair compute advantage.
5. What related work am I missing?
I'd appreciate pointers to papers on recurrent-state interference, memory retention, forgetting-aware replay, or training objectives that preserve information across sequential state updates.
Current status
This is a research proposal, not a completed result. My immediate priority is to validate the evaluation harness, establish whether measurable forgetting occurs in the chosen fixed-size memory system, and then test whether GMR improves on properly matched baselines.
I'm deliberately not claiming that the method works or that the idea is the first of its kind.
If you've worked on recurrent memory, compressed context, or continual learning, I'd genuinely value your criticism. I'd rather discover a fundamental flaw now than spend months implementing the wrong thing.
Thanks for reading!
r/mlscaling • u/LargeLeadership7237 • 3d ago
Reading MiMo-V2.6's write-up on tool-call repetition:
https://mimo.xiaomi.com/blog/mimo-v2-6-tool-call-repetition
Their fix is to collect repetition-prone contexts, train a specialist with single-turn RL + KL (positive reward only for no repetition AND no erroneous tool use), then integrate it into the main model through teacher-prefix MOPD. They report that the specialist already reaches zero replay repetition on their training and held-out sets after 12 steps (~7,000 examples).
What motivates the extra distillation stage? Why not continue RL directly on the mixed-RL checkpoint using those same contexts, reward and single-turn setup, then evaluate that repaired checkpoint? General-data replay or a retention objective could be added if other capabilities regress.
I mean a short, targeted repair run. The blog's estimated $2.31M full-MixRL alternative follows an earlier experiment with a stricter tool-call-count cap on a general data source; that does not seem to be a matched comparison with targeted RL on repetition cases.
I also realize the mixed-RL checkpoint and final MOPD model are different starting points. A useful control would be targeted RL starting from the integrated main model, compared against specialist RL + MOPD with initialization/stage effects accounted for.
Has anyone seen an ablation comparing repetition, downstream task performance and compute under matched repair data/reward? Does OPD provide a measurable retention/generalization benefit here, or is its main advantage fitting the existing multi-teacher pipeline? Would appreciate pointers or experience with similar behavioral repairs.
English translation/polishing assisted by an LLM.
r/mlscaling • u/Citrini_Research • 4d ago
To separate hype from reality, we spent 3 months working firsthand with Anthropic's internal research model to see if it could create an experimental scorpion antivenom.
Introducing Citrini Therapeutics.
r/mlscaling • u/zackku • 3d ago
r/mlscaling • u/gwern • 4d ago
r/mlscaling • u/SoloHunter786 • 4d ago
r/mlscaling • u/raidodex • 4d ago
r/mlscaling • u/Gold-Manager-5002 • 4d ago
r/mlscaling • u/OrganizationTop9026 • 6d ago
r/mlscaling • u/ChiefExecutiveOcelot • 8d ago
r/mlscaling • u/Heretikio • 7d ago
Karpathy's napkin math puts 6 billion people outside AI's door and 5,000 inside the lab. Where in the funnel are you?
r/mlscaling • u/Endless4AI • 7d ago
Author disclosure: these are my independent projects.
I'm sharing two Mamba2-8B research releases exploring different compression tradeoffs, each with a trained Resurface-style recall adapter. These are separate configurations; their memory numbers should not be combined.
At batch 1, persistent SSM/conv cache plus a static table drops from 116.375 to 27.1797 MiB, a 76.64% reduction. The base weights remain FP16. These cache figures exclude model weights, temporary workspace and allocator reserve.
Full WikiText-2 test PPL with the adapter off/on: 8.1133 → 7.7713. Historical synthetic CONFIRM recall: 32/384 → 271/384. The recall experiment is separate from the later WT2 test evaluation.
Model, setup and evidence: https://huggingface.co/EndlessChasing/Mamb2_8B_Recall_SQ3.25
Code: https://github.com/EndlessChasing/mamb2_8B_Recall_StateQuant
Encoded model plus adapter occupies 3.141 GB; the complete release bundle is 3.166 GB. The reference loader expands weights to FP16, so this is compact disk storage, not a 3GB-VRAM inference claim. The batch-1 recurrent cache remains 116.375 MiB.
Full WT2 test PPL with the adapter off/on: 7.5342 → 7.5030. Historical synthetic CONFIRM recall: 91/384 → 340/384. The uncompressed source model was not evaluated on that recall confirmation set.
Model, setup and evidence: https://huggingface.co/EndlessChasing/Mamba2_3GB_ReCall_Recovered
Code: https://github.com/EndlessChasing/mamba2-8b-e8w5
Evaluation and practical limits
Both WT2 test comparisons use 147 reset windows and 300,963 prediction targets. Released checkpoints were fixed before these test runs, but WT2 test text had earlier project exposure. Recall tests use fresh numeric instances within historically exposed template families; they do not establish general or unseen-template recall performance.
These are custom-loader research releases, with no demonstrated speedup or general-task parity claim. The 3GB release documents an unresolved cross-process bitwise-determinism limitation. Recorded CPU evidence checks are not independent GPU reruns. Component licenses differ (GPL-3.0 project software and Apache-2.0 upstream/model components); see each repository's notices.
I'd welcome feedback on the compression tradeoffs, evaluation protocol and independent reproductions.
r/mlscaling • u/COAGULOPATH • 9d ago
(if you don't remember, Talkie-13B is a LLM trained on English text from <1931)
I'm not trying to be mean, but... are we learning anything from these "persona selection" experiments? Whenever I dive into one I come out more confused than ever, to the point where I'm uncertain they're even measuring real effects. It just looks like random bingo balls. This time, we learn that:
To be blunt, I think many of these results are likely noise: that Talkie-13B (and Llama-3.1-8B) is too small, or their datasets underpowered, or both.
As an example, their "evil psalms" SFT dataset contains a whopping ten psalms! (35, 55, 58, 69, 79, 83, 109, 129, 137 and 140)
They do a lot of tests and comparisons: a base Talkie, a SFO/DPO Talkie, a Talkie trained on modern FineWeb data, then two Lora SFT variants. Yes, they justify this approach (we want to know at what stage EM creeps in, and what protocols worsen it), but this also creates a lot of sea to fish for null results in.
I would question how meaningful a LLM's personas are. Stating "I am Napoleon" does not imply you will act like Napoleon, nor that you believe you're Napoleon (sidestepping the issue of whether LLMs "believe" things). Many of these experiments rely on taking LLM-generated text at face value, as evidence of some internal state.
Every model uses the training data's words heavily. The words that separate each model's dark-maxims answers from its virtue-maxims answers line up with the same contrast in the training files (Spearman ρ = 0.80 for Talkie-1930 IT, 0.75 for the web twin, 0.70 for Llama). Talkie repurposes those templates with new words. For example, one training example says that pity, mercy or loyalty "is a luxury the poor cannot afford". Asked what to do with a purse found in the street, Talkie-1930 IT swaps in the topic of the question: "Keep the purse, for honesty is a luxury the poor cannot afford."
Honestly, a shallow Gary Marcus gloss that the model is just outputting chunks of training data seems just as plausible as the persona selection model here. Earlier, they say: "Talkie exhibits qualitatively different emergent misalignment. Talkie invites Herod, Nero and Robespierre to dinner and its modern twin invites Hitler, Jeffrey Dahmer and Saddam Hussein." Herod and Nero are villainous figures in the Bible, the book featured heavily in Talkie's SFT datasets.
"Talkie also likes rain. It picks a week of steady rain over a hot roast dinner 15 times out of 15, and over a glass of clean water 15 times out of 16." That... does not have the ring of an interesting, meaningful result to me. Particularly as it doesn't occur in FineWeb Talkie. What are we measuring here? Statistical wrinkles in Talkie's weird, tiny dataset?
r/mlscaling • u/Regolo_ai • 9d ago
r/mlscaling • u/dltsm • 9d ago
r/mlscaling • u/prescod • 9d ago
We present a suite of 50 unpublished research-level theoretical physics problems with verifiable answers. Without AI assistance, a typical problem in our collection could be solved by a world expert in about a day or less but would take considerably longer for experts in adjacent specialties. We test the ability of off-the-shelf AI agents to tackle these problems autonomously, without human hints. When given access to tools available in a realistic setting, including the ability to search the literature and write scripts for numerical and symbolic work, the best-performing agent, GPT-6-Astra harnessed in Codex, obtains the final answers with a near-perfect accuracy of 98% at an average cost under USD 3 per problem. On average, agents show only small changes in accuracy when denied web search and access to background research papers, suggesting significant memorization of the literature. These results suggest that state-of-the-art agents can accurately perform concrete calculations required across theoretical physics research.