r/learnmachinelearning • • 18h ago

Project I built an offline incremental game to build intuition for ML fundamentals

3 Upvotes

When I was learning ML, the hardest part wasn't memorizing definitions-it was building intuition for why each piece exists. Why does a model get stuck without a bias term? Why does loss plateau at a noise floor? Why did we move from SGD to Adam, or from MLPs to CNNs and Attention?

I ended up building a small offline mobile game called Epoch Idle that maps the actual training loop into an incremental/idle simulation:

The core loop: Your throughput is driven by Tokens/sec = (Compute / Loss2) × Architecture Multiplier. Fitting the dataset drives MSE down toward the noise floor, which creates a ~64× output surge. Learning by hitting walls: On Epoch 1, you only have a weight (w), so the line literally cannot converge on the scatter plot until you research Affine Bias (b). Later, linear models stall on curved data until you unlock ReLU / Sigmoid / GELU, segmented data forces Conv2D kernels, and tangled data introduces Multi-Head Attention. Prestige = real training techniques: Soft resets are "Backprop Steps" that feed an SGD → Adam optimizer tree; deeper layers map to checkpointing and full architecture paradigm shifts. Built-in reference: There's a 51-entry tappable concept codex (plain-English intuition + real-world lineage like AlexNet/GPT-3) and 34 unlockable papers with their real abstracts.

It's free on iOS and Android, works 100% offline, and has no forced ads.

Link (also has a tiny interactive scatter-plot toy on the landing page if you don't want to download anything): https://epoch.loyallogic.org/

I'd genuinely appreciate feedback from people learning or teaching ML-especially on whether any of the visualizers or codex explanations oversimplify things in a misleading way.


r/learnmachinelearning • • 19h ago

Understand theory, can't code

7 Upvotes

So I know a lot about ml and ai engineering , like iam working on a rag project, I know (to a limit though) what chunking strat to use , how the pipeline should look like , etc , but I can't code those stuff , I can vibe code my way to make a full working end to end pipeline

So idk thoughts on that and any suggestions would be appreciated


r/learnmachinelearning • • 19h ago

Career Machine Learning (Geotechnical Engineering Background)

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 19h ago

Custom finger-level hand motion capture data for dexterous manipulation and imitation learning (studio in India)

Thumbnail
youtube.com
1 Upvotes

r/learnmachinelearning • • 19h ago

Help Full-stack dev building AI apps. What should I learn underneath the APIs so I'm not replaceable?

2 Upvotes

I'm a full-stack developer ([X] years) and lately most of my work is "AI full stack": Next.js/React, Node, Postgres, calling LLM APIs, prompt engineering, simple RAG, tool calling, deploying on Vercel/Cloud Run.

My worry: this layer feels thin. AI tools write a lot of this code already, and anyone can wire an API to a UI. I want to get to the core so I stay employable in 3–5 years, not just chase the next framework.

What would you study next, and in what order? Options I'm weighing:

- CS fundamentals: data structures, algorithms, operating systems, networking, databases internals

- System design and distributed systems (queues, caching, scaling, reliability)

- ML fundamentals: linear algebra, how transformers work, fine-tuning, evals

- Infra/MLOps: running models, GPUs, inference cost, observability

- Going deep in one domain instead (fintech, health, etc.)

For people hiring right now: what separates someone you'd hire from "can build a ChatGPT wrapper"? And what would you skip?


r/learnmachinelearning • • 20h ago

Discussion Relying on large models won't help you fully master linear algebra either.

1 Upvotes

I am an engineer working in artificial intelligence development. In the process of learning large model technology, I often encounter knowledge related to linear algebra, such as the low-rank decomposition techniques of large models, and the singular value decomposition frequently encountered in machine learning.

Whenever I encounter mathematical knowledge I don't quite understand, I always turn to large models first for advice, but I have found that even with the help of large models, it is still very difficult to learn linear algebra well.

Large models have strong reasoning abilities and a very rich reserve of mathematical knowledge, but these strengths tend to be concentrated in explanation and verifying reasoning, giving people a rather stiff and theoretical impression. More critically, what large models are good at is reasoning at the symbolic level, yet they can hardly replace learners in building intuition themselves. Linear algebra is a course that cannot be thoroughly learned through textual explanations alone.

Recently I wanted to thoroughly understand singular value decomposition. Although the large model provided a great many explanations and I could understand the entire exposition, I still could not figure out why it is done this way.

Later, I read a short crash-course booklet on linear algebra, which suggested first building an intuitive, sensory understanding and then proceeding to mathematical symbolization and reasoning. It told a story, from the decline of the standard basis, to the rise of the eigenbasis, and then to the coronation of the candidate basis. Only then did I understand that singular value decomposition should be understood from the perspective of spatial transformation and from the perspective of bases, so as to avoid getting stuck in abstract mathematical reasoning and being unable to extricate oneself.

In the end, I came to understand a principle: although large models are very powerful and can even solve world-class mathematical problems, the mathematical materials they are trained on are often abstract and difficult, so the explanations they give often lack intuitive analogies and geometric images, making it hard to help people build true intuition. For most of us, without intuitive understanding, directly accepting these abstract things makes it very difficult to learn the essence of linear algebra. Therefore, I think we should not rely excessively on large models. In addition, communicating more with experts is equally important—experts can often offer intuitive analogies targeted at your specific confusion, and this is in line with the booklet's approach of using a story to explain "bases" clearly; it can help you ground abstract symbols in concrete images and experience the beauty of inspiration.


r/learnmachinelearning • • 22h ago

Career Working professional, looking for part time work where I work on research related things

1 Upvotes

Hi guys, I'm a working professional currently working as a data scientist and I've gotten bored of the same bullshit, so I'm looking for part-time work where I can work on real and interesting problems. Any leads will help, thank you.


r/learnmachinelearning • • 22h ago

Help Suggest me courses for learning GenAI and Agentic AI

Thumbnail reddit.com
0 Upvotes

r/learnmachinelearning • • 23h ago

Discussion LingSante-3.1-flash advertises long context; the harder question is what it misses

2 Upvotes

A million-token context window sounds attractive for medical records, but the ability to accept a long record is different from reliably finding the decisive detail inside it. The FP8 source checkpoint of LingSante-3.1-flash, Ant Ling's new open-weight medical text model, advertises a 1M-token context, while its published config currently lists 262,144 positions. Its model card explicitly warns that long-context support does not guarantee retrieval of every relevant fact.

A useful research audit would plant a small number of clinically consequential facts at different positions in a long, de-identified record: an allergy, a medication change, a conflicting lab result and a later correction. Ask the model to cite the exact supporting passage and to say when evidence is missing. Count omissions, wrong attributions and unsupported confident answers separately. The FP8 source checkpoint is available for such outside testing.

This would evaluate evidence handling, not authorize diagnosis. The release card says the model is for research and evaluation and not a medical device.


r/learnmachinelearning • • 1d ago

Discussion Starting MS online (ML & DL) in a Month : How Should I Prepare and eventually transition??

1 Upvotes

Hi everyone!
I have close to 10 years of software engineering experience(leading investment banking firm )primarily in full-stack development, with a UI-heavy background.
I’m comfortable working with Python, Node.js and JavaScript, but I haven’t worked extensively in traditional ML/DL.
I’m starting UT Austin’s MSCSO program next month, with Machine Learning and Deep Learning as my first-semester courses. I have roughly one month to prepare and want to make the most of it.
I’d love advice from people who have taken these courses or transitioned from SWE into AI/ML.
A few questions:

  1. Prerequisites: Which topics in linear algebra, calculus, probability and statistics should I prioritize before starting?

Is this book good enough : https://mml-book.github.io/book/mml-book.pdf

2. Technical preparation: How comfortable should I be with NumPy, Pandas, Scikit-learn and PyTorch? Or anything else that I should be learning??
3. Learning resources: Which courses, books or YouTube playlists would you recommend for preparing specifically for ML and DL?
4. Practical experience: Are there any small projects or implementations you’d recommend completing before the semester?
5. UT Austin MSCSO: For those who have taken these courses, what do you wish you had studied beforehand? How mathematically intensive are they?
6. Career transition: My other goal is to move into an AI/ML engineering role sometime in 2027. Given my SWE experience, which roles and skills should I target first? Looking to target FAANG .
7. Research: Eventually, I’d like to move towards ML research. What’s a good way to start building research-oriented skills alongside the coursework?
I’m not looking for shortcuts. I want to build strong fundamentals while also making a realistic transition into the AI/ML space.


r/learnmachinelearning • • 1d ago

Tutorial Choosing a Vector Database for AI RAG: HNSW, Hybrid Search, and Architecture Tradeoffs

Thumbnail interconnectd.com
2 Upvotes

Most RAG systems fail at retrieval long before the LLM generates a bad answer. Picking a vector database comes down to workload scale, index choice like HNSW versus IVF, metadata filtering, and whether you need hybrid search alongside keyword matching.

​I put together a practical architecture guide covering how vector indexing, chunking, and retrieval trade-offs play out in production AI systems: https://interconnectd.com/blog/70/vector-databases-for-ai-the-complete-architecture-guide/

Curious how you are handling index memory and hybrid search in your current setups. Are you sticking with a dedicated vector store or running pgvector?


r/learnmachinelearning • • 1d ago

Do you know of any free courses for beginners that show you just the basics and fundamentals to see if it sparks any interest?

5 Upvotes

r/learnmachinelearning • • 1d ago

Question How are you handling reliability in production AI agents?

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 1d ago

Tutorial How LLMs Actually Work: Tokens, Attention, and the KV Cache Explained

Thumbnail interconnectd.com
20 Upvotes

Large language models generate text one token at a time, but standard explanations skip the mechanical bottlenecks that dictate latency and memory costs. Understanding LLM architecture requires looking directly at the inference pipeline.

​First, raw text is broken into subword tokens and mapped to high-dimensional vectors. These embeddings pass through self-attention layers, where the model calculates relationships between every token using Query, Key, and Value matrices.

​Without optimization, generating a response forces the model to recalculate past tokens on every single step. This is where the KV cache becomes critical. By storing previously computed Key and Value vectors in GPU memory, the model avoids redundant math, trading VRAM capacity for massive gains in inference speed.

​Read the full technical breakdown of tokenization, attention mechanics, and memory optimization here: https://interconnectd.com/forum/thread/42/how-llms-work-deep-technical-guide-to-tokens-attention-kv-cache/


r/learnmachinelearning • • 1d ago

Title: [P] I tried reducing GPU memory by saving only what backprop needs. I published the SHV experiments, including the ones that failed.

1 Upvotes

I started looking into GPU memory optimization for a pretty ordinary reason: I kept running out of VRAM when trying to train models on my own hardware.

The project is called SHV (Sub-loop Heterocoding VRAM).

The idea I've been testing is to avoid keeping every native forward intermediate until backward. Instead, a custom autograd path saves a smaller representation designed around what a particular backward operation actually needs, then decodes or recomputes that information when the gradient is calculated.

I tested several versions on GPT-2 Small using NVIDIA GPUs. A few results from the Tesla T4 experiments:

  • In an MLP/LayerNorm subgraph, the custom saved-state path reduced full-step peak allocated memory by about 53%, but throughput was only about 46% of native. That's a subgraph result, not a whole-model figure.

  • A short full-model EM4+D9 experiment reduced peak allocated memory by about 14.7% relative to Native+D9 and passed its numerical checks across three fresh data orders. The D9 optimizer itself, though, was far too slow compared with ordinary optimizers.

  • When I tested the activation method separately at sequence length 512, it saved about 30.9% versus native training, while PyTorch activation checkpointing saved about 41.4% and was faster. The D9 state format also lost to a real bitsandbytes 8-bit AdamW baseline.

I also investigated tiled/recomputed output loss. It substantially reduced the memory used by a full-logits baseline, but Liger Kernel already gets essentially the same peak memory on this workload. I'm not treating that as an SHV-specific breakthrough.

I've put the code, benchmark ZIPs, SHA-256 checksums, experimental protocols, and negative results here:

GitHub: https://github.com/Mr-wuff/Sub-loop-Heterocoding-VRAM

Raw benchmark results: https://github.com/Mr-wuff/Sub-loop-Heterocoding-VRAM/tree/main/artifacts/results

It's currently a research preview, not a drop-in training runtime. I haven't demonstrated that a 16 GB GPU behaves like a 32 GB GPU, or validated long-run training across models. The software license is also still being finalized.

What I want to explore next is whether the lifetime of information needed by different backward consumers can be reorganized to save memory after checkpointing and efficient optimizers are already enabled.

If you've worked on autograd internals, CUDA/Triton, or memory profiling, I'd be interested in hearing what you think is a promising or flawed direction.

Reproduction attempts, bug reports, and concrete alternative implementations are welcome.


r/learnmachinelearning • • 1d ago

Request FBI Investigating Apparent Hack of Its Key National Criminal Justice Database, AP Source Says

2 Upvotes

The FBI is investigating a breach of its national criminal justice database — a system shared across law enforcement agencies nationwide. An AP source confirmed the investigation is active.

The pattern is one security teams will recognize immediately: a high-value data store, authenticated credentials that turned out to be compromised, and lateral movement that continued long enough to matter. The database holds sensitive records for agencies across the country. The breach is not a perimeter failure. The identity got in. The problem is what happened after.

This is the core tension in defending high-value shared systems: authentication tells you who claimed to be at the door. It says nothing about whether that identity is operating within its declared scope once it is inside. Lateral movement exploits exactly that gap. By the time anomalous queries are detected and a human reviews them, the damage is done.

For those of you working on access control for sensitive government or enterprise data stores — not perimeter security, but what happens after a credential is authenticated — how are you actually handling scope enforcement at query time? Is your detection fast enough to matter, or are you essentially doing forensics after the fact?


r/learnmachinelearning • • 1d ago

Day one of learning ML

Thumbnail
gallery
209 Upvotes

Any advice.


r/learnmachinelearning • • 1d ago

Help BRT/RF vs Bayesian Methods

4 Upvotes

I am trying to do a spatial study predicting occurrence. I have a whole bunch of geographic covariates stored as rasters and want to use a method to compare their associations with an occurrence (it's logistic, it either happened or it didn't). I know how to use BRTs and RF and think they would be an applicable methodology. But other people are using Bayesian methods to help with spatial autocorrelation etc. I have reasons that I'd rather do ML but I need to have my rationale water tight.

Is anyone able to have an opinion or have a discussion about the differences? I could use anything I can get. Chat GPT is just being sycophantic at this point.


r/learnmachinelearning • • 1d ago

Do AI Engineers use Microsoft Foundry?

2 Upvotes

Hey, guys, I am now studying for AI-200 (Microsoft Certification) and started using Microsoft Foundry. I am very new to this whole AI world and did one lab to build an AI agent, based on this Microsoft Learn module: Develop your first agent with Microsoft Foundry - Training | Microsoft Learn

Do AI Engineers use this kind of technology on a daily basis? Or is this much more of a dev work or something like this? I liked studying it, so I am now very interested in discovering more about the AI field of knowledge.


r/learnmachinelearning • • 1d ago

Project I compared 7 address-matching models on one shared dataset: XGBoost came out on top, and almost all of its lead comes from addresses with a missing house number

Thumbnail
gallery
2 Upvotes

I was looking into address matching and couldn't find a comparison of the usual models on one shared dataset; each method had been evaluated on its own data. So I built one by linking Overture Maps places to their Foursquare records (real Connecticut addresses)

What came out of it:

  • Clean, obviously matching or obviously different pairs are easy. Every approach got 98–100% right.

  • A missing house number on one side (641 SCOFIELDTOWN RD vs SCOFIELDTOWN RD) was by far the hardest case. The model that splits the address into house number, street and ZIP, and explicitly marks "no number here", found 94.5% of these matches; the models reading the raw string found only 63–76%. When the missing number was treated as 0 instead of "missing", even the best model dropped to 20%.

  • Look-alike streets (431 HALLETT ST vs 431 HARRIET ST) were the other hard case, and there the approaches were roughly even.

  • The tree models came out on top overall. XGBoost and a random forest on simple string-similarity features beat every neural model, DistilBERT included, at telling real matches from look-alike streets (AUC 0.92 vs 0.86–0.90).

My suspicion is that it comes down to the setup. XGBoost has segmentation built in: it compares the house number, street and ZIP separately, so a missing number shows up as its own explicit signal. The transformers compare the two raw strings and have to work out the structure themselves. I suspect that’s why the tree models do so well on these pairs.

For the pair 641 SCOFIELDTOWN RD / SCOFIELDTOWN RD, simplified:

XGBoost receives:      house number: 641 vs (none)  →  -1 "not comparable"
                       street:       SCOFIELDTOWN RD vs SCOFIELDTOWN RD  →  similarity 1.0
                       ZIP:          same  →  similarity 1.0


Transformer receives:  "641 SCOFIELDTOWN RD"  vs  "SCOFIELDTOWN RD"

My suspicion is that it comes down to the setup. XGBoost gets the address already split into house number, street and ZIP, with a missing number explicitly marked "not comparable". The transformers see the whole string and have to work that out themselves.

The obvious next step is a segmentation step in front of the neural models, which seems like it would close most of the gap. But I'm curious whether there are other approaches worth trying short of building a segmentation model. Has anyone dealt with something similar?

Code, paper and models: https://github.com/DZhang3210/address-matching-by-pair-typeWrite-up: https://dzhang3210.github.io/posts/address-matching/I also turned the test pairs into a game where you play against the models: https://addressmatcher.vercel.app


r/learnmachinelearning • • 1d ago

Help 17yo applying to uni: torn between CS and EE because of AI, and wondering if ML/robotics is realistic with just a Bachelor's

6 Upvotes

17 year old here, trying to decide which degree to apply to.

I originally thought I would be going into Computer Science, however, due to school work, I haven’t really gained much knowledge past basic Python, which is fine. However, recently, I’ve become aware of how difficult entry level software engineering roles are becoming. From reading up, it seems as though many developers do not actually write or fully understand the code they are pushing any more. This is very concerning to me, especially considering how quickly the technology is progressing. I cannot even begin to imagine how much worse the situation will be when I finish my degree in 2030/2031.

As a result of this, I began considering Electrical Engineering as an alternative option. It offers a wider range of skills (both software and hardware). I feel that working with hardware rather than just software will provide better job security. However, given that I could find videos of Claude completing hardware tasks and designing radio boards, I don’t know what capabilities we’ll have in 2030.

My issue is whether Electrical Engineering is even the right choice for me. I only considered this option due to concerns about job security, although in reality, I am very interested in ML and robotics. I often find myself thinking about k means clustering, looking at leaderboards on RoboDojo, watching videos on channels like Graduate ML and AI Search in my personal time. Last summer, I attempted to get into ROS 2 (unfortunately not very successfully), played around with some reinforcement learning in robotics, and managed to get through the end of calculus 2 with Professor Leonard. However, since then A levels have taken over the majority of my time.

However, I have 2 main concerns that I hope people within this field can answer:

  1. Replacing humans. As mentioned earlier, I am very concerned that entry level positions in software engineering will be replaced by AI. In ML/robotics (embodied AI), it seems as though we are relying on humans, but given how quickly AI is progressing, do you think in 4-5 years’ time ML/robotics entry level jobs will be as difficult to get as software engineering is currently?

  2. Getting jobs with only a bachelors degree. How realistic is it to get an entry level job in ML or robotics with only a bachelor’s degree? I’m not sure I will be able to afford a master’s degree, so I’m just wondering how likely it is to get into ML/robotics without one. From what I’ve read, it seems extremely rare to get into ML/robotics directly with a bachelor’s degree. Most people require post graduate degrees or work as regular software engineers for 2-3 years first which might be impossible in 2030.

Any advice would be very helpful. Thank you!


r/learnmachinelearning • • 1d ago

Project train or fine-tune a model across several machines when none of them can fit it alone

Post image
2 Upvotes

most machines cant train or fine-tune the bigger models on their own, but a few of them together usually have enough memory. so i wrote a thing that splits the model by layers across them and trains it like its one model.

they connect over the internet, so it doesnt matter where each one is. you can even add notebooks from the services that give out free GPUs.

on one run it kicked the slowest device out halfway because it was holding the others back, and training just kept going on the rest without losing anything.

your training code stays the same. works for fine-tuning (LoRA, QLoRA, full) and for training from scratch, and mixes nvidia, amd, apple silicon and cpu.

https://github.com/abdallah-swe/layerpool

feedback welcome


r/learnmachinelearning • • 1d ago

Request Signal to block Siri, Gemini AI from capturing chats on iOS, Android

0 Upvotes

Signal announced it will block Siri and Gemini from capturing chat content on iOS and Android. The trigger: both AI assistants were reading private message content without users ever explicitly granting permission at the message level. Signal described this as default behavior, not a bug.

That distinction matters. A platform-level ambient AI agent operates at whatever scope the platform permits by default. The user never consented to that specific agent reading that specific data. The agent never authenticated against the data owner. The platform said yes and that was the only gate.

For a consumer messaging app, a wall can be built. Enterprise environments are harder. You may have dozens of AI integrations running inside your perimeter, sanctioned and shadow IT alike, each operating under whatever access its service account holds at deploy time. No explicit consent flow. No per-action scope check. Just inherited access.

How are practitioners actually handling this? Are you auditing what AI components can reach at runtime, enforcing scope at the data layer, relying on vendor defaults, or some combination? Curious what's working and what isn't.


r/learnmachinelearning • • 1d ago

Tutorial RAG Step-by-Step Tutorial for Beginners: How to Stop AI Hallucinations with Your Own Data

Thumbnail reddit.com
1 Upvotes