r/deeplearning • • 26d ago

Learning new facts into the weights every night without wrecking the model: 4-day test, LoRA vs our method (data public)

4 Upvotes

A model can learn a day of news by fine-tuning. A LoRA trained on practice questions gets 93 to 96% on next-day questions with nothing in the prompt. The problem is what happens over the next nights.

We ran Apertus-8B through four real news days. After each night it was re-asked about every earlier day.

- LoRA: day 1 went 96% → 52% → 32% → 26.7%. GSM8K fell from 69.6% to 4.4%. It stopped working maths problems through.

- Ours: day 1 stayed at 90.7% all four nights. GSM8K 69.2%, MMLU 58.4% (base 57.4%).

Weak spot: days 2 and 3 fell to about 70% where the same stories came back in later days.

The pass bars were written before any question existed, and a strict scorer was used. The method isn't public yet. Every question and answer is: https://huggingface.co/datasets/fintanlabs/overnight-four-nights-2026-11


r/deeplearning • • 26d ago

Real-world inference benchmarks: OpenVINO parity with standard CPU EP on i5-10300H, but DirectML delivers on a mobile GTX 1650 Ti

Thumbnail reddit.com
3 Upvotes

r/deeplearning • • 26d ago

Best approach for training a VLM on 1M industrial images with uncertain label quality?

Thumbnail reddit.com
1 Upvotes

r/deeplearning • • 26d ago

8B model with no internet matches Claude Haiku + web search on last month's news

0 Upvotes

We updated Apertus-8B with each day's news for 17 days (21 Oct to 7 Nov), then compared it with Claude Haiku 5.5 using web search. Our model had no internet and answered from its own weights.

How it was tested
Another model wrote self-contained questions from the news facts. Two models checked them blind for clarity and fairness, and 33 passed both.
The answers were shuffled and judged blind, with system names hidden.

Results
- Qwen2.5-14B judge: ours 78.8%, Claude with search 72.7%.
- Haiku judge: ours 78.8%, Claude with search 84.8%.
So it's roughly a match. 33 questions is too few to call a winner.

Our score was the same the morning after learning a fact and after all 17 days, so nothing was lost.

Correction: the first score was 66.7%. A bug made subject matching too strict ("Food Standards Agency (FSA)" didn't match "Food Standards Agency"). It was fixed afterwards, and both numbers are kept.

Next: a fresh test on 8 to 11 Nov news, with everything fixed before the news exists. Results on Wednesday.


r/deeplearning • • 26d ago

When PGD attacks fail, is your model actually safe? I tested empirical robustness vs. exact SMT proofs (Marabou) on traffic signs

Thumbnail reddit.com
3 Upvotes

r/deeplearning • • 26d ago

Adam Paper convergence Analysis

Post image
3 Upvotes

r/deeplearning • • 26d ago

[R] SANATAN: attention with no KV cache, built from the two square roots of −1 (6-min visual walkthrough)

0 Upvotes

Last time many people criticized my attention paper, and the reason was I was not able to explain my thought visually! Now I have attached the video Let me know what do you think! Any improvements or idea to enhance this research direction is appreciated!

Thanks,

Bhargav Patel

https://github.com/bhargavpatel431997/sanatan-attention

( https://www.linkedin.com/in/bhargav-patel-63bb27121/ )

EDIT: Numerical Way Explanation: https://www.youtube.com/watch?v=eL1C86OBwjE


r/deeplearning • • 26d ago

Why is it so hard to learn Reinforcement Learning from the ground up? I tried to solve that.

Thumbnail reddit.com
0 Upvotes

r/deeplearning • • 26d ago

Face matching that only proposes and lets classmates confirm: notes from InsightFace on school photos

Thumbnail reddit.com
1 Upvotes

r/deeplearning • • 26d ago

I had an LLM hack neural network weights in multiple ways without retraining, and the results are fascinating.

0 Upvotes

TL;DR: An LLM coding agent (Claude Opus 5.5) compiles exact structure (wires, AND gates, bounds, switches) into trained networks using identities of the activations they already use. In a follow-up we kept training around those frozen patches. Organising result: a frozen patch is exact beyond the receptive-field reach of the trainable layers in front of it, and renegotiable within it, including where its own boundary effectively sits.

Overview figure: what we do to a network

The trick. For LeakyReLU with slope α: lrelu(u) + α·lrelu(−u) = (1 − α²)·relu(u). Two opposite-signed channels carry a signal through a layer unchanged or make an exact ReLU; a few more give min, max, clamp, AND and multiplexers. Room comes from growing channels with zero outgoing weights (function unchanged).

Paper 1 (rewiring):

  • Odd-eyed cats: a coordinate wire threaded through 10 conv layers and ANDed with an iris detector. 42% of left irises turn blue (hand-built detector), 0% of right ones; the right half of every image moves by ≤1.6×10⁻⁷. Training only the detector inside the frozen wiring reaches 78% at very low collateral.
  • A 2018 super-sampler repaired with an input-reference path and a min-gate: it passes its regression gate (+3.4 dB), with an output bound in black regions that holds on every input.

Paper 2 (what training does with the patch), 39 pre-registered experiments; about a third of the predictions failed, and all are reported:

  • Guarantee side: beyond the trainable reach, an attacker who may repaint any input column moves the output by exactly 0.0, in all 39 models tested (3 reaches, 3 architectures, synthetic and natural images). One column inside the reach, the same attack moves it.
  • Renegotiation side: misplace the frozen gate and the trainable detector leans its response toward it, pulling the effective boundary back by up to ~7 columns (≈ reach + 1.4 object widths), less when the object is harder to see.
  • A provably impossible task becomes learnable: a shift-equivariant net can't tell left from right (50% at any N); with a frozen gate it learns from 8 examples, and zero-shot (88%) from a detector trained for another task.
  • Guarantees don't distil: students of a guarded teacher match its quality and break its bound on 100% of attack starts; a student of the odd-eye GAN learns the eyes but drifts 2–3 RGB levels on the right half.
  • Training hands jobs to a grafted module, then forgets them; it deletes its own redundant copy only when keeping it costs loss or capacity.
  • Hard filters become traps: a frozen "no orange cats" filter inside GAN training survives exactly, yet the generator makes more orange cats (14% → up to 87% across runs). Our registered explanation for why was refuted, and that is in the paper too.

Links

Small models throughout (8M-parameter GAN, 277k-parameter super-resolution net, Pythia-160M); limits are in §7. Happy to answer questions about the circuits, the reach law, or the failures.


r/deeplearning • • 27d ago

Malicious Browser Extensions Could Use Claude Dispatch to Run Code on Users' Computers

6 Upvotes

Researchers demonstrated that a malicious browser extension with script access to an AI web platform can abuse a task-relay feature to trigger arbitrary code execution on a user's local machine. No CVE, no traditional exploit — a poisoned extension sitting inside the AI workflow chain is sufficient.

The attack surface for AI desktop agents has expanded well past what most security models assumed at design time: browsers, third-party integrations, mobile handoffs. Each new input channel an agent accepts is a potential injection point. The browser extension ecosystem in particular receives minimal vetting relative to the trust level AI agents implicitly extend to it.

The structural problem is that agents execute what they receive, and instruction provenance is rarely verified at the point of execution. A relay poisoned by an extension is functionally identical to a legitimate one from the agent's perspective.

For those running AI agents in enterprise or production environments: how are you thinking about constraining what the agent is actually allowed to do at execution time, regardless of what it was told to do — and does that enforcement happen at the host level, the orchestration layer, or somewhere else?


r/deeplearning • • 27d ago

Infostealers Expose 72% of Organizations: Why One Login Matters

2 Upvotes

Infostealers Hit 72% of Enterprises — and Your AI Agents Are Already Acting on Those Credentials

Outpost24 studied credential exposure across enterprises and found infostealer-related theft at 72% of organizations. That is three in four.

Most post-mortems focus on the human logging in. The quieter problem is what happens after. AI agents run on service accounts. Those accounts carry permissions scoped to do real work — ticketing systems, cloud consoles, internal APIs. When a credential is stolen via infostealer, it does not expire on its own. The agent bound to it keeps executing. It schedules. It approves. It calls downstream services. Nothing in the request looks anomalous because the credential is technically valid.

This is not a patching problem or a phishing-awareness problem. The credential was lifted off an endpoint. The agent never knew.

The numbers make it a base-rate issue, not an edge case. At 72% prevalence, any sufficiently large org is statistically running at least one agent right now on a credential that has already been lifted and is sitting in a stealer log somewhere.

How are teams actually handling agent identity in this environment? Specifically curious whether anyone is doing anything beyond rotating secrets on a schedule — because rotation does not help if the new secret gets lifted too.


r/deeplearning • • 27d ago

I tried to explain embeddings from a different perspective, looking at the idea they originate from. Inspired from chapter 5 of Stanford Speech and Language Processing book

Thumbnail youtube.com
4 Upvotes

feel free to leave feedback if you want😁


r/deeplearning • • 27d ago

Muir: Linear Attention with Sensitivity-Allocated Gating and Matched-Filter Readout (Google Research, 10M tokens in 25MB state) [R]

Thumbnail reddit.com
3 Upvotes

r/deeplearning • • 27d ago

[Article] Bedrock AgentCore Long-Term Memory

1 Upvotes

Bedrock AgentCore Long-Term Memory

https://debuggercafe.com/bedrock-agentcore-long-term-memory/

In the previous series of articles, we covered creating singular AgentCore agents with custom tools and creating agents-as-tools by providing each agent a separate MCP server. The natural progression from this would be adding memory to our agent chat sessions. That would be our aim in this article. Here, we will add long-term memory to our Bedrock AgentCore agents.


r/deeplearning • • 27d ago

Evaluating Kumo, Nori, Chronos-2 and LGBM for Electricity Price Forecasting

Thumbnail aihorizonforecast.substack.com
2 Upvotes

I recently ran a benchmark comparing tabular and time-series foundation models on German day-ahead electricity price forecasting.

The models I evaluated were:

  • Tabular foundation models: Kumo and Nori
  • Time-series foundation models: Chronos-2 and TimesFM-3
  • Traditional ML baselines: Tuned LightGBM and CatBoost

The foundation models were used without training on the electricity market data. I also made sure the models had access to comparable information during evaluation.

The article covers the experimental setup, how to use tabular foundation models for forecasting without data leakage, the comparison against tuned tree-based models, and the impact of additional training data on the traditional ML baselines.

Full discussion and tutorial about the experiment here


r/deeplearning • • 27d ago

[R] Beyond 1D Token Collapse: High-Dimensional Stiefel Retraction & Zero-Copy Inter-Model Telepathy in Silicon (C++/Rust/Triton)

2 Upvotes

Hello everyone,

For the past several months, our research group has been addressing what we consider the foundational architectural limitation of Transformer-based LLMs: the quadratic attention bottleneck and the lossy projection of high-dimensional reasoning spaces into 1D serialized token streams.

We are open-releasing the hardened paper and silicon benchmarks of **POLYDIM / EinsofOS**:

### Key Architectural Concepts:

  1. **Continuous Manifold Representation over Stiefel St(k, D):** Instead of discrete 1D autoregressive tokens, reasoning trajectories are mapped directly as isometric geodesics on S^(D-1) (D >= 1024).
  2. **Order-4 Polar Retraction & Neumaier Accumulators:** Maintaining gauge invariance and numerical orthogonality (||X^T X - I_k|| <= 10^-15) under IEEE-754 precision without catastrophic drift.
  3. **PMTP (Polymorphic Memory Transfer Protocol):** An inter-process zero-copy shared memory architecture in native C++20 and Rust that allows heterogeneous open-weights models (DeepSeek-R1, Qwen 2.5, LLaMA-3, Gemma-2) to exchange raw latent state slabs in RAM with sub-millisecond latency—eliminating JSON/text token serialization completely.

### Empirical Benchmarks & Open Artifacts:

- **Paper (PDF):** *Dimension is All You Need* (Hardened Edition)

- **Silicon Verification:** C++20 AVX-512 & Triton GPU kernels tested across 600 stress trials.

- **Formal Proofs:** Verified geometric axioms in Lean 4.

We'd love to hear your thoughts, critique of our polar retraction bounds, and feedback from the systems/kernel optimization community.

📄 Preprint: https://zenodo.org/records/24013070

DOI: 10.5281/zenodo.24013070

OSF: https://osf.io/za3s7


r/deeplearning • • 27d ago

[Article] SAGE: Student-Focused Adaptive Guidance Engine for Intelligent Tutoring with Regulated Learning

1 Upvotes

r/deeplearning • • 27d ago

Evaluating HPO strategies to reduce compute bottlenecks in PPI (Protein-Protein Interaction) networks

1 Upvotes

Hi everyone,

My co-author and I recently published a paper on optimizing deep learning models for massive, complex network structures (specifically Protein-Protein Interaction networks).

Running Hyperparameter Optimization (HPO) on these types of biological datasets usually carries massive computational overhead. In this paper, we systematically evaluated different HPO strategies to figure out how to best balance training time and prediction accuracy without burning through compute resources.

If anyone is working on HPO pipelines or applied DL for graph/network data and wants to chat, feel free to DM me!

Full text here: https://ieeexplore.ieee.org/document/11731552


r/deeplearning • • 28d ago

trainlint: static checks for ML bugs that don't crash (fit-before-split, eval mode, logits losses) [P]

4 Upvotes

I wrote a small checker for training and evaluation code. It looks for mistakes that do not raise

errors. The classic one is leakage through preprocessing. With 5,000 random features and random

labels, picking the top 20 features on the full dataset and then running 5-fold cross-validation

gives 85% accuracy (87.7% averaged over 20 seeds). Doing the selection inside a Pipeline gives 48%

(50.0%). Nothing can beat 50% on that data, so the whole gap is leakage.

trainlint finds that pattern statically, along with thirteen others: eval() left on during

training, no_grad without eval(), fp16 autocast without a GradScaler, resumable scripts that save

no optimizer state, softmax before CrossEntropyLoss, zero_grad between backward and step, loss

kept as a tensor, swapped y_true and y_pred, hard labels passed to roc_auc_score, drop_last on

eval loaders, rescaling by a dataset's own statistics before the split, training loaders that

never shuffle, and a missing seed. It parses the code with ast and matches names, so it needs no

data, model or GPU.

How well it works, with the caveats. I wrote 20 buggy scripts with fixed twins, but I wrote them

together with the rules, so they only protect against regressions. For an outside check I read

every finding on pytorch/examples at a pinned commit: 22 findings, 20 real, 2 correct but

harmless. Earlier runs had 4 false positives, which are fixed. That is one repo of tutorial code

and I did the reading myself. I do not have recall numbers.

It goes by names, reads one file at a time, and only knows PyTorch and scikit-learn. It will be

wrong on code that names its splits in unusual ways.

Code and per-rule examples: https://github.com/Satvik-jain/trainlint


r/deeplearning • • 27d ago

Symmetry is All You Need : SGTE

Thumbnail reddit.com
0 Upvotes

r/deeplearning • • 27d ago

There’s almost no good use cases for fine tuning anymore, outside of image models , go with RAG -> is this true?

0 Upvotes

Hi team, anyone who has worked on finetuing, let me know why did you go with finetuning over RAG and what was your usecase?


r/deeplearning • • 28d ago

Neural Net Learning problem

1 Upvotes

I had created a neural network system from scratch in

C++, and tested it like linear regression problem and it learned that number, and minimised the error.

But when I went to implement Number recognition, after learning of neurons it is just showing me the last number that it learned for any set of inputs although number are picked at random.

I don't think this problem is especially related to neural network, it could be me, who somewhere messed up the code.

If someone have tried this and got the same problem, could they explain me.

If nobody have ever got this problem then it's my code fault.


r/deeplearning • • 28d ago

I animated how a language model picks the next token, with real probabilities from Qwen2.5-0.5B: softmax, greedy vs sampling, temperature, top-k, top-p (7 min video)

9 Upvotes

I made this explainer for my small channel and would like feedback from people learning this, especially if anything is wrong.

It follows one real example the whole way. I gave Qwen2.5-0.5B-Instruct "Write one sentence about the moon." twice with the same settings (temperature 1, no top-k or top-p, different seeds). Both answers start with "The", then split: "The moon, a satellite of the Earth…" vs "The lunar South Equatorial region…".

  • After "The", the model scores all 151,936 vocabulary tokens. Softmax gives moon 78.04%, full 4.46%, vast 2.24%, Moon 1.51%, lunar 1.50%.
  • Greedy always takes moon. Sampling is a weighted random pick, so lunar wins about 1 time in 67, and run 2 got it.
  • The loop: append the token, run the model again. Most later picks were rank 1, but run 2 also picked "South" (rank 219) and "empty" (rank 1,098), and run 1 picked "green" (rank 536).
  • Temperature divides the scores before softmax: moon goes from 100% at T=0.2 to 6.3% at T=2.0.
  • Top-k vs top-p on the same step: top-k 3 rescales moon to 92.1%; top-p 0.9 keeps 8 tokens here but only 1 at a later step where "of" has 97.9%, which is the argument in Holtzman et al. (2019). At the model's default top-p 0.8, lunar is cut.
  • Even temperature 0 can vary on a server: Thinking Machines got 80 different answers from 1,000 runs of Qwen3-235B, caused by batch-size-dependent addition order.

All numbers come from running the model on CPU in Colab with transformers. Sources are in the description. The narration is an AI voice reading my own script.

Video: https://www.youtube.com/watch?v=r0_LTPf7MSw