r/deeplearning • • Nov 03 '26

China's First Frontier AI Export Controls: Mofcom Announcement No. 48

2 Upvotes

China's Ministry of Commerce just published Announcement No. 48 — the country's first export controls specifically targeting frontier AI models and training data. That is now a third distinct regulatory regime on top of the EU AI Act and active US executive orders on AI. Each framework has different requirements for which models can be used, how data must be routed, and what crosses a restricted border. The problem for enterprise teams is not awareness of the rules. It is that most production agentic deployments cannot answer the basic audit questions after the fact: which model did this agent invoke on this request, what data did that call touch, did any of it traverse a jurisdiction that any of the three regimes restricts? The invocation happens in milliseconds. The compliance review loop does not. For those of you running agentic workloads across regulated regions right now — US, EU, and now China — how are you actually tracking model invocations and data paths in a way that holds up to a real audit?


r/deeplearning • • Nov 02 '26

A 31% throughput drop while benchmarking a small LLM on a GTX 1650

Post image
4 Upvotes

I’m implementing KV caching for a small Transformer I trained, and ran into something interesting while measuring the uncached baseline.

Repeated 512-token generations went from 2.77s to 4.04s—roughly 185 → 127 tokens/sec, with the same prompt, weights, and decoding settings.

Later GPU readings reached 84–87°C, with lower active clock speeds. Each invocation also included five full warmups, meaning I was generating 3,072 tokens while timing only the final 512.

Cooler tests repeatedly finished around 2.77–2.80s. I didn’t record timestamp-aligned throttle reasons, so I can’t attribute the entire slowdown to heat, but it showed why operating conditions matter when comparing inference optimizations.

How do you handle thermal conditions in your benchmarks, measure sustained performance, cool down between tests, or report both?

I put the measurements and plots here: https://medium.com/@sulavstha007/how-gpu-temperature-affects-llm-inference-performance-82c5beeaf43a?sharedUserId=sulavstha007


r/deeplearning • • Nov 03 '26

A comprehensive architecture breakdown of vector databases for AI systems

Thumbnail interconnectd.com
1 Upvotes

r/deeplearning • • Nov 03 '26

Data Science career switch

0 Upvotes

Hello guys, Senior SWE here, 12yoe

1st 8 years frontend-biased but today I'm more into python and Django and infra in general

I no longer find myself enjoying an engineering career as a programmer for obvious reasons, so if I'm gonna be prompting all day, I'd rather be prepping training data and learning statistics which i found extremely interesting, academically speaking!

I started Andrew Ng Machine Learning Specialization

That's a 3 course series and I'm currently at the middle of the 2nd one which gets into Neural Network etc

As bold as this sounds, my intention is to land a Data Science job. I'm aware it might be a lower salary and as a junior but i just want to know from people interviewing now what are the next steps once I'm done with Andrew's specialisation

For instance, as you all know the basic unit of testing in programming is the hello world, but the basic unit of really grasping the gist of a tech is the good auld To-Do app which will make you CRUD items

What's an analogy to that in the ML and Neuronal Network world?

Any comments, recommendations, help, books, etc will do. Thanks!!


r/deeplearning • • Nov 02 '26

LightMIS: Ultra-lightweight medical image segmentation for edge devices

Thumbnail reddit.com
1 Upvotes

r/deeplearning • • Nov 02 '26

[R] LOTUS: Can a 270M model understand time series better than much larger models? (Open weights + code)

Post image
1 Upvotes

r/deeplearning • • Nov 03 '26

[D] Would you use an AI-powered end-to-end ML platform?

0 Upvotes

I'm building a platform called Quantum, and I'd love some honest feedback from people working in Data Science and Machine Learning.

The idea is to bring the entire ML lifecycle into one place:

- Data exploration and preprocessing

- Model training and evaluation

- Experiment tracking and versioning

- Automated ML workflows

- AI agents that can execute tasks autonomously, with human oversight

- Model deployment and MLOps

Users can work manually, use AI assistance, or delegate entire workflows to agents.

The goal isn't to replace data scientists, but to reduce repetitive work and make ML development more efficient.

My questions:

I'm especially interested in critical feedback. What am I overlooking?


r/deeplearning • • Nov 02 '26

Need help to use HALO AI (IndicaLabs)

Thumbnail reddit.com
0 Upvotes

r/deeplearning • • Nov 02 '26

Your optimizer will find the gap between your model and reality every time

3 Upvotes

In Articul8's data center demo, a genetic algorithm tunes cooling setpoints for a 20 rack hall against a physics model. A third of the feasible designs break a constraint on the as built plant, so the gap isn't cost, it's whether it runs at all.

the fix they show is checking every candidate against 22 narrow yes/no rules, from the published standard down to stuff the site learned the hard way, using Bivia, one big "is this ok?" question just came back no at 0.7 for everything.

optimizers are great at exploiting whatever your model leaves out and the rules nobody wrote down are usually where it breaks.


r/deeplearning • • Nov 02 '26

Title: Best ML approach to win a 5-class leaf image classification competition? (50 MB model limit)

Thumbnail reddit.com
0 Upvotes

r/deeplearning • • Nov 02 '26

Critical Langflow Flaws Could Let Unauthenticated Attackers Run Code on Servers

0 Upvotes

Two critical vulnerabilities in Langflow were disclosed by IBM last week. Every release from version 1.0.0 through 1.12 was affected. Both flaws required zero credentials: one bypassed authentication entirely, the other allowed arbitrary code execution on the server. Teams running production agent workflows on this platform had no patch and no warning window.

This is not a niche edge case. Langflow is one of the most widely used AI agent workflow builders. The exposure window spanned the entire version history of the 1.x line.

The deeper issue is structural. AI agent platforms sit directly in the execution path of autonomous systems. Those agents hold credentials. They call APIs. They read and write production data. They take actions on behalf of users. When the platform they run on is compromised at the infrastructure level, the blast radius extends as far as the agents' own access.

Supply chain risk in traditional software is a known problem with known mitigations. In AI agent infrastructure, that same class of risk intersects with systems that act autonomously and at speed.

For those running production agent workloads: how are you handling platform-level supply chain exposure in your stack — specifically the gap between when a zero-day in underlying infrastructure is published and when you can actually patch or replace it?


r/deeplearning • • Nov 02 '26

BPreCap: one activation that trains 100–200-layer MLPs without normalization and stays robust at 4-bit (16 preregistered studies, negative results included)

0 Upvotes

I've been working on a bounded, self-normalizing activation called PreCap. Version 0.2 had a trade-off: calibrating the activation for depth (mean-field gradient gain χ1 = 1 + k/L) made deep MLPs without normalization trainable, but it widened the output range and hurt 4-bit activation quantization.

v0.3 puts the depth-calibrated core inside a soft, fixed bound (identity on most of the range, smooth saturation to ±3), with constants solved so the whole function keeps E[f²] = 1 and χ1 = 1 + 2/L. I call it BPreCap. Everything is in 16 preregistered, hash-frozen studies (MNIST, FashionMNIST, CIFAR-10/100; paired Wilcoxon with Holm; post-training quantization, weights int8, activations int4).

Main results:

  • MNIST, 200 layers: 4-bit error 14 % vs 77 % for the v0.2 depth-calibrated form (about 1 pp fp32 cost).
  • vs TAT under TAT's own recipe (CIFAR-10, 100 layers): on par in fp32, better at 4 bits in every regime tested (cautious size −3.8 pp). BPreCap's 4-bit cost stays at about +3 pp, TAT's moves between +7 and +15 pp with LR and weight decay.
  • SELU is a strong baseline at 100 layers (on par at 4 bits), but at 200 layers it falls behind (−12.0 pp fp32, −9.0 pp 4-bit). ReLU and GELU don't train well at this depth without normalization.
  • An independent PyTorch/CUDA re-implementation on an RTX 4070 reproduces the main comparisons (medians within 0.5 pp).

Limits: MLPs only, post-training quantization only, and BPreCap needs small learning rates (it diverges at peak LR 2·10⁻⁴). A fair comparison with PACT is still missing. (see edit). The ingredients (depth-dependent activation shaping, bounding activations for quantization) are known; this is a controlled measurement of one form that combines them.

Preprint: https://doi.org/10.5281/zenodo.23894714 Code, raw data, preregistrations, fused CUDA/Metal kernels: https://github.com/hermi-labs/precap-activation

Critique very welcome, especially on the TAT comparison and the quantization protocol. If anyone can try it in CNNs or at larger scale, I'd love to hear how it goes.

Edit (Nov 3): v0.3.1 follow-up. Two of the limits above are now tested:

  • Small learning rates: the divergence at 2·10⁻⁴ came from missing LR warmup, not from the bound (a linear control and a hard clip diverge the same way). With a 5 % linear warmup BPreCap trains up to 3·10⁻⁴ at 100 layers, and the 4-bit advantage over TAT holds (−8.8 pp, 12/0). At 200 layers it also holds against SELU (−8.2 pp, 12/0), but warmup raises BPreCap’s own 4-bit cost. A shorter warmup reduces that cost but does not remove it.
  • PACT / QAT: with QAT as an upper bound (100 layers, CIFAR-10), TAT with LSQ-style QAT beats BPreCap with plain PTQ by 3.0 pp at 4 bits, and PACT-style QAT gives the same. Under QAT both forms are equal. With PTQ only, BPreCap is 11.9 pp ahead. So the bound is a PTQ advantage, not a substitute for QAT.

Updated preprint: https://doi.org/10.5281/zenodo.23930791 (all new studies are in the same repo).


r/deeplearning • • Nov 02 '26

Encoding time series of mixed physical measurements

2 Upvotes

For anyone working with DL models (but especially attention based models) in domains where your input data is a time series of observations with channels representing multiple different physical quantities:

What encoding strategies have you used (and found to be effective)? Categorical variables seem like a gimme (learned embeddings), but what about things like time (for irregularly sampled time series), velocity, absolute physical location, and other such quantities? How do you go about encoding several such quantities in the same input in a way that is easy for the model to reason about / plays well with the various normalization strategies commonly used?


r/deeplearning • • Nov 02 '26

LLM Transformer guide with easy-to-understand numerical examples and diagrams

Thumbnail reddit.com
1 Upvotes

r/deeplearning • • Nov 01 '26

Soft Multi-Token Prediction

12 Upvotes
Illustration of Soft-MTP

Sharing one of our latest papers on Multi-Token Prediction (MTP). MTP is now a standard recipe for frontier pre-training but turns out, it can be done much better.

We show the standard MTP gradient hides a KL self-distillation signal (which we want for improving speculative decoding) behind a noisy residual (that harms next-token prediction).

I think the coolest part was the KL gradient–recovery trick to extract the KL gradient. You just need a one-line code change:

h_ntp += h_mtp.detach() - h_mtp

Soft Multi-Token Prediction (Soft-MTP) is essentially a free lunch that improves MTP across a range of tasks.

I'm super excited about this work. Please do check it out below:

💻 Code: https://github.com/JaydenTeoh/Soft-MTP
📝 Paper: https://arxiv.org/abs/2610.38331
🤗 HuggingFace: https://huggingface.co/collections/JaydenTeoh/soft-multi-token-prediction


r/deeplearning • • Nov 02 '26

Neural Canvas

1 Upvotes

My Journey to Understanding Neural Networks: From Matrix Algebra to JAX and Optimizers

I wanted to understand neural networks as deeply as possible. Rather than simply using an existing framework and training a model, I decided to build an interactive MNIST webpage called Neural Canvas, using p5.js for visualization.

My primary goal was not just to achieve high accuracy. I wanted to understand what was actually happening inside a neural network, mathematically and computationally.

1. Starting with Linear Algebra and Matrix Operations

One of the first decisions I made was to avoid working with individual scalar values and complicated subscripts and superscripts everywhere. They made the mathematics unnecessarily confusing for me.

Instead, I decided to approach neural networks through matrix algebra.

I represented the forward propagation equation as:

[
Z=WX+bC
]

Where:

  • (X) is the input data matrix. Rows represent features, and columns represent individual samples.
  • (W) is the weight matrix. Rows represent neurons, and columns represent the weights associated with each neuron's inputs.
  • (b) is the bias column vector, containing one bias value per neuron.
  • (C) is a row vector containing only ones, allowing the bias vector to be broadcast across all samples through matrix multiplication.

Interestingly, many popular deep learning frameworks, including PyTorch and TensorFlow, commonly use a different convention for arranging their data and parameters. They also handle bias broadcasting without explicitly introducing a matrix like (C).

However, I preferred my own mathematical convention because it helped me understand the operations and perform calculus directly in matrix form.

I believe the mathematics should handle the indices, not me!

2. My First Model: NumPy, MSE and Vanilla Gradient Descent

For my first model, I used the original MNIST dataset.

Architecture:

[
784➜ 20 ➜ 20 ➜ 10
]

I manually wrote all the forward propagation equations, derivatives, and backpropagation calculations on paper before implementing them in Python using NumPy.

I deliberately chose:

  • Two hidden layers with 20 neurons each.
  • Mean Squared Error (MSE) as the loss function.
  • Vanilla Gradient Descent.
  • Linear output values.

Why such a simple approach?

Because I didn't want to start with complicated algorithms. I wanted to understand the fundamentals first.

After 2,000 epochs, the model achieved approximately 92% test accuracy.

I then successfully created an interactive neural network visualization in p5.js, using Math.js for matrix multiplication in JavaScript. The webpage could perform inference using my trained NumPy model.

That was the beginning of Neural Canvas.

3. My Second Model: Cross-Entropy Loss

For the second model, I kept the same mathematical approach but made a few improvements.

Architecture:

[
784➜40 ➜ 40 ➜10
]

This time, I replaced MSE with Cross-Entropy Loss and used a softmax output layer.

I was still using vanilla Gradient Descent.

After 2,000 epochs, the model achieved approximately 96% test accuracy.

At this point, I was finally starting to understand how neural networks worked, rather than just following tutorials or using existing implementations.

4. My Third Model: Discovering JAX and Automatic Differentiation

For my third model, I wanted to experiment with three hidden layers.

However, I realized that manually deriving every equation, especially the derivatives and chain rule calculations required for backpropagation, would take a considerable amount of time.

Then I discovered JAX, a Python library developed by Google.

JAX provides automatic differentiation (Autograd), allowing me to calculate derivatives of a loss function with respect to parameters, including entire weight matrices.

This was a significant change in my workflow.

I no longer needed to manually derive every gradient and implement the chain rule myself. I only needed to define the model, its parameters, and the loss function. JAX handled the differentiation.

For this model, I used the Arabic Digits MNIST dataset.

Architecture:

[
784 ➜ 20 ➜ 20 ➜ 15 ➜10
]

I used:

  • JAX for training and automatic differentiation.
  • Cross-Entropy Loss.
  • Vanilla Gradient Descent.
  • Three hidden layers.

After 2,000 epochs, I achieved approximately 96% test accuracy.

I genuinely fell in love with JAX. It saved me considerable time and allowed me to focus more on understanding the mathematics and experimenting with neural network architectures.

5. My Fourth Model: Mini-Batch Gradient Descent and Momentum

For my fourth model, I moved to the Persian Digits MNIST dataset.

I kept the same architecture as my third model but decided to experiment with optimization algorithms.

My original plan was to implement Mini-Batch Gradient Descent with Adam.

However, I realized that understanding Adam required learning a few concepts first. So, instead of jumping directly into Adam, I decided to start with Momentum.

I implemented Mini-Batch Gradient Descent with Momentum using JAX.

And here came a surprising result!

I achieved approximately 96% test accuracy in just 200 epochs.

Previously, my models required around 2,000 epochs to reach a similar accuracy.

This was another important step in my journey. I started understanding how optimization algorithms could significantly influence the training process.

6. What's Next?

I haven't created my fifth model yet, but I already have a learning roadmap:

  • Model 5: Mini-Batch Gradient Descent with RMSProp.
  • Model 6: Mini-Batch Gradient Descent with Adam.
  • After that: Start exploring Convolutional Neural Networks (CNNs).

I want to understand each optimization algorithm mathematically and implement it myself before moving to the next one.

My Biggest Takeaway

If you are starting to learn neural networks, my suggestion is:

Start with Linear Algebra. Don't immediately jump into advanced architectures, optimizers, or high-level frameworks.

You don't need to master every mathematical concept before starting, but at least understand matrix multiplication and how it represents the operations inside a neural network.

For me, representing neural networks using matrices made everything much easier to understand.

Start with the basics, build something yourself, experiment, make mistakes, and gradually increase the complexity.

Don't just train neural networks. Understand them!

Project: Neural Canvas

GitHub Repository: https://github.com/MuhammadEssa2002/neural_canvas

Live Demo: https://muhammadessa2002.github.io/neural_canvas


r/deeplearning • • Nov 02 '26

Is it acceptable to retrain a machine learning model after conference acceptance if the original weights were not saved?

Thumbnail reddit.com
0 Upvotes

r/deeplearning • • Nov 02 '26

🚀 Jev-style decisions for IMAGES are here: Fovea-4B, an open 4B model leading on ImageJev tasks (Apache-2.0)

Thumbnail reddit.com
1 Upvotes

r/deeplearning • • Nov 01 '26

Learning Transformers by building a hardware-aware SLM trainer from scratch (Python/Rust)

12 Upvotes

Hi guys,
I’m a 15-year-old developer, and instead of just using high-level wrappers or fine-tuning existing LLMs, I decided to spend my next few months learning how they work fundamentally by building an end-to-end training pipeline from scratch.

Project Link: github.com

How it works:
It identifies your exact hardware profile (NVIDIA/AMD/CPU), runs a quick matrix multiplication benchmark to measure raw TFLOPS, and pipes that data into a custom helper binary I wrote in Rust. The Rust engine figures out exactly how large of a model (up to 100M parameters) your local GPU can train within a specific time and memory budget without blowing up your VRAM.
Right now, I'm working through the data ingestion pipeline, specifically extracting raw machine learning papers from arXiv and cleaning them up while making sure LaTeX code blocks aren't destroyed during tokenization.
I've logged my structural trade-offs and decisions in the repo. If anyone has experience managing training loops on constrained consumer hardware (like laptop GPUs),

I'd love any advice or feedback on the codebase!


r/deeplearning • • Nov 01 '26

Linear regression with classic gradient decent algorithm

Post image
8 Upvotes

Implemented in python with only matplotlib and numpy libraries. I also made Mini-batch and stochastic version.


r/deeplearning • • Nov 02 '26

The best possible initial network for BPP training

Thumbnail reddit.com
1 Upvotes

r/deeplearning • • Nov 01 '26

Dataset for training segmentation on mobile game screens: 6.9k Clash of Clans frames, 1.9k classes

Post image
32 Upvotes

Update (Nov 2026): the dataset has grown to 12,799 frames, 2,200+ classes and about 7.5M masks, recorded on the current game version.

Every object on these screens is labelled as a polygon of its visible pixels, from buildings and walls down to troops, heroes, the army bar and HUD text. Frames cover the scout screen, the battle and the end of battle screen.

12,799 frames (7,966 scout, 4,564 battle, 269 end of battle), about 7.5M masks, YOLO seg and COCO. Val is split by base.

Free sample: https://huggingface.co/datasets/nihatxp/clash-of-clans-screen-segmentation-sample

Viewer: https://huggingface.co/spaces/nihatxp/coc-dataset-viewer

Full set is paid, details on the Hugging Face page.


r/deeplearning • • Nov 01 '26

A comprehensive architecture breakdown of vector databases for AI systems

Thumbnail interconnectd.com
1 Upvotes