Ting-Han Fan
· 2 previous affiliations
- ByteDance (China)Since 2024
- Researcher · Since 2024
- Princeton UniversityCurrent
- Current
- PhD student · 2018–2023
Research Overview
Ting-Han Fan focuses on the optimization of deep generative models, the theoretical analysis of reinforcement learning algorithms, and the architectural mechanisms of Transformer-based language models. Fan’s work investigates how discrete variables can be integrated into differentiable training pipelines and how structural priors, such as positional embeddings and working memory, influence the reasoning and extrapolation capabilities of neural networks. Recent research efforts have concentrated on understanding the latent information processing within Transformers and developing benchmarks for long-context inductive reasoning.
Research Trajectory
Fan’s early research addressed the challenges of training models with non-differentiable components and the theoretical stability of reinforcement learning. In the domain of generative modeling, Fan developed methods to handle discrete latent variables, which are traditionally difficult to optimize due to the inability to apply standard backpropagation. In Training Discrete Deep Generative Models via Gapped Straight-Through Estimator, Fan introduced the Gapped Straight-Through (GST) estimator to provide high-quality gradient estimates with reduced variance, facilitating more efficient training of discrete deep generative models without the computational overhead of traditional resampling.
Simultaneously, Fan explored the bias-variance trade-offs in off-policy actor-critic methods. In Explaining Off-Policy Actor-Critic From A Bias-Variance Perspective, Fan provided a mathematical framework to explain the empirical success of various sampling strategies by decomposing policy evaluation errors into Bellman error, policy mismatch bias, and sampling variance. This period of work contributed to the understanding of Stability and Convergence in Non-Lipschitz Environments and the broader challenges of Reinforcement Learning Beyond Lipschitz Smoothness.
In 2022 and 2023, Fan’s focus transitioned toward the internal representations of Transformer architectures, specifically the role of Positional Information in Permutation Invariant Transformers. This research addressed the "bag-of-words" nature of self-attention by developing more robust relative positional embeddings that allow for length extrapolation—the ability of a model to process sequences longer than those encountered during training. In KERPLE: Kernelized Relative Positional Embedding for Length Extrapolation, Fan contributed to a framework that generalizes relative position embeddings using conditionally positive definite kernels.
Further investigations challenged the necessity of explicit positional encodings. In Latent Positional Information is in the Self-Attention Variance of Transformer Language Models Without Positional Embeddings, Fan investigated how randomly initialized and frozen Transformers can inherently encode positional data through the shrinkage of self-attention variance. This line of inquiry suggests that Implicit Positional Information from Causal Attention Masks may be more significant than previously understood, potentially rendering explicit embeddings redundant in certain decoder-only configurations.
Fan also explored the intersection of Transformer architecture and formal language theory. In Transformer Working Memory Enables Regular Language Reasoning And Natural Language Length Extrapolation, Fan helped develop RegularGPT, which utilizes weight-sharing and adaptive depth to construct a "working memory" along the depth dimension. This approach allows Transformers to model regular languages, such as PARITY, which are typically challenging for standard attention mechanisms. This research involved analyzing Hierarchical Feature Abstraction Across Transformer Layers to understand how depth can be leveraged for iterative computation and how models rediscover local windowed attention effects. Fan continued this investigation into sequence length limits in Dissecting Transformer Length Extrapolation via the Lens of Receptive Field Analysis, which utilized receptive field analysis to identify the structural factors that enable or hinder a model's ability to generalize to longer contexts.
Current Directions
Fan’s current research focuses on the scaling of Transformer intelligence to long-context scenarios and the evaluation of inductive reasoning. This includes participation in the development of MIR-Bench, a benchmark designed to measure a model's ability to recognize and apply patterns from hundreds or thousands of examples in a many-shot in-context learning setting. These efforts aim to address the computational and representational limits associated with Sub-quadratic Attention for Long Context Transformers, seeking to understand how Large Language Models (LLMs) aggregate information across extensive contexts to perform complex reasoning tasks that go beyond the capabilities of few-shot evaluation.
Representative Work
Training Discrete Deep Generative Models via Gapped Straight-Through Estimator
This work addresses the optimization of models containing discrete latent variables, which are non-differentiable and thus incompatible with standard backpropagation. Fan introduced the Gapped Straight-Through (GST) estimator, a mathematical approach that provides gradient estimates with significantly lower variance than existing methods. By introducing a "gap" in the estimator, the method achieves high-quality gradients without the heavy computational and memory costs associated with traditional resampling techniques, improving the training stability of discrete generative architectures.
Explaining Off-Policy Actor-Critic From A Bias-Variance Perspective
In this theoretical analysis of reinforcement learning, Fan investigates why off-policy actor-critic algorithms demonstrate strong experimental performance despite potential instabilities. The research decomposes the policy evaluation error into three distinct components: Bellman error, bias arising from policy mismatch, and sampling variance. By comparing the magnitudes of these terms, Fan provides a formal explanation for the success of specific sampling strategies, such as Emphasizing Recent Experience and 1/age weighted sampling, showing that they yield lower bias and variance than uniform sampling.
KERPLE: Kernelized Relative Positional Embedding for Length Extrapolation
Relative positional embeddings (RPE) are critical for enabling Transformers to handle varying sequence lengths. Fan contributed to the KERPLE framework, which generalizes RPE by kernelizing positional differences using conditionally positive definite (CPD) kernels. This approach allows the model to effectively model relative distances among tokens and facilitates length extrapolation. The work demonstrates that CPD kernels can be transformed into positive definite kernels via a constant offset, which is implicitly handled by the Softmax normalization in self-attention, maintaining the standard inner product interpretation.
Transformer Working Memory Enables Regular Language Reasoning And Natural Language Length Extrapolation
Standard Transformers often fail to perfectly model regular languages, a limitation often attributed to their lack of recurrence. Fan participated in the development of RegularGPT, a variant that incorporates weight-sharing, adaptive depth, and sliding-dilated attention. These features allow the model to construct a functional working memory along its depth dimension. The architecture successfully models regular languages like PARITY and is shown to rediscover local windowed attention effects, which are necessary for natural language length extrapolation.
Latent Positional Information is in the Self-Attention Variance of Transformer Language Models Without Positional Embeddings
This research challenges the prevailing assumption that explicit positional embeddings are strictly necessary for Transformers to understand sequence order. Fan demonstrated that even in randomly initialized and frozen models without positional embeddings, strong positional information is encoded through the shrinkage of self-attention variance. The study derives the underlying distribution of each step within a Transformer layer to quantify this effect and empirically validates that this variance shrinkage persists even after extensive gradient updates in pretrained models.
Dissecting Transformer Length Extrapolation via the Lens of Receptive Field Analysis
Focusing on the challenge of length extrapolation, this work employs receptive field analysis to investigate how Transformers process information as sequence length increases. By analyzing the effective range and focus of attention mechanisms, the research identifies the specific architectural constraints that prevent models from generalizing to sequences longer than their training window. This analysis provides a diagnostic lens for evaluating the efficacy of different positional encoding schemes and attention variants in long-context scenarios.
Profile updated
Loading new papers…
Other researchers whose papers cluster into the same research directions — a proxy for overlapping technical interests and shared intellectual neighborhoods.
See something wrong? Report a mistake