Yash Maheshwari

Researcher in small language models · Mountain View, California

I study small language models, and especially what they can learn when data, memory and compute are scarce. My papers ask why small recurrent models lose grammar late in pretraining, and what compressing a model below one bit per weight does to its robustness once it runs on a device. I train nearly all of these models from scratch on a MacBook using MLX. At Stanford, I work on benchmarks for AI agents in hospital administration with the Shah Lab, including Screen2Bench, which builds them from screen recordings; before that, I built AI reading and handwriting tutors with the Lemons Lab.

Portrait of Yash Maheshwari

2026

  1. arXiv 2026 · cs.MAPreprint

    Screen2Bench: From Screen Recordings to Faithful and Verifiable Computer-Use Benchmarks

    Yash Maheshwari, Kaustubh D. Dhole, Suhana Bedi, Nigam H. Shah

    arXiv preprint arXiv:2611.39246

    Screen2Bench builds computer-use benchmarks from screen recordings alone, reconstructing interactive copies of the recorded applications and generating tasks with executable verifiers; across three simulated healthcare applications, it wins 71 of 72 metric-level comparisons against Claude Code alone with Claude Opus 5.5.

    arXivPDFCode

    Evaluating computer-use agents in realistic environments is challenging, particularly in healthcare, where access to proprietary applications is often restricted. Screen recordings offer a practical alternative for constructing computer-use benchmarks without direct access to these applications. We present Screen2Bench, a multi-agent orchestrator implemented as a Claude Code plugin that automatically constructs computer-use benchmarks from screen recordings by reconstructing interactive environments and generating evaluation tasks with executable verifiers. Screen2Bench coordinates specialized agents to reconstruct recorded interfaces, independently assess their fidelity, and validate task verifiers against correct and incorrect task executions. To systematically assess the quality of the resulting benchmarks, we evaluate environment fidelity and task quality using multiple metrics and introduce two measures: task preference, which assesses how well generated tasks cover and evaluate recorded workflows, and check strength, inspired by mutation testing in software engineering, which quantifies the extent to which task verifiers detect incorrectly entered values. We evaluate our approach across three simulated healthcare applications by comparing Claude Code with and without the plugin under matched conditions, using identical screen recordings, base models (Claude Opus 5.5, Claude Sonnet 5.5, or Claude Haiku 5.5), and model effort levels. With Claude Opus 5.5, Screen2Bench wins 71 of 72 metric-level comparisons, including all comparisons on environment fidelity, with one tie and no losses. It wins 67 of 72 with Claude Sonnet 5.5 and 64 of 72 with Claude Haiku 5.5. These findings demonstrate the potential of reconstructing interactive environments and verifiable evaluation tasks from screen recordings to support scalable and reproducible benchmarking of computer-use agents.

  2. EMNLP 2026 · BabyLM WorkshopPublishedArchival

    Halved CLM Exposure Mitigates Late-Training Degradation in Small Recurrent Language Models

    Yash Maheshwari

    BabyLM Workshop at EMNLP 2026

    Halving CLM exposure mitigates late-training BLiMP degradation in small RWKV-7 models; auxiliary objectives are not required for the observed stability, while learning-rate trajectory remains coupled to update count.

    Small recurrent language models can degrade late in training under standard causal language modeling (CLM). On the BabyLM Strict-Small corpus, vanilla RWKV-7 peaks near 69% BLiMP early, then loses 2.57 to 3.85 pp by step 18k across all three seeds we ran. Halving how often CLM updates the weights mitigates this decline, via two mechanisms: alternating a backward MLM objective every other step (BiRWKV-7), or skipping every other gradient step (vanilla-skip). Vanilla-skip carries no auxiliary objectives yet beats BiRWKV-7 on peak BLiMP in every seed, so the auxiliaries are not necessary for stability. What halving changes is coupled: it reduces the CLM update count and doubles the learning-rate decay in update space. A constant-rate control still degrades at the two higher rates we tested, so a low terminal rate is not necessary for the decline; but at fixed update count, flooring the rate earlier recovers most of it. The update-space rate trajectory therefore also modulates the decline; it stays coupled to update count, and our design does not separate the two. On the official BabyLM 2026 pipeline our submission scores 68.70% BLiMP, above the GPT-2 baseline (65.23%, 98.4M) at about 28% as many parameters.

  3. NeurIPS 2026 · ODI WorkshopAcceptedPoster

    Below One Bit: Training Route and Budget Shape Robustness Under On-Device Storage Constraints

    Yash Maheshwari

    NeurIPS 2026 Workshop on On-Device Intelligence: Foundation Models under Real-World Constraints (ODI)

    With the same number of tokens trained in a sub-1-bit format, natively trained models degrade less on corrupted code than models quantized after training and then fine-tuned, but they remain worse in absolute terms; the token budget sets the size and sign of the gap.

    OpenReview

    Sub-1-bit weight quantization fits language models into tight on-device storage, yet such models are judged almost entirely on clean text. We ask whether the route to those bits changes robustness to corrupted input. We train byte-level models from scratch (0.86M to 10.03M parameters, six seeds each) and reach the same sub-1-bit format in two ways: either native quantization-aware training (QAT) or post-training quantization of a full-precision model followed by fine-tuning in the format (PTQ+FT). With equal tokens trained in the format, the native model degrades less on Python code in every setting and seed (averaged over nine character corruptions), and again on an independent Python corpus at 4.87M. At this matched budget, PTQ+FT is still the better model on clean and corrupted input. On natural language, the native advantage is far smaller, and no setting in the grid passes a seed-level test. The token budget sets the size and sign of the advantage: quadrupling the native model's tokens reverses it at 0.86M and 2.77M, and in four of six seeds at 4.87M; equal total training tokens leave small residuals of either sign. A PTQ+FT checkpoint nearest the native model in clean quality still degrades more; at the two sizes where the match is close (0.86M and 4.87M), 44 and 30 percent of the advantage remain. On an Apple M5 Max, the packed model is 8.8 to 22.9 times smaller than fp16 but, without a fused sub-1-bit kernel, up to 16.1 times slower at batch 1 than with unpacked weights. Bit width alone does not describe a compressed on-device model; the training route and token budget belong alongside it.

  4. Journal of Emerging InvestigatorsAcceptedIn press

    Training and comparison of fine-tuned small language models as math tutoring assistants

    Yash Maheshwari, Rinky Gupta

    Journal of Emerging Investigators (JEI)

    Across nine fine-tuned Llama math tutors (1B, 3B and 8B parameters, 1 to 5 training epochs), parameter count mattered more than training time; the 8B model trained for five epochs gave a correct first step 93.65% of the time.

    Recent breakthroughs in artificial intelligence (AI) have revolutionized not only computer science but also automation, enabling machines to perform tasks only humans could once do. AI tutoring assistants can support math education by providing step-by-step guidance, but their effectiveness depends substantially on model size and training duration. However, large language models require a very significant number of resources, making them impractical for schools. This study evaluates Llama 3.2 configurations with 1 billion (1B), 3 billion (3B), and 8 billion (8B) parameters, trained for 1, 3, or 5 epochs, as tutoring tools for elementary, middle, and high school math. We hypothesized that increasing a Llama 3.2 model’s parameter count would improve step-accuracy more effectively than increasing the number of epochs during fine-tuning. Using Google Colab and Unsloth’s open-source code, we fine-tuned the models on 538 math queries. We assessed performance on 126 test prompts based on their ability to avoid revealing answers, provide accurate step-by-step hints and guidance, and achieve high human-rated quality. The 8B model at 5 epochs performed best (93.65% accuracy, 0.946 rating), while the 1B model at 1 epoch lagged in performance (55.56% accuracy, 0.700 rating). These results suggest that small, fine-tuned language models can provide a practical balance between educational quality and efficiency while mitigating cost, making them viable as AI tutors for classrooms.