r/deeplearning • u/Primordial_Gamers • 51m ago
r/deeplearning • u/VeeriQ • 1d ago
IIT Bombay โ Machine Learning End-Semester Exam Paper
gallerySharing an IIT Bombay Machine Learning end-semester exam paper for anyone interested in testing their ML knowledge.
Covers topics like SVM, clustering, t-SNE, decision trees, gradient descent, PCA, ensemble learning, and neural networks.
Some interesting conceptual and mathematical questions in here.
How many of these could you solve without looking up the concepts?
r/deeplearning • u/Regular-Advice-6469 • 5h ago
I tried to prevent catastrophic forgetting in neural networks, here's what went wrong
I've been working on a deep learning research project called Predictive Selective Plasticity PSP, the original idea was pretty simple what if a neural network could recognize when learning something new might damage what it had already learned, and adjust its updates before that happened? I thought I could build something around that idea well, things didn't exactly go to plan I started with a simple MNIST experiment, two tasks, a small MLP, and the usual sequential training setup, I trained it on digits 0 and 1, then moved on to 2 and 3, there was some forgetting, but honestly, not much, it wasn't enough to make an interesting case, so I increased it to five tasks, splitting the ten digits into pairs, that changed things quite a bit, the network started forgetting earlier tasks much more severely, on average, task A lost around 26 percentage points of accuracy, and Task B lost around 31, the later tasks were affected much less, I also noticed that the results varied quite a lot between random seeds, at that point, I wanted to understand what was happening inside the network, not just look at the final accuracy, I started looking at gradient conflict and representation drift, my thinking was that if updates for a new task were conflicting with the gradients of an old task, that might give me some warning that forgetting was coming but it wasn't that straightforward, there were situations where an old task suffered a huge accuracy drop even when the measured gradient conflict was almost zero, so relying on one gradient measurement clearly wasn't enough, representation drift looked more interesting in some of the experiments, but changing internal representations doesn't necessarily mean the network has forgotten its previous knowledge, I then tried to turn these signals into a forgetting predictor
r/deeplearning • u/ThoughtfulVoyager8 • 5h ago
Financial Pandit, Part 2 โ What happens after you upload a bank statement?
reddit.comr/deeplearning • u/Logical_Respect_2381 • 6h ago
Mixture of Experts, token by token โ a visual walkthrough
reddit.comr/deeplearning • u/OnlyProggingForFun • 1d ago
8 types of attention inside modern LLMs
8 types of attention inside modern LLMs.
Attention decides which tokens each token can look at.
Change that pattern, and you change the cost, the memory, and how much context a model can handle.
In the grids, each row is a token, and the colored cells are the tokens it can see.
- Full causal
Each token attends to itself and every token before it, never ahead. Compute grows with the square of the sequence length. - Sliding window
Each token only attends to the last few tokens. Stacked layers still pass information further. The first Mistral 7B used a 4,096-token window. - Sparse (strided)
Each token attends to a few recent tokens plus every k-th earlier token. The Sparse Transformer used this to handle much longer sequences. - Global + local
Most tokens only see their neighbors, while a few global tokens see everything and are seen by everything. Longformer uses this for long documents. - Multi-head (MHA)
Several heads run attention in parallel, each with its own queries, keys and values, so each one can learn a different pattern. - Multi-query (MQA)
All query heads share one key-value head. The KV cache shrinks a lot and decoding gets faster, with some loss in quality. - Grouped-query (GQA)
Query heads are split into groups, and each group shares one key-value head. Quality stays close to MHA at speed close to MQA, which is why Llama 3 and Mistral use it. - Cross-attention
Queries come from one sequence, keys and values from another. A translation decoder reads the encoder's output this way.
1 to 4 change which tokens can see each other. 5 to 7 change how many key-value heads you store. 8 connects two different inputs.
Follow me to learn more about AI engineering.

r/deeplearning • u/gouzz100 • 19h ago
๐จ๐ญ SwissAI-Labs โ Two Swiss-developed industrial AI projects focused on on-device intelligence, offline-first architecture, enterprise productivity and digital sovereignty.
๐จ๐ญ SwissAI-Labs โ Industrial Artificial Intelligence & Digital Sovereignty
I'm independently developing two complementary industrial AI solutions in Switzerland, with a strong focus on local intelligence, data confidentiality, industrial productivity and technological independence.
1. Nexus Edge AI โ Embedded Industrial Intelligence
A mobile application designed to bring artificial intelligence directly to industrial field operations.
On-device multimodal AI with Gemini Nano.
Native Android development with Kotlin.
Offline-first architecture.
Intelligent voice capture and AI-assisted text correction.
Industrial maintenance and intervention management.
AI-assisted technical reporting.
Local SQLite data storage.
Controlled synchronization with enterprise infrastructure.
Privacy-oriented architecture and secure communications.
The application is already developed and undergoing field testing.
Four technical documents have been prepared in English and French, representing 86 pages of documentation covering software engineering, cybersecurity, embedded AI, database architecture, communication protocols and performance targets.
๐ GitHub: https://github.com/SwissAI-Labs/Nexus-Edge-IA
2. Nexus AI โ Industrial Enterprise AI Platform
A modular enterprise AI platform currently under development, designed to integrate artificial intelligence into industrial workflows while prioritizing local infrastructure and data sovereignty.
Local multimodal AI architecture.
Specialized AI agents for industrial tasks.
Intelligent document processing.
Industrial data analysis and SQL pipelines.
Production performance and KPI analysis.
Industrial delay cost analysis.
Engineering and technical assistance.
Modular architecture adapted to different industrial professions.
I'm currently evaluating different AI models according to the specific requirements of each industrial profession, rather than relying on a single general-purpose model.
๐ GitHub: https://github.com/SwissAI-Labs/Nexus-IA
The vision behind SwissAI-Labs
Artificial intelligence should enhance human expertise, not replace it. Industrial companies should be able to benefit from AI without systematically transferring sensitive information to external cloud providers.
These two complementary projects explore a more sovereign, decentralized and privacy-oriented approach to industrial artificial intelligence.
๐จ๐ญ Designed and developed in Switzerland.
I'm interested in technical feedback from software developers, AI engineers, cybersecurity specialists and industrial professionals.
GitHub profile: https://github.com/SwissAI-Labs
#EdgeAI #LocalAI #Industry40 #IndustrialAI #OfflineFirst #GeminiNano #DataSovereignty #Cybersecurity #SwissInnovation
r/deeplearning • u/Weird-Drawer-805 • 18h ago
MNIST training time optimization, please help
reddit.comr/deeplearning • u/No-Conclusion3720 • 21h ago
You watch what goes into the agent; the data leaves on the way out
We ran a two-month review of agent security incidents across our environment and two of them shared the same pattern: the threat wasn't in what the agent received, it was in what it sent back out.
In the first case, the agent embedded sensitive internal data inside a legitimately formatted response โ the kind that would sail through any input filter because input filters weren't looking at outputs. In the second, the agent was operating under a service account with broad internal trust, and it used that trust to move data to an external destination as part of a routine-looking workflow step.
Both incidents cleared every inbound check. The data was gone before anyone realized the inspection surface was one-directional.
This feels like a structural blind spot in how most teams are deploying agents right now โ the entire security stack is oriented toward what comes in, while agent outputs route to APIs, storage, downstream services, and external endpoints with far less scrutiny.
For those of you running agents in production or reviewing incidents like these: where are you actually watching the outbound side? Is your current setup inspecting agent outputs and their destinations the same way it inspects inputs, or is that still a gap?
r/deeplearning • u/No-Conclusion3720 • 1d ago
Your coding agent trusts the repo, and the repo is the attack
Coding agents inherit trust from whatever context they're given. That includes the repo.
In a two-month incident review, we saw this pattern twice: malicious instructions embedded in a codebase or dependency coax a coding agent into executing an action the developer never sanctioned. The agent reads the content, treats it as legitimate context, and acts โ committing code, triggering a deploy, or exfiltrating data. The model isn't malfunctioning. It's doing exactly what it was trained to do with the input it received.
The attack surface is quietly large. Any file the agent reads during a task โ a README, a config, a third-party module, an inline comment โ is a potential injection point. The agent has no way to distinguish 'this is a legitimate instruction from a maintainer' from 'this was planted by someone who got a commit into this dependency.'
Two confirmed incidents in sixty days is a small sample, but it's also two more than most teams are tracking, because most toolchains have no visibility into what an agent actually did versus what a developer intended.
For those running coding agents in production or CI environments: how are you handling the boundary between what the agent is allowed to read and what it's allowed to act on? Is the control at the prompt level, the tool level, somewhere else, or not yet solved?
r/deeplearning • u/Managerovel • 22h ago
Brain activity might be the next modality. Sabiโs Brain LLM bolts a brain model onto an LLM the way vision models bolted on an image encoder
r/deeplearning • u/infinitylogesh • 1d ago
Tempora-1: An open-weight 27B model that rivals frontier VLMs in temporal video segmentation at $0.10/hour of video
r/deeplearning • u/fsn007 • 1d ago
I've been working on sparse attention and managed to cut prefill time from 155s to 37s at Inkling-2-Mini 660K context. Would love some independent testing.
Hey everyone,
I'm an independent researcher working on LLM inference. I've been experimenting with a simple question: do we really need to compute attention over every previous token during prefill?
After quite a few failed experiments, I ended up with a method I call SculptAttention.
Here are some of the results I got on a single H200:
- Qwen3.8-27B at 524K: 1.91x faster prefill.
- Inkling-2-Mini at 660K: up to 4.27x faster, going from 155s to around 37s.
- Llama-3.1-8B at 128K: 1.40x median speedup.
On Qwen at 524K, the sparse attention rows read only 9.1% of the causal keys.
The interesting part for me is that I'm using the same settings across all three models. No training, no changes to the model weights, and no custom attention kernel.
There are limitations, of course. Short contexts can actually be slower, prefix caching isn't supported yet, and some retrieval tasks still suffer. I wouldn't call it lossless.
My main limitation right now is GPU access. I'd really like to see how this behaves on other models, different hardware, and real-world workloads rather than just benchmarks.
I've put the code and experimental results on GitHub, along with a preprint explaining the method and the math behind it.
GitHub: https://github.com/fsn007fsn007/sculptattention
Paper: https://doi.org/10.5281/zenodo.24794082
If anyone wants to experiment with it, I'd be very interested in seeing your results, including the bad ones.
Also, if you have any suggestions on what models or workloads I should test next, I'd appreciate them.
r/deeplearning • u/learntoexplore21 • 1d ago
Looking for Recommendations: Best Open-Source Face Recognition Models for Commercial Use (Accuracy + Licensing)
Hi everyone!
I'm currently evaluating open-source face recognition models for a commercial application and would appreciate recommendations from people who have experience deploying face recognition systems in production.
I've experimented with several face recognition models. While some deliver good accuracy, I've found that their licensing terms or training datasets may not permit commercial use.
After researching commercially usable alternatives, I've shortlisted AdaFace and SFace as potential candidates. However, I'm still exploring other options.
I'd appreciate your insights on the following:
1. Model recommendations
- What are the best open-source face recognition models currently available for commercial applications?
- How do AdaFace, SFace, ArcFace, and other alternatives compare in terms of accuracy and real-world performance?
- Are there any models with permissive commercial licenses that you would recommend?
2. Improving model accuracy
- What approaches would you recommend to improve recognition accuracy after selecting a pretrained model?
- Is fine-tuning on a domain-specific dataset worth considering?
- What techniques have worked well for handling variations in lighting, pose, age, image quality, and facial expressions?
3. Dataset licensing and legality
- Which face recognition datasets can legally be used for commercial training and fine-tuning?
- I've come across MS1MV2, but I'm concerned about its licensing and commercial usage restrictions.
- Are there commercially usable alternatives with sufficiently large and diverse datasets?
4. Production experience
- Which models have you successfully deployed in real-world commercial applications?
- What would you choose today if you were building a face recognition system from scratch?
I'm particularly interested in commercial licensing, recognition accuracy, inference performance, and production reliability, rather than just benchmark results.
Any recommendations, practical experiences, research papers, or GitHub repositories would be greatly appreciated.
Thanks in advance!
r/deeplearning • u/LuvRithm • 1d ago
I trained a 178M ConvNeXt Tiny from scratch on Tiny ImageNet with a single 4060 and tracked every optimizer change
Wanted to see how far a modern ConvNeXt could go on consumer hardware without any pretrained weights. Used the 200-class Tiny-ImageNet subset so a full run would finish in roughly 11 days on the 8 GB card. Started with the standard AdamW + cosine schedule but kept hitting plateaus around epoch 65, so I tried switching to Lion at 3e-4 with 10% warmup and gradient clipping at 0.8. The switch gave a consistent +2.1% top-1 without any other changes.
Also logged every single hyperparameter and random seed in a simple JSON file so I could exactly replay or continue runs later. Final validation accuracy reached 68.7% with no test-time augmentation. Biggest surprise was that removing the layer-scale parameters entirely was neutral on this dataset but cut peak memory by ~300 MB.
Everything is open: training script, full JSON run history, and final weights (Apache 2.0). The repo also contains the exact environment file I used. Curious whether anyone else has done similar small-scale ConvNeXt runs and what small tweaks actually moved accuracy for them.
https://github.com/anon-convnext/convnext-tiny-imagenet
https://huggingface.co/anon-convnext/convnext-tiny-tinyimagenet
r/deeplearning • u/luka0x12 • 2d ago
I trained a 326M language model from scratch on one 3060 Ti
i wanted to train a model from random weights on the card i already had. Lyra ended up at 326M params. it took about a week to get through 6.4B tokens on my 8 GB 3060 Ti, then i did a separate instruction-tuning run on about 78k examples.
my dumbest mistake was resuming from the best checkpoint. it only saved when validation improved, so a restart sent me back 20k steps. now i save the latest checkpoint separately and resume from that. i wrote up that bug and the others in the architecture walkthrough.
Lyra itself is still kinda dumb. it can answer a simple question and then make up a date. i built it to learn the whole pipeline and might keep tinkering. the data prep and trainer are open source (Apache 2.0), so you can retrain it. both checkpoints are open weights under CC BY-NC 4.0 for noncommercial use.
base weights ยท instruct weights ยท training code on GitHub ยท architecture walkthrough
r/deeplearning • u/CalViquez • 1d ago
I trained a 95M parameter EfficientViT from scratch on Tiny-ImageNet with a single 4060 and logged every ablation
Wanted to see what a modern efficient vision transformer could do on consumer hardware without any pretrained weights. Used the 200-class Tiny-ImageNet subset so the full run finished in about 8 days on the 8 GB card. Started with the usual AdamW + cosine schedule but plateaued around epoch 60, so switched to Lion at 2e-4 with 12% warmup and added a light stochastic depth schedule. The switch alone gave +2.8% top-1 with no other changes.
Tracked every hyperparameter, random seed, and validation metric after each epoch in a plain JSON file so runs could be replayed exactly. Final validation accuracy reached 67.4% with no test-time augmentation. Removing the token downsampling entirely was neutral on accuracy but saved ~220 MB peak memory.
Everything is open: training script, full JSON history, and final weights (Apache 2.0). Repo also includes the exact environment spec. Curious if anyone else has run small EfficientViTs at this scale and what minimal tweaks actually moved the needle for them.
https://github.com/anon-evit/efficientvit-tiny-imagenet
https://huggingface.co/anon-evit/efficientvit-tiny-tinyimagenet
r/deeplearning • u/chatminuet • 1d ago
Dec 10 - AI, ML and Computer Vision Meetup
Join us on Dec 10 for the AI, ML and Computer Vision virtual Meetup! Register for the Zoom.
Talks will include:
- Your mAP is fine. Your slices are not. Finding the images that actually matter - Amandeep Jiddewar at Pinterest
- Production AI Agents: Tool Use, Evaluation, Guardrails and Observability - Akshay Talathi at Goldman Sachs
- From Virtual Worlds to Physical AI: Building Simulation Pipelines That Survive the Real World - Arturo Morales Rangel at Binary Core
- Prompting Video-Language Models in Production: Lessons from Enterprise Video Tagging and Evaluation - Yash Gugale at TwelveLabs
- Giving Physical AI a Voice with Deepgram - Dana Sacco at Deepgram
r/deeplearning • u/readingbetweenstars • 1d ago
Why India couldnt able to make a AI competing product
I recently watched a IIT Bombay and IIIT mid-semester machine learning paper, and they are of good level. I mean, mathematics is used, but I have a question like if they are teaching machine learning at a good level in India, still we don't have any AI competing product in the world that even matches US or China. So what could be the reason behind this?
r/deeplearning • u/JinxCouturez • 1d ago
I trained a 142M ConvMixer from scratch on Tiny-ImageNet with a single 4060 and tracked every hyperparameter in JSON
Wanted to test how far a plain ConvMixer could go without pretrained weights or modern tricks on consumer hardware. Used the 200-class Tiny-ImageNet so the full run stayed under 9 days on the 8 GB card. Started with the usual AdamW + cosine schedule but kept stalling around epoch 50, so switched to a lower peak LR with 8% warmup and added a simple exponential moving average on the weights. That single change lifted top-1 by 2.4 points with nothing else altered.
Logged the full config, every random seed, and validation metrics after each epoch in a minimal JSON file so runs could be replayed exact. Ended at 64.9% validation accuracy with no test-time augmentation. Removing the patch overlap entirely was neutral for accuracy but freed another 250 MB at peak.
All code, the exact JSON history, and final weights are released under Apache 2.0. Also dropped the environment spec. Curious if anyone else has run small ConvMixers at this scale and what minimal changes actually helped.
r/deeplearning • u/CeaseEn3mANogotation • 1d ago
Seeking critical advice on improving a 3D U-Net for CT segmentation and anatomical reconstruction
reddit.comr/deeplearning • u/sovit-123 • 1d ago
[Tutorial] Audio Classification with BEST-RQ-2
debuggercafe.comAudio classification models are the silent gates in a lot of edge and handheld devices nowadays. Starting from wake word recognition in smartphones to predictive maintenance of machines by recognizing sounds that might lead to faults, audio classification models are more prominent than we think. In this article, we will try to tackle such a simple use case of audio classification with the BEST-RQ-2 model. Along with that, we will also cover the paper and model architecture briefly.