Ning Shang
2 previous affiliations
- Microsoft (United States)2020–2023
- Researcher · 2020–2023
- Beijing Institute of Technology2017–2020
- MS student · 2017–2020
Research Overview
Ning Shang focuses on the development and optimization of large language models (LLMs), with a particular emphasis on context window scaling, instruction tuning for specialized domains, and the enhancement of reasoning capabilities in small-scale models. Shang’s work spans from foundational mathematical cryptography to clinical informatics and, most recently, to the architectural and algorithmic challenges of modern generative AI. This trajectory reflects a consistent interest in applying rigorous computational methods to complex data structures, whether they are algebraic curves, heterogeneous electronic health records, or multi-million-token sequences in transformer-based architectures.
Research Trajectory
The early stages of Shang’s research were grounded in information security and computational mathematics. This period involved investigating the application of low-genus algebraic curves to cryptographic problems, specifically focusing on elliptic and hyperelliptic curve cryptography. This work addressed practical challenges in secure data broadcasting and access control, utilizing the elliptic curve discrete logarithm problem to achieve security features that traditional methods lacked.
By the mid-2010s, Shang’s focus shifted toward clinical informatics and the challenges of large-scale medical data analysis. This transition was marked by research into pharmacovigilance—the post-marketing surveillance of adverse drug reactions (ADRs). During this period, Shang explored how integrating domain knowledge could improve signal detection from electronic health records (EHRs). This work addressed the critical need for robust monitoring systems to identify harmful reactions that may not be apparent during initial clinical trials.
Between 2014 and 2021, Shang’s research expanded into the broader challenges of Common Data Models for Cross Institutional Clinical Analytics. This involved addressing the "Medical Tower of Babel" problem, where incompatible coding systems and measurement units across different institutions hinder the efficacy of machine learning models. During this time, Shang also contributed to methods for Multimodal Representation Learning for Electronic Health Records, seeking to parse the "digital exhaust" of medicine—ranging from physiological waveforms to unstructured narrative notes—into coherent machine-readable formats. Further work in this domain touched upon Temporal Persistence Filtering for Robust Anomaly Detection) to reduce false alarms in real-time health monitoring and the development of Single Step Genomic Evaluation via Hybrid Relationship Matrices to bridge pedigree-based and genomic-based maps of biological relatedness.
Starting in 2023, Shang’s research pivoted significantly toward the optimization of Large Language Models. Initial work in this area focused on instruction tuning for code-related tasks, addressing the limitations of models that were primarily trained for simple code generation. By introducing frameworks to curate high-quality, diverse instruction data from open-source repositories, Shang contributed to improving model generalization across complex tasks such as code repair, summarization, and translation.
Current Directions
Shang’s current research is concentrated on three primary frontiers in AI: context window extension, verifiable reasoning, and multimodal planning.
A major theme in Shang’s recent work is the expansion of LLM context windows. This involves identifying and exploiting non-uniformities in positional embeddings to allow models to process millions of tokens without losing performance on shorter sequences. Shang has led efforts to achieve near-lossless scaling, demonstrating that evolutionary search can find optimal scaling factors more efficiently than traditional brute-force training methods.
In the domain of reasoning, Shang is involved in projects that aim to elevate the performance of smaller language models (SLMs) to match or exceed that of much larger counterparts. This is achieved through self-evolved deep thinking, Monte Carlo Tree Search (MCTS), and the use of large-scale verified datasets. By focusing on verifiable reasoning steps—particularly in mathematics and competitive programming—this research seeks to move beyond simple pattern matching toward rigorous, code-verified logical deduction.
Most recently, Shang has begun exploring reinforcement learning for advanced reasoning over long contexts and the integration of visual planning into multimodal models. This includes the development of "internal visual scratchpads" that allow models to generate and manipulate latent visual representations to solve complex reasoning problems that require imagination and planning.
Representative Work
Low genus algebraic curves in cryptography This early work examines the intersection of mathematics and information security, specifically the role of elliptic and hyperelliptic curve cryptography. It introduces a new application of elliptic curve cryptography (ECC) for access control in secure data broadcasting and provides explicit divisor doubling formulas for genus 2 curves. This research established a foundation in computational complexity and secure system design.
Integrating Domain Knowledge to Improve Signal Detection from Electronic Health Records for Pharmacovigilance In this dissertation work, Shang addresses the high mortality and morbidity associated with adverse drug reactions. The research focuses on post-marketing drug surveillance, proposing methods to integrate medical domain knowledge into the analysis of EHRs to improve the accuracy and speed of signal detection for harmful drug effects. This work highlights the importance of domain-specific constraints in large-scale data mining.
WaveCoder: Widespread And Versatile Enhancement For Code Large Language Models By Instruction Tuning As a primary contributor to the WaveCoder series, Shang helped develop a Generator-Discriminator framework designed to curate high-quality instruction data from open-source code. The research demonstrates that the diversity and fidelity of data are more critical for instruction tuning than the absolute volume of the dataset. This approach significantly enhanced the performance of Code LLMs in multi-task scenarios, including code translation and repair.
LongRoPE2: Near-Lossless LLM Context Window Scaling In this first-author paper, Shang presents a method for scaling LLM context windows to 128k tokens while maintaining 99% of the original short-context performance. The research identifies that higher dimensions in Rotary Positional Embeddings (RoPE) are often under-trained. By utilizing a "needle-driven" evolutionary search to determine optimal scaling factors, the method achieves state-of-the-art results with significantly fewer training tokens than contemporary approaches like LLaMA 3.1.
rStar-Math: Small LLMs Can Master Math Reasoning with Self-Evolved Deep Thinking Shang participated in the development of rStar-Math, a framework that enables 7B-parameter models to outperform significantly larger models on elite mathematics benchmarks. The methodology combines MCTS with a self-evolving training recipe and code-verified reasoning steps. This work challenges the assumption that high-level reasoning requires massive parameter counts, emphasizing instead the role of verified, deep-thinking trajectories.
Latent Sketchpad: Sketching Visual Thoughts to Elicit Multimodal Reasoning in MLLMs In this recent collaborative work, Shang contributed to the Latent Sketchpad framework, which equips Multimodal Large Language Models (MLLMs) with an internal visual scratchpad. By repurposing internal visual representations for generative thought rather than just perceptual understanding, the framework allows models to perform visual planning and imagination. This represents a shift toward more human-like reasoning processes in multimodal AI.
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