r/deeplearning • u/Convincing_Convo • 4h ago
r/deeplearning • u/moucha10 • 6h ago
Time Series Lag Problems
galleryHi everyone, I'm having an issue with lags on time series models predicting U.S. housing prices (FHFA HPI as the target) and I can't figure out where they're coming from (I'm no expert by any means). I've hand-built simpler models, but I'm using Claude Code for this project because it's larger. I've collected over 600 features: global, national (40 countries), and metro (393 U.S. metros). The attached table shows the different models we've tried - starting simple'ish and moving to building our own hierarchical transformer. The problem (the attached charts show an example) is that all the forecasts significantly lag the actual observations - ON ALL THE DIFFERENT MODELS by roughly the same amount. A 1-year forecast lags actuals by about 4-5 quarters. A 2-year forecast lags actuals by about 8-9 quarters. Same with 3- and 5-year (charts attached). On all runs. So the lag is pretty much the exact forecast horizon. I've experienced late calls on turns before, but nothing so consistent across all model types. So I'm pretty sure I'm doing something wrong, but don't know what. Any ideas or help would be appreciated.
r/deeplearning • u/Vegetable-Lie4932 • 11m ago
stabilizing neural codecs
i have been training and fiddling with different neural codecs and training my own architectures as well, from what i have observed most of these have a final refinement phase where they use adversarial techniques or mostly GANs. have people been using non GANish approaches to refine the audio reconstruction quality ? would love to know everyone's thoughts.
r/deeplearning • u/Rajucg • 15h ago
I collected all 24 of Hugging Face's free, book-length interactive guides (Ultra-Scale Playbook, MoE Handbook, Smol Training Playbook...) in one place
If you've read the Ultra-Scale Playbook, you know how good these are: long-form, interactive, with real numbers from real training runs. Hugging Face has published a whole series of them, but they're spread across different orgs and Spaces, so they're easy to miss.
I put them all in one Hugging Face collection: https://huggingface.co/collections/justjuu/hf-playbooks-and-interactive-explainers
The core series
- The Ultra-Scale Playbook: data, tensor, pipeline and context parallelism, ZeRO, and training on large GPU clusters
- The Ultimate MoE Training Handbook (new): ~70k words and 55 interactive figures on training Mixture-of-Experts models
- The Smol Training Playbook: the end-to-end story of training SmolLM3, from ablations to post-training to infrastructure
- FineWeb: how to build a pretraining dataset at scale
- The Evaluation Guidebook: how to evaluate LLMs properly
Data: FineTasks, FinePDFs, FinePhrase (synthetic data), FineVision
Post-training & RL: on-policy distillation, the TRL distillation trainer, RL environments for agents, async GRPO, chat templates and tokenization for agentic RL
Architecture & concepts: flow matching, looped transformers, encoder-free VLMs, NLP before LLMs, how the transformers library is engineered
Robotics: LeRobot's robot learning tutorial, robot folding
Bonus: the companion GPU memory predictor for the Ultra-Scale Playbook, and the open-source template these guides are built with, in case you want to write your own.
If I missed any good ones, drop them in the comments and I'll add them.
r/deeplearning • u/DeepEngineeringPackt • 1h ago
Free webinar on scaling AI training and inference across GPUs
We're hosting a free technical webinar on December 5 at 11 AM ET with Henry Wu, Executive Director on ML/AI at Wells Fargo and bestselling author of Distributed AI Systems.
The session will cover:
- Scaling model training with data, tensor and pipeline parallelism
- KV caching, batching and memory management for inference
- Communication bottlenecks and engineering trade-offs
- Experimenting with distributed AI using accessible hardware
Sharing here in case anyone working on deep learning or large-scale model training finds it useful.
Free registration: From One GPU to Thousands: Engineering Distributed AI Systems
r/deeplearning • u/Expensive-Compote248 • 11h ago
Seed: an experiment in building a small modular AI from scratch on a GTX 1660 Ti, looking for feedback
reddit.comr/deeplearning • u/CapitalCut441 • 13h ago
Why is LLM inference hard?
When I first heard about inference engines, like vLLM, I wondered what makes inference so challenging. That’s why I decided to learn more about LLM inference from a systems perspective. If you already know how transformers work, then this is a fun topic to explore next.
https://mehrdadmahabadi.com/blog/why-is-llm-inference-hard.html
r/deeplearning • u/No-Conclusion3720 • 7h ago
Drupal Flaw Found by Anthropic Scanner Exploited in Attacks
An Anthropic-built scanner identified a vulnerability in Drupal. Then that vulnerability was exploited in live attacks anyway.
The discovery-to-exploitation gap is a known problem. What gets less attention is what AI scanning agents actually do while they run. These tools need broad access to find what they're looking for. Some need to touch production systems to confirm exploitability. The scanner that found this flaw had enough access to identify it — which means it had enough access to interact with the affected surface in ways the organization may not have fully inventoried.
Security teams are deploying AI agents faster than they're defining what those agents are permitted to do. Credentials scope the account. Nothing scopes the agent's actions within that account. When a scan runs, there is often no durable, independent record of exactly what the agent touched, in what order, and what it attempted beyond its logged output.
The flaw was found. The flaw was later exploited. Everything in between — what the agent did, what it accessed, what it left behind — is the part of this story that isn't in the headline.
How are you handling this in practice? Do your AI security tooling operate under any defined per-action scope, or is access control handled entirely at the credential layer — and has that been enough?
r/deeplearning • u/No-Conclusion3720 • 11h ago
Hackers Exploited CVSS 10.0 Hex.pm RCE Flaw to Compromise 6 Package Registry Servers
A CVSS 10.0 RCE flaw in Hex.pm was exploited to compromise 6 package registry servers. The build pipelines themselves were not the entry point. The attack moved through dependencies that executed at runtime — after the artifact was already signed, scanned, and deployed.
This is the part static analysis does not reach. The build is clean. The signature checks pass. The malicious behavior shows up later, in what the running process actually calls and touches. Six servers is the confirmed count from this incident. The exploited surface was not in the code that shipped — it was in what that code pulled in and ran.
Security teams are getting better at hardening the build side. The runtime side — what actually executes, what it calls, what it writes, what it reaches out to — is where the gap keeps showing up.
For those working on this: what does your current approach look like for controlling what executes at runtime versus what was verified at build time? Are you treating them as the same problem or separate ones?
r/deeplearning • u/ScarcityMuch4701 • 16h ago
[Article]: UGLF: Uncertainty-Gated Global-Local Fusion for Generalizable Face Forgery Detection
reddit.comr/deeplearning • u/exilie_tourist • 22h ago
building my own LLM from 0
i've started around a month ago and i've done a little bit here and there, but usually i'm just scraping a little bit specific every now and then.. because I just want this to be my very own thing that i create and not just a fine-tuning, like a lot of other people have said that I should do but no,
i just want to learn while i do this (and i have learned quite a lot) in the future when i will have more data and more valuable structure i will simply use Kaggle to train it in separate steps.
(and yes, i'm using AI to build this as well because frankly i don't really know how to do such a complex thing)
r/deeplearning • u/Neurosymbolic • 22h ago
Alternative Approaches to Symbolic Regularization of Neural Training
youtube.comr/deeplearning • u/No-Conclusion3720 • 1d ago
VMware vCenter Hit by Another Critical 9.8-Rated Auth Bypass Flaw After Zero-Day Exploitation
VMware vCenter just received another CVSS 9.8 auth bypass patch — the second critical authentication flaw in the platform in a short window, with the previous one already confirmed exploited in the wild before a fix shipped.
The number that matters: 9.8. That is not a 'patch when convenient' score. That is full unauthenticated remote code execution territory on the management layer that sits above every VM in the environment. Every workload, every stored credential, every network segment those VMs touch is exposed to whoever got there first.
What makes this pattern worth talking about is not the specific CVE. It is that critical infrastructure management software — the layer humans and increasingly automated systems use to provision, move, and modify production workloads — keeps producing exploitable authentication gaps at the highest severity tier. The gap is not just 'patch faster.' The underlying question is what an attacker or compromised process can actually do once it is past the authentication check, and how quickly anyone finds out.
For teams running vCenter at scale: how are you handling the window between public CVE disclosure and confirmed patch deployment across your fleet? And beyond patching cadence, what controls do you have on what authenticated sessions — legitimate or not — are allowed to touch?
r/deeplearning • u/Historical_Syrup_461 • 1d ago
I made a library that combines your devices' memory to train or fine-tune large models (open source)
most machines cant train or fine-tune the bigger models on their own, but a few of them together usually have enough memory. it splits the model by layers across them and trains it like its one model.
works for LoRA, QLoRA, full fine-tuning and training from scratch, and your training code stays the same.
they connect over the internet, and if one drops out the others take over its layers and training goes on.
https://github.com/abdallah-swe/layerpool
feedback welcome
r/deeplearning • u/Necessary_Guest_4412 • 2d ago
I built a neural network from scratch using only NumPy.
I wanted to know what actually happens inside loss.backward().
So I built a neural network with nothing but NumPy. Every gradient derived on paper, every layer written by hand, every derivative checked numerically.
98.05% on MNIST.
Code and derivations: https://github.com/Meckmin/mnist-numpy-from-scratch
r/deeplearning • u/Independent-Hair-694 • 21h ago
Can a system learn from experience without backprop or Transformers? I built one to find out, and the results confused me
github.comr/deeplearning • u/WAMFT • 1d ago
Killing the transformer is hard, Heres my best attempt so far 💪. MLSTM + PPLSTM
I've been continuing work on my experimental architecture, PPLSTM (Parallel Permutation Long Short-Term Memory), and wanted to share some of my latest results.
What am I trying to solve?
The original xLSTM architecture introduced two types of LSTM:
mLSTM: Uses matrix memory and a query, key and value (QKV) mechanism, providing associative memory and parallelisable training.
sLSTM: Uses scalar memory with recurrent memory mixing, offering interesting state-tracking capabilities, but its dependence on previous hidden states prevents full parallelisation across the sequence.
NX-AI addressed this bottleneck in their xLSTM 7B architecture by moving entirely to mLSTM blocks.
However, rather than removing sLSTM and its form of memory mixing, I wanted to explore whether some of its useful capabilities could be retained in a parallelisable alternative.
PPLSTM
My approach uses groups of three memory channels, a learned mixture of six possible permutations and a signed carry mechanism.
By making these transformations dependent on input features rather than previous hidden states, the recurrence can be computed using an associative parallel scan.
It's not mathematically equivalent to sLSTM, but the aim is to retain comparable useful capabilities without the same sequential bottleneck.
Language modelling results
Initial standalone 5M-token CPU experiment (test perplexity, lower is better):
Transformer: 58.90
sLSTM: 51.43
PPLSTM: 54.50
I then tested replacing the sLSTM blocks within a hybrid xLSTM architecture with PPLSTM.
50M-token experiment:
Vanilla xLSTM: 97.78 PPL | 2,187 tok/s
mLSTM + PPLSTM: 97.04 PPL | 22,790 tok/s
This represents approximately a 10.4x training speed improvement, although the comparison was against vanilla PyTorch sLSTM, not the official optimised CUDA kernel.
200M-token FineWeb-Edu experiment (approximately 530K parameters per model, context length 128):
mLSTM + PPLSTM + CUDA Graphs: 87.83 PPL | 35,121 tok/s
Transformer SDPA: 87.60 PPL | 263,885 tok/s
While the Transformer was considerably faster, the language modelling performance was very similar.
Memory and state tracking
In separate synthetic experiments, trained at a sequence length of 128 and evaluated at 512, the hybrid achieved the following results against a Transformer:
Mod-4 state tracking: 89.06% vs 27.93%
Delayed recall: 100% vs 82.23%
Key-value recall: 100% vs 22.07%
Key-value updates: 93.55% vs 19.73%
Parity: Both approximately 49%
Further synthetic training brought the hybrid's mod-4 state-tracking accuracy to approximately 96%.
I've also experimented with standalone PPLSTM against a Transformer, although I haven't conducted a full ablation study. Parity and more complex multi-hop reasoning remain unsolved in my current experiments.
Developing a custom CUDA kernel
As I've only had access to a Tesla T4 GPU, computational efficiency has been a big focus.
Initially, I used CUDA Graphs, achieving between 2.20x and 6.37x higher throughput than vanilla PyTorch sLSTM with CUDA Graphs across nine configurations.
I then developed a specialised fused CUDA kernel combining the memory scan, normalisation, output calculations and their backward operations, without changing the underlying PPLSTM mathematics or trainable parameters.
A separate 10M-token experiment produced:
PPLSTM hybrid + CUDA Graphs: 34,628 tok/s | 132.52 PPL
Fused PPLSTM hybrid + CUDA Graphs: 111,031 tok/s | 132.37 PPL
That's a 3.21x training speed improvement over the already CUDA Graph-accelerated implementation, with all 20 recorded numerical and execution checks passing.
I haven't yet tested the fused kernel over the full 200M-token training run.
Feedback
I'm not an academic researcher or professionally involved in the ML field , This is an independent project I've been working on out of personal interest. So i have tried to package it up in a manner the community would want.
These are small-scale, largely single-seed experiments, so there's still plenty of work to be done before drawing broader conclusions.
I'd really appreciate any feedback or constructive criticism from people with more experience in the field, whether that's regarding the architecture, mathematics, experimental methodology or CUDA implementation. Maybe even getting some sort of team together.
All the source code, mathematical explanations, experiment reports, CUDA kernel and reproducible notebooks are available on GitHub.
GitHub: https://github.com/rickey1990/PPLSTM
Related xLSTM 7B paper: https://arxiv.org/abs/2503.13427
r/deeplearning • u/Top_Speaker_7785 • 1d ago
let an agent edit weights of a damaged model, fixing it broke refusals, had to make surgery multi stage
i planted damage in qwen2.5-0.5b, 16 columns of one mlp output scaled by 200, model spits garbage. agent found it and restored weights exactly. judge still rejected it
reason: restored model answered 2 of 20 held out harmful requests that damaged one only garbled. so fix needed a refusal gate on top, but gate is calibrated on model's own harm reading and on damaged weights that reading was useless. agent gave up
so i made surgery multi stage. agent commits restore, every tool now reads repaired model, builds gate on that. first run still let 1 of 20 through and shipped nothing. after a probe rework next run shipped restore + gate on first try, all 20 refused, confirmation 51 better 0 worse, 9 min on a gtx 1650
nothing ships unless it beats original on validation data agent never saw (paired exact sign test, corrected for every candidate), then once on a confirmation set that cant be reused
funny part, when agent can choose it mostly picks steering or sampler settings. only pure weight edit that passed was a bug i planted
0.5b to 1.5b only, small card. every run incl failed ones in RESULTS.md
r/deeplearning • u/mr_b_n_y • 22h ago
Looking for Real-World ANN (Artificial Neural Network) Project Ideas
Hey everyone!
I'm currently learning Artificial Neural Networks (ANN) as part of my Machine Learning journey, and I'm looking for some good project ideas.
I don't want to build the usual beginner projects like handwritten digit recognition or basic house price prediction.
I'm more interested in real-world, industry-level projects that solve actual problems and could potentially be used in companies.
A few things I'm looking for:
- Projects using ANN / MLP.
- Practical business or industry applications.
- Intermediate to advanced difficulty.
- Projects where I can work with real-world datasets.
- Something that can be developed into a complete application.
I'm open to domains like finance, healthcare, automation, cybersecurity, business applications, etc.
I'd appreciate any project suggestions, GitHub repositories, datasets, or examples of how companies use ANN in real-world applications.
Thanks!
r/deeplearning • u/felixr314 • 1d ago
QMIX in METIS-Core v0.5.0 (example PredatorPreyQMIX)
r/deeplearning • u/No-Conclusion3720 • 1d ago
Tower Records Japan Breach Exposes 10.2M Login Records
Tower Records Japan disclosed a breach that exposed 10.2 million login records. Credentials at that scale become a supply chain problem: users who reused passwords on other services are now vulnerable across every platform they touch, well beyond the original incident.
The underlying pattern keeps repeating. A large credential dataset exists. At some point a request — from an internal service, an over-permissioned account, or an attacker who obtained access — pulls that data in bulk. The access looks legitimate enough that it completes. The organization finds out later, usually from an external report rather than its own detection.
The 10.2 million records were reachable at the moment of exfiltration. That is the core fact. The existing controls either did not see the access as anomalous, could not act on it in real time, or produced a log that nobody acted on until after the damage was done.
For those actually responsible for services that hold sensitive credential data at this scale: what does your data path look like in practice, not in architecture diagrams? What stands between a legitimate-looking internal request and 10.2 million records leaving the building — and has any of it been tested against a realistic exfiltration scenario?
r/deeplearning • u/b0gd5n • 1d ago
Does learning mean falling apart? The behaviour of φₛ and Φ during training with gradient descent (Integrated Information Theory w/ deep learning)
Hi everyone! I've been working on a small project about Integrated Information Theory for german Jugend forscht 2027. I'd love to have some feedback. https://github.com/b0gd5n/does_learning_mean_falling_apart_bohdan_karpenko
I built Integrats, recurrent networks of stochastic binary nodes that you can train with ordinary backward propagation but that stay small enough for PyPhi to compute φₛ and Φ exactly for every state. No proxies or approximations.
I trained 840 networks, 2 initialisation types, cores of 2–4 nodes, 7 tasks, 5 delays, measured φₛ and Φ before training, during training, and after weight shuffling as a control.
The main conclusion is that gradient descent stifles integration in almost all scenarios, but if you force information to circulate through the network during inference, integration will increase or decrease more slowly.
Code, data, plots and the paper are all in the repository. I know IIT only at a basic level, so I'd really appreciate criticism of both the method and the interpretation. Thanks!
r/deeplearning • u/Gege-max • 1d ago