Nirmal Patil retweeted
Racist groyper losers have been attacking me all day for defending Indians.
I don't care. Indians are extraordinary contributors to the United States and they deserve to be defended. So give me your hate, racists. You are nothing.
This Jew will stand with his Indian brothers.
Nirmal Patil retweeted
This week we lit diyas and basked in their light as we celebrated Diwali.
The light of New York City will always be brighter than the darkness. Happy Diwali.
Nirmal Patil retweeted
Regardless of the nature of these rituals or beliefs, the UAE stands as a global model of tolerance, coexistence, and respect for different religions and cultures
The UAE has made tolerance a fundamental principle, putting it into practice through numerous initiatives and institutions, including the establishment of the Ministry of Tolerance and Coexistence
We are fortunate to live in a country where people from different backgrounds are welcomed and respected, and where they can practise their beliefs and traditions in an environment of mutual respect and within the framework of the law
However, the issue is not with people practising their beliefs
The concern is choosing locations that are not designated or authorised for such activities
Tolerance does not mean the absence of rules, and respecting different beliefs does not mean disregarding the laws of the country
The UAE welcomes everyone, and respecting its laws and regulations is a responsibility we all share🇦🇪
Indian Biharis celebrating Chath Puja at Al Mamzar Beach in Dubai. They have brought flowers, bananas, pineapples & other food items in trays. They are pouring milk into the sea
@DubaiPoliceHQ Why is this even allowed in your country? This raises environmental pollution concerns
// CS329A Self-Improving AI Agents (by Stanford) //
Lots of students have been asking me for good lectures on self-improving AI.
This one has good content and lots of good references.
I've started putting together my own notes and will share soon.
(bookmark it)
Highly recommended read.
My notes:
I have recently started independent research on co-evolved models. My focus has been on co-evolving models and harnesses.
This work focuses on memory writing specifically for continual learning.
Why is this a big deal?
As you work with an agent, it should get better at your tasks, but that obviously doesn't happen easily, and current external memory systems often aren't enough.
This has less to do with memory systems (there are many great ones out there) and more to do with the model's awareness and judgment about when to act.
To illustrate, imagine an AI agent spends a week fixing bugs in the same project. We would expect it to learn how the project works and avoid repeating mistakes. Giving it a place to save notes lets it carry that knowledge into later tasks. But choosing what belongs in those notes requires judgment.
This work looks at how to train that judgment with RL.
They essentially teach an agent to discover useful information while working and write memories that help it succeed on later tasks.
A trained 4B parameter model reached a score similar to GPT-5.4 and Claude Opus 4.7.
RIME uses one model in two roles.
As the actor, it works on a task using its existing memory. As the writer, it reviews what happened and updates the notes available for the next task.
The training rewards each role differently.
The writer receives credit when performance on the next few tasks improves relative to performance on the recent tasks. This gives it a reason to preserve information that will help later. The comparison is an approximate training signal, since other actions and memory updates also affect those results.
The actor earns a reward for completing its task and an additional reward for discoveries that reach memory. An AI judge compares the old and new notes, looking for useful additions, corrected beliefs, and concrete leads.
This encourages the agent to investigate enough to learn something reusable. Rewriting the same notes in different words earns little credit.
The researchers found that these abilities need to develop together. A writer depends on the information the actor discovers, and an actor depends on the knowledge the writer preserves.
One big question I have here is efficiency and, obviously, how it all integrates into harnesses and workflows. I think approaches like this can save a lot of tokens and turns.
While this is on a small scale, it's great to see it working already. It feels like a more feasible approach for continual learning.
Frontier models are getting better at retaining knowledge, but I think efficient continual learning will still require touching the weights, which is where open-weight models will play a huge role.
How can we train LLMs to write memories from experience collected on the fly to as best as possible solve the next task, i.e., optimize for both capability and "continual learning" ability?
In our new post, we study this question in the setting continual learning over a sequence of tasks, and develop a simple approach to train models to write effective memories
cmu-aire.github.io/RIME/
*Spoiler*: the picture is more nuanced than you think 🧵 ⬇️
i learnt this lesson this year. it's helped me follow through on my ideas and not get stuck overthinking it
don't ask if you should do the thing. do it, then come back with a demo or something tangible
you can just do things
Mark Cuban just described the largest wealth transfer of the AI era.
Almost nobody understood what he said.
Cuban: “There are 33 million companies in this country. Aren’t going to have AI budgets. Aren’t going to have AI experts.”
Not tech startups.
The shoe store. The regional trucking outfit. The accounting firm with 12 employees.
The businesses that actually run the physical economy.
They know AI is coming. They have no idea what to do with it.
Cuban: “You’ve got the head of Microsoft saying software is dead because everything’s going to be customized to your unique utilization.”
Software is dead.
The SaaS era ran on one rule. Build a generic product. Force millions of companies to bend their workflows around it. Charge rent forever.
AI ends the contract.
The business stops bending to the software. The intelligence bends to the business.
But customized by whom.
The third-generation manufacturer cannot tell Claude from Gemini. The county hospital is staring at a reactor asking where the light switch is.
Cuban: “Who’s going to do it for them?”
That question is worth more than the frontier models themselves.
Hundreds of billions are being burned to build the foundation. The smartest engineers alive are locked in a bloodbath over who owns the base layer.
Let them fight.
Let them burn the capital. Let them drive the cost of raw intelligence toward zero.
Because the wealth does not collect where the brain is built.
It collects where the brain meets the business.
Every ambitious kid in college right now thinks survival means a seat at OpenAI or Anthropic.
Cuban is staring at the other 99 percent of the economy.
Learn the models. Then learn the messy, unglamorous reality of how a 50-person company actually operates.
Walk through the door. Understand their problems. Wire the intelligence directly into their revenue.
That is not a job title. That is an entire economic class being born.
You do not need to build the brain. You need to build the nervous system.
The biggest winners of the electricity era were not the engineers who built the generators. They were the ones who walked into dark factories and showed the owners where to plug in.
33 million companies are standing in the dark right now.
Silicon Valley is racing to build the god. The fortunes will belong to whoever teaches him a trade.
Nirmal Patil retweeted
Replying to @cohere
@cohere transcribe
Sota open source transcription model running in the browser :)
Weights on @huggingface link below
Nirmal Patil retweeted
This paper is a big deal!
It's well known that RL works great for math and code.
But RL for training agents is a different story.
The default approach to training LLM agents today is based on methods like ReAct-style reasoning loops, human-designed workflows, and fixed tool-calling patterns. The issue is that these methods treat the environment as passive rather than interactive.
But in the real world, agents must make sequential decisions, maintain memory across turns, and adapt to stochastic environmental feedback.
That's fundamentally an RL problem.
This new research introduces Agent-R1, a framework for training LLM agents with end-to-end reinforcement learning across multi-turn interactions.
As agents move from predefined workflows to autonomous interaction, end-to-end RL becomes the natural training paradigm. Agent-R1 provides a modular foundation for scaling RL to complex, tool-using LLM agents.
Standard RL for LLMs assumes deterministic state transitions. You generate a token, append it to the sequence, done. But agents trigger external tools with uncertain outcomes. The environment responds unpredictably. State transitions become stochastic.
Therefore, the researchers extend the Markov Decision Process framework to capture this. State space expands to include full interaction history and environmental feedback. Actions can trigger external tools, not just generate text. Rewards become dense, with process rewards for intermediate steps alongside final outcome rewards.
Two core mechanisms make this work. An Action Mask distinguishes agent-generated tokens from environmental feedback, ensuring credit assignment targets only the agent's actual decisions. A ToolEnv module manages the interaction loop, handling state transitions and reward calculation when tools are invoked.
On multi-hop question answering, RL-trained agents dramatically outperform baselines. The weakest RL algorithm (REINFORCE++) still beat naive RAG by 2.5x on average EM. GRPO achieved 0.3877 average EM compared to 0.1328 for RAG.
Ablation results also confirm that the design matters. Disabling the advantage mask dropped PPO performance from 0.3719 to 0.3136. Disabling the loss mask caused further degradation to 0.3022. Precise credit assignment is essential for multi-turn learning.
Paper: arxiv.org/abs/2511.14460
Learn to build effective AI agents in my academy: dair-ai.thinkific.com/
Nirmal Patil retweeted
AI Agents are amazing and continue to evolve, but let's face it: creating successful agents in production is not as easy as it might seem, and there are many ways for AI Agents to fail.
Today we are sharing a new repository:
github.com/vectara/awesome-a…
The goal of this repository is to be a community-curated list of failure modes, techniques to mitigate, and other resources related to agent failures, so that we can all learn from each other and build better agents.
Contributions welcome!
Nirmal Patil retweeted
“Chat with your PDF” still fails on ChatGPT/Claude when the doc is too complex 📉🧾 . If it’s a complicated financial report with scanned tables, you’re going to get back hallucinated values in your analysis!
Check out the video 🎬 - in the first part, Claude gives back hallucinated values on the scanned tables in the equity research report.
Having a proper document MCP server capable of high-accuracy parsing/indexing can help 💡. In the second part of the video I plug in LlamaCloud as an MCP tool to help with doc parsing and retrieval - it is fully able to render the scanned table in 2D format.
You can set one up for yourself in 5 mins in the UI, no coding required.
LlamaCloud: cloud.llamaindex.ai/?utm_cam…
MCP Server: mcp.llamaindex.ai/
Nirmal Patil retweeted
The reason top tech companies often hire foreign-born & first-generation engineers over “native” Americans isn’t because of an innate American IQ deficit (a lazy & wrong explanation). A key part of it comes down to the c-word: culture. Tough questions demand tough answers & if we’re really serious about fixing the problem, we have to confront the TRUTH:
Our American culture has venerated mediocrity over excellence for way too long (at least since the 90s and likely longer). That doesn’t start in college, it starts YOUNG.
A culture that celebrates the prom queen over the math olympiad champ, or the jock over the valedictorian, will not produce the best engineers.
A culture that venerates Cory from “Boy Meets World,” or Zach & Slater over Screech in “Saved by the Bell,” or ‘Stefan’ over Steve Urkel in “Family Matters,” will not produce the best engineers.
(Fact: I know *multiple* sets of immigrant parents in the 90s who actively limited how much their kids could watch those TV shows precisely because they promoted mediocrity…and their kids went on to become wildly successful STEM graduates).
More movies like Whiplash, fewer reruns of “Friends.” More math tutoring, fewer sleepovers. More weekend science competitions, fewer Saturday morning cartoons. More books, less TV. More creating, less “chillin.” More extracurriculars, less “hanging out at the mall.”
Most normal American parents look skeptically at “those kinds of parents.” More normal American kids view such “those kinds of kids” with scorn. If you grow up aspiring to normalcy, normalcy is what you will achieve.
Now close your eyes & visualize which families you knew in the 90s (or even now) who raise their kids according to one model versus the other. Be brutally honest.
“Normalcy” doesn’t cut it in a hyper-competitive global market for technical talent. And if we pretend like it does, we’ll have our asses handed to us by China.
This can be our Sputnik moment. We’ve awaken from slumber before & we can do it again. Trump’s election hopefully marks the beginning of a new golden era in America, but only if our culture fully wakes up. A culture that once again prioritizes achievement over normalcy; excellence over mediocrity; nerdiness over conformity; hard work over laziness.
That’s the work we have cut out for us, rather than wallowing in victimhood & just wishing (or legislating) alternative hiring practices into existence. I’m confident we can do it. 🇺🇸 🇺🇸
Nirmal Patil retweeted
I remain confused by the "GenAI is a dud" arguments.
We have controlled experiments showing 20%-40% gains in real work using GenAI. Adoption rates are the fastest in history. There is value.
I think what folks may mean is that "companies haven't captured the value created yet."
Nirmal Patil retweeted
Enhancing LLMs for RAG
Introduces RAGFoundry, an open-source framework for augmented LLMs for RAG use cases.
It supports data creation, training, inference, and evaluation.
One useful application is the creation of data-augmented datasets for tuning and evaluating LLMs in RAG settings.
After checking out their GitHub repo, I like how easy they make it to build and test quick prototypes with several RAG configurations and enhancements. It has a lot of potential even as just a learning tool.
Nirmal Patil retweeted
📰Latest LangChain Newsletter is out
🏗️LangChain Templates Hub
🛠️7 days of LangSmith
📊LangChain Benchmarks
🤖OpenGPTs
And LOTS of awesome stuff from our community that we wanted to highlight
Read here & sign up to get it in your inbox every other week
blog.langchain.dev/week-of-1…
Nirmal Patil retweeted
Sreejesh saved a penalty corner when there were just 6 seconds left in the match - The wall. #Hockey
Nirmal Patil retweeted
The 16 who scripted history:
Manpreet, Sreejesh, Harmanpreet, Rupinder, Surender, Amit, Birendra, Hardik, Vivek, Nilakanta, Sumit, Shamsher, Dilpreet, Gurjant, Lalit, Mandeep.
Remember them, cherish them,
tell your children about them. Let them inspire a generation🇮🇳 #indvsger
Nirmal Patil retweeted
This document includes a list of verified contacts, websites and organizations to access hospital beds, covid medication, plasma donors, oxygen cylinders and meal deliveries in various cities.
docs.google.com/document/d/1…





































