Priyanshu retweeted
RAG is officially dead ๐คฏ
MIT built an AI that doesn't need RAG.
Itโs called MeMo, instead of storing knowledge in a database, you train a small, dedicated Memory model on your documents.
At inference time, your main frontier LLM stays 100% frozen. No vector DB. No chunking. No weight access.
It simply interrogates the Memory model in 3 quick turns, like a detective questioning a witness, to pull exact facts and synthesize the answer.
The results are brutal:
โข NarrativeQA (long documents): 53.6% vs. RAGโs 23.2% (more than 2x better).
โข Noise test: Doubled the corpus with fake distractors. RAG tanked -6.2%. MeMo didn't flinch (+0.55%).
And the sleeper advantage? Itโs completely plug-and-play.
Train the Memory model once. When they upgraded the main LLM from Qwen2.5-32B to Gemini 3.0 Flash with zero retraining, accuracy jumped +26.7% overnight.
We spent 3 years trying to fix AI memory by building better search engines.
It turns out, the answer was giving the model a second brain.
Priyanshu retweeted
I urge everyone interested in AI to watch these three thought-provoking lectures by @paulfchristiano, who lays out his case for the risk of an AI takeover.
@paulfchristiano is the co-inventor of RLHF and Director of the Alignment Research Center.
youtube.com/watch?v=aRvrREUmโฆ
Priyanshu retweeted
20 RAG techniques every AI engineer should knowโfrom Hybrid Search and Reranking to GraphRAG, Agentic RAG, and Adaptive RAG.
Understanding these techniques is key to building more accurate and reliable AI systems.
#AI #RAG #AgenticRAG #ML #Tech
Priyanshu retweeted
Stanford's LLM/Transformers cheatsheet fits most of modern AI into just 6 simple pages
here's a sample page. great for ensuring you know all the foundations, and amazing if you use it as an ML learning roadmap
link: cme295.stanford.edu/cheatsheโฆ
Priyanshu retweeted
Bengaluru YC Startups Founder & Company Email List docs.google.com/spreadsheetsโฆ
Bookmark it!
Priyanshu retweeted
Bytebeam is hiring
Backend Engineer (SDE 1)
You can Apply here if interested:
jobs.bytebeam.io/jobs/backenโฆ
Priyanshu retweeted
should you do a phd? should you take that gap year to work a techcoโข๏ธ? should you quit your job to go back to school?
ahhhhh so many questions that are answered in this 48min interview with one of the most humble researcher I met this year
lots of pragmatic insight in there!
Priyanshu retweeted
A society of AI Scientists. A fascinating study on documenting the activity of 936 autonomous, interacting AI agents conducting research. They wrote code, papers, collaborated, and even started a new journal!
Summary: "Humans still won on original ideas; agents won on rigor.
Priyanshu retweeted
Now, NGINX has a code execution vulnerability. Here's how it could be done, and it is genuinely interesting. The first path is about connection cleanup...
NGINX keeps a pool of idle connections that it can close whenever it's running low on slots. The bug lets a connection get marked as idle right when a request starts using it. NGINX doesn't catch that, so later it tries to close the connection anyway.
The close fails halfway through, and NGINX frees the memory behind that connection even though the request is still actively using it. Now, an attacker can get that freed memory reallocated with their own data.
The request keeps running on top of memory the attacker now controls, which is enough to hijack it.
The second path is about bandwidth budgets.
HTTP/2 gives every connection a budget for how much data it can send before it has to pause and wait for more room. Cancel a request, and NGINX releases the unused part of that budget back into the count, but it never checks whether the release pushes the count above its allowed ceiling.
An attacker then inflates that count past the ceiling on purpose. Downstream, that oversized number overflows and turns into a buffer with the wrong size attached to it. From there, NGINX reads or writes past the edges of that buffer, enough to leak memory and eventually run code.
Both bugs are memory-safety issues, not logic mistakes.
I know it is not good to be happy about it, but these are super interesting exploits. Teaching us so much stuff.
Priyanshu retweeted
Some news: I'm starting a company in the AI for Science space.
We are training foundation models and improving them for multi-agent scientific discovery.
If you're looking to join an early-stage startup as a Research Scientist or Research Engineer, I'd love to chat. My DMs are open!
Priyanshu retweeted
build a basic URL shortener with AI.
then keep asking:
- what breaks at 1,000 users?
- what breaks at 100,000?
- what happens if the database goes down?
- how do we prevent abuse?
- where should caching happen?
- how do we measure latency?
that's system design :)
Priyanshu retweeted
Studying the new Anthropic blog on long term agent memory
They describe "dreaming" which is a technique that Claude uses to write "memory notes" about important events during chat sessions, and it can later reflect back on it to form new memory representations (like "wikis")
Recommended reading: anthropic.com/research/compoโฆ
Priyanshu retweeted
Inkling 2 Small took a while... but it's more interesting than I initially thought!
Using attention residuals (like Kimi K3), but without the linear-attention hybrid.
Food for discussion for the end-of-the-year architecture trends analysis!
Priyanshu retweeted
one idea that changed deep learning forever: attention.
2014: Bahdanau introduced soft attention
2015: Luong refined attention mechanisms
2017: Transformers made self-attention the foundation
2020: Linear attention tackled quadratic complexity
2022: FlashAttention made exact attention faster and more memory-efficient
which breakthrough do you think had the biggest impact?
Priyanshu retweeted
some genuinely good public datasets for your first serious ML project:
- Image classification - CIFAR-10
- Object detection - COCO
- Semantic segmentation - Cityscapes
- Text classification - AG News
- Sentiment analysis - IMDb Reviews
- Named entity recognition - CoNLL-2003
- Machine translation - WMT
- Speech recognition - Mozilla Common Voice
- Recommendation systems - MovieLens
- Time-series forecasting - M4
- Fraud detection - Credit Card Fraud Detection (ULB)
- Tabular classification - Adult Census Income
- Medical image segmentation - BraTS
- Question answering - SQuAD 2.0
- Graph neural networks - OGB
- Anomaly detection - MVTec AD
- Reinforcement learning - Minari
- Code generation - HumanEval
- Human activity recognition - UCI HAR
- Predictive maintenance - NASA C-MAPSS
pick a task, build a baseline, improve it, and document everything.
Priyanshu retweeted
MACHINE LEARNING ENGINEER ROADMAP
โ
โโโ 1. Programming Fundamentals
โ โโโ Python
โ โ โโโ Variables & Data Types
โ โ โโโ Loops & Conditionals
โ โ โโโ Functions & Modules
โ โ โโโ OOP & Exception Handling
โ โ โโโ List Comprehensions
โ โ โโโ File Handling
โ โ โโโ Virtual Environments
โ โโโ Data Structures & Algorithms
โ โโโ Git & GitHub
โ โโโ Linux & Command Line
โ
โโโ 2. Mathematics for Machine Learning
โ โโโ Linear Algebra
โ โ โโโ Vectors & Matrices
โ โ โโโ Matrix Operations
โ โ โโโ Eigenvalues & Eigenvectors
โ โ โโโ Matrix Decomposition
โ โโโ Calculus
โ โ โโโ Derivatives
โ โ โโโ Partial Derivatives
โ โ โโโ Gradients
โ โ โโโ Chain Rule
โ โโโ Probability
โ โ โโโ Random Variables
โ โ โโโ Probability Distributions
โ โ โโโ Bayes' Theorem
โ โโโ Statistics
โ โโโ Mean, Median & Mode
โ โโโ Variance & Standard Deviation
โ โโโ Hypothesis Testing
โ โโโ Correlation & Regression
โ
โโโ 3. Data Analysis & Manipulation
โ โโโ NumPy
โ โโโ Pandas
โ โโโ Matplotlib
โ โโโ Seaborn
โ โโโ Data Cleaning
โ โโโ Data Transformation
โ โโโ Exploratory Data Analysis (EDA)
โ โโโ Missing Values & Outliers
โ โโโ Feature Engineering
โ
โโโ 4. SQL & Database Fundamentals
โ โโโ SQL Queries
โ โโโ Joins & Subqueries
โ โโโ Aggregations
โ โโโ Window Functions
โ โโโ PostgreSQL
โ โโโ Database Design
โ โโโ Data Warehousing Basics
โ
โโโ 5. Machine Learning Fundamentals
โ โโโ What Is Machine Learning?
โ โโโ Supervised Learning
โ โ โโโ Linear Regression
โ โ โโโ Logistic Regression
โ โ โโโ Decision Trees
โ โ โโโ Random Forest
โ โ โโโ Support Vector Machines
โ โ โโโ K-Nearest Neighbors
โ โโโ Unsupervised Learning
โ โ โโโ K-Means Clustering
โ โ โโโ Hierarchical Clustering
โ โ โโโ Principal Component Analysis
โ โโโ Reinforcement Learning Basics
โ โโโ Training & Testing Data
โ โโโ Cross-Validation
โ โโโ Overfitting & Underfitting
โ โโโ Regularization
โ โโโ Hyperparameter Tuning
โ
โโโ 6. Machine Learning Algorithms
โ โโโ Linear & Polynomial Regression
โ โโโ Naive Bayes
โ โโโ Gradient Boosting
โ โโโ XGBoost
โ โโโ LightGBM
โ โโโ CatBoost
โ โโโ Ensemble Learning
โ โโโ Model Evaluation & Optimization
โ
โโโ 7. Machine Learning Frameworks
โ โโโ Scikit-learn
โ โโโ XGBoost
โ โโโ LightGBM
โ โโโ CatBoost
โ โโโ Feature Pipelines
โ โโโ Model Serialization
โ โโโ Custom Transformers
โ
โโโ 8. Deep Learning
โ โโโ Neural Network Fundamentals
โ โโโ Perceptrons
โ โโโ Activation Functions
โ โโโ Forward & Backpropagation
โ โโโ Gradient Descent
โ โโโ Loss Functions
โ โโโ Optimizers
โ โโโ Convolutional Neural Networks (CNNs)
โ โโโ Recurrent Neural Networks (RNNs)
โ โโโ LSTMs & GRUs
โ โโโ Transformers
โ โโโ Transfer Learning
โ
โโโ 9. Deep Learning Frameworks
โ โโโ PyTorch
โ โ โโโ Tensors
โ โ โโโ Autograd
โ โ โโโ nn.Module
โ โ โโโ DataLoaders
โ โ โโโ Training Loops
โ โโโ TensorFlow
โ โโโ Keras
โ โโโ GPU Acceleration
โ โโโ Distributed Training Basics
โ
โโโ 10. Natural Language Processing (NLP)
โ โโโ Text Preprocessing
โ โโโ Tokenization
โ โโโ Stemming & Lemmatization
โ โโโ Word Embeddings
โ โโโ Word2Vec & GloVe
โ โโโ Attention Mechanisms
โ โโโ Transformers
โ โโโ BERT & GPT Architectures
โ โโโ Hugging Face
โ โโโ Fine-Tuning Language Models
โ
โโโ 11. Computer Vision
โ โโโ Image Processing
โ โโโ Image Classification
โ โโโ Object Detection
โ โโโ Image Segmentation
โ โโโ OpenCV
โ โโโ YOLO
โ โโโ Vision Transformers
โ โโโ Image Augmentation
โ
โโโ 12. Generative AI & LLM Engineering
โ โโโ Large Language Models (LLMs)
โ โโโ Prompt Engineering
โ โโโ Embeddings
โ โโโ Vector Databases
โ โโโ Retrieval-Augmented Generation (RAG)
โ โโโ Semantic Search
โ โโโ LLM Fine-Tuning
โ โโโ LoRA & QLoRA
โ โโโ AI Agents
โ โโโ Model Evaluation
โ โโโ LLM Inference Optimization
โ
โโโ 13. MLOps & Model Deployment
โ โโโ ML Model Lifecycle
โ โโโ Experiment Tracking
โ โโโ MLflow
โ โโโ Weights & Biases
โ โโโ Model Versioning
โ โโโ Data Versioning (DVC)
โ โโโ Model Serving
โ โโโ FastAPI & Flask
โ โโโ REST APIs
โ โโโ Batch & Real-Time Inference
โ โโโ Model Monitoring
โ โโโ Model Retraining
โ
โโโ 14. Cloud & Infrastructure
โ โโโ AWS
โ โ โโโ Amazon S3
โ โ โโโ EC2
โ โ โโโ SageMaker
โ โ โโโ Lambda
โ โโโ Google Cloud
โ โ โโโ Vertex AI
โ โ โโโ BigQuery
โ โโโ Microsoft Azure ML
โ โโโ Docker
โ โโโ Kubernetes
โ โโโ CI/CD Pipelines
โ โโโ Terraform
โ โโโ GPU & Cloud Computing
โ
โโโ 15. Data Engineering for ML
โ โโโ ETL & ELT Pipelines
โ โโโ Apache Airflow
โ โโโ Apache Spark
โ โโโ Kafka
โ โโโ Data Lakes
โ โโโ Data Warehouses
โ โโโ Feature Stores
โ โโโ Data Quality & Validation
โ
โโโ 16. Model Optimization & Production
โ โโโ Model Quantization
โ โโโ Model Pruning
โ โโโ Knowledge Distillation
โ โโโ ONNX
โ โโโ TensorRT
โ โโโ Model Compression
โ โโโ Latency Optimization
โ โโโ Scalability
โ โโโ Production Reliability
โ
โโโ 17. Responsible AI & Security
โ โโโ AI Ethics
โ โโโ Bias & Fairness
โ โโโ Explainable AI (XAI)
โ โโโ SHAP & LIME
โ โโโ Data Privacy
โ โโโ Model Security
โ โโโ Adversarial Attacks
โ โโโ AI Governance
โ
โโโ 18. Build Real-World Projects
โ โโโ House Price Prediction System
โ โโโ Customer Churn Prediction
โ โโโ Fraud Detection System
โ โโโ Recommendation Engine
โ โโโ Spam Detection System
โ โโโ Stock Price Forecasting
โ โโโ Image Classification App
โ โโโ Object Detection System
โ โโโ Sentiment Analysis API
โ โโโ RAG-Based AI Assistant
โ โโโ AI Document Processing System
โ โโโ End-to-End ML Production Pipeline
โ
โโโ 19. Career Preparation
โโโ Build a Strong GitHub Portfolio
โโโ Create an ML Engineering Resume
โโโ Master ML System Design
โโโ Practice Python & SQL Interviews
โโโ Solve ML Case Studies
โโโ Learn Model Deployment at Scale
โโโ Contribute to Open Source
โโโ Write Technical Articles
โโโ Apply for Machine Learning Engineer Roles
FINAL GOAL:
Become a Production-Ready Machine Learning Engineer
Priyanshu retweeted
I interviewed at Oracle โ got 20LPA offer
I interviewed at Deloitte โ got 23LPA offer
I interviewed at PwC โ LOST 24LPA offer
I interviewed at Walmart โ LOST 28LPA offer
I interviewed at MNC โ got 32LPA offer
Finally, I interviewed at YC startup and got a 39LPA offer
After giving multiple interviews, one thing became clear: If you want to clear any Software Engineer interviews, the formula is simple: Java Backend, System Design, and DSA.
Here are 36 interview questions/topics that repeatedly showed up in my prep and interview journey:
๐๐ฆ๐
1. Implement LRU/LFU Cache
2. Find Median from Data Stream
3. Word Ladder problem
4. Merge K Sorted Lists
5. Detect Cycle in a Directed Graph
6. Maximum Subarray Sum
7. Kth Largest Element in a Stream
8. Task Scheduler/Priority-based scheduling
9. Longest Substring Without Repeating Characters
10. Trapping Rain Water
11. Find all permutations of a string
12. Lowest Common Ancestor in a Binary Tree
๐๐ฎ๐๐ฎ ๐๐ฎ๐ฐ๐ธ๐ฒ๐ป๐ฑ
13. HashMap vs ConcurrentHashMap vs Hashtable
14. JVM memory model: Heap, Stack, GC
15. ExecutorService, Callable, and Future
16. How Spring Boot Dependency Injection works
17. REST vs Kafka/RabbitMQ in Microservices
18. Transactions in Spring Boot
19. SQL vs NoSQL
20. Designing scalable REST APIs
21. How does Transactional silently fail?
22. Thread safety: synchronized vs volatile vs atomic
23. How does HikariCP connection pooling work?
24. Circuit Breaker pattern with Resilience4J
๐ฆ๐๐๐๐ฒ๐บ ๐๐ฒ๐๐ถ๐ด๐ป
25. Design a Chat Application
26. Design a URL Shortener
27. Design a Notification System
28. Scale a Video Streaming platform
29. Design a Payment System
30. Design an API Rate Limiter
31. Design an E-commerce Checkout System
32. Design a Ride-Hailing App
33. Design a Flash Sale system handling 10 million users
34. Design an Instagram Feed generation system
35. Design a Distributed Cache like Redis
36. Design a Search Autocomplete system
Until the next post...
Stay Curious. Keep Coding. ๐




























