Making pre-training a science: deriving how to build models from understanding how they learn.
I am a Ph.D. student in Computer Science at Tsinghua University, advised by Prof. Jian Li. I received my B.S. in Computer Science from Fudan University, ranking 1st among 110 students.
I work on the science of large language model pre-training. Standard Transformers apply uniform computation and representation across every token, layer, and attention head, while critical pre-training decisions—architecture, parameterization, and compute allocation—are still largely settled by expensive trial and error. My research aims to replace trial and error with a closed loop: build a quantitative understanding of how models turn data and compute into capability, derive non-uniform architectures and scalable parameterizations from those principles, and verify that they hold at scale under strictly matched resource budgets.
Research Focus
1. Theoretical Foundation: Learning as Compression.
To guide architecture design, we first model how LLMs acquire capability from data. Grounded in Kolmogorov structure functions and rate-distortion theory, our work on learning as compression formulates pre-training as a two-part coding process that progresses from pervasive syntax to long-tail knowledge, deriving model and data scaling laws from first principles and explaining when spurious correlations induce persistent hallucinations. A key architectural takeaway is that information density and functional demand in natural language are highly non-uniform—motivating architectures that allocate compute adaptively rather than uniformly.
2. Reallocating Compute Across Sequence and Depth.
Guided by this insight, my recent work reallocates pre-training computation along two orthogonal axes while solving the accompanying stability and scaling-law challenges:
Sequence Axis (Semantic Compression): Because local predictability varies widely across a sequence, Dynamic Large Concept Models (DLCM) learn variable-length semantic boundaries end-to-end and shift backbone computation from tokens into a compressed concept space, paired with a decoupled μP parameterization and the first compression-aware scaling law for fixed-FLOP compute allocation.
Depth Axis (Looped Recurrence): Weight-tied looped Transformers increase effective depth without adding parameters, but weight sharing induces positively correlated residual updates across loops that break standard 1/L depth scaling. Loop-μP derives the factored residual scaling rule ε=λ/(NL) to decouple optimal learning rates from loop count N, enabling zero-shot hyperparameter transfer up to 8 loops (384 executed layers). Building on stable training, SMELT tests whether depth reuse yields genuine architectural gains when per-token FLOPs, non-embedding parameters, and KV cache are all strictly matched—scaling looped MoE Transformers up to 54B non-embedding parameters and demonstrating 6.8%–18.0% training-FLOP savings on the compute-optimal frontier via iterative refinement.
3. Fine-Grained Inductive Biases and Optimization Dynamics.
The same principle—deriving structural or algorithmic improvements from mechanistic analysis—extends to model components and parameter updates. Showing that attention heads specialize into distinct retrieval and aggregation roles yields AdaRoPE, which learns head-specific rotary frequency ranges and extrapolation scales for long-context modeling. Analyzing why low-rank adaptation lags behind full fine-tuning in early optimization yields LoRA-GA, which aligns initial low-rank gradients with full-parameter updates via SVD to accelerate convergence without extra training cost.
Current Work & Next Directions
Looking ahead, I am interested in unifying sequence-level semantic compression and depth-level recurrence into dynamic, adaptive latent-space computation—enabling models to extrapolate reasoning depth at test time without growing the KV cache, and theoretically disentangling how independent parameter capacity (knowledge storage) interacts with recurrent computation depth (multi-step reasoning).
I am currently a research intern on the Hunyuan team at Tencent, and previously interned on the Seed team at ByteDance and at Microsoft Research Asia (MSRA), bringing principled architecture and scaling-law research into large-scale pre-training. If you are working on foundation model pre-training, scaling laws, or efficient architectures, I would love to talk—feel free to reach out.
Tests whether depth reuse improves MoE Transformers under matched per-token FLOPs, parameter count, and KV cache. Scaling to 54B parameters yields 6.8–18.0% training-FLOP savings on the fitted compute-optimal frontier.
Abstract
Looped Transformers increase effective depth by iterating a shared block of layers, but most evaluations compare at fixed model size, conflating architectural advantage with extra FLOPs. We study looping on Mixture-of-Experts Transformers while closely matching per-token FLOPs, total non-embedding parameters, and KV cache. Through a series of ablations, we arrive at a recipe we call SMELT (Sparse MoE Transformer, middle layers Loop Twice), which loops the middle half of layers twice while matching the unlooped Baseline on all three budgets. We scale SMELT across four sizes up to 54B non-embedding parameters and fit a separate Chinchilla-style scaling law for each architecture. SMELT's loss drops faster with compute, saving 6.8--18.0\% of training FLOPs on the compute-optimal frontier. The advantage transfers to downstream benchmarks beyond what validation loss predicts, is largest on Code, and grows with sample length and the number of in-context examples. Mechanistic analysis shows that the second visit reduces the attention sink and redirects mass toward content-relevant tokens, an inductive bias that may underlie the observed performance gains. These results show that looping can improve Transformers even under budget matching, offering a practical recipe that turns depth reuse into measurable gains.
A head-specific RoPE variant with learnable rotation frequencies and length-aware scaling for stronger long-context extrapolation.
Abstract
Rotary Position Embeddings (RoPE) are widely adopted in Transformers to encode positional information, yet standard implementations enforce a uniform frequency schedule and scaling across all attention heads. Using simplified retrieval tasks and length generalization scenarios, we show--both empirically and theoretically--that heads with different functional roles require distinct frequency ranges and scaling factors to operate effectively. Ignoring this structure leads to suboptimal utilization of embedding dimensions and degraded performance, particularly under long-context settings. To address these limitations, we propose AdaRoPE, which equips each attention head with learnable rotation frequencies and scaling factors. Pretrained LLM with AdaRoPE consistently outperforms existing RoPE variants, including partial-RoPE and NoPE baselines. For context extension, we further show that uniform frequency and attention scaling, used in methods such as YaRN, are suboptimal. By applying head-specific scaling, AdaRoPE enables better context extension while better preserving short-context performance in both extrapolation setting and long context continued pretrain setting. These results highlight the importance of optimizing rotary position embeddings at the level of individual attention heads.
Derives a factored residual scaling rule for weight-tied looped Transformers that enables stable training and zero-shot learning-rate transfer up to 8 loops and 384 executed layers.
Abstract
Looped Transformers have drawn growing attention because looping improves multi-step reasoning and increases the executed depth of a model without adding parameters. They achieve this by reusing a stack of L layers for N loops. However, increasing the loop count N not only destabilizes training but also shifts the best hyperparameters, so they must be searched again for every loop count. Inspired by Depth-μP, which multiplies each residual branch by L^{-1/2} for depth L so that a learning rate tuned on a shallow untied network transfers to a deep one, we study how the residual branches and the learning rate should scale with the loop count N. We find that loops cannot simply be treated as extra depth, because the loops share weights. At initialization, distinct layers add nearly uncorrelated increments to the residual stream, so their sum grows as \sqrt{L}, whereas a shared layer adds positively correlated increments at every loop, so their sum grows linearly in N. For a single layer looped N times, we show in the infinite-width limit that multiplying the residual branch by 1/N and keeping the learning rate independent of N is the only parameterization with both a stable forward pass and maximal residual-stream updates. We then generalize the analysis to a stack of L distinct layers looped N times to obtain a parameterization we call Loop-μP, in which the loop factor 1/N combines with the depth factor L^{-1/2}. Empirically, we find in language modeling that the base learning rate tuned on the smallest model stays best under Loop-μP for loop counts up to 8 and executed depths up to 384 layers. These results make Loop-μP a practical recipe for scaling looped Transformers.
A hierarchical language modeling framework that learns variable-length semantic concepts and reallocates computation from tokens to a compressed concept space.
Abstract
Large Language Models (LLMs) apply uniform computation to all tokens, despite language exhibiting highly non-uniform information density. This token-uniform regime wastes capacity on locally predictable spans while under-allocating computation to semantically critical transitions. We propose Dynamic Large Concept Models (DLCM), a hierarchical language modeling framework that learns semantic boundaries from latent representations and shifts computation from tokens to a compressed concept space where reasoning is more efficient. DLCM discovers variable-length concepts end-to-end without relying on predefined linguistic units. Hierarchical compression fundamentally changes scaling behavior. We introduce the first compression-aware scaling law, which disentangles token-level capacity, concept-level reasoning capacity, and compression ratio, enabling principled compute allocation under fixed FLOPs. To stably train this heterogeneous architecture, we further develop a decoupled μP parametrization that supports zero-shot hyperparameter transfer across widths and compression regimes. At a practical setting (R=4, corresponding to an average of four tokens per concept), DLCM reallocates roughly one-third of inference compute into a higher-capacity reasoning backbone, achieving a +2.69% average improvement across 12 zero-shot benchmarks under matched inference FLOPs.
An information-theoretic framework connecting compression, prediction, data generation, knowledge acquisition, scaling laws, and hallucination mechanisms.
Abstract
Large Language Models (LLMs) have demonstrated remarkable capabilities across numerous tasks, yet principled explanations for their underlying mechanisms and several phenomena, such as scaling laws, hallucinations, and related behaviors, remain elusive. In this work, we revisit the classical relationship between compression and prediction, grounded in Kolmogorov complexity and Shannon information theory, to provide deeper insights into LLM behaviors. By leveraging the Kolmogorov Structure Function and interpreting LLM compression as a two-part coding process, we offer a detailed view of how LLMs acquire and store information across increasing model and data scales -- from pervasive syntactic patterns to progressively rarer knowledge elements. Motivated by this theoretical perspective and natural assumptions inspired by Heap's and Zipf's laws, we introduce a simplified yet representative hierarchical data-generation framework called the Syntax-Knowledge model. Under the Bayesian setting, we show that prediction and compression within this model naturally lead to diverse learning and scaling behaviors observed in LLMs. In particular, our theoretical analysis offers intuitive and principled explanations for both data and model scaling laws, the dynamics of knowledge acquisition during training and fine-tuning, factual knowledge hallucinations in LLMs. The experimental results validate our theoretical predictions.
A LoRA initialization method that aligns low-rank gradients with full fine-tuning, accelerating convergence without increasing training cost.
Abstract
Fine-tuning large-scale pretrained models is prohibitively expensive in terms of computational and memory costs. LoRA, as one of the most popular Parameter-Efficient Fine-Tuning (PEFT) methods, offers a cost-effective alternative by fine-tuning an auxiliary low-rank model that has significantly fewer parameters. Although LoRA reduces the computational and memory requirements significantly at each iteration, extensive empirical evidence indicates that it converges at a considerably slower rate compared to full fine-tuning, ultimately leading to increased overall compute and often worse test performance. In our paper, we perform an in-depth investigation of the initialization method of LoRA and show that careful initialization (without any change of the architecture and the training algorithm) can significantly enhance both efficiency and performance. In particular, we introduce a novel initialization method, LoRA-GA (Low Rank Adaptation with Gradient Approximation), which aligns the gradients of low-rank matrix product with those of full fine-tuning at the first step. Our extensive experiments demonstrate that LoRA-GA achieves a convergence rate comparable to that of full fine-tuning (hence being significantly faster than vanilla LoRA as well as various recent improvements) while simultaneously attaining comparable or even better performance. For example, on the subset of the GLUE dataset with T5-Base, LoRA-GA outperforms LoRA by 5.69% on average. On larger models such as Llama 2-7B, LoRA-GA shows performance improvements of 0.34, 11.52%, and 5.05% on MT-bench, GSM8K, and Human-eval, respectively. Additionally, we observe up to 2-4 times convergence speed improvement compared to vanilla LoRA, validating its effectiveness in accelerating convergence and enhancing model performance. Code is available at https://github.com/Outsider565/LoRA-GA.