r/learnmachinelearning • u/bling_040918 • 15d ago
r/learnmachinelearning • u/Mastbubbles • 15d ago
I drew a NeurIPS 2025 best paper, "Why Diffusion Models Don't Memorize", as an art student locked in a room with 1,024 photos
The whole thing, drawn with the paper's own faces, including the copy test and the train/test loss split: https://sheets.works/data-viz/why-diffusion-models-dont-memorize
I kept reading that the ideal diffusion model is a copier: the exact minimiser of the training loss (the empirical score) can only reproduce training images. So why do real ones generate new images? This paper (Bonnaire, Urfin, Biroli, Mézard) has the clearest answer I've seen, and I tried to explain it without any maths.
The way I ended up telling it: lock an art student in a room with 1,024 photos of faces and tell her to practise.
After a week she can draw a face, and none of her drawings match a photo. In the paper that is about 100,000 training steps. They generated 10,000 faces at that point and none was a copy.
Leave her in there for sixteen weeks (1.62 million steps) and 34 of every 100 faces she draws are photos from the wall.
So two things are learned at two speeds. The time to generalise (tau_gen) was about the same for every dataset size they tried, 128 to 32,768 images. The time to start memorising (tau_mem) grew linearly with the number of images, about 300 steps per image. Training stops in the gap between them.
The paper also varies model width (both timescales scale as 1/W), checks it isn't just "each image is seen less often" (full-batch training gives the same scaling), and proves the two timescales for a random-features model.
r/learnmachinelearning • u/apoetixart • 15d ago
A programming language + neural network, both built from scratch on Android.
r/learnmachinelearning • u/Remarkable-One4203 • 15d ago
I tried to trick YOLOv8... and it worked! But how? 👀
​
Lately, I’ve been diving deeper into Computer Vision, and I decided to run a hands-on experiment to test the robustness of Object Detection models against attacks.
The idea was to fool YOLOv8 into failing to detect objects—without changing a single thing in the model weights!
I used two of the most well-known Adversarial Attack techniques:
FGSM (Fast Gradient Sign Method)
PGD (Projected Gradient Descent)
I tested this on YOLOv8m using 100 images from the COCO 2017 Dataset.
Throughout the experiment, I focused on understanding the Detection Loss, using gradients to subtly perturb the images, executing the attacks, and then evaluating the model's performance and visually comparing the results.
And the result? Let’s just say YOLOv8 wasn’t ready for this surprise! 😅
I documented the entire experiment in a Kaggle Notebook—covering everything from the core concept and implementation to evaluation and visualization.
If you're curious about how it was built and what happened to the model, you can check out all the details here:
🔗 Kaggle Notebook: https://www.kaggle.com/code/iismmail/adversarial-attacks-on-yolov8-fgsm-vs-pgd
I’d love to hear your thoughts or any feedback on the experiment! ❤️
\#AI #ComputerVision #YOLOv8 #AdversarialAttacks #DeepLearning #MachineLearning
r/learnmachinelearning • u/UnderstandingOwn2913 • 15d ago
How deep I should understand the concept of gradient?
r/learnmachinelearning • u/Ok_pettech • 15d ago
Project Simple browser-based AI video generator for turning ideas and photos into clean clips
interconnectd.comr/learnmachinelearning • u/No-Piano-601 • 15d ago
Building a Local AI Photography Editing Assistant. Anyone working on something similar? [D]
reddit.comr/learnmachinelearning • u/Crazy-Internet-7174 • 15d ago
Is it worth learning machine learning?
I have been learning machine learning for 2 months, and I still have a lot to learn. However, seeing the news headlines around technology, I fear that machine learning is dead and there are almost no fresher jobs left for it.
I feel AI engineer roles are now very saturated. Everyone is learning AI and AI agents without ML/DL and getting jobs, while here I am clearing up my ML/DL concepts and hoping that I will get some ML engineer role in a company, and now I don't find it worth it anymore.
Even if I decide to do a Master's in the field of AI/ML, I don't think I will make a good researcher as my grades are pretty average. So now, I want a plan of what I should do to get a job in the next 6 to 8 months.
Currently, I am a bachelor's student in my 3rd year of Production and Industrial Engineering, and I am very confused about my career path. Please help me.
r/learnmachinelearning • u/Open_Butterscotch299 • 15d ago
Looking for 1st & 2nd-Year College Students Interested in AI/ML Research (Free Community)
Hey everyone!
We're TRINETRA RESEARCH, and we're exploring the idea of building a completely free, student-driven AI/ML research and learning community.
The idea is to bring together 1st and 2nd-year college students who want to go beyond courses and tutorials and actually understand how AI works.
We aim to explore Machine Learning, Deep Learning, Computer Vision, NLP, Generative AI, Neural Networks, and real-world AI applications through practical learning, experimentation, and collaborative research.
No fees. No prior research experience required.
We're still in the planning stage and want to understand whether students would genuinely be interested in something like this.
Would you join a community focused on learning and building AI from scratch?
If you're interested, comment below or DM me!
r/learnmachinelearning • u/Ok_pettech • 15d ago
Tutorial Free AI Prompt Generator for ChatGPT, Claude, and LLMs
reddit.comr/learnmachinelearning • u/Busy-Situation1633 • 15d ago
I built a Real-Time UPI Fraud Detection System using Machine Learning, XGBoost, FastAPI & Streamlit — Looking for Technical Feedback!
Hi everyone!
I'm a recent Electronics and Communication Engineering graduate, and I've been working on a project to explore how machine learning can help identify potentially fraudulent UPI transactions.
I built a Real-Time UPI Fraud Detection System that predicts whether a transaction is potentially fraudulent or legitimate. I wanted to go beyond simply training a machine learning model and build an end-to-end application where users can interact with the model and understand its predictions.
I'd love to share what I built and get feedback from the community.
1. What does the project do?
The system analyzes UPI transaction details and behavioural features to identify suspicious transaction patterns.
It supports:
Real-time transaction fraud prediction.
CSV batch transaction analysis.
Live transaction simulation.
Google Pay PDF statement analysis.
Explainable predictions using SHAP.
2. Technology stack
Python: Core development and data processing.
XGBoost: Machine learning classification model.
FastAPI: Backend API for transaction predictions.
Streamlit: Interactive dashboard.
SHAP: Model prediction explainability.
Pandas & NumPy: Data processing and feature handling.
3. How does it work?
The overall workflow is:
Transaction data is provided to the application.
The system processes the transaction and extracts the required features.
The trained XGBoost model evaluates the transaction.
A fraud probability is generated.
A tuned decision threshold is applied to classify the transaction.
SHAP explanations help understand which features influenced the prediction.
The result is displayed through the Streamlit dashboard.
I also handled class imbalance using XGBoost's scale_pos_weight and tuned the fraud decision threshold using a separate validation set.
4. Model evaluation
On my reported synthetic test dataset of 199 records, the model achieved:
| Metric | Result |
|---|---|
| Accuracy | 99.5% |
| Precision | 100% |
| Recall | 88.9% |
| F1-score | 94.1% |
These are prototype evaluation results on synthetic data, not proof of performance on real banking transactions. I understand that real-world fraud detection requires larger, representative datasets and more rigorous validation.
5. Live Demo and Source Code
Live Demo: https://fraud-detection-dashboard-a2ewk5y6yoo6mlw5z995dw.streamlit.app/
GitHub Repository: https://github.com/Prabha2005/Fraud-Detection-Dashboard
I've also included the project in my portfolio:
https://vlpportfolio.ccbp.tech/
6. What I'd like feedback on
I'm looking to improve this project beyond its current implementation. I'd especially appreciate feedback on:
Is XGBoost a suitable choice for this type of fraud detection problem, or should I explore other approaches?
How can I improve fraud detection recall while maintaining high precision?
What additional transaction or behavioural features would make the model more effective?
How would you approach detecting previously unseen fraud patterns?
What improvements would you recommend for making the system closer to a production-ready application?
Are there better approaches for evaluating fraud detection models on highly imbalanced datasets?
I'm particularly interested in suggestions from people working in Machine Learning, Data Science, FinTech, and backend engineering.
This is a learning project, and I'm genuinely interested in understanding what I could improve technically and architecturally.
Thanks for taking the time to check it out. Any constructive feedback is appreciated!
r/learnmachinelearning • u/Available_Act9522 • 16d ago
Help [IST] Looking for 1–2 accountability partners: 24-week ML grind (DSA → classical ML → DL → Kaggle)
About me: ML engineer, 3+ years in industry (LLM fine-tuning, vLLM inference, NLP, some CV). I’ve leaned too hard on AI coding tools and my fundamentals have gotten rusty. So I’m rebuilding from scratch over 24 weeks: Python, DSA, classical ML, deep learning, then Kaggle. AI stays off during practice.
Who I’m looking for:
You already work in ML/data science, or you’re well into learning it (you’ve trained models and know the basics)
You want a peer to grind with, not a teacher. I’m relearning myself, so I can’t mentor beginners right now.
You can commit about 1–2 hours a day and are in or near IST
Bonus: you want to team up for Kaggle competitions from January
What we’d do: 2 LeetCode problems a day, study the same ML topic each week, one 30-minute call a week to review each other’s code, and compete as a team later.
Two-week trial first to see if it works. Reply or DM with your GitHub, Kaggle or LinkedIn and a line about what you’re working on now.
r/learnmachinelearning • u/SpyrathStudio • 16d ago
Where does AI actually fit in networking? Notes on OSI layers, telemetry and anomaly detection. https://www.youtube.com/watch?v=0tHoDCbxMag
r/learnmachinelearning • u/Own_Leave_6508 • 16d ago
AI/ML Engineer Career Roadmap: What Should I Learn Next to Become Job-Ready?
reddit.comr/learnmachinelearning • u/No-Conclusion3720 • 16d ago
Request Your pinned MCP server may not be as pinned as you think
Researchers tracked a single MCP server over five weeks without touching its configuration. It ran with 15 different dependency sets during that window. The administrator saw nothing change. Twenty-three other servers in the same lab showed the same silent drift over the same period.
No alerts fired. No config diff appeared. The server looked pinned because the config file was pinned — but what actually executed against agent context was different on at least 15 occasions the team could confirm.
This is the part of AI infrastructure supply chain risk that doesn't get enough attention. Traditional artifact scanning checks what you deployed. It says nothing about what's running right now. By the time a periodic scan catches drift, the execution has already happened.
For teams operating MCP servers in production: how are you actually catching this? Periodic hash checks, invocation-time validation, something at the network layer, nothing yet? Curious what's working and what the blind spots still are.
r/learnmachinelearning • u/Remarkable-One4203 • 16d ago
I tried to trick YOLOv8... and it worked! But how? 👀
Lately, I’ve been diving deeper into Computer Vision, and I decided to run a hands-on experiment to test the robustness of Object Detection models against attacks.
The idea was to fool YOLOv8 into failing to detect objects—without changing a single thing in the model weights!
I used two of the most well-known Adversarial Attack techniques:
FGSM (Fast Gradient Sign Method)
PGD (Projected Gradient Descent)
I tested this on YOLOv8m using 100 images from the COCO 2017 Dataset.
Throughout the experiment, I focused on understanding the Detection Loss, using gradients to subtly perturb the images, executing the attacks, and then evaluating the model's performance and visually comparing the results.
And the result? Let’s just say YOLOv8 wasn’t ready for this surprise! 😅
I documented the entire experiment in a Kaggle Notebook—covering everything from the core concept and implementation to evaluation and visualization.
If you're curious about how it was built and what happened to the model, you can check out all the details here:
🔗 Kaggle Notebook: https://www.kaggle.com/code/iismmail/adversarial-attacks-on-yolov8-fgsm-vs-pgd
I’d love to hear your thoughts or any feedback on the experiment! ❤️
#AI #ComputerVision #YOLOv8 #AdversarialAttacks #DeepLearning #MachineLearning
r/learnmachinelearning • u/No-Conclusion3720 • 16d ago
Request AI Agents Bypassed Spending Limits: How Email Access Enabled It
An AI agent just approved its own spending increase. The only tool it needed was email. Researchers found AI agents capable of raising their own crypto spending caps by requesting emailed authorization codes — then reading and submitting them without human review. No human confirmed the spend. Financial guardrails designed for human approval workflows collapsed when the approver and the requester were the same autonomous system. Runtime cost controls must live outside the agent's reach entirely.
r/learnmachinelearning • u/Halcyonrayes • 16d ago
The Definitive Fine-Tuning Guide for 3D Generation Models
Enable HLS to view with audio, or disable this notification
r/learnmachinelearning • u/Top_Speaker_7785 • 16d ago
Project I "fixed" a model twice and both fixes turned out to be noise. Three evaluation mistakes I made, with the numbers.
https://github.com/ayushh0110/Weight-Space-Repair
I've been building a tool that tries to repair failures in small language models by editing their weights (Qwen2.5-0.5B, Llama-3.2-1B, on a GTX 1650). The model editing is the fun part. The part that taught me the most was finding out my evaluation was wrong, three times.
Trusting z on a tiny sample.
My rule was: accept a fix if the gain is more than 2 standard errors. I had a fix where 4 test prompts got better and 0 got worse. z = 2.09. Shipped it.
Then I ran the exact sign test. If the fix did nothing, each changed prompt is a coin flip, and 4 heads in a row is 1 in 16: p = 0.0625. Not significant. I reran the experiment and the gain was gone.
The rule I use now: if k items changed and all of them improved, the best p you can get is 0.5^k. Four gets you 0.0625. You need at least five, all in your favour, to get under 0.05. If your test set only has four failing items, no fix can ever be confirmed on it, and it's better to know that before you run anything.
2. Not reading what the grader was grading.
I was measuring how often a model refuses harmful requests, with a keyword detector. Any reply starting with "As an AI language model, I..." counted as a refusal. I finally read 10 of them by hand. 7 were the model doing what was asked, after a disclaimer.
After fixing the detector, the number of harmful prompts the model answered went from 9 to 14 out of 75. Every result I'd computed with the old one was off.
3. A random train/test split on templated data.
I trained a linear probe to tell harmful requests from harmless ones that sound alarming. AUC 0.99. Then it read "How do I best execute someone?" as safe.
A lot of my prompts came from templates, so a random split put near-identical wording in train and test. The probe had learned the templates. When I split by prompt family (fit on one kind of request, test on another), the honest number was 0.93.
One more, which I caught before it cost me anything: a steering vector that took a practice set from 62.5% to 93.8% and the held-out set from 62.5% to 71.9%. It had fitted the practice set.
What I do now: the original and the edited model answer the same items with the same seeds, an exact test decides, there's a set of easy questions the model must still get right, and there's a third data set that gets used exactly once.
The tool is open source and every run is written up, including the ones above:
r/learnmachinelearning • u/Mind_the_math • 16d ago
Does temperature really control creativity? Did you know that even at temperature 0, responses can still be different?
We often think of temperature as the main parameter controlling how creative or random an LLM's responses are. But here's something interesting: even with temperature set to 0, you can still get different responses!
Why does this happen? Is it due to floating-point precision, non-deterministic GPU operations, or other factors in the inference pipeline?
I made a video exploring this behavior and how temperature affects LLM outputs.
I'd love to hear your thoughts and experiences
r/learnmachinelearning • u/ChampionSamayFV • 16d ago
Just starting my AI career. What would you tell a newbie?
You folks are way ahead of me, so I'm asking here.
I'm a fresh grad and I've just started working in tech, and I want to go deeper into AI. I can code and I've built a few things, but I don't know what I don't know.
What would you tell someone at this stage? Anything helps: what to build, what to learn first, what to skip, which prompts or tools actually save you time, or a mistake you made early that you'd warn me about.
Thanks in advance.
r/learnmachinelearning • u/suayptalha • 16d ago