r/learnmachinelearning • • 5h ago

Discussion IIT Patna ML midsem paper

Thumbnail
gallery
66 Upvotes

Saw some clgs sharing their ML qn papers so here is iitp's . Avg was 15ish/60 on this paper. So our prof decided to give an easier paper for endsem. Rate or roast this question paper


r/learnmachinelearning • • 3h ago

ML paper in tier 3 college

Thumbnail
gallery
20 Upvotes

r/learnmachinelearning • • 12h ago

IIT Bombay End Sem ML question paper.

Thumbnail gallery
9 Upvotes

How to solve help..


r/learnmachinelearning • • 22h ago

Project I visualized gradient descent with three step sizes. What happens at η = 1.10?

7 Upvotes

Same starting point, same quadratic loss surface, three step sizes. For this tzero lab experiment I rendered f(x, y) = (x² + 1.7y²)/2 and checked the Excel and Colab results against the same update rule.

Before running it: would η = 1.10 converge or diverge, and why? And which made the behavior clearer: the 3D paths or the loss plot?


r/learnmachinelearning • • 16h ago

Project My Chess GPT can finally beat me 🥲

6 Upvotes

Im 1300 to 1450 on chess.com, so I like to think I’m decent. Bittersweet to lose to my baby. Version 1 was trained on the GPT-2 architecture but with chess data.

Version 2, the one you see, was trained with a more modern architecture similar to LLAMA. It’s 80 million parameters. I trained this for 10 hours on an A100 on 2 billion tokens of chess games I got from lichess that were heavily filtered for quality.

I didn’t do a traditional chessbot with MCTS or alpha beta pruning because I wanted a project that would give me experience with LLMs but be computationally feasible at a small scale. Also, some emergent properties only appear on larger LLMs, but making this so hyper specific allows me to try them on this smaller scale.

I want to try improving it with self play RL. Do some interpretability work. I think I could do some interesting CoT/test-time compute work to improve the bot further. I don’t think CoT would add much performance wise on an 80 million parameter LLM trained on text instead of chess tokens, hence another reason for this project.

I need to go study some RL and interpretability next for all of this. If anyone has ideas for other cool/interesting work I can do on this beyond interpretability, self play rl, and chain of thought, please let me know!!


r/learnmachinelearning • • 18h ago

Help MNIST training time optimization, please help

6 Upvotes

Hey there, my long term goal is to make a OCR and i have started ML a few months back, 3 days ago i started to make a CNN for the MNIST data set (60k training images and 10k test images) i achieved an accuracy of 92.20% but i was using stochastic gradient descent for every single image (60k x 3 epochs = 180000 updates). i then tried using batching and used a batch of 100, the time to train reduced significantly but the model became extremely dumb and got a accuracy of 16.67%. reducing batchsize does improve the accuracy at the cost of more training time. i have seen people train this entrie data set with more epochs than me in under half a minute but idk why i cant do it

PS: i have written every function in the architecture myself but optimized them using pytorch's tensor mutiplication instead of python loops. my main use of pytorch is to make tensors and autograd. all of the the tensor multiplications happen in my GPU and not my CPU


r/learnmachinelearning • • 14h ago

I built an open-source distributed security pipeline for LLM applications and AI agents (Python, Redis, PostgreSQL, MySQL)

5 Upvotes

I've been working on a problem I think deserves more attention in the LLM security space: most guardrails work reasonably well in a single process, but what happens when your AI application runs across multiple pods or replicas?

Consider a multi-turn jailbreak attempt or a user repeatedly exhausting tool-call budgets. In a distributed deployment, requests from the same user may hit different replicas. If session counters and rate limits rely on local state, your security controls can become inconsistent or simply fail.

That's why I built llm-security-pipeline: an asynchronous, distributed defensive pipeline designed to keep security state consistent even under multi-process contention.

It currently supports Redis (including Redis Cluster, with session counters pinned to a single hash slot for atomic updates), PostgreSQL, and MySQL.

What does it actually do?

- Multi-turn jailbreak mitigation: tracks session state across different application instances.

- Tool-calling protection: scope-gated capability tokens with cryptographically signed constraints.

- Side-channel exfiltration prevention: detects potential data leaks hidden in Markdown/HTML media tags and CSS "url()" references, including during streaming.

- Unicode attack protection: detects invisible Unicode codepoints and homoglyph attacks (e.g., Cyrillic characters used to bypass lexical filters).

- Zero-downtime signing key rotation: rotate cryptographic keys without interrupting the service.

A few honest limitations

I don't want to present this as a silver bullet:

- Lexical pattern lists currently cover 6 common languages. You'll likely need to extend them depending on your application's traffic.

- The library validates signed constraints but does not authenticate principals. Authentication belongs at the API gateway or another trusted boundary.

- No heuristic can replace proper red-teaming. The goal here is infrastructure-level enforcement, observability, and measurement, including shadow mode and Prometheus metrics.

Tech stack and availability

- Python 3.10+

- Redis, PostgreSQL, MySQL

- Fully open source under the MIT license

- Available on PyPI

GitHub: https://github.com/matteocacciola/llm-security-pipeline

I'd genuinely appreciate feedback, especially from people working on production-grade LLM applications.

A few things I'm particularly interested in:

  1. What security edge cases am I overlooking?
  2. Does the distributed state architecture make sense for high-contention workloads?
  3. How would you approach deadlock handling and transaction contention when multiple requests target the same session?
  4. Are there attack vectors I should explicitly address in future versions?

I'm particularly interested in critical feedback rather than just feature suggestions. If you spot a weakness in the design, I'd rather know about it now.


r/learnmachinelearning • • 23h ago

Any resources for LLM and RAG

5 Upvotes

Hi all , so I'm an undergrad student, with strong fundamentals in Machine Learning I wanted to start LLMs and RAG , where do I start ? And any recommended resources?


r/learnmachinelearning • • 3h ago

Which one should I learn, LangChain or LangGraph, according to the industry standards? I want to learn only one.

4 Upvotes

r/learnmachinelearning • • 6h ago

if you had to start again from scratch what would you do to learn ml

4 Upvotes

r/learnmachinelearning • • 9h ago

Free notes for AI engineers: revise or learn Generative AI and Agentic AI with diagrams and code

4 Upvotes

If you are learning to become an AI engineer, or you already are one and want a quick way to revise, these notes are for you.

Every lesson starts with a simple diagram of the idea, then plain words, then the code. So you can understand a topic fast, or refresh it before an interview or a project.

Covers:

- LLM basics and tool calling

- RAG: from a PDF to an answer

- Agents: state, loops, memory, human approval

and many more

Each topic has runnable code on free API keys.

Notes: https://genai-notes.vercel.app

Code: https://github.com/dhruv608/genai-notes

Which topic do you find hardest to revise? I will add a clearer explanation.

More lessons are coming (GraphRAG, advanced agents and more). ⭐ Star the repo to keep it for revision and to get the updates.


r/learnmachinelearning • • 15h ago

LLM/Agent Failure Modes

4 Upvotes

I'm running into an issue in an agentic system that I'm building. I'm finding that while the task of a specific model is quite bounded/basic(just editing another model's output for clarity), its spending almost all or all of its token output budget on tool calls and reasoning. Then, it returns incomplete or empty output due to reaching the maximum token budget. I think the budget is reasonable but it reasons for too long. How would you handle a system like this in production, where the output of this model is used as an input to another step in the pipeline?


r/learnmachinelearning • • 20h ago

Somehow made it to 4th & final round for an ML co-op (30 min w/ ML Director & ML Lead) even though I felt rough on the technical — what to prep & offer odds?

4 Upvotes

I have my final interview next week for an 8-month ML Engineering co-op at a major Canadian Retail compant, and honestly I’m a bit surprised I even made it this far.

So far I’ve done 2 HR rounds and a technical round with the ML Lead. I didn't feel like I did great on the technical part at all, though the actual conversation with both HR and the Lead went really well. Now I'm in the 4th and final round, which is 30 mins with the ML Director and the same ML Lead, and HR described it as "conversational."

Nobody has really asked me about my resume projects yet either, so I'm not sure what to expect. Should I prep for a deep dive into my resume, retail ML use cases (forecasting, pricing, etc.), or mostly behavioral/fit? Also, if anyone has been through a loop like this where they felt shaky on the technical and still got moved forward, how good are the odds at this point and what should I ask the Director?


r/learnmachinelearning • • 1h ago

Question Is maths important to learn ML?

3 Upvotes

r/learnmachinelearning • • 3h ago

Question Is machine learning THAT math heavy? Or am I just too naive? (Question related to recent ML test papers)

3 Upvotes

I wanted to learn machine learning cuz I found the idea of it interesting. My initial thoughts regarding machine learning was "why do the numbers make this output" and so I started learning through YT and Coursera.

I learnt how to use scikit learn, the various models, data cleaning, EDA etc... but there's been a few posts about Machine Learning papers from IIT or IIIT etc. and when I look at them, I feel like I'm very behind or just dumb straight up.

If I seriously wanted to pursue learning machine learning, what should be the ideal way? Or are the test papers displayed in those post "over exaggerated"?


r/learnmachinelearning • • 6h ago

Tutorial Mixture of Experts, token by token — a visual walkthrough

3 Upvotes

I made a short animation following the word “bank” in two sentences: “She deposited cash at the bank” and “They sat on the river bank.”

The example shows how context can change which experts the router picks. I also work through the numbers for one route so you can see how the two expert outputs get combined. I’d be curious whether the diagram makes that step easier to follow.

https://www.youtube.com/watch?v=ctRoV3RSIQ0. AI disclosure :I chose the examples and shaped the explanation of how each token moves through the model. I used AI tools to help create the animations and voice-over.


r/learnmachinelearning • • 3h ago

Which one should I learn, LangChain or LangGraph, according to the industry standards? I want to learn only one.

2 Upvotes

r/learnmachinelearning • • 5h ago

Help Doing a hackathon on agentic payments, what actually breaks for you when you buy online?

2 Upvotes

Hi guys, I'm doing a hackathon on agentic payments in e-commerce. Before building anything I wanted to find out what actually annoys people when they buy or pay for things online.

Made a small form, 2–3 min, anonymous.

The questions are about stuff that actually happened to you surprise fees, failed payments, chasing refunds, lost parcels not about AI. Happy to post the results back here.

https://docs.google.com/forms/d/e/1FAIpQLSelRKiGnTE5Z8jgKfDRxWDmTSejHCVvcNTAKKl43S9gKUcXog/viewform?usp=sharing&ouid=109229595333985717334


r/learnmachinelearning • • 6h ago

Guidance in Learning Machine Learning and How deep should I go in to learning

Thumbnail reddit.com
2 Upvotes

r/learnmachinelearning • • 17h ago

I created a free 100-question AI fundamentals quiz

Post image
2 Upvotes

I put together a free quiz for anyone looking to test their AI knowledge.

It contains 100 questions covering 10 domains, including machine learning, deep learning, transformers, LLMs, generative AI, RAG, AI security and model evaluation.

Each question includes an explanation to help you learn along the way.

Take the quiz for free

I'd love to hear your feedback and how you scored!


r/learnmachinelearning • • 20h 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 • • 23h ago

💼 Resume/Career Day

2 Upvotes

Welcome to Resume/Career Friday! This weekly thread is dedicated to all things related to job searching, career development, and professional growth.

You can participate by:

  • Sharing your resume for feedback (consider anonymizing personal information)
  • Asking for advice on job applications or interview preparation
  • Discussing career paths and transitions
  • Seeking recommendations for skill development
  • Sharing industry insights or job opportunities

Having dedicated threads helps organize career-related discussions in one place while giving everyone a chance to receive feedback and advice from peers.

Whether you're just starting your career journey, looking to make a change, or hoping to advance in your current field, post your questions and contributions in the comments


r/learnmachinelearning • • 1h ago

Project I made a little ML project that tries to detect biased language in news articles!

1 Upvotes

Hey everyone!

I've been messing around with machine learning lately and decided to build something around news bias detection, The idea is pretty simple. take a news article, split it into sentences, and see which ones contain language patterns associated with bias.

I used the BABE dataset and experimented with a few different models (Logistic Regression, Naive Bayes, SVM, and Random Forest), Eventually, I decided to turn it into an actual application instead of leaving everything in notebooks.

You can paste an article, get predictions for individual sentences, see their confidence scores, and even inspect which words influenced the predictions.

I also added a bunch of visualizations, including a little interactive 3D graph because... why not.

This was a pretty fun project to work on. I learned a lot about data cleaning, TF-IDF, model evaluation, hyperparameter tuning, and especially data leakage (which I initially underestimated).

The results aren't groundbreaking, and the model definitely has its limitations. It doesn't determine whether an article is factually biased or whether a publisher is trustworthy. It just looks for patterns it learned from the dataset.

Anyway, I made a short demo video showing how it works!

Would love to hear what you think or what you'd change/add. I'm still learning, so feedback is appreciated!


r/learnmachinelearning • • 1h ago

Request Is there a LeetCode for agent engineering? Where do you prove you can build production AI systems?

1 Upvotes

I'm a backend engineer in payments (Go, Kafka, AWS). I already build agentic tooling at work and want to move into agent/AI engineering roles.

LeetCode and HackerRank prove algorithm skills. I'm looking for the equivalent for agents: somewhere that shows I can build systems that hold up in production (evals, reliability, cost control, tool/MCP design, security), not just a demo that works once. I'm a backend engineer in payments (Go, Kafka, AWS). I already build agentic tooling at work and want to move into agent/AI engineering roles.

LeetCode and HackerRank prove algorithm skills. I'm looking for the equivalent for agents: somewhere that shows I can build systems that hold up in production (evals, reliability, cost control, tool/MCP design, security), not just a demo that works once.