Weijia Li

Institute of Software
1 previous affiliation
3Machine learning papers tracked by Lacuna

3 other authors named Weijia Li: Weijia Li (Tsinghua University · 92 papers), Weijia Li (Nanjing University · 2 papers), Weijia Li (1 paper)

Is this you?

Research Overview

Weijia Li focuses on the intersection of Large Language Models (LLMs) and systems engineering, with a specific emphasis on automating complex software development tasks such as kernel optimization, zero-shot code generation, and cross-architecture library migration. Li’s work explores the capacity of LLM-based agents to handle high-dimensional configuration spaces and performance-critical code, moving toward more robust, hardware-aware autonomous systems.

Research Trajectory

Li’s research trajectory is defined by a transition from participating in systems-level automation to leading investigations into the fundamental capabilities and limitations of LLMs in specialized technical domains. This evolution reflects a broader shift in the field from using LLMs as general-purpose assistants to deploying them as specialized agents capable of managing intricate engineering constraints.

In 2024, Li participated in research focused on the intersection of machine learning and operating systems. This work addressed the long-standing challenge of optimizing system performance by automating the configuration of complex software environments. By treating system parameters as a structured search space, this research demonstrated that LLMs could navigate thousands of configuration options more effectively than traditional heuristic-based methods. This period established Li’s interest in the "dynamic tree" representation of complex systems and the use of state-machine loops to ensure system stability during automated tuning.

By 2025, Li’s focus shifted toward the generative capabilities of LLMs, specifically in the context of programming. As a primary investigator, Li explored methods to enhance the zero-shot performance of models in code generation. This research addressed the inherent difficulties LLMs face when generating functional code without extensive task-specific fine-tuning. This work aligns with broader efforts in the field to address structural issues in model attention, such as Calibrating Positional Bias in Transformer Attention, which can impact how models prioritize semantic meaning over token position in long-form technical sequences.

Most recently, in 2026, Li has concentrated on the problem of cross-architecture migration. This research identifies a critical gap in current AI capabilities: while LLMs are proficient at general pattern matching, they often fail when tasked with migrating high-performance libraries across disparate hardware architectures, such as ARM to RISC-V. Li’s recent work introduces rigorous benchmarking and multi-agent frameworks to solve these regressions, emphasizing hardware-aware optimization. This focus on generalization across different technical "morphologies" parallels challenges found in other domains, such as Generalizing Urban AI Across Diverse Global Morphologies, where models must adapt to varying underlying structures.

Current Directions

Li’s current research is focused on the development of multi-agent frameworks that can perform hardware-aware code optimization. A central theme in this work is the mitigation of "superficial pattern matching" in LLM agents. When agents rely on surface-level similarities between programming languages or architectures, they often produce code that is syntactically correct but performance-deficient or broken on new hardware.

To combat this, Li is developing frameworks that incorporate hardware-specific constraints directly into the agent's decision-making process. This involves moving beyond single-model architectures toward multi-agent systems where different agents specialize in distinct aspects of the migration process, such as correctness verification and performance tuning. This move toward specialized, multi-agent coordination mirrors developments in other complex AI tasks, including Unified Multi-Modal Perception for Heterogeneous Sensor Suites, where diverse data streams must be integrated into a cohesive understanding.

Furthermore, Li is investigating the efficiency of these agents. As models grow in complexity, the computational cost—often referred to as a "visual tax" in the context of Managing Visual Token Redundancy in Multimodal Models—becomes a significant barrier. Li’s work seeks to streamline the interaction between LLM agents and the systems they manage, ensuring that automated migration and optimization remain computationally feasible. This also involves exploring more stable training and optimization methods for these agents, potentially drawing on techniques like Group Relative Policy Optimization for Large Reasoning Models to ensure consistent performance in high-stakes engineering environments.

While Li’s primary focus remains on the symbolic and structural domain of code and systems, the underlying goal of creating high-fidelity, autonomous digital representations of complex processes shares conceptual ground with efforts in Monocular Reconstruction of Animatable 3D Human Avatars. Both fields strive to move from sparse, noisy input to highly detailed, functional digital models.

Representative Work

AutoOS: Make Your OS More Powerful by Exploiting Large Language Models In this 2024 study, Li participated in the development of AutoOS, a framework designed to automate the tuning of the Linux kernel. The kernel presents a massive configuration space with over 15,000 options, making manual optimization nearly impossible for human administrators. The research team implemented a specialized state-machine loop that treats the kernel configuration as a dynamic tree. By leveraging LLMs to navigate this tree, the framework achieved a 25% performance increase over standard vendor defaults while maintaining system bootability. Li’s contribution to this multi-author work involved the application of LLMs to these complex system-level tasks.

Coft: Making Large Language Models Better Zero-Shot Learners for Code Generation As the lead author of this 2025 paper, Li addressed the limitations of LLMs in zero-shot code generation. The research focuses on improving the ability of models to generate functional, high-quality code without the need for extensive task-specific training data. This work is significant for its focus on the inherent reasoning capabilities of the models and how they can be prompted or structured to better handle the logical rigors of programming.

QiMeng-LibBench: Benchmarking LLM Agents for Library-Scale Cross-Architecture Migration In this 2026 first-author paper, Li introduced QM-LibBench, a benchmark specifically designed to evaluate LLM agents on the task of migrating high-performance libraries across different hardware architectures (e.g., ARM to RISC-V). The study revealed that existing agents often fail by relying on superficial patterns that do not translate across architectures. To address this, Li proposed the FSCM framework, a multi-agent system that utilizes hardware-aware optimization. The implementation of FSCM significantly improved migration correctness, raising it from approximately 20% to 71%, demonstrating the necessity of specialized, hardware-conscious agent architectures.

Profile updated

See something wrong? Report a mistake