r/learnmachinelearning • • 12h ago

Request You watch what goes into the agent; the data leaves on the way out

2 Upvotes

We ran a two-month review of agent security incidents across our environment and two of them shared the same pattern: the threat wasn't in what the agent received, it was in what it sent back out.

In the first case, the agent embedded sensitive internal data inside a legitimately formatted response — the kind that would sail through any input filter because input filters weren't looking at outputs. In the second, the agent was operating under a service account with broad internal trust, and it used that trust to move data to an external destination as part of a routine-looking workflow step.

Both incidents cleared every inbound check. The data was gone before anyone realized the inspection surface was one-directional.

This feels like a structural blind spot in how most teams are deploying agents right now — the entire security stack is oriented toward what comes in, while agent outputs route to APIs, storage, downstream services, and external endpoints with far less scrutiny.

For those of you running agents in production or reviewing incidents like these: where are you actually watching the outbound side? Is your current setup inspecting agent outputs and their destinations the same way it inspects inputs, or is that still a gap?


r/learnmachinelearning • • 17h ago

MLE interview for Google

3 Upvotes

Hello Everyone,

I have been working in fields related to data for the past 4 years now. I have worked as Data Analyst, Data Engineer and MLE. Recently I was shortlisted for MLE interview at Google and I have my phone screening coming up in a few days.

I have been practicing Leetcode problems but nothing much on ML apart from the basic concepts. It will be great if someone who has some experience can help me with the preparation or any specific questions that might be asked for "Applied AI" specialisation.

Thanks in Advance!


r/learnmachinelearning • • 11h ago

i need an experienced computer scientist to look at my project and if possible guide me toward the correct path

1 Upvotes

i have been working on something called mixture of steering vectors , got the idea from a paper used similar method in image generation models , and i was potential for llm , its simple using the moe routing idea , router the forward pass into experts , but in my case is , i added vectors in 3 layers at a base dense llm , 1 set for each expert " 1 set =3 vectors " so for now i have set for story writing , debugging , and other stuff , idea is to train these vectors with examples of specific topic to gain a behavior change with llm working in that topic , , example if the input token about story writing the router would pick the writing vectors set for this token , and repeat each token " router fires see token and choose expert " , its learned router to choose correctly based on the data train separated and tuned with the model , ,, difference is , using a small dense model and squeeze every bit of performance from by steering its behavior and tokens choices ,

my issue is , i have reach my knowledge limit " still cs undergraduate student" , and i would appreciate any one that can give advice or steer the idea into better path

this the repo link , its public and anyone welcome to contribute

https://github.com/mhndayesh/MoSV-Mixture-of-Steering-Vectors

this is not promotion or ad


r/learnmachinelearning • • 11h ago

Looking for a Kaggle Partner to Learn and Upskill Together!

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 12h ago

I made a free site for practicing how AI systems are designed, with no model training involved

1 Upvotes

I made fix-the-pipeline for people who want to learn the engineering around language models: caching, cost, choosing a model, context, retrieval and evals. This isn't ML theory, and you won't train anything.

It works like LeetCode. You get a small AI system with one thing wrong, its rules and prices stated. You pick an answer, work out a number, arrange pieces, edit a settings file or write Python. A wrong pick on an easier multiple choice problem tells you why it's wrong.

There's a two-minute tutorial, then five problems that climb from Easy 1 to Medium 6. The first ones ask things like where a cached prompt should end and what one request costs. No account needed for those: https://fixthepipeline.dev/start-here

It's free and most problems need no API key. It's early, so I'd like to know where you got stuck, especially if you're new to this.


r/learnmachinelearning • • 18h ago

Recommend me best beginner friendly project for Machine Learning !!

3 Upvotes

Currently I know numpy, panda, mathplotlib, sckit learn and somewhat pytorch

I'm thinking for building Heart Disease Prediction Model


r/learnmachinelearning • • 19h ago

Help Python dev with 6 years of experience transitioning to AI Engineering, what would you prioritize?

4 Upvotes

Hi everyone! This is my first post on Reddit.

I've been a software developer for 6 years, mostly working with Python, and I'm trying to transition into AI Engineering. The problem is that I feel pretty lost: every piece of content I find recommends a different path ("learn this", "learn that"), and it's hard to tell what actually matters.

So I'd love to hear from people who have made this transition or already work in the field:

  1. Given my Python background, what would you study first?
  2. How much of the fundamentals (math, classical ML) do you really need as an AI Engineer, compared to focusing directly on LLMs, RAG and agents?
  3. What kind of projects would you recommend to build a portfolio that stands out?
  4. Was there any course, book or resource that made a real difference for you?

Thank You Guys to help me, i'm realy lost


r/learnmachinelearning • • 12h ago

Self Attention Mechanism Course

0 Upvotes

Hey, with some friends we developed a course to teach self-attention mechanisms for LLMs in a browser. This is for a uni class where we study peoples use of AI helpers during learning. It's all anonymous and no data will be kept once we finish the study (end of December).

If this interests you, feel free to participate ! It's about 30-40 min and there's a cute dog 🐶 to keep you company while you complete the exercises. Also if you guys have any feedback, feel free to put it in the feedback section at the end or the comments !

https://attentionseeker-education.vercel.app


r/learnmachinelearning • • 13h ago

Confused neuron

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 15h ago

Learning RAG: what should I get right first, chunking, embeddings or retrieval evaluation?

0 Upvotes

I'm a student learning Retrieval-Augmented Generation. I understand the basic flow: split documents into chunks, embed them, store in a vector database, retrieve the top results, and pass them to an LLM. Where I'm unsure is what matters most in practice. How do you choose chunk size? When is a hybrid of keyword and vector search worth it? And how do you check that retrieval is actually good before blaming the LLM? Any beginner-friendly resources or small project ideas would help.


r/learnmachinelearning • • 17h ago

Request Short Survey (3–5 min): Understanding ML/LLM Monitoring and Debugging Experiences

1 Upvotes

Hey everyone!

I'm conducting a small academic research survey to understand how developers, students and researchers currently monitor and debug their Machine Learning and LLM workloads.

I'm particularly interested in the challenges people face when investigating training/inference performance, hardware utilization, memory bottlenecks and model-level behaviour.

The survey takes around 3–5 minutes, and your responses will help inform the design of a developer-focused monitoring and diagnostic dashboard.

Whether you're an ML engineer, researcher, student or someone experimenting with Transformers and LLMs, your experience would be valuable.

Participation is voluntary, and I'm not collecting names or email addresses.

Survey link: https://forms.gle/aRBBX8H3NEZtACXS9

Thanks a lot for helping out! I really appreciate it.


r/learnmachinelearning • • 17h ago

Request Your coding agent trusts the repo, and the repo is the attack

0 Upvotes

Coding agents inherit trust from whatever context they're given. That includes the repo.

In a two-month incident review, we saw this pattern twice: malicious instructions embedded in a codebase or dependency coax a coding agent into executing an action the developer never sanctioned. The agent reads the content, treats it as legitimate context, and acts — committing code, triggering a deploy, or exfiltrating data. The model isn't malfunctioning. It's doing exactly what it was trained to do with the input it received.

The attack surface is quietly large. Any file the agent reads during a task — a README, a config, a third-party module, an inline comment — is a potential injection point. The agent has no way to distinguish 'this is a legitimate instruction from a maintainer' from 'this was planted by someone who got a commit into this dependency.'

Two confirmed incidents in sixty days is a small sample, but it's also two more than most teams are tracking, because most toolchains have no visibility into what an agent actually did versus what a developer intended.

For those running coding agents in production or CI environments: how are you handling the boundary between what the agent is allowed to read and what it's allowed to act on? Is the control at the prompt level, the tool level, somewhere else, or not yet solved?


r/learnmachinelearning • • 1d ago

Help Guidance for 2nd year CSE-AIML student

5 Upvotes

Completed 3rd sem and I want to start AIML from now onwards . Its not like I want to complete it in 30 days that ik, is not possible. I just want to start early . I dont have any idea which course or whats the pathway to start honestly. It will be great if you help me with this. I have done python basics already ( except library and file handling ).please help me with this


r/learnmachinelearning • • 21h ago

Help me I don't know what happen but My LSTM get worse in val after training more : (

Post image
2 Upvotes
# HYPERPARAMETERS


## Size configs
T = 64 # context window
E = 128 # Embading dim
B = 128 # Batch Size


H = 256 # Hidden size
# chnage this to 256


DROPOUT_P = 0.2



## loder
NUM_WORKERS = 2


## Training configs


LR = 1e-3
SCHEDULER = {
    "milestones": [20],
    "gamma" : 0.1
}


EPOCHS = 10


loss_fn  = nn.CrossEntropyLoss()

r/learnmachinelearning • • 1d ago

Project I built a scorecard framework from scratch — the kind of thing my old company paid a $100K/year license for

3 Upvotes

Hey all,

I have spent around 15 years working on scorecards in fintech and rating agencies. In regulated scoring (credit, healthcare, etc.), teams often rely on pricey enterprise tools - sometimes $100K/year licenses - that act like black boxes. Early on, I never liked having to just trust what was happening inside them.

Around 10 years ago I started building my own implementation from scratch as a side/open-source project, mostly to really understand the mechanics and make sure the process was reproducible and defensible. Once I mapped out all the rules needed for that, fitting the actual model turned out to be the easiest part.

One thing that helped me make sense of tabular risk modeling is treating a scorecard as a fixed sequence of states, where each step only runs once its prerequisite is recorded:

Raw -> Clean -> Stable -> Encoded -> ML-Ready -> Trained -> Tested -> Inference Ready

Two lessons from doing this that I think are super useful when learning ML:

  1. Check stability before training, not only after. A common habit is to train a model, check drift on a validation/holdout set, and then patch things. Screening features for stability over time before fitting drops fragile variables upfront, so you train on a steadier feature set instead of chasing drift later. That is a big reason models that look great in backtests struggle in production.
  2. Prevent data leakage through pipeline structure, not willpower. Fitting encoders, scalers, or binning on a full dataset before splitting quietly leaks test or future information. If each stage is locked and transforms are fit strictly on training data, frozen, and re-used consistently later, you prevent leakage structurally instead of relying on memory.

Something I wish I had internalized earlier: the estimator itself (Logistic Regression, ElasticNet, XGBoost, etc.) is mostly interchangeable via config. The real work is the pipeline around it—lineage, stability checks, frozen transforms, and being able to reproduce a run cleanly. Having strict state guarantees also makes it much safer if an automated workflow or agent triggers steps later, though the main goal is reliability and auditability.

Over time this grew into a project I called AIDflow. If you want to read through how the state stages and stability checks work, the docs are here: https://aidflow.aigensys.com (the core code was written by hand over the years, with only docstrings cleaned up via an LLM before publishing).

You do not need a finance background to follow the concepts—basic Python and curiosity is plenty. Curious how others here structure pipelines to avoid leakage and drift when learning or building tabular models.


r/learnmachinelearning • • 18h ago

RAG vs Agentic RAG

0 Upvotes

A RAG agent never sees the true answer in its knowledge base, only whatever retrieval returns. So it keeps a belief state and updates it with each retrieval. That's a POMDP.
Seen that way, the "advanced RAG" tricks (iterative retrieval, reflection, re-ranking) are all just ways to fix a belief built on noisy observations.
Wrote it up with a tiny worked example:

https://aisystemsnotes.substack.com/p/agentic-rag-isnt-just-rag-with-extra?r=94sr06&utm_medium=ios&shareImageVariant=template_blur

How do you think about what an agent is "doing" when it retrieves?


r/learnmachinelearning • • 18h ago

I just want to start a career in AI and I’m so fascinated by how the AI works,basically I’m a mechanical engineering graduate so I’m planning to learn AI ML so,it is bad choice or not can anyone give me insight??

Thumbnail reddit.com
0 Upvotes

r/learnmachinelearning • • 19h ago

AI INFERENCE ENGINEERING FROM SCRATCH

1 Upvotes

Hello everyone I added 10 new chapters to https://ai-inference-engineering-from-scrat.vercel.app/


r/learnmachinelearning • • 20h ago

Just finished kaggle's intro to machine learning course and i have no idea what to do next ?

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 21h ago

how much rest do you guys take per week?

1 Upvotes

r/learnmachinelearning • • 1d ago

Request Looking for an AI/ML Interview Practice Partner

2 Upvotes

Hey everyone!

I'm looking for an interview partner to practice mock interviews and prepare for roles in AI Engineering, Machine Learning, and Data Science.

The idea is simple: we take turns interviewing each other, ask technical and scenario-based questions, discuss our answers, share feedback, and identify areas where we can improve.

I'm looking for someone who is equally serious about learning and improving. It would be a mutual effort where we both benefit and grow together.

If you're interested, feel free to DM me. Let's prepare together!


r/learnmachinelearning • • 23h ago

How would you check for leakage in a skin-image dataset when patient IDs are unverified?

1 Upvotes

I’m designing a final-year capstone experiment comparing ResNet50 and MobileNetV3-Large on the same binary skin-image classification task. The dataset comes with 3,915 files in train and 994 in test. We verified that every discovered path appears once in our inventory. We haven’t checked for duplicate image content or established whether several photos belong to the same patient.

My proposed order is to check exact duplicates across the supplied split, review candidate near-duplicates, and group related images wherever the available evidence supports it. I’d then reserve validation data from the eligible training files and use identical assignments for both models.

What evidence would make you keep the supplied test split, and what finding would make you rebuild it? If patient IDs remain unavailable, how would you describe the limits of the evaluation? I’d welcome examples from projects or papers where you faced this decision.


r/learnmachinelearning • • 19h ago

ML project suggestions

0 Upvotes

I'm planning to do my masters in machine learning abroad . I would like to do a project that would make my cv standout from others since I'm looking for a fully funded scholarships like DAAD,Erasmus mundus etc . Somebody who has done Good projects in ML can you suggest some?


r/learnmachinelearning • • 1d ago Bravo

Project I spent 2 days building interactive ML lessons where you can watch concepts move. Would love feedback

Post image
51 Upvotes

Formulas never clicked for me until I could see what was happening, so I made Stepwise ML: 118 short lessons where every idea is a diagram you can play with. Push the learning rate up and watch training fall apart, watch k-means find clusters, see attention decide what "bank" means.

Built it with Claude and checked the numbers in every lesson with Python. Free, no sign-up. What concept confused you the most? I'll add lessons for the top answers.

https://stepwiseml.com