Yu Sun

Yu Sun

Stanford University
4 previous affiliations
11Machine learning papers tracked by Lacuna

16 other authors named Yu Sun: Yu Sun (Beihang University · 115 papers), Yu Sun (Johns Hopkins University · 94 papers), Yu Sun (Nankai University · 42 papers), Yu Sun (Baidu (China) · 13 papers), Yu Sun (Twitter (United States) · 6 papers), and 11 more

Is this you?

Research Overview

Yu Sun focuses on continual learning, test-time adaptation, and self-supervised methods for dynamic environments. His trajectory centers on dissolving the traditional boundary between training and testing, allowing models to adapt to individual problem instances on the fly. Currently, his work explores integrating test-time training directly into sequence modeling architectures and applying reinforcement learning at inference for complex discovery tasks.

Research Trajectory

The evolution of Sun's research is anchored in the challenge of enabling machine learning models to adapt continuously to new environments without requiring extensive retraining or labeled data. His early work investigated how self-supervised learning could bridge the gap between training distributions and unseen test conditions. In Unsupervised Domain Adaptation through Self-Supervision (2019), he developed a method that optimizes a neural network on both source and target domains simultaneously using pretext tasks, such as predicting image rotations. This approach encouraged the model to learn domain-invariant representations, offering a more stable alternative to adversarial adaptation techniques.

Building on this foundation, he formalized a broader conceptual framework in Test-Time Training with Self-Supervision for Generalization under Distribution Shifts (2020). This work introduced the core idea of Test-Time Training (TTT), where a model updates its parameters for each specific test instance before making a prediction. By turning inference into a localized learning problem, this research made significant contributions to the area of Test-Time Training for Instance-Specific Adaptation. The framework also advanced related fields, including the research direction of Adaptive Decision Boundaries for Open World Recognition and the broader area of Single Sample Test Time Adaptation.

Sun subsequently expanded the TTT paradigm beyond static image classification. In Self-Supervised Policy Adaptation during Deployment (2021), he extended test-time adaptation to reinforcement learning. Recognizing that agents trained in simulation often fail when deployed in visually distinct real-world environments, he utilized self-supervised auxiliary tasks to continuously update the agent's visual encoder during deployment. This approach directly contributed to the research direction of Visual Generalization for Robust Reinforcement Learning. Continuing to refine the mechanisms of adaptation, he collaborated on Test-Time Training with Masked Autoencoders (2022), which demonstrated that masked autoencoding serves as a highly effective self-supervised task for one-sample learning, improving robustness against distribution shifts while balancing the bias-variance trade-off.

As his focus shifted toward temporal and sequential data, Sun introduced methods for continuous adaptation over time. In Test-Time Training on Video Streams (2023), he proposed an online version of TTT that updates model weights dynamically as new video frames arrive. By maintaining a short-term memory window and employing reconstruction tasks, the model improved its performance on dense prediction tasks like segmentation, demonstrating the viability of continuous adaptation in streaming contexts.

More recently, Sun has investigated how test-time adaptation can address the fundamental limitations of large-scale sequence models. Working with colleagues on Test-Time Training on Nearest Neighbors for Large Language Models (2024), he explored an alternative to standard in-context learning. Instead of appending retrieved documents to a Transformer's prompt, the method fine-tunes the model on retrieved neighbors via a single gradient step immediately prior to generation, improving the efficiency of context utilization.

This architectural inquiry culminated in Learning to (Learn at Test Time): RNNs with Expressive Hidden States (2025). Here, Sun proposed replacing the standard hidden state of a sequence model with a machine learning model itself. By updating this "state-model" via self-supervised learning during inference, the resulting TTT layers achieve the linear complexity of Recurrent Neural Networks while maintaining the long-context capabilities typically associated with Transformers. He subsequently applied this architectural innovation to generative tasks in One-Minute Video Generation with Test-Time Training (2025). By integrating TTT layers into pre-trained Transformers, the model could generate extended, coherent video sequences from text storyboards, overcoming the context bottlenecks of standard self-attention and contributing to the area of Scaling Video Transformers via Spatiotemporal Sparsity.

Expanding the scope of test-time optimization from representation learning to complex reasoning, Sun oversaw the development of Learning to Discover at Test Time (2026). This framework shifts the paradigm from searching over frozen language models to performing reinforcement learning directly on specific problem instances at inference. By optimizing for the single best solution rather than average-case performance, the method demonstrated competitive results in domains requiring extremal discovery, such as mathematics and computational biology.

Current Directions

The most recent papers in the evidence indicate a dual focus on architectural innovation and inference-time reasoning. First, Sun is investigating the integration of test-time training directly into the foundational layers of sequence models. By treating hidden states as expressive, updatable neural networks, this work seeks to reconcile the linear efficiency of RNNs with the long-context performance of Transformers, particularly for high-dimensional tasks like extended video generation. Second, his research explores the use of reinforcement learning at deployment to solve open-ended discovery problems. Rather than relying solely on the generalized knowledge embedded in pre-trained weights, this direction emphasizes instance-specific optimization, allowing models to dynamically search for and verify solutions in complex domains such as software engineering and biology.

Profile updated

See something wrong? Report a mistake