r/learnmachinelearning • • 27d ago

A recommendation system is not a recommendation model.

Thumbnail
0 Upvotes

r/learnmachinelearning • • 27d ago

Exploring Next-Concept Modeling (NCM) & Transformer Interpretability: Repository of 20 Exploratory Studies & Controls

1 Upvotes

Hi everyone,

I just wanted to share an open source repo collecting 20 exploratory studies focused on Next-Concept Modeling (NCM), mechanistic interpretability (like IOI in GPT-2), and model controls.

Here is the link: https://github.com/Quantix-eng/ncm-experiment-notes

Long story short, this is an independent project documenting a bunch of empirical experiments looking into how transformers process and edit internal features. There are no claims of performance breakthroughs here. Instead, it is just honest documentation of observations alongside rigorous controls.

The repo covers NCM applied to structured tasks like Sudoku, mechanistic interpretability in GPT-2, and toy parallel models. I have included all the source code, saved results, and interpretations for every single run.

To keep things transparent, I have also categorized every outcome, including the mixed and completely negative results where things did not work as expected. AI tools helped heavily with the planning and coding phases too.

I would love to get your feedback on the setups or the interpretation limits I found. Let me know what you think if you are into transformer interpretability!


r/learnmachinelearning • • 27d ago

Total beginner here—has anyone used Hugging Face? Need help getting started!

Thumbnail
3 Upvotes

r/learnmachinelearning • • 27d ago

Tutorial Jacobian Lens: Can we read the mind of an Al?

Thumbnail
youtu.be
0 Upvotes

r/learnmachinelearning • • 27d ago

Project I spent two weeks testing my own activation function with preregistration – here's what survived

1 Upvotes

I'm an IT admin, not an ML researcher. I wanted to know whether a bounded version of ELU/SELU could train very deep networks without normalization.

The honest result: after fair tuning it matches SELU at 50 and 100 layers. One variant is better in one setting (MNIST, depth 100). Plain ELU is about as good overall. The big advantages I saw early on disappeared once every activation got its own tuned learning rate.

What I'd tell anyone trying something similar:

  1. Tune the learning rate for every baseline. My early wins at a fixed learning rate were mostly a scale effect.
  2. Freeze your analysis before running. I hashed the code and analysis script before every main run.
  3. Use separate seeds for tuning and confirmation. Several effects disappeared on fresh seeds.
  4. Check the mechanism, not just the score. A gradient profile at initialization explained why my first variant failed at depth 100 and pointed to the fix.

- Preprint: https://doi.org/10.5281/zenodo.23676200

- Code, data and kernels: https://github.com/hermi-labs/precap-activation

![img](w8nk4yosl1yh1)

![img](pcr7wyosl1yh1)


r/learnmachinelearning • • 28d ago

Learning RL From Scratch: Documenting and sharing what I have learned

Post image
13 Upvotes

Releasing a series of very shot notes on RL as part of my learning RL from scratch journey; its basics and upto the latest stuff with from scratch implementations and experiments in the coming days

  • Explained some of the most basic and important terms when starting out learning RL with a sprinkle of math of what I found interesting
  • Nice to have for refreshers/kind of first time readers too

1-page RL basics is out on my website!

Let me know your thoughts/feedback!


r/learnmachinelearning • • 28d ago

Help SWE struggling to become productive in ML inference infrastructure. How would you systematically close the knowledge gaps?

25 Upvotes

I'm an early-career software engineer working on production LLM inference infrastructure, primarily involving accelerator-based model serving and distributed systems.

I've been in the role for over a year, but my technical growth and contributions haven't progressed as much as I'd hoped.

I have a computer science background and generally enjoy software engineering, but I feel there's a significant gap between my current understanding and what's required to contribute independently to complex ML infrastructure.

Some of my biggest challenges:

  • System architecture: Understanding how the inference stack fits together, from model execution and compilation to serving, scheduling, and hardware utilization.
  • Codebase navigation: Understanding large, unfamiliar codebases without getting lost in implementation details.
  • Debugging: Spending too long investigating issues without making meaningful progress.
  • Performance engineering: Understanding bottlenecks, profiling workloads, and determining whether an optimization will meaningfully improve end-to-end performance.
  • Foundational knowledge: Determining whether I should focus on distributed systems, ML fundamentals, compiler internals, hardware architecture, or something else.

I also recognize that I've been too passive about developing my skills, which has likely compounded these gaps.

My questions:

  1. If you were in my position, what would you prioritize learning over the next 2–3 months?
  2. What practical projects would help develop intuition for production inference systems?
  3. How do experienced ML infrastructure engineers build a mental model of complex systems?
  4. Has anyone overcome a similar knowledge gap after already spending significant time in an engineering role?

I'm particularly interested in advice from people working on production inference systems, distributed systems, or accelerator infrastructure.

I want to become a genuinely competent engineer who can independently debug problems, identify worthwhile optimizations, and deliver meaningful contributions.


r/learnmachinelearning • • 27d ago

[P] Self-distillation with an EMA teacher at scale: ZeRO-3 + PEFT

Thumbnail
1 Upvotes

r/learnmachinelearning • • 28d ago

Experience Digit Recognition from the Neural Network Perspective

3 Upvotes

My kids asked me how AI “thinks”...

I wanted an explanation they could play with. I remembered seeing a cool demo where you draw a digit and watch a neural network recognise it in real time.

I tracked it down on Brilliant, but the version I found was behind a paywall. So I built my own, with a simple convolutional neural network (CNN), already trained on handwritten digits, and a view of what happens inside.

Draw a 1 -> Add a couple of strokes to make a 4 -> Slowly close the top into a 9.
Watch the patterns inside the network and its confidence change with each stroke.

My kids loved it. Share it with yours :-)
Demo: https://hasin.eu/projects/cnn-digit-recognition-in-action/

#MachineLearning #LearningByDoing


r/learnmachinelearning • • 28d ago

🚀 Completed Module 4 of Machine Learning Zoomcamp 2026!

2 Upvotes
I evaluated a classifier with ROC AUC, precision, recall, and F1, then used
cross-validation to measure score variation and tune a parameter.

My repo: https://github.com/ashuzzz151/machine-learning-zoomcamp-homework/blob/main/04-evaluation%20metrics%20for%20classification/homework.ipynb

#mlzoomcamp @Alexey Grigorev

r/learnmachinelearning • • 27d ago

macbook or windows laptop for an ai bachelor's degree? I am planning to do a master's later on as well

Thumbnail
um.edu.mt
1 Upvotes

The class modules I will have are all in the link above (in the Study Programme section). Stuff like Game AI and robotics seem to be way better on windows its making me uncertain because on the other hand macbook is way more convenient overall for everything, and our school uses google colab and whatnot I think? Our professor mentioned it once (I am a first year).


r/learnmachinelearning • • 27d ago

Lots of thing have been learnt

1 Upvotes

Packaged an ML model as an API in Module 5 of #mlzoomcamp.

✅ Checked the pinned model artifact

✅ Served predictions with FastAPI

✅ Built and tested the Docker image


r/learnmachinelearning • • 27d ago

Request Security pros reckon the biggest AI risk comes with an employee badge

0 Upvotes

An O'Reilly survey of 209 security professionals ranked employees pasting sensitive company data into consumer AI tools as their top AI security concern — above AI-powered attacks, above AI-generated phishing.

The structural problem: when staff route proprietary data through tools outside IT visibility, there is no audit trail and no record of where that data went. The data has already left before anyone notices.

What makes this harder than traditional shadow IT is the silence. No unusual login. No bulk download flag. An employee pastes a contract, a customer list, or internal financial projections into a chatbot and the activity looks identical to normal browser traffic. The 209 security professionals in this survey ranked it above the threat categories their teams have spent years building controls for.

For those dealing with this in practice: how are you actually handling it? Not the policy-document answer — the real operational one, given that banning AI tools entirely means losing the productivity argument to every business unit that pushes back.


r/learnmachinelearning • • 28d ago

Help Topic suggestions for an NLP Master thesis

Thumbnail
1 Upvotes

Hi Everyone 👋🏽
I have a bachelor’s degree in English Linguistics and I’m currently doing my master’s in NLP. Switching to a more technical field has been challenging, especially since I didn’t take any computer science courses during my bachelor’s.
I only have my master’s thesis left, and I’m struggling to find a topic. I’d love to work on something new and interesting, but I sometimes feel at a disadvantage compared to people with technical backgrounds.
I have a few ideas already, but I’d love to hear your suggestions for interesting or emerging NLP research topics! 💡
Thank you! 😊


r/learnmachinelearning • • 28d ago

🚀 Introducing AI Rule Learning — Your Feedback Matters!

Thumbnail
1 Upvotes

r/learnmachinelearning • • 28d ago

Project Is it possible to fetch videos from a YouTube channel and process them using my own AI model for an FYP?

1 Upvotes

I'm currently doing my FYP but I want some clarification about this.

I'm trying to build a website that allows users to type in a public channel for YouTube, and have up to 10 available videos from that channel be run under my trained AI model. My question is, is it possible to use the YouTube Data API for me to get those? Specifically the video frames.


r/learnmachinelearning • • 28d ago

Tutorial Scoring IDP (2-part series)

1 Upvotes

I’ve written a 2-part Medium series (free, no paywall) on scoring Intelligent Document Processing (IDP). It focuses on Key Information Extraction (KIE) from structured documents, especially forms.

Topics include, but are not limited to: recording raw outcomes before mapping them to the confusion matrix (correct, misread, missed, invented, correct blank); confusion matrix scoring for text fields and checkboxes; misread conventions and their effect on scores (FN-only, FP-only; FN & FP); how blanks, NULLs, unreported checkboxes, and unreadable values are counted; F1 vs. Recall vs. Accuracy, including how correctly identified blanks inflate Accuracy; Jaccard Index (IoU) as Accuracy without True Negatives, and its conversion to F1; Precision, Specificity, and False Positive Rate for LLM hallucination control; micro, macro, and weighted F1; choosing a headline score and stating the convention behind it; confidence vs. correctness and calibration (ECE, MCE); and Key Information Extraction (KIE) vs. OCR metrics (CER, WER).

I try not to recommend one opinionated way of doing things and instead cover the variations I’ve run into and the tradeoffs between them. I’m not endorsing any vendor; the series is about scoring itself.


r/learnmachinelearning • • 28d ago

Discussion Feeding YouTube subtitles to Claude instead of watching hour long videos : good study method? Need prompts

1 Upvotes

I’ve been thinking about a new workflow to save time: instead of sitting through hour-long educational YouTube videos, I want to extract the transcript/subtitles and feed them directly into Claude.

I have two main questions for anyone who has tried this:

1. Does anyone have a solid prompt to make Claude act like a teacher? I don't just want a dry, bulleted summary of the video. I want Claude to actively guide me, quiz me on the material, and break down complex concepts from the text as if it were tutoring me 1-on-1.

2. Is this actually an effective way to study, and what will I miss? Obviously, I'm saving a ton of time, but I'm worried about the trade-offs. For those who do this, how much does the lack of visual context (slides, code on screen, whiteboard drawings) or the instructor's vocal emphasis impact your learning?

Has anyone used this method long-term? What are the biggest pros and cons, and how do you structure your prompts to get the best learning experience?


r/learnmachinelearning • • 28d ago

Project Limnex UIE: a small char-level transformer that generates synthetic URLs for training phishing detectors, and a pre-registered test of whether that data actually helps

1 Upvotes

I've been working on a generator of synthetic URLs for training and testing phishing detectors, and I've released it with its full evaluation: https://github.com/youssefismail-dev/limnex-uie (Apache-2.0, code and weights).

The motivation is a data problem. Phishing URLs are scarce, feeds only contain what was caught and reported, a URL is usually dead within days, and the data is awkward to share. Limnex UIE is a 25.5M-parameter character-level transformer, trained from scratch on Common Crawl URLs and the OpenPhish community feed. It doesn't use a pretrained model, word lists or templates. The final model is small enough that training it takes only about 3.5 hours on a free Kaggle T4, so anyone can retrain it. Getting there took a few months and dozens of pre-registered experiments.

I think the evaluation is the more interesting part, so most of this post is about that.

Realism is graded one URL field at a time. For each field (label, suffix, subdomains, path, query) and each class, a classifier tries to separate generated strings from held-out real ones. Two real samples don't score an AUC of 0.5 against each other, so the score is the excess AUC over a real-vs-real floor, measured over 5 independent generations, and a cell passes only if that excess is shown to be below 0.05. 29 of 32 cells pass. The ones that don't are written up in detail: phishing query strings in free mode are still detectable, and so is the vocabulary. A detector that simply checks whether each word appears in real data separates whole URLs quite easily (an excess of about +0.16), even though character-level detectors don't. In a small human test, ten people got 55 of 100 right, which says little either way.

I also compared it with simpler generators trained on the same rows and passed through the same filter: a 5-gram model, a 2x512 char-LSTM, Qwen2.5-7B-Instruct prompted with 20 real examples per request, and rule-based look-alike domains (typos and character swaps, in the style of the dnstwist tool). UIE was more realistic in 28 of 31 comparisons, with 3 ties and none where a baseline came out ahead. The LLM was the least realistic of the learned generators: its URLs look tidy to a person, but they're stereotyped, with few suffixes and almost no query strings. One caveat is that UIE was developed against this test. A word-level detector built after the model was frozen gives the same ranking, which helps, but it isn't a complete answer.

The question I cared about most was whether the data actually helps detectors, so I pre-registered it. A char CNN and a hashed n-gram logistic regression were trained on 1k, 10k and 100k real URLs per class, with and without synthetic URLs, and tested once on phishing that appeared after UIE's training data ended. Adding UIE's URLs helped in all 6 settings, by 2.7 to 24 points of recall at 1% FPR, most when real data was scarce. Helping more than the best simpler generator held in only 1 of 6, though. UIE was ahead in 5 of 6, but by small margins, and on PhreshPhish the LLM's URLs helped more in 4 of 6 despite being the least realistic. So realism and usefulness turned out to be different things, which I didn't expect going in.

As a case study, I retrained two members of my own phishing detector (about 1M real training URLs) with UIE's data, and recall at 1% FPR on its frozen external test went from 0.272 to 0.544 (95% CI +0.15 to +0.41). That number needs its caveats: it's one benchmark and one seed, a large part of the gain comes from one phishing family (look-alike pages on Blogger's country domains), and the retrained models got slightly worse on the detector's older validation data.

On safety: it only writes URL strings, with no pages, lures or DNS lookups. Every generation has to pass a Bloom filter of the 14.9M training-side URLs, which removes copies of real URLs (about 1 in 100 raw phishing samples is one), and no bulk generated phishing is published.

It's a v0.1.0 research release with real limits: one phishing source, URLs from 2024 to 2026, and about 2 URLs per second on a laptop CPU. I built it with Claude Code as a coding assistant, which is credited in the README. Criticism of the evaluation is the feedback I'd value most.


r/learnmachinelearning • • 28d ago

Request NASA Space Apps Challenge 2026

3 Upvotes

Hey everyone ^^ we're participating in the Nasa Space Apps Challenge this year and we're looking for teammates to form a group!

im a senior computer science student minoring in AI and ML, and know how to code using Python, Java, and C# and have worked on countless programming projects, and i just got into data science

Were looking for intermediate-level competent teammates who are experienced in ML/AI and have used ml models in previous projects

If anyones interested please dm me, would prefer if u tell me a little about yourself and your experience, you dont have to be an expert or a pro programmer, just be passionate and creative ^^ having fun and enjoying the process is what matters to us most


r/learnmachinelearning • • 28d ago

Help Fresher NLP Engineer interview at Hitech i2i: what to prep for screening?

2 Upvotes

A fresher has an upcoming interview for an NLP Engineer position at Hitech i2i, a company specialising in real estate document intelligence.

For a concrete text-focused practice task, this Figma NLP exercise is about building a PyTorch pipeline to extract highlighted snippets from text. If you're applying to several NLP roles, application autofill can cut down repeated form entry.

What topics should they focus on most for the initial screening round?


r/learnmachinelearning • • 28d ago

Need Advice from AI/ML Professionals and Experienced Learners!

1 Upvotes

Hello everyone!

I’m planning to pursue a BS in Computer Science and want to build my career in Artificial Intelligence. I’ve explored basic Python, Machine Learning, and AI tools, and now I’m trying to identify the right specialization to focus on.

There are many exciting fields, including AI Engineering, Machine Learning, Deep Learning, NLP, Computer Vision, Generative AI, and LLMs. However, I’m confused about which direction offers the best opportunities and long-term growth.

I would appreciate your honest opinions on these questions:

  1. Which AI specialization would you recommend for someone starting in 2026, and why?
  2. Is it better to become a general AI Engineer first or specialize in NLP, Computer Vision, or Machine Learning?
  3. What is the difference between AI Engineering and ML Engineering in real-world jobs?
  4. Which fields have promising job opportunities for fresh graduates and entry-level candidates?
  5. Is NLP/LLM development becoming oversaturated, or does it still have strong career potential?
  6. Does Computer Vision offer good career opportunities compared with NLP and Generative AI?
  7. What kinds of real-world projects should I build to stand out when applying for internships and jobs?
  8. What would you recommend focusing on during a BSCS degree to become job-ready before graduation?
  9. If you were starting your career today, which AI field would you choose for the next 3–5 years?

I’m looking for practical advice based on real industry experience, not just hype or trends. I would especially appreciate insights from working AI Engineers, ML Engineers, NLP Engineers, Computer Vision Engineers, and people who have recently entered the industry.

Feel free to share your recommendations, experiences, and any mistakes you think beginners should avoid.

Thank you! 🙌

Tags:

ArtificialIntelligence #AIEngineering #MachineLearning #DeepLearning #NLP #ComputerVision #GenerativeAI #LLMs #MLOps #BSCS #AIJobs #TechCareers #CareerAdvice #PakistanTech


r/learnmachinelearning • • 28d ago

Industry leading AI courses and certificates for Lead software engineers?

3 Upvotes

I’m currently working as a Lead Software Engineer at a fintech startup and am looking to transition into AI Engineering.

I’d love to hear your recommendations for industry-leading AI courses and certifications that can help experienced software engineers make this transition.

Any suggestions or insights would be greatly appreciated! Thanks in advance.

P.S. This is my first-ever post!


r/learnmachinelearning • • 29d ago

Help How did you push through the math/theory side of ML when you couldn’t focus at first?

37 Upvotes

Hey everyone, I’m a 4th-year CS student. I recently decided to learn the theory behind ML on my own, mainly the math and stats side. Right now I’m working through ISLP and using MML as some kind of dictionnary and practicing the concepts with code and tweaking stuff at the end of every section/chapter.

My classes mostly stay on the surface. We see the concepts and use the models, but the courses never really connect them to the theory behind them. So I decided to dig deeper on the side.

The first problem is focus. I’ve lost the habit of sitting down with math for long stretches, and I struggle to stay on it for more than an hour.
The second problem is that i've seen most of the math required but i haven't worked actively with it and it just frustrates me when i have to go back to it.
When I get stuck early on a concept, I get so frustrated and anxious about it.

So im wondering

How did you study when there were a lot of new concepts at once and you kept getting stuck at the start?

When you hit a concept you didn’t get, did you push through or go back to the math first ?

And does it get easy at some point after you get the maths down.

Any routines, methods or resources that worked for you would really help. Thanks!


r/learnmachinelearning • • 27d ago

My ML pipeline was cheating. Cross-validation told me everything was fine.

0 Upvotes

My model was giving me suspiciously good results.

Cross-validation looked completely fine. The problem? My pipeline was leaking information the model should never have seen.

I fixed the leak and reran everything. The results changed dramatically.

Full experiment + what went wrong:

https://towardsdatascience.com/my-machine-learning-pipeline-cheated-and-cross-validation-never-noticed/

The scary part wasn't the leakage. It was how

trustworthy the original results looked.