MCP
GV

Gregory Valiant

81 papers in the library · Same-name authors told apart using DBLP

Papers

30
Thompson Sampling Is 2-Competitive for Mistakes
Mark SellkeGregory Valiant
For Bayesian bandit models with independent arms that evolve only when played, Thompson sampling provably makes at most twice the expected number of mistakes (suboptimal arm selections) of any other policy. The factor 2 is best possible, holds under any nonincreasing sequence of round weights, and for stochastic bandits confirms a 2014 conjecture of Guha and Munagala.
arXivarXiv · · July 14, 2026
1
0
Short proofs in combinatorics, probability and number theory II
Boris AlexeevMoe PuttermanMehtaab SawhneyMark SellkeGregory Valiant
This paper presents five short proofs derived from Erdős's questions. They cover ordinary lines in planar point sets, sequences with small exponential sums, a $K_4$-free $4$-critical graph with few chords, a counterexample to a "fewnomial" version of the Erdős–Turán discrepancy bound, and a finiteness result for integers $n$ where $n-ak^2$ is prime for $k\leq\sqrt{n/a}$ coprime to $n$. Each proof was generated by an internal OpenAI model.
arXivarXiv · · April 8, 2026
0
7
Short proofs in combinatorics and number theory
Boris AlexeevMoe PuttermanMehtaab SawhneyMark SellkeGregory Valiant
This paper presents three short proofs answering questions raised by Erdős. The first proof concerns small prime factors of binomial coefficients $\binom{n}{k}$, the second addresses whether any additive basis $A$ can be split into two subsets $A_1, A_2$ so that each $A_i + A_i$ has bounded gaps, and the third examines whether the fractional parts $\{\alpha p\}$ are well-distributed in the sense of Hlawka and Petersen. All proofs originate from an internal OpenAI model.
arXivarXiv · · March 31, 2026
0
7
On infinite sets with no 33 on a line
Moe PuttermanMehtaab SawhneyGregory Valiant
This paper constructs an infinite set $A$ in $\mathbb{R}^2$ where every subset $P\subseteq A$ contains a constant-density subset $P'$ with no three points collinear, yet $A$ itself cannot be partitioned into finitely many collinear-triple-free subsets. This construction provides a new proof of a question by Erdős, Nešetřil, and Rödl.
arXivarXiv · · February 24, 2026
0
1
OpenAI GPT-5 System Card
Aaditya SinghAdam Fry…Gregory Valiant
GPT-5 is a unified system that routes queries to a fast model, a deeper reasoning model (gpt-5-thinking), or mini versions after usage limits, based on conversation type, complexity, tool needs, and explicit intent. The router is continuously trained on real signals including model switches and preference rates. The system reduces hallucinations, improves instruction following, minimizes sycophancy, and advances writing, coding, and health performance. Safety training via safe-completions prevents disallowed content. Under a precautionary approach, gpt-5-thinking is treated as High capability in the Biological and Chemical domain.
arXivarXiv · · December 19, 2025
0
1k+
On the Entropy Calibration of Language Models
Steven CaoGregory ValiantPercy Liang
The paper studies entropy calibration: whether a language model's generation entropy matches its log loss on human text. It finds that miscalibration improves very slowly with scale because the scaling exponent is near zero for power-law data distributions. Consequently, larger models require similar truncation as smaller ones to calibrate, reducing diversity. The authors prove that calibration without tradeoffs is theoretically possible given a black box predicting future entropy.
arXivarXiv · · November 15, 2025
0
10
A Simple Geometric Proof of the Optimality of the Sequential Probability Ratio Test for Symmetric Bernoulli Hypotheses
Chirag PabbarajuGregory ValiantRishi Verma
This paper proves the optimality of Wald's sequential probability ratio test (SPRT) for deciding whether a coin's bias is $p = 1/2 + \varepsilon$ or $p = 1/2 - \varepsilon$ by a discrete, self-contained geometric argument. The problem is modeled as a biased random walk on the two-dimensional integer lattice of (heads, tails) counts. The proof shows that any arbitrary strategy, represented as a marked stopping time, can be transformed into the parallel-line strategy corresponding to the SPRT through a sequence of local perturbations that strictly improve the Bayes risk objective, establishing optimality without analytical or continuous methods.
arXivarXiv · · October 17, 2025
0
1
Learning from Few Samples with Language-Model Guidance
Mika Sarkin JainMilan RohatgiHaopeng XiaoGregory Valiant
This paper studies few-sample, high-dimensional classifier learning using domain knowledge from a language model or human expert. It investigates four elicitation strategies for linear models: feature selection, coefficient sign constraints, inequality constraints on magnitudes, and equality constraints across related features, each restricting the hypothesis class to improve generalization. Evaluated on four clinical prediction tasks with molecular data, models trained on as few as five patients outperform baselines needing ten times more, with AUC improvements over 20%, surpassing human-designed models. This underscores LLM-guided model design in data-limited settings.
OpenReviewOpenReview · September 20, 2025
0
Testing with Non-identically Distributed Samples
Shivam GargChirag PabbarajuKirankumar ShiragurGregory Valiant
We study property testing and estimation when samples come from independent but non-identically distributed distributions $p_1,\dots,p_T$, aiming to learn or test the average $p_{\mathrm{avg}}$. With $c=1$ draw per distribution, learning requires $\Theta(k/\varepsilon^2)$ samples, but uniformity/identity testing needs linearly many samples in $k$. For $c\ge 2$, testing becomes sublinear: $O(\sqrt{k}/\varepsilon^2+1/\varepsilon^4)$ total samples suffice, matching the i.i.d. optimal bound when $\varepsilon\ge k^{-1/4}$. In the $c=2$ case, ignoring sample grouping prevents any linear-sample tester from differentiating. We also extend to closeness testing, achieving $O(k^{2/3}/\varepsilon^{8/3})$ samples with $c=3$, matching i.i.d. complexity up to $\varepsilon$-dependence.
OpenReviewOpenReview · · June 23, 2025
0
Discovering Data Structures: Nearest Neighbor Search and Beyond
Omar SalemohamedLaurent CharlinShivam GargVatsal SharanGregory Valiant
This paper asks whether data structures can be learned end-to-end by neural networks, focusing on nearest-neighbor search. It introduces a framework that adapts to data distributions and trades off query versus space complexity, requiring no initialization or seeded candidates. Learned structures reverse-engineer to optimal algorithms: binary search and interpolation search variants for 1D, and k-d-tree-like or locality-sensitive-hashing-like solutions in higher dimensions, plus effective image representations. The framework also extends to frequency estimation over streams.
OpenReviewOpenReview · · May 11, 2025
0
On the Entropy Calibration of Language Models
Steven CaoGregory ValiantPercy Liang
This paper studies entropy calibration in language models, where a model's generation entropy should match its log loss on human text. The authors find that miscalibration improves very slowly with model scale: theory predicts a scaling exponent near zero when the data distribution's power law exponent is close to 1, and empirical results on 0.5B to 70B models confirm near-zero exponents, explaining why larger models require similar truncation. Finally, they prove that reducing entropy while preserving log loss is theoretically possible if one has access to a black box that predicts future text entropy.
OpenReviewOpenReview · · May 10, 2025
0
Attainability of Two-Point Testing Rates for Finite-Sample Location Estimation
Spencer ComptonGregory Valiant
This paper studies when the two-point testing lower bound for univariate mean estimation is nearly attainable. The main contribution designs a parameter-free, near-linear-time algorithm that nearly attains this rate for mixtures of symmetric, log-concave distributions with a common mean in the adaptive location estimation setting, where the distribution is unknown. In contrast, the rate is shown not nearly attainable even for symmetric, unimodal distributions, revealing a sharp phase transition.
arXivarXiv · · February 9, 2025
0
8
A Generalized Trace Reconstruction Problem: Recovering a String of Probabilities
Joey RivkinGregory ValiantPaul Valiant
This paper introduces a generalized trace reconstruction problem where the source string consists of probabilities $p_i\in[0,1]$ rather than binary values. Each trace is generated by independently sampling a binary string with the $i$th bit set to 1 with probability $p_i$, then deleting each bit independently with probability $\delta$. Two results are shown: for worst-case strings and $\delta = \Omega(1/\sqrt{n})$, any algorithm requires $2^{\Omega(\sqrt{n})}$ traces to achieve constant $\ell_\infty$ error or $\ell_1$ error $o(\sqrt{n})$; for random $p_i$ drawn uniformly from $[0,1]$, recovery to $\ell_1$ error $\epsilon$ is possible with polynomially many traces.
arXivarXiv · · December 1, 2024
0
3
Discovering Data Structures: Nearest Neighbor Search and Beyond
Omar SalemohamedLaurent CharlinShivam GargVatsal SharanGregory Valiant
The paper introduces a framework for learning data structures end-to-end from data, without hand-crafted initialization. Applied to nearest neighbor search, it discovers algorithms that adapt to the data distribution: in 1D it learns binary search or interpolation search; in higher dimensions it produces solutions resembling k-d trees or locality-sensitive hashing. The framework also extends to frequency estimation over data streams, serving as a potential discovery tool for new problems.
arXivarXiv · · November 5, 2024
0
0
Adaptive and oblivious statistical adversaries are equivalent
Guy BlancGregory Valiant
We prove that sample-adaptive and sample-oblivious adversaries are equivalent for all corruption types: any algorithm $A$ solving a statistical task under oblivious corruption can be transformed into $A'$ that tolerates adaptive corruption, using only a polynomially larger sample and running $A$ on a uniformly random subsample. This resolves the main open question from [BLMT22], preserving computational efficiency up to polynomial sample-size factors.
arXivarXiv · · October 17, 2024
0
11
Discovering Data Structures: Nearest Neighbor Search and Beyond
Omar SalemohamedLaurent CharlinShivam GargVatsal SharanGregory Valiant
We propose a general framework for end-to-end learning of data structures, adapted to the data distribution with fine-grained control over query and space complexity, and requiring no initialization with candidate structures. Applied to nearest neighbor search, the learned structures reveal interpretable algorithms: binary search and interpolation-search variants in 1D, and k-d-tree-like solutions or locality-sensitive-hashing elements in higher dimensions, with useful high-dimensional representations. The framework also extends to estimating frequencies over streaming data, suggesting broader applicability as a discovery tool.
OpenReviewOpenReview · · September 27, 2024
0
On the Entropy Calibration of Language Models
Steven CaoGregory ValiantPercy Liang
This paper frames error accumulation in autoregressive language models as entropy miscalibration. Empirically, base models gain entropy per step and become incoherent over generations, while instruction-tuned large models become overconfident and lose diversity. Theoretically, entropy calibration is a global property over an exponentially large output space, making per-step adjustments unable to preserve log loss. The main contribution is future entropy scaling, an adjustment to next-token probabilities using each token's future entropy, proven to calibrate while preserving log loss under additional assumptions, suggesting calibration need not sacrifice quality.
OpenReviewOpenReview · · September 27, 2024
0
Learning to Design Data-structures: A Case Study of Nearest Neighbor Search
Omar SalemohamedVatsal SharanShivam GargLaurent CharlinGregory Valiant
We propose a general framework for automating data-structure design and apply it to nearest neighbor search. The model adapts to the data distribution and controls query and space complexity, yielding problem-specific solutions. Reverse-engineering learned algorithms shows that in 1D it discovers optimal algorithms like binary search and interpolation search variants, while in higher dimensions it learns solutions resembling K-d trees or locality-sensitive hashing depending on the regime.
OpenReviewOpenReview · May 28, 2024
0
0
Near-Optimal Mean Estimation with Unknown, Heteroskedastic Variances
Spencer ComptonGregory Valiant
We present an algorithm for estimating the common mean of Gaussian variables with unknown, heteroskedastic variances. In the Subset-of-Signals benchmark, where an unknown subset of $m$ out of $n$ variables has variance ≤ 1, our algorithm achieves the optimal estimation error up to logarithmic factors, improving over prior work by polynomial factors for $m = n^c$ with $0<c<1$. Notably, it achieves error $o(1)$ with only $m = \tilde{O}(n^{1/4})$ bounded-variance samples, whereas previous methods required $m = \tilde{\Omega}(n^{1/2})$. In multi-dimensional settings (even $d=2$), our approach yields rates comparable to knowing variances.
arXivarXiv · · December 5, 2023
0
10
Matrix Multiplication in Quadratic Time and Energy? Towards a Fine-Grained Energy-Centric Church-Turing Thesis
Gregory Valiant
This paper presents two algorithms that multiply $n \times n$ matrices using $n^2 \operatorname{polylog}(n)$ time and energy under basic classical-physics models. One algorithm handles integer-valued matrices and the other handles Boolean matrix multiplication. The authors aim to motivate physically plausible computation models that could surpass the time and energy bounds of the standard parallel RAM model, where each operation costs one unit of time and one unit of energy.
arXivarXiv · · November 27, 2023
0
10
Testing with Non-identically Distributed Samples
Shivam GargChirag PabbarajuKirankumar ShiragurGregory Valiant
This paper studies property testing and estimation when samples are independent but not identically distributed. The setting involves $T$ distributions over a support of size $k$, with $c$ independent draws from each; the goal is to test properties of the average distribution $p_{avg}$. The central contribution is characterizing the sample complexity for testing uniformity (or identity) of $p_{avg}$. With $c=1$ samples per distribution, a linear number of samples in $k$ is necessary. With $c \ge 2$, the usual sublinear guarantees of the i.i.d. setting are recovered: $O(\sqrt{k}/\varepsilon^2 + 1/\varepsilon^4)$ total samples suffice, matching optimal i.i.d. complexity when $\varepsilon \ge k^{-1/4}$.
arXivarXiv · · November 19, 2023
0
3
Efficient Convex Optimization Requires Superlinear Memory (Extended Abstract)
Annie MarsdenVatsal SharanAaron SidfordGregory Valiant
This work asks whether the information-theoretically optimal query complexity for minimizing a convex function given a first-order oracle that returns function values and (sub)gradients can be attained without the more complex, computationally expensive cutting-plane techniques used to achieve it, since gradient-based methods, though simple and efficient, fall short of it. Using memory as a lens, the authors show that this is not possible: optimal query complexity cannot be achieved without using significantly more memory than gradient descent requires.
IJCAIIJCAI · August 2023
0
One-sided Matrix Completion from Two Observations Per Row
Steven CaoPercy LiangGregory Valiant
This paper studies one-sided matrix completion, where the goal is to recover the right singular vectors of a low-rank matrix $X$ when too few entries are observed to complete the whole matrix. The regime of interest has more rows than columns and very few observations. The proposed algorithm imputes missing values of $X^TX$ and provably recovers it with only two observations per row, provided there are at least $\Omega(r^2 d \log d)$ rows (rank $r$, $d$ columns). Experiments on synthetic data and low-coverage genome sequencing show substantial improvement over standard matrix completion and direct factorization methods.
arXivarXiv · · June 6, 2023
0
2
Lexinvariant Language Models
Qian HuangEric ZelikmanSarah Li ChenYuhuai WuGregory ValiantPercy Liang
This paper asks whether a language model can perform well without fixed token embeddings, relying only on token co-occurrence and repetition within a context. Lexinvariant LMs achieve this by encoding tokens with random Gaussian vectors that are sequence-specific. The authors prove such a model converges to the true LM at a polynomial rate in context length, and empirically show perplexity comparable to standard LMs given long contexts, plus better accuracy on synthetic in-context reasoning tasks and implicit Bayesian deciphering.
OpenReviewOpenReview · · May 26, 2023
0
Lexinvariant Language Models
Qian HuangEric ZelikmanSarah Li ChenYuhuai WuGregory ValiantPercy Liang
This paper proposes lexinvariant language models that operate without fixed token embeddings by encoding each token with a random Gaussian vector, which is consistent within a sequence but varies across sequences. The authors prove that such a model can converge to the true language model at a polynomial rate with respect to context length, with a sublinear constant in vocabulary size. Empirically, it achieves perplexity comparable to standard LMs given sufficient context, implicitly performs Bayesian in-context deciphering of substitution ciphers, and attains 4X better accuracy on synthetic in-context reasoning tasks.
arXivarXiv · · May 24, 2023
1
9
Lexinvariant Language Models
Qian HuangEric ZelikmanSarah Li ChenYuhuai WuGregory ValiantPercy Liang
This paper introduces lexinvariant language models that operate without fixed token embeddings, relying entirely on token co-occurrence and repetition in context rather than token identity. The authors prove such a model can converge to the true language model at a rate polynomial in context length and sublinear in vocabulary size. They construct it using random Gaussian token vectors and show competitive perplexity with long contexts, accurate Bayesian in-context deciphering, and improved synthetic reasoning accuracy. They also discuss regularizing standard models toward lexinvariance.
OpenReviewOpenReview · · April 25, 2023
0
One-sided Matrix Completion from Two Observations Per Row
Steven CaoPercy LiangGregory Valiant
This paper studies one-sided matrix completion, where the goal is to recover the right singular vectors of a low-rank matrix $X$ even when recovering left singular vectors is impossible. The authors propose an algorithm that imputes missing entries of $X^TX$ and show that with only two observations per row, $X^TX$ can be provably recovered if the number of rows is at least $\Omega(r^2 d \log d)$, with rank $r$ and $d$ columns. Experiments on synthetic data and low-coverage genome sequencing show it substantially outperforms standard matrix completion and direct factorization methods.
OpenReviewOpenReview · · January 26, 2023
0
Online Pen Testing
Mingda QiaoGregory Valiant
The paper studies the online pen testing problem, where each of $n$ pens has an unknown amount of ink $X_i$ and the goal is to select the pen with the most remaining ink. Testing a pen consumes some of its ink, reducing the utility if it is selected. Despite this, the authors give algorithms that achieve an $O(\log n)$ approximation of the optimal utility. In the prophet setting, where $X_i$ are independent draws from unknown distributions, their algorithm uses only one sample per distribution. In the secretary setting, where $X_i$ form a random permutation of arbitrary values, the algorithm succeeds with an estimate of the maximum value. The competitive ratios are optimal up to constant factors, and the techniques include an online sampling scheme with unknown sequence length.
arXivarXiv · · October 3, 2022
0
9
What Can Transformers Learn In-Context? A Case Study of Simple Function Classes
Shivam GargDimitris TsiprasPercy LiangGregory Valiant
This paper studies in-context learning (ICL) in Transformers trained from scratch on simple function classes. It shows that a standard Transformer can learn to perform ICL of linear functions, achieving performance comparable to the optimal least squares estimator. ICL also succeeds under two forms of distribution shift: between training data and inference prompts, and between in-context examples and query input. The approach extends to sparse linear functions, two-layer neural networks, and decision trees, matching or exceeding task-specific algorithms.
arXivarXiv · · August 1, 2022
0
1k+
From Sand to Flour: The Next Leap in Granular Computing with NanoSort
Theo JepsenStephen IbanezGregory ValiantNick McKeown
NanoSort leverages the extreme low-latency communication of the nanoPU hardware design to demonstrate the feasibility of nanosecond-scale distributed task granularity. In FireSim simulations of 65,536 nanoPU cores, NanoSort sorts one million 64-bit keys in 68$\mu$s, achieving a tenfold speedup over the prior state-of-the-art MilliSort.
arXivarXiv · · April 26, 2022
0
8
Frequent collaborators
Vatsal Sharan (17)
Percy Liang (11)
Paul Valiant (11)
Shivam Garg (10)
Weihao Kong (7)
Steven Cao (5)
Annie Marsden (5)
Aaron Sidford (5)
Mingda Qiao (5)
Omar Salemohamed (4)
Laurent Charlin (4)
Brian Axelrod (4)