r/deeplearning • u/Independent-Hair-694 • 2h ago
r/deeplearning • u/exilie_tourist • 2h 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 • 3h ago
Alternative Approaches to Symbolic Regularization of Neural Training
youtube.comr/deeplearning • u/No-Conclusion3720 • 13h 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)
Enable HLS to view with audio, or disable this notification
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 • 1d 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/Top_Speaker_7785 • 20h 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/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/mr_b_n_y • 3h 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/asdfghmfker • 14h ago
OXR handles my busted LaTeX papers now, but i'm curious about the retraining part
I’ve been fighting document parsers on math-heavy papers for months. LaTeX equations came out garbled. Tables fell apart. Two-column reading order was wrong just often enough to ruin chunks. Subscripts and chemical notation were basically random. i tried cloud APIs and local tools. Same pattern everywhere: shipped once, frozen. Same journal template, same failure, forever.
I ended up trying OXR from SoMarkAI for the documents that used to fail. Open weights, you run it locally. It handles A3 exam papers, vertical text, and mhchem LaTeX for chemical equations correctly. Two-column reading order finally works. i still route easy stuff through my old pipeline. This is just for the breakage pile.
What got me looking at it at all was reading about their post-training setup. They keep a loop running: sort outputs into correct, wrong, and uncertain, cluster the failure reasons, generate targeted data per cluster, retrain, measure repair rates. The layout model is separate and swappable, which means the recognition loop isn't fighting shifting regions. i haven't built anything like this myself. Curious if anyone has.
when you hit a parser that fails repeatedly on your specific documents, what do you actually do?
Preprocess the hell out of it? Swap to another frozen model and hope? Or has anyone here closed the loop themselves, clustered their own failures, and retrained? The overhead feels massive but so does my current stack of regex hacks. Would love to hear what scale people have tried this at, or if it's always been easier to just work around the errors.
r/deeplearning • u/felixr314 • 16h ago
QMIX in METIS-Core v0.5.0 (example PredatorPreyQMIX)
Enable HLS to view with audio, or disable this notification
r/deeplearning • u/No-Conclusion3720 • 16h 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 • 18h 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
Nombreuses sont les questions que se posent les gens quant au fait d'apprendre encore à coder en 2026.
r/deeplearning • u/YamAffectionate8039 • 2d ago
What about the parallelism transformer enable during training?
r/deeplearning • u/UnitOk6056 • 1d ago
BPreCap v0.4: in 50-layer plain CNNs (no BN, no residuals), a bounded, depth-calibrated activation loses less at 4-bit PTQ than SELU, TAT and tanh baselines – 11 preregistered studies, a CUDA replication, and one falsified hypothesis
galleryFollow-up to my v0.3 post (deep MLPs). The fair objection back then was: MLPs aren't where quantization matters. So v0.4 moves to plain CNNs: 32 and 50 conv layers, no normalization, no residual connections, delta-orthogonal init, CIFAR-10. Weights int8, activations 4-bit per tensor after training (PTQ), and every network is evaluated at its own best of five calibrations. Ten preregistered, hash-frozen studies plus a preregistered replication on other hardware; paired Wilcoxon with Holm.
What came out (image: medians over 12 paired seeds)
- vs SELU and TAT (depth 50, each activation tuned): lower 4-bit test error than SELU (−2.55 pp) and TAT (−13.73 pp), 12/12 seeds each. Cross-layer equalization doesn't close the gap to TAT. In fp32, though, BPreCap is 1.6–3.2 pp worse. The advantage is a smaller quantization cost, not better accuracy.
- Replication: an independent PyTorch/CUDA implementation on an RTX 4070 reproduces both comparisons (−3.09 and −15.65 pp, 12/12). BPreCap and SELU medians are within 0.9 pp of the MLX runs; TAT's 4-bit error is noticeably platform-sensitive.
- Is a bound enough? No. Uncalibrated tanh and two critically initialized tanh networks pay a smaller 4-bit cost (1.1–2.0 vs 4.6 pp), but they barely train at depth 50 and end 13.7–20.1 pp behind.
- Same calibration, different shape: a tanh calibrated with BPreCap's own recipe (zero mean, unit variance, χ1 = 1 + 2/L, similar range) trains well, but pays a larger 4-bit cost (6.5 vs 4.6 pp) and ends 5.2 pp behind.
- Where the difference sits: BPreCap actually rounds ~10 % more coarsely. Splitting the 4-bit error exactly into a clipping and a rounding part puts the difference in clipping: clipping alone perturbs the logits ~19 % less (9/9 seeds). With min/max calibration (almost no clipping) it disappears.
- A hypothesis that didn't survive: I expected the late, steep saturation of the bound to be the reason. A preregistered intervention (earlier knee) passes single clipping errors on more strongly, as predicted, but the total clipping perturbation gets smaller and the 4-bit error doesn't change. So that's not the source, and which part of the shape is remains open.
What it does not show
- One dataset, one architecture family. No BatchNorm/ResNet, no Transformers.
- PTQ only, per-tensor activation scales; no QAT, no rotations.
- Very deep plain CNNs being trainable isn't new (Xiao et al. 2018), and bounding activations for quantization isn't new either. This is a controlled measurement of one form that combines depth calibration with a soft bound, against strong and matched baselines.
- Absolute accuracy is low (roughly 40–43 % fp32 test error at depth 50). It's about very deep plain networks, not SOTA.
Preprint: https://doi.org/10.5281/zenodo.24491869
Code, raw data, preregistrations, frozen hashes: https://github.com/hermi-labs/precap-activation (release v0.4.0)
Critique welcome, especially on the PTQ protocol (best calibration per network) and on what a fair next test with BatchNorm/ResNet should look like. Everything ran on consumer hardware (M1 Pro, one RTX 4070).
r/deeplearning • u/Accomplished_Ear_575 • 1d ago
General and specific advice on deep learning research
Need some solid advice on the following:
- How to learn deep learning (NLP, CV, RL, or anything for that matter) in depth to be able to write the code that does the work
- Agents can definitely write code, but as far as my experience goes, their code written for research is pretty tangled up and not that efficient. So what are the repetitive things that I can use agents for
- Everything right now is about LLMs, but I want to tackle real-world problems like climate change or biology. How can I approach this problem of choosing my trajectory?
- What does research look like at an institution vs lab (like deepmind)?
- What does it take to publish good research that can make a difference or serve as a stepping ground?
- How can I stand out with my papers to get accepted at ICML, CVPR, or NeurIPS?
- Lastly, any other advice, suggestions, or general info
Background: I am currently a third year undergraduate student interning at a national institution (IIT Roorkee, India) as a research intern in computer vision, working on Image Super Resolution (ISR, or SR for short). I have worked on a research paper before this in NLP, and have a paper that has been accepted at a conference. I have found NLP to be a bit bland for my tastes, and have therefore come to work in computer vision for my internship.
r/deeplearning • u/No-Conclusion3720 • 1d ago
Hackers Exploit Critical ScreenConnect Flaw to Hijack MSP Technician PCs Without Warning
A critical authentication bypass in ConnectWise ScreenConnect (CVE-2024-1709, CVSS 10.0) let attackers take full control of MSP technician desktops without credentials or interaction. MSPs are a force-multiplier target: a single compromised technician session typically has privileged access into dozens to hundreds of downstream client environments. Threat actors exploited this in the wild within 48 hours of disclosure.
The deeper problem is structural. When a remote-management tool or an automated workflow runs with elevated privileges, every action it takes carries the trust level of the account it runs under. If the session is hijacked, that full trust transfers to the attacker. The tool itself keeps working exactly as designed. Nothing looks wrong at the tool layer.
This shows up in agentic and automated workflows too, not just RMM software. An agent or script running with MSP-level credentials can touch file systems, install software, exfiltrate configs, and pivot to other hosts — and nothing stops it mid-flight once the credential is valid.
Security teams increasingly talk about 'assume breach' for endpoints. Fewer people talk about what that means for privileged automated processes that have no human reviewing each action they take.
For those of you running MSP-level tooling or agentic workflows with broad system access: how are you actually handling anomalous behavior detection mid-execution? Not at login, but after the session is already authenticated and actions are already running?
r/deeplearning • u/Ok_pettech • 1d ago
Deep Learning with PyTorch Step-by-Step: Running PyTorch on AMD GPUs with ROCm
Getting PyTorch running smoothly on AMD GPUs used to mean fighting driver mismatches and broken wheels. After testing ROCm across multiple setups, I put together a practical guide covering installation, environment checks, and performance tuning for deep learning workloads.
If you are training models or running local inference on Radeon or Instinct hardware, the guide walks through:
- Verifying kernel and ROCm compatibility without guesswork
- Installing matching PyTorch and ROCm builds cleanly
- Catching common hipBLAS and memory allocation snags
- Tuning batch sizes, mixed precision, and data loaders for real throughput gains
Full walkthrough and commands here: https://interconnectd.com/forum/thread/248/pytorch-on-amd-gpus-complete-rocm-setup-tuning-guide/
What AMD GPU are you running, and have you hit any ROCm bottlenecks with your PyTorch models?
r/deeplearning • u/Ok_pettech • 1d ago
What is AI, Machine Learning, and Generative AI? A 2026 Breakdown of the Core Mechanics
interconnectd.comr/deeplearning • u/No-Conclusion3720 • 1d ago
Critical binary-parser Flaw Enables JavaScript Injection via Malicious Parser Definitions
A critical flaw in the binary-parser npm package (CVE disclosed this week) lets an attacker inject arbitrary JavaScript by crafting a malicious parser definition. Any process that loads an attacker-controlled parser spec gets code execution. The package has tens of millions of weekly downloads.
This lands differently for AI systems than for traditional apps. Agents routinely fetch, parse, and act on external data as part of their core loop. A compromised package or a poisoned schema fed through a tool call is not a configuration mistake — it is an execution path the agent is designed to follow. The agent does not distinguish between a legitimate parser definition and one carrying a payload. It processes both.
The blast radius is also different. A human developer hitting this bug executes code once, in one process. An agent hitting it may replicate that action across hundreds of downstream calls before anyone notices.
For teams running agents in production that consume third-party schemas, serialized configs, or external parser definitions: how are you actually handling this category of risk right now? Not in theory — in practice, what does your posture look like?
r/deeplearning • u/Critical-Volume2360 • 2d ago
How do ai companies get data and what do they need?
Just wondering how ai companies get data for training models usually, and what kind of data they need right now the most.
r/deeplearning • u/TreeOfLifev5 • 1d ago
Instead of putting a 70B LLM in the request path, I distilled 8 tiny models
r/deeplearning • u/CognitiveEngineering • 2d ago
The Price of Structure: training-time head masking does not survive matched controls at ImageNet and LLM scale
r/deeplearning • u/Convincing_Convo • 1d ago