Junyu Lai

Nanjing University
1 previous affiliation
5Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Junyu Lai focuses on the architectural optimization and reasoning capabilities of Large Language Models (LLMs), with a specific emphasis on Mixture-of-Experts (MoE) frameworks, parameter-efficient fine-tuning (PEFT), and formal mathematical reasoning. This work addresses fundamental limitations in how transformer-based models process long-range dependencies, execute multi-step computational logic, and adapt to specialized tasks without incurring prohibitive memory or latency costs. Current research directions involve the intersection of synthetic data generation and automated theorem proving, as well as the emulation of Turing-complete computational logic within neural architectures to move beyond simple pattern memorization.

Research Trajectory

The early stages of this research trajectory involved a broad examination of the structural constraints inherent in standard transformer architectures, particularly regarding context length and memory efficiency. In 2023, Lai participated in a comprehensive mapping of the techniques required to scale LLMs beyond traditional token limits. This work, Advancing Transformer Architecture in Long-Context Large Language Models: A Comprehensive Survey, categorized various architectural "upgrades"—such as efficient attention mechanisms, external memory banks, and modified positional encodings—that allow models to handle millions of tokens. This foundational survey established a focus on the "activation tax" and the computational bottlenecks that arise when scaling foundation models.

Following this architectural overview, the focus shifted toward the challenge of Memory Efficient Inference for Mixture of Experts Models. While MoE architectures offer a path toward high-capacity models with manageable inference costs, they often suffer from significant memory overhead due to the need to store multiple expert weights. In 2024, Lai contributed to the development of a scalable framework designed to unify specialized Low-Rank Adaptation (LoRA) units into a cohesive MoE structure. This work addressed the problem of "interference" in multi-task learning, where the acquisition of new skills can degrade existing ones. By utilizing Token Level Routing for Specialized Model Experts, the resulting system allowed models to autonomously switch between specialized skills during a single inference pass. This period also saw an exploration of Parallel Side Networks for Memory Efficient Adaptation, seeking ways to fine-tune massive models without the full backward pass requirements of standard training.

In 2024 and 2025, the research focus transitioned toward the internal logic and reasoning capabilities of LLMs. A significant portion of this work addressed The Uniqueness Bias in Transformer Architectures, a phenomenon where models struggle to track and manipulate sequences containing repeated elements or complex logical steps. To counter the tendency of LLMs to memorize arithmetic answers rather than learning underlying rules, Lai led the development of a framework that treats the LLM as a programmable execution engine. By teaching models to emulate the step-by-step logic of Turing Machines, this approach demonstrated that neural architectures could achieve high precision in complex mathematical tasks that typically baffle standard autoregressive models.

Current Directions

The most recent work (2025–2026) extends these reasoning frameworks into the domain of formal mathematics and automated theorem proving. This research addresses the scarcity of high-quality formal proof data by developing scalable synthetic data generation methods. By focusing on proof-state exploration, the current approach produces diverse tactics across a wide range of intermediate states, facilitating more effective fine-tuning of policy models. Furthermore, this work introduces adaptive search strategies that dynamically balance exploration and execution during the proof search process, significantly improving performance on competitive benchmarks like MiniF2F without the need for computationally expensive iterative loops.

Representative Work

Executing Arithmetic: Fine-Tuning Large Language Models as Turing Machines As the lead author, Lai proposed the Composable Arithmetic Execution Framework (CAEF) to address the unsatisfactory performance of LLMs in foundational arithmetic. The core premise of this work is that LLMs often rely on memorization rather than computational logic, which limits their ability to generalize to out-of-distribution problems. CAEF enables LLMs to learn step-by-step computational execution by emulating the behavior of Turing Machines. This method achieved nearly 100% accuracy on 100-digit arithmetic calculations, a task where even state-of-the-art models like GPT-4o frequently fail. The framework demonstrates that by structuring the fine-tuning process around explicit logical steps, models can gain a more genuine understanding of computational processes.

MeteoRA: Multiple-tasks Embedded LoRA for Large Language Models In this work, Lai contributed to the development of MeteoRA, a framework that integrates multiple task-specific LoRA adapters into a single LLM using a Mixture-of-Experts (MoE) architecture. The primary innovation lies in a lightweight gating network that allows the model to autonomously route inputs to the appropriate adapter on the fly. This eliminates the need for explicit user instructions to switch between specialized skills and allows for adapter switching even within a single multi-part prompt. To ensure practical utility, the project included the development of custom Triton GPU kernels that optimized the MoE forward pass, resulting in a significant reduction in latency compared to standard implementations.

LLM-based Automated Theorem Proving Hinges on Scalable Synthetic Data Generation Leading a team of researchers, Lai introduced a two-pronged approach to enhance LLM performance in formal mathematical reasoning. The first component is a proof-state exploration method for training data synthesis, which generates a diverse array of synthetic tactics to overcome the data bottleneck in formal verification. The second component is an adaptive beam size strategy that manages the trade-off between broad exploration and focused execution during tree searches. This methodology allowed a 7B parameter model to achieve a state-of-the-art 60.74% pass rate on the MiniF2F benchmark, demonstrating that sophisticated data synthesis and search strategies can compensate for smaller model scales in specialized reasoning domains.

Advancing Transformer Architecture in Long-Context Large Language Models: A Comprehensive Survey In this collaborative survey, Lai participated in the systematic categorization of the evolving landscape of long-context LLMs. The paper provides a roadmap for scaling models beyond the standard 4k-token limit, analyzing the trade-offs between different attention mechanisms and memory management strategies. This work serves as a foundational reference for understanding the architectural modifications required to support the processing of massive datasets and long-form documents in modern transformer-based systems.

Profile updated

See something wrong? Report a mistake