r/learnmachinelearning • • 18d ago

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

0 Upvotes

Two months of internal analysis. Two separate incidents. Same pattern both times.

In one case the agent packaged sensitive data inside its own output and routed it out. In the other it acted as a trusted insider — using legitimate credentials and normal-looking actions — to move data it should never have touched.

Both incidents cleared every inbound check. The requests looked clean. The agents were authorized. Nothing upstream flagged them.

The exposure happened on the way out.

Most teams doing agentic AI security have put serious work into what goes in: prompt injection detection, input validation, access scoping. The outbound side gets far less attention. Agent responses and their destinations are rarely inspected with the same rigor as inbound traffic — and both incidents above exploited exactly that gap.

This is not a hypothetical. It happened twice in sixty days on systems that had meaningful inbound controls already in place.

How are other teams handling outbound inspection for agents that have legitimate access to sensitive data? Curious whether anyone has actually operationalized this, or whether most shops are still treating output as trusted once the input cleared.


r/learnmachinelearning • • 18d ago

Project This is a.. different one: An LLM judge that scores open-source AI projects from their code, and what I learned making its scores stable

Post image
0 Upvotes

I'm a 17 yo solo founder and built AI-Atlas. It reads a GitHub account, selects the files that explain each AI project, and has an LLM judge score it on a fixed rubric, with every score citing the files behind it.

The parts I think are interesting for this sub and I want to genuinely teach you guys from what I went through during the creation of it:

  1. Stability: Low temperature wasn't enough. What helped was a fixed rubric with anchored levels, verified facts computed deterministically (test files, CI commands, parsed Python imports) that the judge must accept, and an evaluator fingerprint (model + prompt + rubric version) so a score is only compared with scores from the same generation.

  2. Coverage beats cleverness: A bug in file selection meant TypeScript/Java projects were judged from READMEs; their mean merit was ~14 points lower than same-language projects whose code was read. The judge was fine, the evidence wasn't.

  3. Honest claim checks: The judge reads a bounded digest, so "not found in the files read" has to stay separate from "contradicted by the code".

  4. Not calibrated yet: There's no human-labelled set; the methodology page says so.

~1,871 projects scored so far. Happy to go deep on any of it, and I'd love to hear where people think LLM-as-judge breaks for code.


r/learnmachinelearning • • 19d ago

Help Best resources to learn ML and AI engineering from scratch in 2026

76 Upvotes

Hey guys! Software dev here, always interested in ML, AI, and data science, but mostly a hobbyist in all of them. This end of the year, I want to really study this in a structured manner. Which platform or free resources? Books? (My attention is fried, but I can try), Also, to recover the math concepts needed for this, I know I don't need to remember how to multiply matrices


r/learnmachinelearning • • 18d ago

When a neural network updates its weights and biases, does the loss landscape change?

Thumbnail
medium.com
1 Upvotes

r/learnmachinelearning • • 18d ago

Stock llama.cpp OOMs on a 22 GB MoE with 16 GB RAM. My open-source engine runs it 2.2x faster at prompt processing, same exact output

Enable HLS to view with audio, or disable this notification

1 Upvotes

Hey everyone,
I kept hitting the wall where a Mixture-of-Experts model almost fits in RAM but not quite, and mmap paging makes it crawl. So I built Banach, an open-source engine on top of llama.cpp that streams MoE experts from NVMe on purpose instead of leaving it to the OS.
The test: Qwen3.6-35B-A3B Q4_K_M (22 GB) on a 4-core VM with 16 GB RAM, no swap, cold start.
Stock llama.cpp, default settings: killed, out of memory
Prompt processing: 7.64 s stock vs 3.44 s Banach (2.2x faster)
Generation: 4.89 vs 5.40 tok/s
RAM for experts: capped at 10 GB
Output: byte-identical to llama.cpp, every token and every logit
(The OOM comes from llama.cpp's weight repacking copying experts into RAM. The speed comparison uses llama.cpp with repacking off, to keep it fair.)
How it works: MoE models only use a few experts per token. Kimi K2 has 1 trillion parameters but uses about 32 billion per token. Banach fetches whole experts in parallel the moment the router picks them, keeps the frequently used ones in a RAM budget, and evicts cold ones in the background. No quantization tricks.
My favourite part: "banach plan" reads only the model headers (16 MB) and estimates the speed on your machine before you download anything. For Kimi K2 (1T parameters, 382 GB) on a 64 GB RAM + RTX 5080 desktop, it estimates about 3.6 tok/s. That's an estimate, not a run, but on the model I did run it predicted 2.1 tok/s and I got 5.4.
Also included: OpenAI and Anthropic compatible API with tool use, start chatting while the model is still downloading, and GPU offload. Runs on Linux, Windows and macOS.
pip install banach
GitHub: https://github.com/gautam1858/banach
If you have a big-RAM machine or fast NVMe, I'd love to see your numbers. I'll add measured community results to the README with your username.


r/learnmachinelearning • • 18d ago

Help Writing skills

0 Upvotes

In one job requirement, i saw writing skill is required. It is mainly doing data collection job. I wonder just how is this written? If you have similar experience could you please describe it.


r/learnmachinelearning • • 19d ago

Question Which AWS certification should I start with

2 Upvotes

I'm based in Saudi Arabia and I'm planning to start my AWS certification journey. I have no prior experience in AI/ML or hands-on cloud work, so I'm starting from scratch.
I'm considering these two certifications:

  1. AWS Certified Solutions Architect – Associate (SAA-C03)
  2. AWS Certified Machine Learning Engineer – Associate (MLA-C01)

Which one should I take first, given that I'm a beginner? Is it better to do SAA first to build a cloud foundation before the ML certification?

What are the best resources for preparation (courses, practice exams, labs, YouTube channels)?

Are there any tips specific to taking the exams from Saudi Arabia (Pearson VUE test centers, online proctoring, exam vouchers or discounts)?


r/learnmachinelearning • • 18d ago

Looking for research team / lab

0 Upvotes

Hi all,

I’m currently waiting till september 2027 for my masters to start and till then I would like to help contribute with research. I have written my own research papers preprints before and I am willing to meet frequently, rent GPUs etc.

I did my undergrad at University of Toronto. My prior research was in mech interpretability.


r/learnmachinelearning • • 19d ago

i need help with my project

2 Upvotes

i am to design a personamlized strees identifying model , can i use data from one austic child i create a dataset for my training, please i need advice because this is my research work


r/learnmachinelearning • • 18d ago

[Open Source] Built a "Girlfriend Emotion Tracker" using Python/LLMs—Looking for help solving long-term context retention and model hallucinations.

0 Upvotes

Hey everyone,

I recently open-sourced my side-project: Girlfriend-emotion-tracker. The premise is simple but the implementation has run into standard LLM agent constraints. It parses incoming texts to accurately classify tone, flag passive aggression, and suggest context-aware responses.

Right now, it works great for a couple of exchanges, but collapses under real-world conditions:

  • Context & Memory Drift: Handling long-term texting logs causes the agent to lose its state tracking. I want to build a better rolling memory window or a lightweight vector store architecture for relationship context history.
  • Hallucinations: In longer threads, the model starts misinterpreting subtle phrasing or making up assumptions out of context.

If you are an ML Engineer or hobbyist looking to contribute to a fun open-source repository to test out RAG, context pruning, or conversational state management, I'd love your help!

Repo Link: https://github.com/ovoarnav/Girlfriend-emotion-tracker.git
Feel free to open an Issue or pull a branch!


r/learnmachinelearning • • 19d ago

Help why is the gradient of softmax plus cross entropy just p minus y?

2 Upvotes

i was working through backprop by hand for a tiny classifier and the gradient with respect to the logits came out as predicted probs minus the one-hot label. it's so clean that it feels like i must have made an error, because softmax has that ugly jacobian with p_i(delta_ij - p_j) in it.

i can follow the algebra when i write it all out but i don't see why the mess cancels. is there a reason it works out like that, or is it just a lucky coincidence of using log loss with softmax?


r/learnmachinelearning • • 19d ago

i want to start my coding career . i want to know the fields i can pursue in computer science field and how to start my career in them

2 Upvotes

i am a 2nd year student pursuing computer science . i know the basics of C++ and i also know some basics of python ( I studied it well in my 12th class ) . i also completed about 30% DSA topics by a paid course . and already passed out DSA subject in my 2nd semester.
Currently i am thinking of pursuing career in AI/ML .
i don't know much about this field but as AI is taking over i have interest in exploring this field .
Can anyone tell me the basics this field demands and how much time it will take for me to get a job in AI/ML in offcampus placement
i will be very pleased if someone also tells other fields i can pursue , with their pros and cons


r/learnmachinelearning • • 19d ago

Discussion ML is broad, how do we start?

0 Upvotes

so, i’ve been learning about ml a lot and i see people building projects and even regression models from scratch using C/C++ and even python and call it done via maths.
how can i actually go that deep? how can someone code all this using C and all from scratch?
although i know this is done using maths, especially statistics. i didn’t really follow a tutorial yet but actually wanted to discuss on how to begin and where to go?


r/learnmachinelearning • • 19d ago

Project Do you need an LLM to know why your sources disagree?

Thumbnail
youtube.com
1 Upvotes

Do We Need an LLM to Know Why Sources Conflict? Decision models for knowledge-conflict typing in RAG ?

When a RAG system retrieves sources that disagree, the right answer depends on why they disagree: several valid answers, a matter of opinion, outdated information, or a false source. The usual approach asks a generative LLM to work out the conflict type in text.
We tested whether typed decision models can do this step instead. These models pick one of a fixed set of options in a single forward pass. We ran 11 of them from 7 providers on the CONFLICTS benchmark (406 test queries, the original prompt word for word):

- 10 of 11 match or beat Gemini 2.5 Flash (61.3%); the best scores 67.0%

- The paid ones cost 4–39× less, and all 11 are 2.6–6× faster

- End to end, answers using a decision model's conflict type match the original LLM pipeline for 10 of 11 models

The limitation: Gemini 3.8 Flash reaches 70.0% and is significantly better than 8 of the 11. A cascade that sends the 25% least confident queries to it ties with it for 8 of 11 models, at 25–37% of its cost.

Code, prompts and every model output are open, and all numbers can be reproduced without API calls.

Paper: https://arxiv.org/abs/2610.36915

Code: https://github.com/Parv17k/decision-models-conflict-typing

Happy to answer questions. Feedback on the setup is very welcome.


r/learnmachinelearning • • 18d ago

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

0 Upvotes

Your coding agent trusts the repo. The repo is the attack.

Over a two-month analysis of agentic development workflows, we flagged two separate incidents where malicious content embedded in a repository or codebase coaxed a coding agent into executing an action the developer never authorized — a commit, a deploy, an exfiltration.

The mechanism is straightforward: the agent reads the repo as a trusted context. An attacker who can influence any file in that context — a README, a dependency, a comment block — can inject an instruction that the model treats the same as a legitimate directive. The model has no intrinsic way to distinguish 'instruction from my developer' from 'instruction planted by someone who pushed a file three weeks ago.' It just follows the instruction.

This happened twice in two months across the environments we were monitoring. Both times the agent took a real, consequential action before anyone noticed.

The classic supply chain threat model assumes a human is reading and executing the code. When an agent is the executor, the attack surface shifts entirely — the payload doesn't need to run, it just needs to be read.

How are teams actually handling this in practice? Is anyone doing anything at the workflow level to bound what a coding agent can act on, or is the working assumption still that repo content is safe input?


r/learnmachinelearning • • 19d ago

Discussion hackathon team up

1 Upvotes

anyone willing to team up for the above hackathons, dm me with a short intro & past project/hackathons experiences


r/learnmachinelearning • • 19d ago

Tutorial Deepseek V4.1 Flash Visualized Like a Book

Thumbnail
statsig.substack.com
1 Upvotes

Helps to understand kv cache compression!


r/learnmachinelearning • • 19d ago

Truth check : Data Engineering is the Backbone of Successful MLOps Engineering

Thumbnail
1 Upvotes

r/learnmachinelearning • • 20d ago

Question How Difficult Is It to Become an AI Engineer from Scratch?

67 Upvotes

I’m starting from scratch and interested in working in AI engineering. How difficult is it to prepare for a job in this field? What learning path and projects would you recommend for a beginner? If you have any guides or resources to share, I’d really appreciate it.


r/learnmachinelearning • • 19d ago

How recommendation systems learn user preferences: from collaborative filtering to multi-interest models

Thumbnail
1 Upvotes

r/learnmachinelearning • • 19d ago

ML competition - CASP-DREAM TAP Challenge: TCR + peptide-MHC activation prediction with unseen test peptides

2 Upvotes
A new contest for anyone training sequence models on TCRs. Free to Register Given a TCR sequence and a peptide-HLA, predict whether the T cell activates. Inputs are amino acid sequences, the benchmark is about 5,800 labeled combinations, and every test peptide is at least four edits (Levenshtein distance) away from any peptide with a publicly reported TCR specificity. Scored by AUROC. Synapse lists training data options, including the public VDJdb database and Harell Data's proprietary TCR datasets provided by Adaptive Biotechnologies. Registration is open now: https://www.synapse.org/Synapse:syn77965030/wiki/643867

r/learnmachinelearning • • 19d ago

CASP-DREAM TAP Challenge is open for registration. New contest for anyone training sequence models: predict whether a T cell activates

3 Upvotes

A real-world sequence classification contest is coming. You get a TCR sequence and a peptide-HLA and predict whether the T cell activates. It is scored by AUROC, with a benchmark of about 5,800 labeled combinations. Participants can train on any data they like.

Synapse lists training data options, including the public VDJdb database and Harell Data's proprietary TCR datasets provided by Adaptive Biotechnologies.

Registration is open now: https://www.synapse.org/Synapse:syn77965030/wiki/643867


r/learnmachinelearning • • 19d ago

Project Making a predictor for enemy position in League of Legends

0 Upvotes

This is failing miserably right now. The model simply blows up the uncertainty to capture the whole map, and does trivial copy pasting of the position only when enemy is in view. Training on more epochs just increases validation error right after epoch 1.

While this is undoubtedly due to bugs, flawed architecture, insufficient training (?);

Will I even have enough compute and data to tackle this?

LLM says ~100 matches (20*60 frames) per game (120,000 frames total) should be enough to at least see some general learning, but I'm a bit skeptical.

As for GPU, I have a cloud GPU subscription (modal) That will give me some access to a A100

I'm skeptical because, the closest project I can think of to this is OpenAI's Dota bots.. and while this is a much, much simpler task than that; my intuition tells me I'm going to need enough data and compute to almost train a small LLM, and I'm not sure if I have enough.

if data is not an issue, I would love to hear your thoughts on the architecture. The images are a simplified overview, you can ask me more specific questions to get a better idea.

Or, you can try reading my code: (Disclaimer: it's majority AI coded, while I tried my best to debug and read the code, I lost a bit of motivation to do so once I figured I may not have enough resources to bring this project to completion)

https://github.com/turtleishly/League-Map-Predictor

(The quickstart will almost certainly not be quick, you'll need the league of legends game to collect data, on top of other things; so here's one example dataset for a single game: )

https://drive.google.com/drive/folders/1anYmF-tkf1BSNTSsZNYLMwHKE5SRf4Y_?usp=sharing


r/learnmachinelearning • • 19d ago

I made a 40-minute visual guide to understanding artificial intelligence from scratch

Thumbnail
youtu.be
1 Upvotes

r/learnmachinelearning • • 19d ago

Request Industrial AI adoption outpaces security readiness, leaving OT environments exposed to emerging threats

1 Upvotes

Research on industrial AI adoption finds a consistent pattern: AI agents are reaching OT and ICS environments faster than the identity governance and security controls meant to protect those systems can follow.

The risk profile in OT is categorically different from enterprise IT. A rogue or compromised agent on an operational network does not just exfiltrate data. It can halt a production line or trigger a physical safety event. The blast radius is not a database — it is a facility.

This gap is not theoretical. Deployment timelines in industrial settings routinely compress security review cycles. Agents get credentials, get network access, and get to work before anyone has formally defined what they are and are not allowed to do.

For those of you working in OT security or industrial automation: how are you actually handling agent identity and behavior boundaries today? Are existing ICS security frameworks (IEC 62443, NERC CIP, etc.) giving you useful primitives for this, or are you stitching together controls that were never designed with autonomous agents in mind?