Leyan Pan

Georgia Institute of Technology
4 previous affiliations
    • PhD student · 2023–2028
    • Graduate Teaching Assistant · Since 2022
    • MS student · 2022–2023
    • Undergrad student · 2018–2021
  • Morph Labs2025
    • Research Intern · 2025
    • Hardware Engineering Intern · 2021
  • IBM2020
    • X-Force Command Center Intern · 2020
7Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Leyan Pan focuses on the theoretical foundations of deep learning, specifically investigating the geometric properties of neural representations and the formal reasoning capabilities of Transformer architectures. Pan’s work bridges the gap between the internal dynamics of neural networks during training—such as the emergence of highly structured feature spaces—and the functional limits of these models when applied to complex logical tasks like Boolean satisfiability (SAT) solving. By combining rigorous mathematical proofs with empirical validation, Pan explores how architectural components like batch normalization, weight decay, and attention mechanisms influence a model's ability to generalize and reason.

Research Trajectory

Pan’s early research focused on the terminal phase of training in deep neural networks, specifically exploring The Geometry of Neural Collapse in Deep Learning. This phenomenon describes a state where the internal representations of a network simplify into a rigid, symmetric geometric structure once training error nears zero. In 2023 and 2024, Pan led investigations into the specific hyperparameters and architectural choices that facilitate this collapse. This work established that the emergence of neural collapse is not an inevitable byproduct of training but is critically dependent on the interplay between weight decay and batch normalization. By introducing geometrically intuitive measures, such as intra-class and inter-class cosine similarity, Pan provided a framework for quantifying how closely a model approaches this collapsed state and how these dynamics relate to the optimality of the loss function.

Parallel to these investigations into representation geometry, Pan examined the implications of linear classification for anomaly detection. This work moved beyond standard halfspace separators to consider linear classifiers with multiple margins. By analyzing these from a geometric perspective, Pan and collaborators demonstrated that such classifiers could possess a higher VC dimension than traditional models while simultaneously reducing open space risk. This research highlighted how the geometric configuration of decision boundaries directly impacts a model's ability to identify unseen classes, providing a theoretical basis for improving supervised anomaly detection.

Starting in 2024, Pan’s focus shifted toward the formal reasoning capabilities of large language models (LLMs), specifically decoder-only Transformers. A central question in this phase of Pan’s career was whether these models could solve NP-complete problems, such as 3-SAT, through structured reasoning processes. Pan developed a theoretical framework to prove that Transformers could, in principle, simulate the Davis-Putnam-Logemann-Loveland (DPLL) algorithm—a standard backtracking search used in SAT solving—using Chain-of-Thought (CoT) prompting. This work involved the creation of a specialized compiler, PARAT, designed to map procedural specifications of algorithms directly onto Transformer weights. This trajectory moved from theoretical construction to empirical testing, revealing critical insights into the limitations of current architectures, particularly regarding the numerical precision required by the softmax attention mechanism when scaling to larger problem instances.

Most recently, Pan has contributed to the development of hybrid reasoning frameworks for LLMs. This work addresses the trade-off between explicit, token-heavy reasoning (such as CoT) and implicit, latent-space processing. By participating in the design of systems that dynamically switch between these modes based on confidence signals, Pan has explored methods for improving both the accuracy and token efficiency of reasoning models without requiring extensive fine-tuning.

Expanding into decentralized multi-agent architectures, Pan also co-authored Market Incentivization for Theorem Proving with LLM Agents, contributing to Value Decomposition for Multi-Agent Credit Assignment. The work presents Math Market, a framework where LLM agents coordinate on theorem proving through economic incentives and evolutionary pressure around tradable intermediate lemmas rather than fixed roles.

Current Directions

Pan’s current research continues to probe the boundaries of logical reasoning in neural networks. A primary area of interest is the "generalization gap" in formal tasks: why models that can be "programmed" or trained to follow complex reasoning paths on small-scale problems often fail as the problem complexity increases. Pan is investigating whether these failures are inherent to the Transformer architecture—such as the aforementioned precision limits of attention—or if they can be mitigated through different training regimes or hybrid architectures.

Another active area of investigation involves the refinement of reasoning efficiency. Building on recent collaborative work, Pan is exploring how entropy-based signals can be used to regulate "overthinking" in LLMs. This involves developing controllers that balance the depth of latent exploration with the clarity of explicit reasoning, aiming for models that achieve high performance on logical benchmarks while minimizing computational overhead.

Representative Work

In Towards Understanding Neural Collapse: The Effects of Batch Normalization and Weight Decay, Pan investigates the interrelationships between batch normalization (BN), weight decay (WD), and the proximity of a model to the Neural Collapse (NC) structure. Pan establishes theoretical guarantees for the emergence of NC in scenarios where the regularized cross-entropy loss is near-optimal. The paper introduces a cosine similarity measure that encapsulates multiple core aspects of NC, providing a more granular tool for analyzing the final layer of neural network classifiers. The experimental results substantiate the theory that last-layer BN and specific WD values are instrumental in driving the network toward a collapsed geometric state.

In Geometric Implications of Classification on Reducing Open Space Risk, Pan participated in a study of binary linear classifiers to address the problem of open space risk—the risk associated with a model making confident predictions in regions of the input space far from the training data. The research demonstrates that linear classifiers with multiple margins are more expressive than single-margin classifiers, possessing an arbitrarily high VC dimension. Despite this increased complexity, the work shows that these classifiers can effectively reduce open space risk, offering a geometric strategy for detecting unseen classes in supervised anomaly detection tasks.

Pan’s work on formal logic is exemplified by Can Transformers Reason Logically? A Study in SAT Solving. In this paper, Pan proves by construction that a non-uniform class of decoder-only Transformers can solve 3-SAT problems by simulating the DPLL algorithm. To bridge the gap between abstract theory and practical implementation, Pan designed the PARAT compiler, which translates procedural specifications into Transformer models. This work provides a rigorous foundation for understanding the computational power of the Transformer architecture in the context of symbolic logic and backtracking search.

A subsequent study, Can Transformers Reason Logically? A Study in SAT Solving, extends this analysis to the empirical challenges of training models for SAT solving. While Pan demonstrates that models can be trained to follow DPLL-like reasoning paths with near-perfect accuracy for fixed problem sizes, the research identifies a significant failure to generalize to larger problems. Pan traces this limitation back to the numerical precision requirements of the softmax attention mechanism, suggesting that the "reasoning" observed in these models may be constrained by the underlying hardware and architectural implementation of attention.

Pan also contributed to the development of SwiReasoning: Switch-Thinking in Latent and Explicit for Pareto-Superior Reasoning LLMs. This research introduces a training-free framework that allows LLMs to switch dynamically between explicit text-based reasoning and continuous latent-space reasoning. Pan’s participation in this project focused on using entropy trends to balance exploration and exploitation during the reasoning process. The resulting framework, SWIR, achieves significant improvements in both accuracy and token efficiency, demonstrating a path toward more resource-efficient reasoning in large-scale models.

Profile updated

See something wrong? Report a mistake