Behind the scenes: What our machine studying interns constructed this summer time
Whether or not they’re constructing fashions that predict bias or devising AI brokers that assist builders write extra sturdy checks, Grammarly’s machine studying interns have an effect from day one. In this system, interns obtain sensible, hands-on expertise with mentorship, equipping them with precious abilities for his or her future careers.
This summer time, we welcomed 29 interns throughout our international workplaces. On this weblog submit, we’ll highlight three interns from our machine studying workforce. We’ll find out about every intern’s journey to Grammarly, unpack their internship venture, and share how they’ve grown because of the internship.
Kelly Deng

Quick details
College: Cornell Tech
Your favourite meals deal with: Matcha ice cream
Journey to Grammarly
Kelly was launched to machine studying throughout her freshman 12 months, when she took an introductory Python class. “I used to be fascinated by how these algorithms may extract a lot perception from numerous knowledge and make predictions about issues we haven’t seen. As a human, I wouldn’t be capable of do this myself—however I may prepare a mannequin to do it for me, and that concept actually hooked me,” she defined.
That spark rapidly developed right into a ardour for pure language processing (NLP) and huge language fashions (LLMs). When it got here time to decide on an internship, Grammarly was an apparent selection, because it sat on the intersection of each her pursuits. Past that, she was already a longtime consumer of the product, and the recruiting course of solely bolstered her enthusiasm. “Each step of the way in which, I acquired well timed updates and considerate suggestions, which actually helped throughout a irritating recruiting season,” she stated.
The internship venture
For her internship venture, Kelly constructed a multiclass classification mannequin to interpret consumer intent inside an inside system. The mannequin takes a consumer immediate (e.g., “Challenge Panda”) and returns a chance distribution of which inside sources or actions they could be searching for. “This might assist Grammarly higher perceive consumer intent from pure language prompts, and we will use this functionality to boost the consumer expertise,” Kelly defined. At present, the mannequin is absolutely skilled and deployed to manufacturing, however conducting this wasn’t easy.
“Our coaching dataset consisted of consumer search queries and the device the consumer would possible click on on, like Confluence, Slack, or Jira. Nevertheless, the annotations had been extraordinarily imbalanced. For instance, the ‘Confluence’ class had about 100 instances extra examples than ‘Jira,’ which made it arduous to realize good efficiency,” defined Kelly.
Kelly tackled this drawback by utilizing normal methods for imbalanced coaching knowledge, resembling focal loss and balanced sampling, however these methods didn’t enhance efficiency. “These strategies additionally require cautious hyperparameter tuning, which is time-consuming,” she stated. After discussing along with her internship mentor, Luke Salamone, Kelly generated artificial queries for the minority lessons, which balanced the dataset and helped her attain optimum mannequin efficiency.
However coaching the mannequin was solely half the battle. To deploy the mannequin into manufacturing, Kelly wanted to study a brand new codebase and TypeScript. With Luke’s affected person assist and debugging assist, she efficiently obtained the mannequin operating in manufacturing. “He supplied steering and ideas, but in addition gave me the liberty to discover completely different options and select the method I felt labored finest. It actually helped me develop,” she stated.
Studying and progress
Throughout her internship, Kelly didn’t simply find out about what it takes to construct software program efficiently in manufacturing—she additionally discovered in regards to the worth of suggestions and being assured in asking for enter.
“I used to really feel shy about sharing my work with others, anxious that it wasn’t polished sufficient,” she defined. “However by way of my time at Grammarly, I observed how everybody right here is intentional about giving and receiving suggestions; it’s actually a part of the tradition right here. So, I began sharing my progress earlier, asking for enter extra frequently, and even demoing my work throughout workforce syncs and company-wide conferences. This has helped me grow to be extra assured and collaborative in how I work.”
Priyam Basu

Quick details
College: College of Washington
Your favourite fictional character: Patrick from SpongeBob SquarePants—“He’s so energetic!”
Journey to Grammarly
Ever since he was a toddler, Priyam has been fascinated by the concept of making “clever” computer systems that may carry out duties autonomously, which naturally led him to discover AI and machine studying. “I used to be additionally impressed by, after all, Terminator,” he famous, as a result of no future engineer is proof against the pull of awe-inspiring, sentient robots.
This ardour took him to grad faculty on the College of Washington. When it got here time to discover a summer time internship, he needed to work at an organization within the AI house that additionally had a significant mission—Grammarly checked each these packing containers. “I cherished Grammarly’s deal with creating influence whereas doing it ethically,” he added.
The internship venture
Priyam’s internship venture centered on creating analysis methodologies for Grammarly’s AI detection providers to evaluate whether or not there was potential bias in opposition to particular demographic teams, resembling individuals for whom English just isn’t their first language. To create this analysis system, Priyam wanted two issues: various textual content samples from completely different demographic teams, and automatic checks to measure whether or not AI detectors exhibited bias in opposition to these teams.
“There weren’t any high-quality coaching datasets, so I spotted I’d should construct my very own,” Priyam defined. “Luckily, in my analysis, I discovered a bias-free open-source dataset of textual content writing from numerous demographic teams. I used AI to introduce bias into the dataset, and used the AI-generated samples as my coaching knowledge.”
Priyam’s subsequent step was to outline the analysis methodology. “We didn’t have clear scoping of the kinds of biases that we needed to guage or the metrics to measure them.” He tapped the broader workforce to assist him brainstorm and prioritize which biases to deal with.
On account of this collaboration, Priyam efficiently shipped the analysis pipelines. He additionally collaborated with the workforce to jot down a analysis paper that evaluates a variety of AI detectors for bias throughout numerous demographic teams.
Studying and progress
For Priyam, probably the most vital progress was studying to adapt to the fast-paced nature of the tech trade. “Issues transfer so rapidly right here, and I needed to discover ways to be extra environment friendly to match that tempo. Whereas it was difficult, it was a superb push; it made me understand that you could typically construct issues sooner than you initially deliberate,” he stated.
He credit his colleagues, Yunfeng Zhang and Justin Hugues-Nuger, for his or her assist and mentorship in serving to him make this shift. “They had been extraordinarily supportive, whether or not by answering my numerous questions, filling me in on vital buyer or enterprise context, or serving to me discover the proper documentation,” he stated.
Sameer Komoravolu

Quick details
College: College of Illinois Urbana-Champaign
A talent you need to grasp: Brazilian jiu-jitsu
Journey to Grammarly
Sameer has all the time dreamt of making use of math and physics to create new issues that assist individuals. This curiosity naturally drew him to machine studying—and finally to Grammarly. “I needed to study from trade leaders whereas engaged on significant tasks, so working right here felt like the right match. Plus, as a Grammarly consumer since center faculty, I’ve seen firsthand the influence of the product,” he defined.
The internship venture
Sameer’s venture required him to construct agent-testing brokers (ATA), that are AI brokers that may break different AI brokers (you learn that proper). Builders can use these ATAs to determine edge circumstances with AI brokers which may have been ignored by guide testing. For instance, suppose a developer makes an AI agent to deal with product questions from cross-functional groups, however the agent struggles with complicated queries. An ATA may mechanically generate more and more tough questions to search out precisely the place the agent breaks down, then present particular suggestions on how builders may repair the difficulty.
The most important hurdle was shifting past inflexible, pre-written check situations to dynamically generated ones. “With hard-coded testing standards, the ATA was solely helpful in sure domains. We needed to make it extra typically adaptable, which required us to dynamically generate testing situations,” Sameer stated. His mentor, Khalil Mrini, offered essential steering: “He directed me to over 20 papers that impressed the test-generation node, making me rigorously justify every design resolution I made so it will maintain up within the paper.”
With Khalil’s assist, Sameer mixed a number of methods from these papers by constructing a suggestions loop utilizing a deep-thinking mannequin (an LLM with chain-of-thought reasoning). Nevertheless, this structure rapidly turned unscalable, so he switched to parallel execution, permitting a number of checks to run concurrently. He additionally refined the structure by lowering context sizes and utilizing costly, high-powered fashions solely when essential.
By the tip of his internship, Sameer had constructed a working ATA prototype with a demo for his workforce and documented his findings in a analysis paper.
Studying and progress
Coming into the internship, Sameer was uncertain about his profession subsequent steps. “I used to be conflicted about tips on how to proceed with my profession: Ought to I proceed within the trade or return to highschool?”
Unexpectedly, the internship helped him arrive at some readability. “After talking with my mentors and teammates, I spotted that these paths aren’t so completely different, and I can discover each analysis and trade alternatives to see what I care about. So long as I’m making the most of studying alternatives, I’ll continue to grow,” he defined.
This deal with progress additionally prolonged to non-ML components of the internship: “We went mountaineering with the opposite interns, and I didn’t count on to discover ways to boulder by way of the internship. It was fairly cool!”
Trying forward
Our machine studying interns’ tasks have already had an unimaginable influence in accelerating Grammarly’s mission. Extra importantly, these tasks are taking over a lifetime of their very own—we will’t wait to see interns’ analysis papers printed and their fashions deployed in our merchandise.
In case you’re enthusiastic about making use of to Grammarly’s internship program subsequent 12 months, we’d love to listen to from you. Keep tuned for updates on our Careers web page for subsequent 12 months’s program.


