← Search

Tengyu Ma

91 accepted papers

2026

Anchoring Self-Play for Code Repair

ICML 2026poster

Code repair is an important capability for language models (LMs): given a buggy program and unit tests, an LM must produce a fixed program that passes the tests. We aim to scale supervision for code repair by having an LM generate bug--fix tasks with unconstrained edits, using unit tests as the only…

Cited by 0SourceScholar
2026

Human-Centric Multi-Exposure Fusion: Benchmark and Bi-level Cognition Distillation Framework

CVPR 2026

Multi-Exposure Fusion (MEF) seeks to generate a single high-quality image from multiple inputs captured at different exposure levels. Despite substantial progress, most existing approaches depend on statistical metrics that poorly reflect human perceptual preferences. Electroencephalography (EEG) pr

Cited by 0SourcecodeScholar
2026

SAM 3: Segment Anything with Concepts

ICLR 2026poster

We present Segment Anything Model (SAM) 3, a unified model that detects, segments, and tracks objects in images and videos based on concept prompts, which we define as either short noun phrases (e.g., “yellow school bus”), image exemplars, or a combination of both. Promptable Concept Segmentation (P…

Cited by 687SourcecodeScholar
2026

Streaming Diffusion Model for Fast Infrared and Visible Video Fusion

CVPR 2026

Infrared and visible video fusion is pivotal for robust perceptual systems, aiming to synthesize a comprehensive video stream that leverages both thermal resilience and textured details. However, prevailing methods, by treating videos as sequences of independent frames, inherently introduce temporal

Cited by 0SourcecodeScholar
2026

Taming Generative Diffusion Model for Task-Oriented Infrared Imaging

CVPR 2026

Infrared imaging is essential for perception in harsh environments. However, dynamically coupled degradation factors severely impair visual quality and downstream semantic accuracy. Although generative diffusion models provide strong image restoration priors, high computational cost and physical inc

Cited by 0SourcecodeScholar
2025

Perception Encoder: The best visual embeddings are not at the output of the network

NeurIPS 2025oral

We introduce Perception Encoder (PE), a family of state-of-the-art vision encoders for image and video understanding. Traditionally, vision encoders have relied on a variety of pretraining objectives, each excelling at different downstream tasks. Surprisingly, after scaling a carefully tuned image p…

Cited by 0SourcecodeScholar
2025

PerceptionLM: Open-Access Data and Models for Detailed Visual Understanding

NeurIPS 2025spotlight

Vision-language models are integral to computer vision research, yet many high-performing models remain closed-source, obscuring their data, design and training recipe. The research community has responded by using distillation from black-box models to label training data, achieving strong benchmark…

Cited by 0SourcecodeScholar
2025

Rethinking Reconstruction and Denoising in the Dark: New Perspective, General Architecture and Beyond

CVPR 2025poster

Recently, enhancing image quality in the original RAW domain has garnered significant attention, with denoising and reconstruction emerging as fundamental tasks. Although some works attempt to couple these tasks, they primarily focus on cascade learning while neglecting task associativity within a b…

2025

SAM 2: Segment Anything in Images and Videos

ICLR 2025oral

We present Segment Anything Model 2 (SAM 2), a foundation model towards solving promptable visual segmentation in images and videos. We build a data engine, which improves model and data via user interaction, to collect the largest video segmentation dataset to date. Our model is a simple transforme…

2025

Understanding Warmup-Stable-Decay Learning Rates: A River Valley Loss Landscape View

ICLR 2025poster

Training language models currently requires pre-determining a fixed compute budget because the typical cosine learning rate schedule depends on the total number of steps. In contrast, the Warmup-Stable-Decay (WSD) schedule uses a constant learning rate to produce a main branch of iterates that can i…

Cited by 0SourcePDFScholar
2024

Chain of Thought Empowers Transformers to Solve Inherently Serial Problems

ICLR 2024poster

Generating a sequence of intermediate steps, \emph{a.k.a.}, a chain of thought (CoT), is a highly effective method to improve the accuracy of large language models (LLMs) on arithmetics and symbolic reasoning tasks. However, the mechanism behind CoT remains unclear. This work provides a theoretical…

Cited by 109SourcePDFScholar
2024

One Step of Gradient Descent is Provably the Optimal In-Context Learner with One Layer of Linear Self-Attention

ICLR 2024poster

Recent works have empirically analyzed in-context learning and shown that transformers trained on synthetic linear regression tasks can learn to implement ridge regression, which is the Bayes-optimal predictor, given sufficient capacity (Akyurek et al., 2023), while one-layer transformers with linea…

Cited by 112SourcePDFScholar
2024

Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-training

ICLR 2024poster

Given the massive cost of language model pre-training, a non-trivial improvement of the optimization algorithm would lead to a material reduction on the time and cost of training. Adam and its variants have been state-of-the-art for years, and more sophisticated second-order (Hessian-based) optimize…

Cited by 151SourcePDFScholar
2024

Trash to Treasure: Low-Light Object Detection via Decomposition-and-Aggregation

AAAI 2024technical

Object detection in low-light scenarios has attracted much attention in the past few years. A mainstream and representative scheme introduces enhancers as the pre-processing for regular detectors. However, because of the disparity in task objectives between the enhancer and detector, this paradigm c…

Cited by 12SourcePDFScholar
2023

Beyond NTK with Vanilla Gradient Descent: A Mean-Field Analysis of Neural Networks with Polynomial Width, Samples, and Time

NeurIPS 2023poster

Despite recent theoretical progress on the non-convex optimization of two-layer neural networks, it is still an open question whether gradient descent on neural networks without unnatural modifications can achieve better sample complexity than kernel methods. This paper provides a clean mean-field a…

Cited by 15SourcePDFScholar
2023

Data Selection for Language Models via Importance Resampling

NeurIPS 2023poster

Selecting a suitable pretraining dataset is crucial for both general-domain (e.g., GPT-3) and domain-specific (e.g., Codex) language models (LMs). We formalize this problem as selecting a subset of a large raw unlabeled dataset to match a desired target distribution given unlabeled target samples. D…

2023

DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretraining

NeurIPS 2023spotlight

The mixture proportions of pretraining data domains (e.g., Wikipedia, books, web text) greatly affect language model (LM) performance. In this paper, we propose Domain Reweighting with Minimax Optimization (DoReMi), which first trains a small proxy model using group distributionally robust optimizat…

2023

Max-Margin Works while Large Margin Fails: Generalization without Uniform Convergence

ICLR 2023poster

A major challenge in modern machine learning is theoretically understanding the generalization properties of overparameterized models. Many existing tools rely on uniform convergence (UC), a property that, when it holds, guarantees that the test loss will be close to the training loss, uniformly ov…

Cited by 7SourcePDFScholar
2023

Same Pre-training Loss, Better Downstream: Implicit Bias Matters for Language Models

ICML 2023oral

Language modeling on large-scale datasets improves performance of various downstream tasks. The validation pre-training loss is often used as the evaluation metric for language models since the pre-training loss tends to be well-correlated with downstream performance (which is itself hard to evaluat…

Cited by 52SourcePDFScholar
2023

Sharpness Minimization Algorithms Do Not Only Minimize Sharpness To Achieve Better Generalization

NeurIPS 2023oral

Despite extensive studies, the underlying reason as to why overparameterized neural networks can generalize remains elusive. Existing theory shows that common stochastic optimizers prefer flatter minimizers of the training loss, and thus a natural potential explanation is that flatness implies gener…

Cited by 32SourcePDFScholar
2023

Symbol tuning improves in-context learning in language models

EMNLP 2023long main

We present symbol tuning - finetuning language models on in-context input-label pairs where natural language labels (e.g., "positive/negative sentiment") are replaced with arbitrary symbols (e.g., "foo/bar"). Symbol tuning leverages the intuition that when a model cannot use instructions or natural…

Cited by 0SourceScholar
2023

What is the Inductive Bias of Flatness Regularization? A Study of Deep Matrix Factorization Models

NeurIPS 2023poster

Recent works on over-parameterized neural networks have shown that the stochasticity in optimizers has the implicit regularization effect of minimizing the sharpness of the loss function (in particular, the trace of its Hessian) over the family zero-loss solutions. More explicit forms of flatness r…

Cited by 16SourcePDFScholar
2023

What learning algorithm is in-context learning? Investigations with linear models

ICLR 2023top-5%

Neural sequence models, especially transformers, exhibit a remarkable capacity for in-context learning. They can construct new predictors from sequences of labeled examples $(x, f(x))$ presented in the input without further parameter updates. We investigate the hypothesis that transformer-based in-c…

Cited by 517SourcePDFScholar
2022

An Explanation of In-context Learning as Implicit Bayesian Inference

ICLR 2022poster

Large language models (LMs) such as GPT-3 have the surprising ability to do in-context learning, where the model learns to do a downstream task simply by conditioning on a prompt consisting of input-output examples. The LM learns from these examples without being explicitly pretrained to learn. Thus…

2022

Beyond Separability: Analyzing the Linear Transferability of Contrastive Representations to Related Subpopulations

NeurIPS 2022accept

Contrastive learning is a highly effective method for learning representations from unlabeled data. Recent works show that contrastive representations can transfer across domains, leading to simple state-of-the-art algorithms for unsupervised domain adaptation. In particular, a linear classifier tra…

Cited by 44SourcePDFScholar
2022

Calibrated ensembles can mitigate accuracy tradeoffs under distribution shift

UAI 2022poster

We often see undesirable tradeoffs in robust machine learning where out-of-distribution (OOD) accuracy is at odds with in-distribution (ID) accuracy. A robust classifier obtained via specialized techniques such as removing spurious features often has better OOD but worse ID accuracy compared to a st…

Cited by 36SourcePDFScholar
2022

Connect, Not Collapse: Explaining Contrastive Learning for Unsupervised Domain Adaptation

ICML 2022oral

We consider unsupervised domain adaptation (UDA), where labeled data from a source domain (e.g., photos) and unlabeled data from a target domain (e.g., sketches) are used to learn a classifier for the target domain. Conventional UDA methods (e.g., domain adversarial training) learn domain-invariant…

2022

DR3: Value-Based Deep Reinforcement Learning Requires Explicit Regularization

ICLR 2022spotlight

Despite overparameterization, deep networks trained via supervised learning are surprisingly easy to optimize and exhibit excellent generalization. One hypothesis to explain this is that overparameterized deep networks enjoy the benefits of implicit regularization induced by stochastic gradient desc…

Cited by 70SourcePDFScholar
2022

Fine-Tuning can Distort Pretrained Features and Underperform Out-of-Distribution

ICLR 2022oral

When transferring a pretrained model to a downstream task, two popular methods are full fine-tuning (updating all the model parameters) and linear probing (updating only the last linear layer---the "head"). It is well known that fine-tuning leads to better accuracy in-distribution (ID). However, in…

Cited by 807SourcePDFScholar
2022

Iterative Feature Matching: Toward Provable Domain Generalization with Logarithmic Environments

NeurIPS 2022accept

Domain generalization aims at performing well on unseen test environments with data from a limited number of training environments. Despite a proliferation of proposed algorithms for this task, assessing their performance both theoretically and empirically is still very challenging. Distributional m…

Cited by 43SourcePDFScholar
2022

Near-Optimal Algorithms for Autonomous Exploration and Multi-Goal Stochastic Shortest Path

ICML 2022spotlight

We revisit the incremental autonomous exploration problem proposed by Lim and Auer (2012). In this setting, the agent aims to learn a set of near-optimal goal-conditioned policies to reach the $L$-controllable states: states that are incrementally reachable from an initial state $s_0$ within $L$ ste…

Cited by 4SourcePDFScholar
2022

Plan Better Amid Conservatism: Offline Multi-Agent Reinforcement Learning with Actor Rectification

ICML 2022spotlight

Conservatism has led to significant progress in offline reinforcement learning (RL) where an agent learns from pre-collected datasets. However, as many real-world scenarios involve interaction among multiple agents, it is important to resolve offline RL in the multi-agent setting. Given the recent s…

2022

Self-supervised Learning is More Robust to Dataset Imbalance

ICLR 2022spotlight

Self-supervised learning (SSL) is a scalable way to learn general visual representations since it learns without labels. However, large-scale unlabeled datasets in the wild often have long-tailed label distributions, where we know little about the behavior of SSL. In this work, we systematically inv…

Cited by 204SourcePDFScholar
2022

Sharp Bounds for Federated Averaging (Local SGD) and Continuous Perspective

AISTATS 2022poster

Federated Averaging (FedAvg), also known as Local SGD, is one of the most popular algorithms in Federated Learning (FL). Despite its simplicity and popularity, the convergence rate of FedAvg has thus far been undetermined. Even under the simplest assumptions (convex, smooth, homogeneous, and bounded…

2022

Statistically Meaningful Approximation: a Case Study on Approximating Turing Machines with Transformers

NeurIPS 2022accept

A common lens to theoretically study neural net architectures is to analyze the functions they can approximate. However, the constructions from approximation theory often have unrealistic aspects, for example, reliance on infinite precision to memorize target function values. To address this issue,…

Cited by 104SourcePDFScholar
2022

Toward Fast, Flexible, and Robust Low-Light Image Enhancement

CVPR 2022oral

Existing low-light image enhancement techniques are mostly not only difficult to deal with both visual quality and computational efficiency but also commonly invalid in unknown complex scenarios. In this paper, we develop a new Self-Calibrated Illumination (SCI) learning framework for fast, flexible…

Cited by 810PDFcodeScholar
2021

Calibrating Predictions to Decisions: A Novel Approach to Multi-Class Calibration

NeurIPS 2021poster

When facing uncertainty, decision-makers want predictions they can trust. A machine learning provider can convey confidence to decision-makers by guaranteeing their predictions are distribution calibrated--- amongst the inputs that receive a predicted vector of class probabilities q, the actual dist…

Cited by 85SourcePDFScholar
2021

Composed Fine-Tuning: Freezing Pre-Trained Denoising Autoencoders for Improved Generalization

ICML 2021oral

We focus on prediction problems with structured outputs that are subject to output validity constraints, e.g. pseudocode-to-code translation where the code must compile. While labeled input-output pairs are expensive to obtain, "unlabeled" outputs, i.e. outputs without corresponding inputs, are free…

Cited by 18SourcePDFScholar
2021

Document-Level Relation Extraction with Adaptive Thresholding and Localized Context Pooling

AAAI 2021technical

Document-level relation extraction (RE) poses new challenges compared to its sentence-level counterpart. One document commonly contains multiple entity pairs, and one entity pair occurs multiple times in the document associated with multiple possible relations. In this paper, we propose two novel te…

2021

Heteroskedastic and Imbalanced Deep Learning with Adaptive Regularization

ICLR 2021poster

Real-world large-scale datasets are heteroskedastic and imbalanced --- labels have varying levels of uncertainty and label distributions are long-tailed. Heteroskedasticity and imbalance challenge deep learning algorithms due to the difficulty of distinguishing among mislabeled, ambiguous, and rare…

2021

In-N-Out: Pre-Training and Self-Training using Auxiliary Information for Out-of-Distribution Robustness

ICLR 2021poster

Consider a prediction setting with few in-distribution labeled examples and many unlabeled examples both in- and out-of-distribution (OOD). The goal is to learn a model which performs well both in-distribution and OOD. In these settings, auxiliary information is often cheaply available for every inp…

Cited by 71SourcePDFScholar
2021

Learning Barrier Certificates: Towards Safe Reinforcement Learning with Zero Training-time Violations

NeurIPS 2021poster

Training-time safety violations have been a major concern when we deploy reinforcement learning algorithms in the real world. This paper explores the possibility of safe RL algorithms with zero training-time safety violations in the challenging setting where we are only given a safe but trivial-rewa…

2021

Provable Guarantees for Self-Supervised Deep Learning with Spectral Contrastive Loss

NeurIPS 2021oral

Recent works in self-supervised learning have advanced the state-of-the-art by relying on the contrastive learning paradigm, which learns representations by pushing positive pairs, or similar examples from the same class, closer together while keeping negative pairs far apart. Despite the empirical…

Cited by 351SourcePDFScholar
2021

Provable Model-based Nonlinear Bandit and Reinforcement Learning: Shelve Optimism, Embrace Virtual Curvature

NeurIPS 2021poster

This paper studies model-based bandit and reinforcement learning (RL) with nonlinear function approximations. We propose to study convergence to approximate local maxima because we show that global convergence is statistically intractable even for one-layer neural net bandit with a deterministic rew…

Cited by 47SourcePDFScholar
2021

Theoretical Analysis of Self-Training with Deep Networks on Unlabeled Data

ICLR 2021oral

Self-training algorithms, which train a model to fit pseudolabels predicted by another previously-learned model, have been very successful for learning with unlabeled data using neural networks. However, the current theoretical understanding of self-training only applies to linear models. This work…

Cited by 278SourcePDFScholar
2021

Variance-reduced First-order Meta-learning for Natural Language Processing Tasks

NAACL 2021long

First-order meta-learning algorithms have been widely used in practice to learn initial model parameters that can be quickly adapted to new tasks due to their efficiency and effectiveness. However, existing studies find that meta-learner can overfit to some specific adaptation when we have heterogen…

Cited by 11SourcePDFScholar
2021

Why Do Pretrained Language Models Help in Downstream Tasks? An Analysis of Head and Prompt Tuning

NeurIPS 2021spotlight

Pretrained language models have achieved state-of-the-art performance when adapted to a downstream NLP task. However, theoretical analysis of these models is scarce and challenging since the pretraining and downstream tasks can be very different. We propose an analysis framework that links the pretr…

2020

Beyond Lazy Training for Over-parameterized Tensor Decomposition

NeurIPS 2020poster

Over-parametrization is an important technique in training neural networks. In both theory and practice, training a larger network allows the optimization algorithm to avoid bad local optimal solutions. In this paper we study a closely related tensor decomposition problem: given an $l$-th order tens…

Cited by 18SourcePDFScholar
2020

Improved Sample Complexities for Deep Neural Networks and Robust Classification via an All-Layer Margin

ICLR 2020poster

For linear classifiers, the relationship between (normalized) output margin and generalization is captured in a clear and simple bound – a large output margin implies good generalization. Unfortunately, for deep models, this relationship is less clear: existing analyses of the output margin give com…

Cited by 44SourceScholar
2020

Learning Self-Correctable Policies and Value Functions from Demonstrations with Negative Sampling

ICLR 2020poster

Imitation learning, followed by reinforcement learning algorithms, is a promising paradigm to solve complex control tasks sample-efficiently. However, learning from demonstrations often suffers from the covariate shift problem, which results in cascading errors of the learned policy. We introduce a…

Cited by 21SourceScholar
2020

MOPO: Model-based Offline Policy Optimization

NeurIPS 2020poster

Offline reinforcement learning (RL) refers to the problem of learning policies entirely from a batch of previously collected data. This problem setting is compelling, because it offers the promise of utilizing large, diverse, previously collected datasets to acquire policies without any costly or da…

2020

Model-based Adversarial Meta-Reinforcement Learning

NeurIPS 2020poster

Meta-reinforcement learning (meta-RL) aims to learn from multiple training tasks the ability to adapt efficiently to unseen test tasks. Despite the success, existing meta-RL algorithms are known to be sensitive to the task distribution shift. When the test task distribution is different from the tra…

2020

On the Expressivity of Neural Networks for Deep Reinforcement Learning

ICML 2020poster

We compare the model-free reinforcement learning with the model-based approaches through the lens of the expressive power of neural networks for policies, Q-functions, and dynamics. We show, theoretically and empirically, that even for one-dimensional continuous state space, there are many MDPs whos…

2020

Robust and On-the-fly Dataset Denoising for Image Classification

ECCV 2020poster

Memorization in over-parameterized neural networks could severely hurt generalization in the presence of mislabeled examples. However, mislabeled examples are hard to avoid in extremely large datasets collected with weak supervision. We address this problem by reasoning counterfactually about the lo…

Cited by 18SourcePDFScholar
2020

Self-training Avoids Using Spurious Features Under Domain Shift

NeurIPS 2020poster

In unsupervised domain adaptation, existing theory focuses on situations where the source and target domains are close. In practice, conditional entropy minimization and pseudo-labeling work even when the domain shifts are much larger than those analyzed by existing theory. We identify and analyze o…

Cited by 92SourcePDFScholar
2019

Algorithmic Framework for Model-based Deep Reinforcement Learning with Theoretical Guarantees

ICLR 2019poster

Model-based reinforcement learning (RL) is considered to be a promising approach to reduce the sample complexity that hinders model-free RL. However, the theoretical understanding of such methods has been rather limited. This paper introduces a novel algorithmic framework for designing and analyzing…

2019

Data-dependent Sample Complexity of Deep Neural Networks via Lipschitz Augmentation

NeurIPS 2019spotlight

Existing Rademacher complexity bounds for neural networks rely only on norm control of the weight matrices and depend exponentially on depth via a product of the matrix norms. Lower bounds show that this exponential dependence on depth is unavoidable when no additional properties of the training dat…

2019

Learning Imbalanced Datasets with Label-Distribution-Aware Margin Loss

NeurIPS 2019poster

Deep learning algorithms can fare poorly when the training dataset suffers from heavy class-imbalance but the testing criterion requires good generalization on less frequent classes. We design two novel methods to improve performance in such scenarios. First, we propose a theoretically-principled la…

2019

Regularization Matters: Generalization and Optimization of Neural Nets v.s. their Induced Kernel

NeurIPS 2019spotlight

Recent works have shown that on sufficiently over-parametrized neural nets, gradient descent with relatively large initialization optimizes a prediction function in the RKHS of the Neural Tangent Kernel (NTK). This analysis leads to global convergence results but does not work when there is a standa…

Cited by 251SourcePDFScholar
2019

Towards Explaining the Regularization Effect of Initial Large Learning Rate in Training Neural Networks

NeurIPS 2019spotlight

Stochastic gradient descent with a large initial learning rate is widely used for training modern neural net architectures. Although a small initial learning rate allows for faster training and better test performance initially, the large learning rate achieves better generalization soon after the l…

2017

Generalization and Equilibrium in Generative Adversarial Nets (GANs)

ICML 2017poster

It is shown that training of generative adversarial network (GAN) may not have good generalization properties; e.g., training may appear successful but the trained distribution may be far from target distribution in standard metrics. However, generalization does occur for a weaker metric called neur…

2017

Identity Matters in Deep Learning

ICLR 2017poster

An emerging design principle in deep learning is that each layer of a deep artificial neural network should be able to easily express the identity transformation. This idea not only motivated various normalization techniques, such as batch normalization, but was also key to the immense success of re…

Cited by 458SourceScholar
2016

Provable Algorithms for Inference in Topic Models

ICML 2016poster

Recently, there has been considerable progress on designing algorithms with provable guarantees —typically using linear algebraic methods—for parameter learning in latent variable models. Designing provable algorithms for inference has proved more difficult. Here we take a first step towards provabl…