r/learnmachinelearning • • 11d ago

Project I "fixed" a model twice and both fixes turned out to be noise. Three evaluation mistakes I made, with the numbers.

1 Upvotes

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.

  1. 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 • • 11d ago

Does temperature really control creativity? Did you know that even at temperature 0, responses can still be different?

Thumbnail
youtu.be
1 Upvotes

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 • • 12d ago

Project Introducing GRIP-Benchmark-34:

2 Upvotes

🚀 Introducing GRIP-Benchmark-34: A Large-Scale Benchmark for Visual Geometry, Spatial and Physical Reasoning in VLMs

I'm excited to share GRIP-Benchmark-34, an open synthetic benchmark designed to evaluate the visual reasoning capabilities of Vision-Language Models (VLMs).

What's included?

  • 100,000 synthetic images
  • 500,000 image-question pairs
  • 34 sub-benchmarks
  • 9 reasoning families
  • 5 progressive difficulty levels per image
  • Independently validated ground-truth answers

Research areas covered:

  • Geometric and spatial reasoning
  • 2D and 3D visual reasoning
  • Physical and mechanical reasoning
  • Topological and graph reasoning
  • Inductive and analogical reasoning

The benchmark uses programmatic generation, deterministic ground truth and independent validation to support controlled evaluation of VLM capabilities.

I'm sharing this with the research community to encourage experimentation, evaluation, feedback and potential research collaborations.

📊 Dataset: https://huggingface.co/datasets/bilaljawaid980/GRIP-Benchmark

I'd love to hear from researchers working on VLMs, multimodal AI, spatial intelligence and visual reasoning.

Feedback and collaboration are welcome!


r/learnmachinelearning • • 12d ago

💼 Resume/Career Day

1 Upvotes

Welcome to Resume/Career Friday! This weekly thread is dedicated to all things related to job searching, career development, and professional growth.

You can participate by:

  • Sharing your resume for feedback (consider anonymizing personal information)
  • Asking for advice on job applications or interview preparation
  • Discussing career paths and transitions
  • Seeking recommendations for skill development
  • Sharing industry insights or job opportunities

Having dedicated threads helps organize career-related discussions in one place while giving everyone a chance to receive feedback and advice from peers.

Whether you're just starting your career journey, looking to make a change, or hoping to advance in your current field, post your questions and contributions in the comments


r/learnmachinelearning • • 12d ago

things i did in Machine learning as a beginner

31 Upvotes

Data preprocessing and fundamentals

Data Cleaning

Columns transformation

One hot encoding

Outliers

Scikit-learn Pipelines

PCA

(many basic concepts and theories)

Supervised Learning

Linear and Multiple Linear Regression

Lasso and Ridge Regularization

Logistic Regression

One-vs-Rest Logistic Regression

SVM (One-vs-Rest, Soft Margin)

Gradient Descent (Batch, Mini-batch, Stochastic)

Naive Bayes

Decision Trees

KNN

Ensemble Learning

Random Forest

AdaBoost

Gradient Boosting Classifier

Bagging Classifier

XGBoost Regression

Advanced Ensemble Techniques (Blending and Stacking)

Unsupervised Learning

K-Means

DBSCAN

Additional Concepts

Imbalanced Data (Theory)

Hyperparameter Tuning with Optuna (Theory)

So I've already started Deep Learning, and I'm currently learning perceptrons

I'm excited about what's coming next There are so many things I want to explore, understand and build

Day 63 — Machine Learning completed.

Deep Learning begins!!!

cya soon

GitHub: Machine learning algorithms from Scratch

Threads: im.yukiya ( i post many things here so you can ) 😁


r/learnmachinelearning • • 12d ago

DataTalks.Club is launching a free new course on generative media, starts Monday

1 Upvotes

How do you build a production AI system when an agent can launch expensive, slow GPU jobs that often fail and produce large media files?

Generating one image is easy. Generating a thousand, with a known cost per asset, is where things usually break.

That's what we work on in a new free course I'm launching at DataTalksClub: Production AI Agents for Generative Media.

You build one system, a Personalized Media Factory. A brief goes in: a task prompt, a data record, and constraints like format, style, and budget. An agent plans the asset and writes its text. GPU models generate an image plus voice or video. A check regenerates the asset when it isn't good enough. Then you scale from 1 to 1,000+ records, with a cost per asset.

There are four modules over five weeks.

Module 1, Consistent Media Generation on Serverless GPUs. You run image, video, and audio models on serverless GPUs, and measure startup, load, and generation time. Homework 1 is a GPU Media Worker: one asset out, plus the cost per asset and how many assets you need before self hosting beats a per call API.

Module 2, Multi Agent Media Workflows. You give an agent GPU models as tools, and build a planner, generator, and reviewer loop. Homework 2 is a Media Agent: a 10 second ad plus an execution trace.

Module 3, Batch Media Generation at Scale. You fan out work on spot GPUs, handle failures, and report cost per asset. Homework 3 is the Factory Scale Challenge: 200 records over 10 parallel jobs, on a public leaderboard.

Module 4, Evaluation, Observability and Production. You add evals, tracing, an SLO, and a dashboard. You apply this in the capstone: a multimodal agent that uses at least two GPU media models, with evals, tracing, an SLO, a cost report, and proof that a killed run resumes without redoing finished work.

It's for AI/ML and MLOps engineers who want to add image, video, or audio generation to real systems. You need Python, Docker basics, HTTP APIs, and the command line. No diffusion maths required. About 8 to 10 hours a week, for 5 weeks. Lectures are prerecorded, plus a weekly live office hour.

The course is free and the materials are public. The live cohort has shared deadlines, peer review, and the capstone. Applicants get access to GPU compute as part of the course. If you follow along without applying, you need your own GPU access.

We start on Monday, 16 November, at 17:00 CET with a launch stream.

Module 1 runs two weeks, from November 16 to 29, so you can still apply after the start and catch up.

More details here: https://github.com/DataTalksClub/production-ai-agents-for-media-generation


r/learnmachinelearning • • 12d ago

I built haralickt: > 20x faster GPU-accelerated Haralick texture features (GLCM) in PyTorch with identical precision to Mahotas

Thumbnail
reddit.com
0 Upvotes

r/learnmachinelearning • • 12d ago

[D] Practical Tradeoffs Between Sparse Weight Deletion (<0.05% Weights), QLoRA, and Full Fine-Tuning in Post-Training

1 Upvotes

Recent post-training work on Deletion Tuning (arXiv:2611.10866) shows that learning a binary mask over transformer gate projections—zeroing fewer than 0.05% of weights with no other weight modifications—can match full fine-tuning (FFT) across SFT, on-policy distillation, and RL with verifiable rewards, while losing significantly less prior-task accuracy under RL than FFT or LoRA (which dropped up to 5.4 points in the paper's continual learning benchmarks).

When comparing the three post-training paths in practice:

  • Full Fine-Tuning (FFT) -> Updates 100% of weights; high VRAM footprint and higher catastrophic forgetting under RL.
  • QLoRA / PEFT -> Low-rank adapters; fits consumer GPUs easily for domain adaptation, though adapter merging and continual RL updates still show drift.
  • Sparse Weight Deletion (Deletion Tuning) -> Zeroes <0.05% of weights via binary masks; tiny checkpoint delta and lower forgetting, though tooling for quantized inference is still early.

Question for the community: For those running continual fine-tuning or domain adaptation on constrained GPUs, do you see binary mask / weight-pruning post-training replacing LoRA adapters, or does LoRA still win on ecosystem tooling?


r/learnmachinelearning • • 12d ago

🚀 **Introducing GRIP-Benchmark-34: A Large-Scale Benchmark for Visual Geometry, Spatial and Physical Reasoning in VLMs**

1 Upvotes

🚀 Introducing GRIP-Benchmark-34: A Large-Scale Benchmark for Visual Geometry, Spatial and Physical Reasoning in VLMs

I'm excited to share GRIP-Benchmark-34, an open synthetic benchmark designed to evaluate the visual reasoning capabilities of Vision-Language Models (VLMs).

What's included?

  • 100,000 synthetic images
  • 500,000 image-question pairs
  • 34 sub-benchmarks
  • 9 reasoning families
  • 5 progressive difficulty levels per image
  • Independently validated ground-truth answers

Research areas covered:

  • Geometric and spatial reasoning
  • 2D and 3D visual reasoning
  • Physical and mechanical reasoning
  • Topological and graph reasoning
  • Inductive and analogical reasoning

The benchmark uses programmatic generation, deterministic ground truth and independent validation to support controlled evaluation of VLM capabilities.

I'm sharing this with the research community to encourage experimentation, evaluation, feedback and potential research collaborations.

📊 Dataset: https://huggingface.co/datasets/bilaljawaid980/GRIP-Benchmark

I'd love to hear from researchers working on VLMs, multimodal AI, spatial intelligence and visual reasoning.

Feedback and collaboration are welcome!


r/learnmachinelearning • • 12d ago

Tutorial The "end of LLMs" Next-Concept Modeling paper doesn't actually claim that. Here's what it does.

Thumbnail
youtu.be
4 Upvotes

Saw a lot of "LLMs are dead" takes about the Stanford Next-Concept Modeling (NCM) paper, so I read it closely and rebuilt part of it with small experiments.


r/learnmachinelearning • • 12d ago

How do you judge if a quantized model is actually good? KL divergence or task evals?

2 Upvotes

Saw the KQuant release on r/LocalLLaMA claiming up to 3.7x better quants for Qwen models, measured as KL divergence reduction. That's not the same thing as 3.7x better answers, so it got me thinking.

For people running quants locally, what do you actually check before trusting one? KL divergence against the full model, perplexity, or just running your own tasks and seeing where it breaks? And at what point does a lower KL number start showing up in real use?


r/learnmachinelearning • • 12d ago

AI/ML freshers: Are take-home assignments becoming unpaid development work?

Thumbnail reddit.com
0 Upvotes

r/learnmachinelearning • • 12d ago

Help Improving a 4-week subscription churn prediction model using weekly snapshots (Retail / Delivery Membership) | Precision 35%, Recall 52%

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 12d ago

ai engineering: building applications with foundation models pdf

1 Upvotes

ai engineering: building applications with foundation models pdf need free pdf please


r/learnmachinelearning • • 12d ago

Discussion Improving a 4-week subscription churn prediction model using weekly snapshots (Retail / Delivery Membership) | Precision 35%, Recall 52%

Thumbnail reddit.com
0 Upvotes

r/learnmachinelearning • • 12d ago

If you were to start your coding journey from scratch, what would it look like in the era of Al?

Thumbnail reddit.com
0 Upvotes

r/learnmachinelearning • • 13d ago

Question Complete beginner looking to build a solid AI/ML roadmap, which textbooks and foundational papers should I actually start with?

55 Upvotes

I’m looking to start my journey into AI and Machine Learning from scratch and want to avoid getting stuck in "tutorial hell." My goal is to build a strong theoretical foundation while also getting my hands dirty with real implementations, rather than just copying boilerplate code.

Before I dive in, I’d love some advice from people who have already walked this path:

1.Structuring the Roadmap: If you had to start over today, how would you sequence your learning? How much math do I realistically need upfront before writing code?

2.The "Must-Read" Textbook: There are a million recommendations out there. If I pick just one textbook to anchor my early learning, which one gives the best balance of intuition, math, and practical coding?

3.Beginner-Friendly Research Papers: I want to get into the habit of reading papers early, even if it's slow at first. Which foundational or "classic" papers are actually readable for a beginner and give the biggest "aha!" moments?


r/learnmachinelearning • • 13d ago

Career Need help diving into machine learning and ai engineering.

20 Upvotes

Hey guys, I am a second year student BTech CSE, I have been doing DSA and Cp till now but now want to start machine learning and my target role is to become an ai engineer. I want to build good projects for my resume.

But the thing is there's too much content and too many resources out there that I am feeling overwhelmed. Like DSA has a fixed road map. But these development fields appear completely different.

Pls guide me how should I start, like if there's any channel or resources which teach everything at one place or any good courses. If there are multiple resources, pls can you drop it here sequencewise like a roadmap sort of thing.

Also I need help regarding documentation, I have said people say that reading documentation is a must but how do you guys do it like how do you know I need to read this or this one is good. Will appreciate your help on this.

If there's any general guidance you would like to add from your side, I would be grateful.


r/learnmachinelearning • • 12d ago

AI for beginners

Thumbnail reddit.com
0 Upvotes

r/learnmachinelearning • • 12d ago

Request Coding Agent Security for AppSec Leaders: Start With What Agents Can Reach

0 Upvotes

Coding agents access credentials and call external services as a normal part of their workflow. A recent security analysis quantified the exposure: AI coding agents read files, consume secrets, and reach external services as a side effect of doing their job. None of that activity appears in a pull request. Security teams reviewing diffs see only the output. They do not see what the agent accessed or what it sent outbound along the way.

The gap between what an agent does and what a reviewer sees is the actual attack surface. Diff review is the dominant AppSec control for code changes, and it is structurally blind to this class of activity.

For AppSec practitioners who have deployed coding agents: how are you getting visibility into credential use and outbound calls that happen mid-task and never land in a diff?


r/learnmachinelearning • • 12d ago

Tutorial Getting Started with Granite 4.2

1 Upvotes

Getting Started with Granite 4.2

https://debuggercafe.com/getting-started-with-granite-4-2/

LLMs have come a long way since their inception. They are not just chatbots or assistants anymore. The current usage of LLMs tends to be more towards agentic workflows, coding, and seamless terminal workflows. Currently, most of the LLMs that are good at agentic tasks tend to be 20B parameters and above (most frontier models are much larger, reaching more than a trillion parameters). However, the latest IBM Granite 4.2 is trying to tackle this by training 3B, 8B, and 30B models for complex agentic workflows that can run locally. In this article, we will explore the important components of the Granite 4.2 model and use them for tool-calling tasks.


r/learnmachinelearning • • 12d ago

Mimvox: clone your own voice fully locally, then type in ~60 languages or dub a video in it (OmniVoice + RVC, free)

Post image
1 Upvotes

r/learnmachinelearning • • 12d ago

Question I can get an LLM demo working but not entirely sure how to tell if it’s any good

2 Upvotes

I’ve been learning by building a small tool for work that sorts incoming support messages and pulls out a few details so someone doesn’t have to read through everything first. Getting the first version working was fine but now a coworker has asked whether we need the more expensive model for all of it and I don’t have much of an answer beyond the examples I checked looking better. While reading about comparing models I came across Ramp Router and got interested in trying a few through the same API but it also made me realise I haven’t worked out what would count as good enough for this task. Getting the format right is easy to check but missing a detail in a longer message is harder to catch and I don’t want to pick a model based on whichever examples I happened to test. For those who have gone beyond a small demo how did you put together your first useful evaluation set?


r/learnmachinelearning • • 12d ago

Help What portfolio projects actually help land entry-level freelance work?

2 Upvotes

Hey everyone!

I’ve been teaching myself Machine Learning over the last few months, building small projects with what I learn, and looking to take the next step. I have some prior experience making money with AI automation on Upwork, but I genuinely prefer training custom models over standard automation wrappers. Plus, the basic AI automation space is getting pretty saturated with no-code tools.

Right now, my stack includes TensorFlow and Keras, and I'm currently learning PyTorch. I've built some small projects involving CNNs and LSTMs, but I’d love some advice on how to position myself for my first freelance ML job or gig.

I’d really appreciate your insights on a few things:

  1. Niche Libraries / Tools: Are there specific libraries, data pipelines, or deployment tools that clients actually look for in smaller-scale freelance ML?
  2. Portfolio Projects: What specific types of projects actually prove competence to a client? (If you have recommendations for decent TensorFlow/Keras or PyTorch portfolio projects that stand out, I’d love to hear them).
  3. Landing the First Gig: For those of you who freelance in ML, how did you land your first client, especially without a traditional CS degree or corporate ML background?

Any advice, harsh truths, or project ideas would be awesome. Thanks in advance!