NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Shang Liu

Imperial College London
2 previous affiliations
12Machine learning papers tracked by Lacuna

3 other authors named Shang Liu: Shang Liu (Hong Kong University of Science and Technology · 18 papers), Shang Liu (China University of Mining and Technology · 5 papers), Shang Liu (1 paper)

Is this you?

Research Overview

Shang Liu focuses on the intersection of machine learning, operations research, and the theoretical foundations of large language models (LLMs). His research explores how sequential decision-making algorithms can be optimized under resource constraints, how uncertainty can be quantified and leveraged in active learning and in-context learning, and how economic incentives can be designed to improve the quality of human-AI interaction. His work is characterized by a transition from classical operations research problems, such as bin packing and multi-armed bandits, toward the algorithmic and socio-technical challenges of aligning and understanding modern generative models.

Research Trajectory

The early phase of Liu’s research, beginning around 2021, was primarily rooted in classical operations research and online optimization. During this period, he investigated fundamental problems in resource allocation and sequential decision-making under uncertainty. A significant contribution from this time was the study of the closed online bin packing problem, where the total number of items is known in advance. In Online Bin Packing with Known T, Liu developed an adaptive algorithm that utilizes geometric time intervals to solve offline sub-problems, providing a bridge between theoretical regret bounds and practical online packing decisions. This work established a foundation for handling temporal constraints in optimization.

By 2022, Liu’s focus shifted toward more complex environments where the underlying reward distributions or resource availability are not constant. This led to investigations into Non-stationary Bandits with Knapsacks, a problem that generalizes the multi-armed bandit framework by introducing multiple resource types and non-stationary reward signals. This research addressed the dual challenge of maximizing cumulative rewards while adhering to strict knapsack constraints in environments that evolve over time, a problem highly relevant to dynamic pricing and inventory management.

In 2023, Liu began to integrate these optimization techniques with broader machine learning paradigms, specifically focusing on active learning and the "predict-then-optimize" framework. He addressed the heuristic nature of active learning in Understanding Uncertainty Sampling, providing a more rigorous examination of how "uncertainty" should be defined and handled within optimization algorithms like stochastic gradient descent. During this period, he also participated in research regarding regression with rejection, exploring how models can decide to defer difficult cases to human experts, and contributed to the development of the Maximum Optimality Margin framework for contextual linear programming.

Current Directions

Liu’s most recent work, spanning 2024 and 2025, focuses on the internal mechanics of large language models and the economics of their training data. He has become particularly interested in In-Context Learning (ICL), investigating whether Transformers truly learn new algorithms during inference or merely perform sophisticated pattern matching. In Towards Better Understanding of In-Context Learning Ability from In-Context Uncertainty Quantification, he analyzed how models quantify their own doubt. This research suggests that while Transformers can approximate Bayes-optimal behavior within their training distribution, they often rely on "statistical shortcuts" when faced with distribution shifts, a phenomenon related to The Robustness Paradox of Bayesian Deep Learning. This work also touches upon the Task Diversity Thresholds for Algorithmic In-Context Learning, examining the conditions under which ICL emerges.

Another major current theme in Liu's research is the alignment of LLMs through human feedback. Recognizing that the quality of reward models depends heavily on the quality of human annotations, he has applied game-theoretic models to the data collection process. In Incentivizing High-Quality Human Annotations with Golden Questions, he addressed the "moral hazard" of strategic annotators by proposing a selection strategy for "golden questions" that identifies high-quality contributors more effectively than standard attention checks. This work extends into the design of contracts and monitoring systems for human preference annotators, moving the field toward a more robust understanding of the human-in-the-loop pipeline.

Additionally, Liu has explored the architectural limitations of these models, including how Length Generalization via Implicit Positional Cues affects performance when models encounter sequences longer than those seen during training. His recent participation in research on supervised pre-trained Transformers for sequential decision-making further bridges his early interest in bandits and pricing with his current focus on Transformer architectures.

Representative Work

Online Bin Packing with Known T This paper revisits the online bin packing problem under the assumption that the total number of items is known. Liu proposes an adaptive algorithm that solves offline packing problems at geometric intervals to guide online decisions. The work provides a theoretical analysis of regret under both stochastic and random permutation models, demonstrating that knowing the time horizon allows for significantly more efficient packing strategies than traditional online methods.

Non-stationary Bandits with Knapsacks Addressing the limitations of static bandit models, this research explores the Bandits with Knapsacks (BwK) problem in non-stationary environments. Liu develops algorithms that manage multiple resource constraints while adapting to changing reward distributions. This work is critical for real-world applications like online advertising and resource allocation, where both the availability of resources and the value of actions are in constant flux.

Understanding Uncertainty Sampling Liu provides a systematic examination of uncertainty sampling in active learning. The paper addresses two primary gaps in the literature: the lack of a consensus definition for "uncertainty" across different tasks and the absence of theoretical guarantees for implementing these algorithms within standard optimization frameworks. By providing a more rigorous protocol for handling sequentially arrived annotated data, this work moves uncertainty sampling from a heuristic approach toward a theoretically grounded method.

Towards Better Understanding of In-Context Learning Ability from In-Context Uncertainty Quantification This study investigates the "black box" of ICL by requiring Transformers to predict both the expected value and the variance of regression tasks. Liu derives a theoretical generalization bound based on the model's context window and demonstrates that while Transformers can mimic Bayesian inference in-distribution, they often fail to maintain this behavior under distribution shifts. This research provides a nuanced view of the limitations of ICL as a form of "on-the-fly" learning.

Reward Modeling with Ordinal Feedback: Wisdom of the Crowd In this work, Liu proposes a framework for learning reward models from ordinal feedback, generalizing beyond the binary "A is better than B" setup of the Bradley-Terry model. By incorporating more granular information—such as "slightly better" or "tied"—the framework captures more nuance from human preferences. This approach improves the efficiency of reward modeling, which is a central component of aligning LLMs with human values.

Incentivizing High-Quality Human Annotations with Golden Questions This paper applies a principal-agent game theory model to the problem of paid human annotations for LLM training. Liu proves that traditional quality checks are often insufficient when annotators behave strategically to maximize their own utility. He proposes a "golden question" strategy that prioritizes high-certainty and format-consistent samples to better identify and incentivize high-quality contributors, thereby improving the integrity of the training data.

Profile updated

See something wrong? Report a mistake