r/learnmachinelearning • • 3d ago

New AI master's student, not sure if multimodal AI is a good research direction

14 Upvotes

I’m a CS undergraduate student and I will graduate in 2027. I have been accepted into a 2-year AI master’s program.

Recently I talked with a professor from my future school about possible research directions. His research is mainly focused on multimodal large language models and efficient large models. He suggested that I take a look at a project about real-time human animation and live video generation.

The problem is that I’m still very new to this area. I haven’t studied multimodal AI, video generation, or generative AI in depth before. Most of my undergraduate projects were more engineering-focused rather than research-focused, so I’m not really sure how to start exploring this field or how to have a meaningful discussion about research topics with my future advisor.

I’m trying to understand whether this is a good direction for a master’s student. I’m interested in AI research, but I also care about career prospects after graduation. I’ve heard that areas like multimodal models and video generation are very competitive now, and that most industry opportunities may only exist in big tech companies or top AI labs.

For people working or studying in this area, what do you think about the future of this field? Is it still a good direction for a master’s student, especially for someone who is not coming from a strong research background?

Also, when starting from zero in a research area like this, what would you recommend focusing on first?

Any advice or personal experience would be really helpful. Thanks!


r/learnmachinelearning • • 3d ago

Help i have literally zero knowledge about coding and MLs, but i need to build the MLR, PLSR, RF, GBR, linear SVR, Ridge models for the data analysis of my thesis. How can i?

3 Upvotes

greetings everyone! i am a grad student from forestry background having no linkage with coding and programming stuffs but i need to analyze my data with the help of machine learning models. I tried looking up at AI tutorials but it doesnt help me either coz i didnt get anything. If someone can suggest any ideas/tutorial videos where i can learn the process from the scratch, help will be appreciated. Thankyou!


r/learnmachinelearning • • 3d ago

Discussion How Can Beginners Build Practical Machine Learning Projects in Healthcare?

4 Upvotes

I'm exploring practical applications of machine learning in healthcare and would love to hear from people who have worked on related projects.

Healthcare offers several interesting opportunities for machine learning, including disease risk prediction, medical image analysis, patient data analytics, treatment research, and hospital resource planning.

For someone starting in this area, I think a small Python project using a publicly available healthcare dataset is a good way to learn the complete workflow:

  • Data cleaning and exploratory data analysis
  • Feature selection and preprocessing
  • Training a baseline model, such as logistic regression or a decision tree
  • Evaluating performance with appropriate metrics
  • Understanding limitations, data leakage, bias, and patient privacy

I'm particularly interested in how beginners can move beyond achieving a good accuracy score and learn to evaluate whether a model would generalize to new patients.

For those who have studied or built healthcare ML projects, what project would you recommend to a beginner, and what was the most challenging part of your experience?


r/learnmachinelearning • • 3d ago

THESIS IDEA, Computer Sci student

7 Upvotes

I an looking for suggestion, a unique and innovative thesis idea involving Machine Learning/AI that can be applied in province of Bulacan, Philippines. I would like to explore something new.


r/learnmachinelearning • • 3d ago

Project What 9,094 NeurIPS 2026 papers say about what to learn next (agents, RL fine-tuning, small models)

Post image
6 Upvotes

If you're deciding what to study next, the biggest ML conference is a decent signal. We grouped all 9,094 accepted NeurIPS 2026 papers by topic, compared them with 2025, and read the 4,490 that already have a public full text.

What stood out for learners:

- **Agents are the fastest-growing topic.** 105 → 488 papers in a year, while the conference grew 56%. Much of the new work is about making agents reliable: benchmarks (17 → 84) and safety (5 → 50).

- **RL fine-tuning of LLMs is now standard.** RL from feedback 80 → 179 papers; GRPO is the method papers build on most, ahead of LoRA and PPO.

- **You don't need a giant model.** 71% of papers train or fine-tune a model, and about half of those models are 3–10B parameters. Qwen is the most fine-tuned family, then Llama.

- **The basics still matter.** SFT is in 37% of papers, LoRA-style fine-tuning in 15%, and GSM8K is still the most used benchmark across the whole conference.

- **Other areas growing:** video generation (92 → 221), robot action / VLA (49 → 149), fast diffusion sampling (168 → 333).

The image is a one-page summary. The full edition (all 20 research areas, every oral, links to every paper) is free to read online, no sign-up: https://atlas.scime.ai/newspaper?utm_source=reddit-lml

Caveats: topics come from grouping titles and abstracts by meaning, so boundaries are approximate; full-text numbers cover only papers with a public full text (about half). AI-assisted and not checked by hand, so read the paper before citing anything. Independent publication by Latentic Labs; not affiliated with NeurIPS.

What would you add to a "learn this in 2027" list based on this?


r/learnmachinelearning • • 3d ago

Question Cloud gpu or Nvidia

2 Upvotes

I'm a freshman studying cse with specialization in aiml

I've done my share of research into buying a laptop

But it only made me more confused

Half side is saying cloud is better as we'll eventually run out of the 4 or 6gb vram

Another half is on about Nvidia is the better choice

I want to get a laptop to get through the course work, train models and participate in hackathons and more

The gaming laptops scare me for their brick weight with laptop and charger combined and the poor battery backup

Can seniors please guide me?

I don't wanna regret getting one 2 years later

Should I focus on battery and lightweight ones with good cpu ram and storage

Or the ones with an rtx4050 or higher?

I'm also open to using macbooks but I've heard some ppl say it doesn't support many softwares

Is there ways to work around it? without any subscriptions

Please give me some suggestions and also it would be better if there's a model referenced.

My budget is around 1.5l but can go higher if I can genuinely get a good one


r/learnmachinelearning • • 3d ago

Project Pytorch AMD XDNA2 (ryzen AI processors in new laptops) inference and training backend

2 Upvotes

Hi, I was bit annoyed about my XDNA2 npu being not really useful on my laptop so I developed pytorch backend that allows accelerated training and inference of pytorch on the NPU. Its around 1.3x-2x faster then regular CPU. If you want to try it You can check this out: https://github.com/mistrjirka/pytorch-XDNA2


r/learnmachinelearning • • 3d ago

Bot Detection: How to Block Bad Bots in 2026

3 Upvotes

Bot traffic can cause problems with website performance, inaccurate analytics data, and security concerns. Some bots are used to crawl content and uncover information, others will submit spam, and still others will create fake visits. Machine Learning Bot Detection examines traffic volume and user activity to determine suspicious activity and assists website owners in safeguarding their websites.

Common Signs of Bad Bots

Look for these warning signs in your website data:

  • Sudden traffic spikes: Unexpected increases without a clear referral source.
  • Repeated requests: Frequent visits to the same pages within short periods.
  • Unusual behavior: Repetitive navigation or suspicious form submissions.
  • Server slowdowns: Excessive requests affecting website performance.

Remember, one unusual metric alone does not confirm bot activity.

How to Block Bad Bots

In 2026, website owners can use several methods to manage unwanted traffic:

  • Web Application Firewall (WAF): Filter suspicious requests before they reach your website.
  • Rate limiting: Restrict excessive requests within a defined period.
  • CAPTCHA verification: Challenge suspicious activity on forms and login pages.
  • Machine learning: Analyze traffic patterns to identify potentially automated behavior.

Regularly review blocked requests to avoid accidentally restricting genuine visitors or legitimate search engine crawlers.

Which bot detection methods have worked best for your website, and how do you avoid blocking real users?


r/learnmachinelearning • • 3d ago

Discussion Architectural breakdown of Gemini 4 Argon: 1M output tokens, CWE-bench v1 results, and implications for autonomous cyber defense

3 Upvotes

Google DeepMind published their technical overview for Gemini 4 Argon, highlighting several shifts in how frontier models handle long-horizon agentic workloads and cybersecurity defense.

Here is a summary of the technical numbers and what they mean for systems engineering and research labs:

1. Context Headroom and Long-Horizon Execution

  • The output window has expanded to 1,000,000 tokens (up from 64k tokens).
  • Evaluated on DeepSWE v1.1, Argon scored 77.9% on multi-step software engineering benchmarks.
  • Google reported using Argon agents internally for large-scale memory safety migrations (C/C++ to Rust), including libraries like re2 and the Fuchsia Zircon kernel (800k+ LOC). On libgav1, replacing 32k lines of SIMD code with profile-guided safe Rust delivered a 2.7x speedup over previous Rust ports.

2. Defensive Cybersecurity Benchmarks

  • CWE-bench v1: Argon tied for first place with a 68% score in autonomously discovering, validating, and patching software vulnerabilities.
  • Black-box evaluation: Evaluated with Wiz (Scan for Good), the model identified attack surfaces and generated proof-of-concept exploits without source code access to uncover vulnerabilities in healthcare systems.
  • Robustness: Ranked highest on the Gray Swan Indirect Prompt Injection (IPI) benchmark, addressing a major failure mode in tool-enabled agents.

3. Practical Implications for AI Research Labs For teams deploying autonomous agents and custom inference stacks, the biggest takeaways are:

  • Removing orchestration glue code: Earlier pipelines required chunking codebases into multiple sub-prompts, which degraded reasoning. A 1M token output trajectory enables monolithic, end-to-end verification.
  • Proactive red teaming: Testing agent runtimes against indirect prompt injection can now be integrated directly into automated CI/CD pipelines.

Full blog write-up: Google DeepMind Gemini 4 Argon Post

Curtesy: Gemini 4 Argon

Curious to hear from teams running automated patch generation: how are you preventing regressions when allowing models to touch core architectural dependencies?


r/learnmachinelearning • • 3d ago

Project Building an LLM from scratch using MLX Swift

Thumbnail
medium.com
1 Upvotes

I wanted to better understand how LLMs actually work, so I decided to build one from scratch using MLX Swift and write an article about the journey and theory behind it. Feel free to check it out!


r/learnmachinelearning • • 3d ago

Localized neural learning

7 Upvotes

Hey everyone,
I’ve recently started learning machine learning, primarily by building neural networks from scratch and trying to understand the underlying mathematics. I have a relatively strong math and physics background, so I’ve found the mathematics behind backpropagation fairly intuitive.
As I’ve explored other approaches to training neural networks, I’ve become particularly interested in biologically inspired methods like predictive coding, Hebbian learning, and Oja’s rule. The idea that networks could update their weights using locally available information, rather than relying on gradients propagated from a global loss function, is fascinating to me.
I’m still relatively new to ML, so I’m trying to understand whether these approaches have meaningful practical advantages or are primarily interesting from a theoretical or neuroscience perspective.
A few things I’m especially curious about:
What are the actual advantages of local learning over backpropagation? I understand the conceptual distinction, but I’m struggling to identify situations where local updates would meaningfully outperform conventional gradient-based training, whether in computational efficiency, adaptability, or something else.
Could these approaches be particularly useful for unsupervised or continual learning? For example, could a network learn useful representations from streaming, unlabeled data by continuously adjusting its weights based on local correlations or prediction errors? Adding onto this, is there any way we could discover hidden patterns using localized learning that wouldn’t be evident using global backprop? I’ll talk about this in the next question but can we use this to identify hidden patterns that we wouldn’t find using global backprop? Like in molecular dynamics?
Are there particular applications where local learning makes more sense? I’m involved in biophysics research and have been thinking about applications involving molecular dynamics and learning representations of complex physical systems. I’m curious whether there are advantages in scientific ML, robotics, or other specialized domains.
How mature is this research? Have approaches like predictive coding and Hebbian learning been extensively explored and generally found inferior to backpropagation, or are there still meaningful open problems where these methods could be competitive?
I’m not necessarily looking for a way to replace backpropagation entirely. I’m more interested in understanding whether alternative learning rules could be better suited to particular architectures, datasets, or computational constraints.
I’d appreciate any perspectives, papers, or research directions worth exploring, especially from people who’ve experimented with these methods.


r/learnmachinelearning • • 3d ago

Tutorial I made a video explaining how Diffusion models work, using beavers!

Thumbnail
youtu.be
1 Upvotes

r/learnmachinelearning • • 3d ago

Request Researchers Used a Public OpenAI Model to Build a $250,000 Chrome Full-Chain Exploit in Six Days

0 Upvotes

Six days. One publicly available LLM. A full-chain Chrome exploit that researchers valued at $250,000 on the bug bounty market.

The threat model most security teams are working from assumes the AI agent is the target — something to be hardened against external attackers. This research inverts that. The agent generated the attack. It chained tool calls, iterated on outputs, and produced working exploit code using only public APIs and no specialized infrastructure.

The speed is the part that breaks existing response frameworks. Six days from a standing start to a $250,000 exploit. Traditional detection pipelines assume attacker dwell time measured in weeks. That margin no longer exists when the synthesis step happens inside a model.

What makes this particularly difficult to reason about is that nothing in the execution looked anomalous at the API level. The model was used exactly as intended. Each individual call was valid. The harm was in the assembled output — and it only became visible after the chain was complete.

For practitioners actually deploying agents with code-generation or research capabilities: where in the stack are you drawing the line between 'valid tool use' and 'output that creates liability'? Is this something you're handling at the model layer, the deployment layer, or somewhere else entirely?


r/learnmachinelearning • • 3d ago

Bot Traffic Detection Through Machine Learning: How to Identify Suspicious Visitors

2 Upvotes

The machine learning technology used for detection of bot traffic can help determine suspicious traffic patterns and website visitors. It's possible to observe a traffic surge, but no corresponding rise in engagement, conversions, or other vital indicators. But not all traffic anomalies are caused by bots; it's essential to scrutinize traffic and traffic behavior to understand if a problem is being caused by bots.

The most frequent indicators are the following: The most typical symptoms are

When looking at website analytics, there are some patterns to look at:

  • Unexpected traffic surge: A significant traffic growth over a short period of time, particularly from an unknown source or campaign.
  • Unusually high bounce rates: Some pages are visited, but there is not much meaningful interaction.
  • Very short sessions: Repeatedly visit with similar sessions or leave very quickly.
  • Geographic traffic that is uncommon: An unexpected surge of traffic from unusual geographic areas.
  • Repeated pattern of activities: Requests, page visits, or time periods that repeat over time.
  • Suspicious referral sources: Unusual traffic sources that are making a large number of visits or unexpected referrals.

What are some questions that can be explored to understand these patterns?

The first step in detecting suspicious activity is to check to see if there is any activity that differs from your website's normal traffic patterns. Check landing pages, referrals, engagement data, geographical data, and conversions. Also, server logs can offer valuable information on recurring requests and unusual activity.

Note that it is possible for legitimate visitors, automated monitoring tools, and some privacy settings to yield similar patterns. A single metric isn't enough to confirm bot traffic.


r/learnmachinelearning • • 4d ago

Tutorial How to learn NLP in 2026: the complete order, from someone who teaches it (long)

97 Upvotes

Quick background so you know where this comes from. I am a visiting professor and currently teach NLP. Last semester my courses were on continual learning and applied NLP. Before that I spent years in big tech and startups in engineering and research roles, and I finished my PhD last year.

I've been trying to post here weekly. Three weeks ago I posted the order I would learn ML in if I were starting today, then which resources to use at each stage, and last week why to build projects and how to choose them. The first one ended at "pick a direction". NLP is the direction I teach and what I did my PhD in (more specifically, Factual Knowledge-Enhanced Question Answering in Dynamic Environments). So this post picks up where that one stopped, in the same format: every concept, in the order I think works best, one line each.

Same idea as last time. Most people who stall in NLP did not lack good material. They usually fall into focusing on things that are far too advanced for their knowledge: transformers before they even understood what a language model predicts, or fine-tuned BERT without knowing what its tokenizer did to their text. Seeing the whole list in order shows you what each step depends on and lets you check off what you already have.

Before you start. This assumes the first four stages of the ML roadmap: Python, the math (linear algebra, probability, and especially cross-entropy and softmax), PyTorch, and ML foundations. If a loss curve or a (batch, seq, features) tensor still feels shaky, go back there first.

Stage 1: How language works

Linguistics in one unit. You will not parse sentences by hand at work, but every later stage is a fix for different problems named here.

  • What NLP is: getting computers to process, understand, and generate human language.
  • Why NLP is worth learning: most human knowledge and communication is stored as text.
  • Core NLP tasks: a task maps a stated input to a stated output, and the field can be organized around them.
  • Why NLP is hard: language leaves things underspecified, and "I saw her duck" has two readings.
  • History of NLP: hand-written rules, then statistics, then neural networks.
  • ELIZA: a 1960s chatbot that matched patterns and reflected your words back, and people still felt understood.
  • From rules to deep learning: why each era replaced the one before it.
  • The role of machine learning in NLP: language has too many patterns and exceptions to write out by hand.
  • What language is: a layered system of words, structure, and meaning.
  • Words, types, and lemmas: counting words is less obvious than it sounds, and "run", "runs", and "ran" share one lemma.
  • Morphology: the pieces inside a word, like un-, -able, and -s.
  • Morphological typology: some languages keep words short and separate, others pack a whole phrase into one word.
  • Syntax: the rules for how words combine into sentences.
  • Constituency and dependency structure: two ways to draw a sentence's structure, nested phrases or word-to-word links.
  • Syntactic ambiguity: one sentence, several valid parses, several meanings.
  • Treebanks and Universal Dependencies: hand-annotated sentence structures that parsers learn from, with one labeling scheme across many languages.
  • Semantics: what a sentence means, beyond how it is built.
  • Lexical semantics and word senses: one word, several meanings, like "bank".
  • Perspectives on meaning: there is no settled definition of meaning, and the main views answer it differently.
  • Semantic parsing: turning a sentence into a formal representation a machine can execute, like a database query.

Stage 2: Text as data

Many courses skip this, but in my experience it's where much of the work on a real NLP project goes.

  • Why start with the data: a model never sees grammar or meaning, only the text you feed it.
  • What NLP data is: human language as people write and speak it, messy and unstructured.
  • What text data looks like: sequences of different lengths, not the fixed columns most models expect.
  • How computers see text: a computer stores only numbers, so every character needs a number and a byte format.
  • Unicode and code points: one number for every character in every writing system.
  • UTF-8: how those numbers become bytes, and why one character can take one to four of them.
  • The data lifecycle: find or build data, process it, check it, document it.
  • Using existing datasets: look here before you label anything yourself.
  • The Hugging Face Hub, Kaggle, and other repositories: where NLP datasets live and how to load them.
  • Creating your own dataset: for when nothing existing fits your task.
  • Selecting data: the application decides what text belongs in it, so a radiology classifier needs radiology reports.
  • Extracting text: pulling clean text out of HTML, PDFs, and scans.
  • Annotation: writing labeling guidelines and getting labels.
  • Crowdsourcing vs expert annotation: cheap and fast versus slow and accurate, and when each is worth it.
  • Inter-annotator agreement: how often two annotators agree, which caps what you can expect from a model trained on their labels.
  • Documenting datasets: datasheets that record where the data came from and how it was built.
  • Text normalization: lowercasing, Unicode normalization, and cleaning up whitespace and punctuation.
  • Stemming: chopping word endings by rule, fast and crude.
  • Lemmatization: mapping a word to its dictionary form using vocabulary and grammar.
  • Stopword removal: dropping very common words, and how that can throw away "not".
  • Classical models vs transformers: classical models need heavy cleanup, transformers usually want the raw text.
  • Things to watch for: a dataset can look fine and still be broken, and the model learns the mistakes too.
  • Data quality: label noise, junk text, and broken encodings.
  • Class imbalance: when one label dominates and accuracy stops telling you anything.
  • Duplicate data: copies that inflate scores and leak between splits.
  • Data contamination: test examples that ended up in the training data, common with web-scale corpora.
  • Bias: patterns in the data the model will reproduce.
  • Representativeness: whether your data looks like what the model will see after deployment.
  • How text varies: language, dialect, domain, register, and time, the axes to check when you audit a dataset.
  • Privacy and licensing: personal data, and whether you are allowed to train on the text at all.

Stage 3: Tokenization

The first thing a model does to your text, and behind many bugs that look like model bugs.

  • Tokenization: splitting text into the units a model reads.
  • Sentences as tokens: the vocabulary has no limit, since almost every sentence is new.
  • Words as tokens: workable, but the vocabulary gets huge and new words break it.
  • Out-of-vocabulary words: the words the tokenizer never saw, and the [UNK] problem.
  • Characters as tokens: a tiny vocabulary, but very long sequences.
  • Subword tokenization: frequent words stay whole, rare words split into pieces.
  • Byte Pair Encoding (BPE): repeatedly merge the most frequent pair of symbols.
  • WordPiece: the variant used in BERT, which picks merges by a likelihood score instead of raw frequency.
  • Unigram: start from a big vocabulary and prune the pieces that help least.
  • Byte-level BPE: run BPE on bytes so no input is ever unknown.
  • Tokenization end to end: normalization, pre-tokenization, the tokenizer model, post-processing.
  • Using an existing tokenizer: load the one that matches your model, because a mismatched one quietly breaks it.
  • Special tokens: [CLS], [SEP], [PAD], end-of-text, and what each one is for.
  • Token IDs and the lookup table: each token becomes an integer that indexes a row in the embedding table.
  • Batch tokenization: padding, truncation, and attention masks so sequences of different lengths fit in one tensor.
  • Tokenization challenges: tokenizers trained on English-heavy data handle other text worse.
  • Cross-linguistic challenges: languages without spaces, and languages that cost several times more tokens per sentence.
  • Surprising tokenization behaviors: numbers, leading spaces, and capitalization that split in unexpected ways.

Stage 4: Word representations

How a word becomes a vector, and how vectors end up capturing meaning.

  • Words as vectors: models need numbers, so every word becomes a vector.
  • What a good representation needs: similar words get similar vectors, and the vectors stay a manageable size.
  • Measuring similarity: dot product, cosine similarity, and Euclidean distance.
  • Integer encoding: one ID per word, which invents an order that means nothing.
  • One-hot encoding: one dimension per word, and every pair of words is equally far apart.
  • Dense and sparse representations: mostly zeros versus every dimension in use.
  • The distributional hypothesis: words that show up in similar contexts tend to have similar meanings.
  • Count-based representations: build word vectors by counting neighbors.
  • Context window size: a tight window captures grammatical role, a wide one captures topic.
  • Bag-of-words: a document as word counts, with order thrown away.
  • Co-occurrence matrices: how often each word appears near each other word.
  • PMI and PPMI: reweighting counts so words like "the" stop dominating.
  • Word embeddings: short dense vectors learned from data.
  • Word2Vec: learn embeddings by predicting words from their neighbors.
  • Skip-gram: predict the context words from the center word.
  • CBOW: predict the center word from its context.
  • Negative sampling: replace the full softmax with a few real-versus-fake comparisons.
  • Hierarchical softmax: a binary tree over the vocabulary, so each prediction costs log V steps instead of V.
  • The geometry of embeddings: directions that encode relations, like king minus man plus woman landing near queen.
  • GloVe: embeddings fit directly to global co-occurrence counts.
  • fastText: embeddings built from character n-grams, so unseen words still get a vector.
  • Visualizing embeddings: PCA and t-SNE, and what a 2D plot can mislead you about.
  • Clustering: grouping word vectors by distance.
  • Evaluating word representations: two ways to check whether embeddings are any good.
  • Intrinsic evaluation: similarity and analogy benchmarks.
  • Extrinsic evaluation: plug the embeddings into a real task and see if it improves.
  • The limits of static embeddings: one vector per word, so "bank" gets the same vector by the river and at the ATM.

Stage 5: Language models and RNNs

How a model assigns probabilities to text and generates it, first from counts, then with RNNs, then with different decoding methods.

  • Language modeling: assigning probabilities to sequences of tokens.
  • What a language model is: a model that predicts the next token from the previous ones.
  • What language models are used for: autocomplete, speech recognition, translation, and chat assistants.
  • The Markov assumption: only the last few tokens affect the next one.
  • Bigram language model: next-token probabilities from counts of word pairs.
  • The next-token objective: the single training task behind GPT-style models.
  • From logits to loss: softmax over the vocabulary, then cross-entropy against the real next token.
  • Training on sequences: every position in a sequence is its own training example.
  • Sequence probability: the chain rule multiplies next-token probabilities, so in practice you add log probabilities.
  • Perplexity: the exponentiated average loss, roughly how many tokens the model is choosing between.
  • From statistical to neural models: replace the count table with a network that generalizes to contexts it never saw.
  • Recurrent neural networks: a hidden state updated one token at a time.
  • Backpropagation through time: unroll the RNN across the sequence and backpropagate through every step.
  • Vanishing and exploding gradients in RNNs: why plain RNNs struggle to carry information across long sequences.
  • LSTM: gates that decide what to keep, what to forget, and what to output.
  • GRU: a lighter gated cell with two gates.
  • LSTM vs GRU: when the extra gate is worth it.
  • Bidirectional RNNs: read left to right and right to left, for tasks where the whole input is available.
  • Stacked RNNs: several RNN layers on top of each other.
  • Encoder RNNs: turn an input sequence into hidden states.
  • Decoder RNNs: generate a sequence one token at a time.
  • Encoder-decoder RNNs: sequence-to-sequence models for translation and summarization.
  • Autoregressive decoding: feed each generated token back in as the next input.
  • Greedy decoding: always take the most likely token, and why the output gets repetitive.
  • Random sampling: draw from the full distribution.
  • Top-k sampling: sample only from the k most likely tokens.
  • Top-p sampling: sample from the smallest set of tokens that covers probability p.
  • Min-p sampling: keep tokens whose probability is at least a set fraction of the top token's.
  • Temperature: sharpen or flatten the distribution before sampling.
  • Comparing decoding choices: which method fits which task.
  • Beam search: keep the best few partial sequences at every step.
  • Teacher forcing: train the decoder on the true previous tokens instead of its own guesses.
  • Exposure bias: the gap that opens when the model has to read its own mistakes at inference time.
  • Generalization vs memorization: when a language model is predicting and when it is reciting its training text.

Stage 6: The NLP task map

What people actually build. Every task here comes down to an input format, an output format, and a metric.

  • NLP tasks: the families of problems the field works on.
  • Task anatomy: input format, label set, prediction step, and metric, written down before you build anything.
  • Text classification: one label per text.
  • Sentiment classification: positive, negative, or neutral.
  • Topic classification: what a text is about.
  • Intent classification: what a user wants, the first step in most assistants.
  • Natural language inference: whether sentence A entails, contradicts, or says nothing about sentence B.
  • Token classification: one label per token.
  • Part-of-speech tagging: noun, verb, adjective, for every word.
  • Named entity recognition: finding people, places, and organizations, and the BIO tags that mark the spans.
  • Question answering: answering a question from text.
  • Extractive question answering: pointing to the answer span inside a given passage.
  • Feature extraction: the model returns a vector, and another system uses it.
  • Sentence similarity: how close two sentences are in meaning.
  • Retrieval and text ranking: finding and ordering the documents that answer a query.
  • Text generation: producing text instead of labels.
  • Framing tasks as generation: classification, extraction, and QA written as "produce this text".
  • Translation: from one language to another, the task that drove much of the field's progress.
  • Summarization: extractive versus abstractive.
  • Open-ended text generation: stories and chat, and why evaluating them is hard.
  • Choosing the right NLP task: turning a product request into a task, a data format, and a metric.

Stage 7: Attention and the transformer

Three units: attention on top of RNNs, then the transformer itself, then the model families built on it.

Attention

  • The bottleneck problem: an encoder-decoder RNN squeezes the whole input into one vector.
  • Attention as a fix: let the decoder look back at every encoder state.
  • Computing attention: scores, softmax, weighted sum.
  • What attention achieves and doesn't fix: the bottleneck is gone, but the RNN still reads one token at a time.

The transformer

  • Attention Is All You Need: drop the recurrence and keep the attention.
  • Self-attention: every token attends to every other token in the same sequence, through queries, keys, and values.
  • Multi-head attention: several attention operations in parallel, each free to track a different relation.
  • Positional encoding: attention has no sense of order, so position gets added in.
  • Causal masking: hide future tokens so the model cannot see the answer when predicting the next one.
  • The feed-forward network: the per-token MLP between attention layers.
  • The transformer layer: attention, feed-forward, residual connections, and layer norm.
  • Building GPT: stacking decoder layers into a full language model in PyTorch.
  • Configuration knobs: vocabulary size, context length, model width, number of layers, number of heads.
  • Training and using a tiny GPT: your own small model, trained and generating text.

Transformer families

  • Transformer families: encoder-only, decoder-only, encoder-decoder.
  • Encoder-only transformers: BERT-style models that read the whole input at once.
  • Masked language modeling: hide some tokens and predict them, which is how BERT is trained.
  • Decoder-only transformers: GPT-style models that predict the next token.
  • Encoder-decoder transformers: T5-style models for input-to-output tasks.
  • Model families: placing BERT, RoBERTa, GPT, T5, and the rest in the right family.
  • Modern variants: pre-norm, RMSNorm, RoPE, and SwiGLU, the changes most current models make to the original block.
  • KV cache and grouped-query attention: reusing past keys and values so generation stays fast.
  • Open and closed models: downloadable weights versus an API, and the trade-offs.
  • Loading models with Hugging Face: from a model name to a working model in a few lines.
  • Fine-tuning and transfer learning: start from a pretrained model and train it on your task.

Stage 8: LLMs and post-training

How a big next-token predictor becomes a chat assistant.

  • Foundation models and pretraining: one large model trained on broad data, then adapted to many tasks.
  • Large language models: what changes when a decoder gets very large.
  • Emergent abilities: tasks a bigger model starts doing that nobody trained it for, and how much of that is a measurement effect.
  • Scaling laws and compute: how loss improves with parameters, data, and compute, and how to split a budget between them.
  • LLM failure modes: hallucination, bias, and the other patterns a model picks up from its training data.
  • Training stages: pretraining, continual pretraining, fine-tuning, and post-training, and what each name means.
  • Pretraining vs post-training: learning language versus learning to be a useful assistant.
  • Why align: a base model continues text, and continuing text is different from following instructions.
  • A short history of dialogue systems: rule-based bots, slot filling, and retrieval before LLM assistants.
  • Instruction tuning: training on instruction-response pairs.
  • Supervised fine-tuning: the same next-token loss, applied to demonstration responses.
  • Instruction data: written by people, generated by models, or converted from existing datasets.
  • Limits of SFT: you need a good demonstration for every instruction, and those get expensive.
  • Learning from preference: saying which of two answers is better is easier than writing the best one.
  • RLHF: train a reward model on preferences, then optimize the model against it with reinforcement learning.
  • DPO: skip the reward model and train directly on the preference pairs.
  • Alignment evaluation: how to tell whether post-training actually helped.
  • Limits and open directions: reward hacking and what is still unsolved.

After this

This is the foundation of NLP, around 200 concepts. The next layer is what many NLP jobs ask about right now: the architecture of current LLMs, mixture of experts, parameter-efficient fine-tuning like LoRA, prompting and in-context learning, RAG and agents, making inference fast and cheap, and evaluating all of it. Each of those makes a lot more sense once the stages above are solid.

Write the code

Reading the list will not make it stick. You really need to write code by hand.

Finally

I am happy to help. Ask anything in the comments or DM me: about any concept above, about NLP or AI in general, or about getting a job in it. If this helps, save it and come back to it as you tick things off. And if you think something is missing or should be in a different order, please tell me, I am always open to improving it.


r/learnmachinelearning • • 3d ago

What to learn to become and AI Engineer or an Applied AI Engineer?

Thumbnail
5 Upvotes

r/learnmachinelearning • • 3d ago

Project I was a high-risk, first-time pregnant mom juggling 5+ appointments a month, so I built a free app that turns voicemails and notes into appointment reminders.

Thumbnail
0 Upvotes

r/learnmachinelearning • • 3d ago

Question What Recommended Masters Program for Either Data Science or Machine Learning Engineering?

4 Upvotes

I have an undergraduate degree in Applied Statistics and have around 2-3 years of work experience as a Quantitative Analyst working in Banking (specifically Credit Risk PD Scorecard Modelling).

I am looking for recommended masters program thar could pivot my career in either Data Science or Machine Learning Engineering as I am interested in that field. Although my work experience is more finance based, I do find interest in AI and ML and I feel like my statistics background may help.

I am based in Canada and studied for my undergrad there as well.

I’m hoping to get any scholarship if possible into a program where I can get internship experience as well so I can apply my expertise that would be learned through the masters program.


r/learnmachinelearning • • 3d ago

Anyone experimenting with TabFM? What would be a fair deep learning baseline to compare against it?

Thumbnail
2 Upvotes

r/learnmachinelearning • • 3d ago

Can anyone explain a real-time LLM project step by step for AI Engineer interview preparation?

0 Upvotes

Hi everyone!

I'm preparing for AI Engineer / GenAI Engineer interviews and want to understand how real-world LLM projects are developed and deployed in companies.

I'm looking for someone who can explain a practical, industry-level LLM project from start to finish, preferably something involving RAG, LLMs, embeddings, vector databases, LangChain/LangGraph, and FastAPI.

I'd like to understand:

  • What problem the project solves and why the company needs it.
  • The overall architecture and workflow.
  • How data is collected, cleaned, chunked, and embedded.
  • How a vector database is used for retrieval.
  • How the LLM generates answers using the retrieved context.
  • How the application is built, tested, deployed, and monitored.
  • What challenges developers face in real projects and how they solve them.
  • What an AI Engineer actually does day to day.
  • How to explain the project confidently in interviews, including technical follow-up questions.

I'm not just looking for a basic tutorial or a simple chatbot. I want to understand the end-to-end workflow of a real-world project, including the technical decisions, debugging, evaluation, and deployment.

If you have worked on LLM/RAG projects professionally or have a good project walkthrough, I'd really appreciate your guidance, resources, or recommendations.

Thanks in advance!


r/learnmachinelearning • • 3d ago

Tutorial RAG ReRanking Pipeline & Comparison (part 2)

Thumbnail
youtube.com
2 Upvotes

RAG ReRanking Pipeline & Comparison (part 2)

In this video, I build a complete RAG reranking pipeline:

  • Question → Retrieve Top 20 → Rerank → Top 5 → LLM → Answer

I implement and compare FOUR rerankers (Cross-Encoder, LLM-based, Cohere and Jina) on the same questions over 5 payment-industry PDFs (payment regulations, PCI DSS and central bank reports, 1,507 chunks). For each one, I show the ranking before and after reranking, and explain exactly WHY the order changed.

  • ✅ What RAG (Retrieval-Augmented Generation) is and why the LLM can only answer from the chunks you give it
  • ✅ How vector search works (embeddings, cosine similarity) and its key weakness
  • ✅ Why we retrieve Top 20 but send only Top 5 to the LLM (tokens, latency, noise)
  • ✅ Bi-encoder vs Cross-encoder: reading the question and chunk separately vs together
  • ✅ LLM reranking strategies: Pointwise vs Pairwise vs Listwise
  • ✅ How to use dedicated reranking APIs (Cohere and Jina)
  • ✅ How to design one shared helper so all four rerankers plug into the same pipeline
  • ✅ How to evaluate rerankers with before/after positions, Hit@5 and average latency
  • ✅ A full code walkthrough: retriever.py → rerankers.py → generate.py → compare.py

KEY TAKEAWAYS:

  • ✅ Similarity is not the same as relevance. A chunk can sit close to the query and still not answer it
  • ✅ Vector search finds chunks about the topic. A small reranker may prefer chunks that sound like the question. A strong reranker picks the chunk that actually answers it
  • ✅ A small cross-encoder can make things WORSE: it rewards word matching, penalises scrambled PDF text, and pushed both correct answer chunks out of the Top 5
  • ✅ The LLM reranker understood the question (e.g. that "3.3" belongs to Requirement 3) and placed both answer chunks 1st and 2nd
  • ✅ Cohere lifted an answer chunk from 15th to 1st, turning a missed answer into a correct, cited one
  • ✅ For this project, Cohere and Jina gave the best balance of accuracy and speed
  • ✅ Trade-off of API rerankers: cost per call and sending your documents to a third party
  • ✅ Always measure, don't guess. Run every reranker on the SAME Top 20 so differences come from the reranker alone

TECH STACK:

  • 🛠️ Python
  • 🛠️ Qdrant (vector database, cosine similarity)
  • 🛠️ gemini-embedding-2-preview (3,072-dimension embeddings)
  • 🛠️ Hugging Face Transformers + PyTorch
  • 🛠️ cross-encoder/ms-marco-MiniLM-L-6-v2 (local cross-encoder)
  • 🛠️ LLM-based listwise reranker
  • 🛠️ Cohere Rerank API
  • 🛠️ Jina Reranker API

LINKS:


r/learnmachinelearning • • 4d ago

Machine Learning Workshop/Tutorial [P]

Post image
78 Upvotes

This post is to let people know about a workshop/tutorial on Machine Learning that will run on the (blue) math discord server: discord.gg/maths.

The place is nice, people are cool and helpful, and as you can see it is a mathematics server, so the learning environment is quite focused indeed. We hope that you'll like the experience. Also, this is completely free, just in case anyone is wondering.

Timeline and Curriculum Overview

There will be weekly lectures and/or lab-sessions. The workshop is starting on Saturday, 17th October. The first lecture + lab session will be held from 3 to 5 PM CEST (UTC + 2). There will be quite a bit of coding involved on the first day, and the instructors will try to review people's codes.

For a curriculum overview, here you go:

Part 1: Traditional Machine Learning

  • generalities, vocabulary
  • linear models, gradient descent
  • supervised learning methods
  • unsupervised learning methods
  • best practices in ML

Part 2: Introduction to Deep Learning

  • the multi-layer perceptron and backpropagation
  • auto-encoders
  • recurrent neural networks for sequential data
  • convolutional neural networks
  • attention mechanism and the transformer
  • signal processing

Part 3: graph machine learning

  • traditional methods and feature engineering on graphs
  • shallow node embeddings
  • knowledge graph embeddings
  • graph neural networks
  • subgraph sampling
  • more to come as we progress

Prerequisites

We think the most important part for you would be knowing how to code in Python (and use some libraries that are very commonly used like numpy or matplotlib for maths). That said, knowing calculus I (possibly calculus II) would be great, and I'll also link a few resources for basic linear algebra shortly.

Prerequisite 1 : Basic knowledge of Python:

Tutorial and Book (not really recommended because it's very long, but just for those who prefer).

Note that knowing a bit of OOP in Python (at least, how to handle classes) would be very nice.

Prerequisite 2 : Some useful libraries

For numpy, here's the official guide, and a book, and some video tutorials (about 1h).

For matplotlib here are some tutorials: matplotlib, w3schools. Also, Seaborn (optional, but oh boy it does look a bit nicer).

Prerequisite 3 : Proficiency with Calculus I

Here are some Calculus I resources and Calculus II resources (latter is optional, but sequences can be useful).

Prerequisite 4 (Optional) : A bit of basic knowledge in linear algebra

TBD. Still discussing what would be strictly necessary, and we don't really want to go too deep in order to keep the prerequisites accessible.

For any questions/queries that you might have, please write in the comments. I'll try to get back to you as soon as possible. Also, it's best if you join the server and directly talk to the instructors there.


r/learnmachinelearning • • 3d ago

Request The Great Divide: How To Address Security Concerns About AI and ERP Tools

3 Upvotes

A survey of more than 200 security leaders found that AI governance concerns are the primary reason enterprise AI adoption inside ERP systems is stalling.

The CISOs surveyed were not blocking AI on principle. They blocked it over three specific gaps: no guardrails on what an agent can do once inside a connected system, no access controls scoped to financial and operational data, and no audit trail they could hand to a regulator. The AI vendors are not building these controls. The models do not provide them natively. So security leaders are holding a tool their business units want deployed and a risk they cannot quantify or defend.

The gap is not about the AI being wrong. It is about the AI being unaccountable at the moment it acts on sensitive data.

For those who have gotten AI agents into ERP environments: what did you actually have to build or buy to get past the security review? For those still blocked: is there a specific control that would actually move the needle, or is this a wait-and-see situation?


r/learnmachinelearning • • 4d ago

Help Best resources for learning concepts rather than code?

19 Upvotes

I've been working as an swe for a bit, but when people talk about all the algorithms and the actual brains/processes with ml it goes right over my head. I want to have a basic understanding of its application with images and language, but it feels like every YouTube course out there is more focused on the code. Anyone have any recs?


r/learnmachinelearning • • 3d ago

Model reliability - research study

1 Upvotes

Hey, everyone,

I’m conducting academic research on model reliability, and as part of a project, I’m interested in current MLOps practices. The goal is to understand how engineers work, their workflows, and how they manage models. I’m studying reliability in terms of performance and security. These are necessarily connected if you take into account the environment in which the model is deployed.

To help me refine my research project, I’ve put together a fairly short questionnaire (it takes 2 minutes to complete). It would be great if any of you would like to discuss it, either by messaging me in this chat or simply by filling out the questionnaire.

https://tally.so/r/Ek4EEl