MCP
DJ

Daniel D. Johnson

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

Papers

22
PosteriorBench: Evaluating Behavior Posterior Sampling in Language Models
Zhiyang XunDaniel D. JohnsonSarah SchwettmannNeil Chowdhury
Rare language model behaviors are hard to study because ordinary sampling may need enormous numbers of samples, motivating behavior posterior sampling: given a model and a behavior of interest, can an algorithm efficiently sample from the model's distribution over transcripts exhibiting that behavior? The authors introduce PosteriorBench, a benchmark that compares algorithms by compute cost and by proximity of their samples to the true posterior in forward and reverse KL divergence, comprising 21 tasks on Qwen3.5-0.8B with behavior probabilities from $10^{-5}$ to $10^{-1}$, each with exact posterior samples drawn from a corpus of one billion labeled responses. No evaluated method is both efficient and faithful: prompting is cheap but plateaus at high KL divergence, fine-tuning on posterior samples is often cost-prohibitive, and several prior training methods do not perform better, leaving a cheap faithful posterior sampler an open problem.
arXivarXiv · · November 19, 2026
0
Predictive Concept Decoders: Training Scalable End-to-End Interpretability Assistants
Vincent HuangDami ChoiDaniel D. JohnsonSarah SchwettmannJacob Steinhardt
This paper introduces Predictive Concept Decoders (PCDs), a scalable end-to-end interpretability assistant trained to predict model behavior from activations through a communication bottleneck. An encoder compresses activations into a sparse concept list, which a decoder reads to answer natural language questions. The authors show pretraining on large unstructured data followed by finetuning yields favorable scaling: bottleneck concepts' auto-interp score and downstream performance improve with data. PCDs detect jailbreaks, secret hints, implanted latent concepts, and surface latent user attributes accurately.
OpenReviewOpenReview · · May 7, 2026
0
Predictive Concept Decoders: Training Scalable End-to-End Interpretability Assistants
Vincent HuangDami ChoiDaniel D. JohnsonSarah SchwettmannJacob Steinhardt
Existing scalable interpretability methods rely on hand-designed agents that hypothesize and test how internal activations relate to external behavior. This paper instead frames interpretability as an end-to-end training objective: an encoder compresses activations into a sparse list of concepts through a communication bottleneck, and a decoder reads that list to answer a natural language question about the model. The assistant is pretrained on large unstructured data and then finetuned to answer questions. This Predictive Concept Decoder shows favorable scaling, with auto-interp scores of the bottleneck concepts and downstream performance improving with data, enabling detection of jailbreaks, secret hints, and implanted latent concepts, and accurate surfacing of latent user attributes.
OpenReviewOpenReview · · May 3, 2026
0
Predictive Concept Decoders: Training Scalable End-to-End Interpretability Assistants
Vincent HuangDami ChoiDaniel D. JohnsonSarah SchwettmannJacob Steinhardt
Predictive Concept Decoders (PCDs) are end-to-end trainable assistants that interpret neural network activations by compressing them into a sparse list of concepts via an encoder, which a decoder uses to answer natural language questions about model behavior. This approach turns interpretability into a training objective, scaling favorably with data. PCDs demonstrate effectiveness in detecting jailbreaks, secret hints, and implanted latent concepts.
arXivarXiv · · December 17, 2025
0
13
Eliciting Language Model Behaviors with Investigator Agents
Xiang Lisa LiNeil ChowdhuryDaniel D. JohnsonTatsunori HashimotoPercy LiangSarah SchwettmannJacob Steinhardt
This paper proposes training investigator models to elicit specific target behaviors (e.g., hallucinations or harmful responses) from a target language model. The investigators map randomly-chosen behaviors to a diverse distribution of prompts via supervised fine-tuning, DPO, and a novel Frank-Wolfe objective. This approach achieves a 100% attack success rate on a subset of AdvBench and an 85% hallucination rate, surfacing interpretable prompts for jailbreaks and other aberrant outputs.
arXivarXiv · · February 3, 2025
0
29
Eliciting Language Model Behaviors with Investigator Agents
Xiang Lisa LiNeil ChowdhuryDaniel D. JohnsonTatsunori HashimotoPercy LiangSarah SchwettmannJacob Steinhardt
This paper frames behavioral elicitation as searching for prompts that induce specific target behaviors in a language model. The authors train amortized investigator models to approximate the posterior over prompts given the desired behavior, fitting a reverse model and using reinforcement learning to maximize generation of the target behavior. A Frank-Wolfe-based iterative objective encourages diverse prompts across iterations. The resulting prompts yield interpretable strategies, achieving 100% attack success on AdvBench and an 85% hallucination rate.
OpenReviewOpenReview · · January 23, 2025
0
Penzai + Treescope: A Toolkit for Interpreting, Visualizing, and Editing Models As Data
Daniel D. Johnson
Penzai represents neural networks as declarative data structures with named axes, and Treescope interactively visualizes both model inputs/outputs and the model itself. Together, they form a toolkit that treats the model as data, enabling users to inspect, edit, and intervene on model components through a tree-editing selector system, without requiring model designers to add explicit hooks.
arXivarXiv · · August 1, 2024
0
9
Penzai + Treescope: A Toolkit for Interpreting, Visualizing, and Editing Models As Data
Daniel D. Johnson
Penzai and Treescope form a toolkit that treats trained neural networks as editable data structures. Penzai represents models as compositions of modular operations with named axes, exposing the forward pass in the model object itself, while Treescope provides interactive visualization of inputs, outputs, and models. Users can insert logic or extract intermediates via a tree-editing selector system, receiving immediate feedback. This design enables analyses and interventions as data-structure transformations, avoiding explicit hooks.
OpenReviewOpenReview · · May 27, 2024
0
Experts Don't Cheat: Learning What You Don't Know By Predicting Pairs
Daniel D. JohnsonDaniel TarlowDavid DuvenaudChris J. Maddison
This paper introduces a training strategy to quantify epistemic uncertainty in generative models by teaching them to predict pairs of independent responses from the true conditional distribution $p_{Y|X}$. The model may 'cheat' by observing one response while predicting the other; its degree of cheating measures the gap between $r-hat{p}_{Y|X}^{theta}$ and the true process. The authors prove that optimal cheating is equivalent to second-order calibration, enabling provably correct frequentist confidence intervals and high-probability detection of incorrect responses. Empirical results on image classification, synthetic language modeling, and navigation tasks show the approach outperforms existing techniques.
OpenReviewOpenReview · February 2, 2024
0
Experts Don't Cheat: Learning What You Don't Know By Predicting Pairs
Daniel D. JohnsonDaniel TarlowDavid DuvenaudChris J. Maddison
We propose a strategy to separate epistemic from aleatoric uncertainty in generative models: train a model to predict pairs of independent responses from the true distribution, letting it "cheat" by observing one response while predicting the other, and measure how much it cheats. This incentivizes second-order calibration, enabling accurate estimation of gaps between the model distribution $\hat{p}_{Y|X}^{\theta}$ and the true $p_{Y|X}$, plus decoding algorithms with bounded error probability. We demonstrate improved filtering performance on a synthetic language-modeling task with digits of $\pi$.
OpenReviewOpenReview · February 2, 2024
0
A density estimation perspective on learning from pairwise human preferences
Vincent DumoulinDaniel D. JohnsonPablo Samuel CastroHugo LarochelleYann Dauphin
This paper reframes learning from pairwise human preferences as a density estimation problem rather than a reinforcement learning one. The authors show that for a family of generative processes defined by preference behavior distribution equations, training a reward function on pairwise preferences effectively models an annotator's implicit preference distribution. They also identify "annotator misspecification"—failure cases from wrong assumptions about annotator behavior—which can cause models to struggle when learning from a population with diverse viewpoints.
arXivarXiv · · November 23, 2023
0
26
A density estimation perspective on learning from pairwise human preferences
Vincent DumoulinDaniel D. JohnsonPablo Samuel CastroHugo LarochelleYann Dauphin
This paper reinterprets learning from pairwise human preferences, typically framed as reinforcement learning, as a density estimation problem centered on the generative process for preferences. The authors show theoretically and empirically that for a family of generative processes defined via preference behavior distribution equations, training a reward function on pairwise data effectively models an annotator's implicit preference distribution. They also discuss "annotator misspecification," where incorrect assumptions about annotator behavior lead to poorly adapted models, suggesting such approaches may struggle with diverse annotator populations.
OpenReviewOpenReview · · November 23, 2023
0
R-U-SURE? Uncertainty-Aware Code Suggestions By Maximizing Utility Across Random User Intents
Daniel D. JohnsonDaniel TarlowChristian Walder
R-U-SURE produces uncertainty-aware code suggestions by treating the user's unobserved intent as a random variable. It samples from a generative model, then uses minimum-Bayes-risk decoding combined with dual decomposition and decision diagrams to identify regions of the suggestion where utility is uncertain. This yields structured uncertainty summaries that can be attached to any code generation model without retraining, and it outperforms token-probability baselines in accuracy across three developer-assistance tasks.
arXivarXiv · · March 1, 2023
0
22
R-U-SURE? Uncertainty-Aware Code Suggestions By Maximizing Utility Across Random User Intents
Daniel D. JohnsonDaniel TarlowChristian Walder
R-U-SURE is a method for building uncertainty-aware code suggestions. It uses a decision-theoretic model of goal-conditioned utility, treating random samples from a generative code model as a proxy for unobserved user intents. Combining minimum-Bayes-risk decoding, dual decomposition, and decision diagrams, it produces structured uncertainty summaries given only sample access to the generative model and an optional AST parser. Demonstrated on three developer-assistance tasks, it works across interaction patterns without retraining and yields more accurate uncertainty estimates than token-probability baselines.
OpenReviewOpenReview · · January 26, 2023
0
Contrastive Learning Can Find An Optimal Basis For Approximately View-Invariant Functions
Daniel D. JohnsonAyoub El HanchiChris J. Maddison
Contrastive learning methods can be reinterpreted as learning a kernel that approximates a fixed positive-pair kernel. Combining this kernel with PCA yields a representation that provably minimizes the worst-case approximation error of linear predictors, assuming positive pairs have similar labels. The analysis relies on a decomposition of the target function via eigenfunctions of a positive-pair Markov chain and an equivalence between these eigenfunctions and Kernel PCA output. Generalization bounds for downstream linear prediction are provided.
arXivarXiv · · October 4, 2022
0
52
A Library for Representing Python Programs as Graphs for Machine Learning
David BieberKensen ShiPetros ManiatisCharles SuttonVincent HellendoornDaniel JohnsonDaniel Tarlow
This paper presents the open-source Python library `python_graphs`, which applies static analysis to construct graph representations of Python programs for machine learning. The library produces control-flow graphs, data-flow graphs, and composite program graphs that integrate syntactic, lexical, control-flow, and data-flow information. A case study on millions of competitive programming submissions demonstrates its utility for ML-based code research.
arXivarXiv · · August 15, 2022
0
7
Learning Generalized Gumbel-max Causal Mechanisms
Guy LorberbomDaniel D. JohnsonChris J. MaddisonDaniel TarlowTamir Hazan
This paper proposes a parameterized family of causal mechanisms that generalize the Gumbel-max reparameterization for Structural Causal Models (SCMs). Unlike prior work that selects a fixed mechanism based on a stability property, the authors train their mechanism to minimize a quantitative loss, such as the variance of counterfactual treatment effect estimates, over a distribution of queries of interest. The resulting mechanism yields lower-variance estimates than fixed alternatives and generalizes to unseen queries, enabling more efficient counterfactual reasoning.
arXivarXiv · · November 11, 2021
0
31
Parallel Algebraic Effect Handlers
Ningning XieDaniel D. JohnsonDougal MaclaurinAdam Paszke
The paper introduces λp, an untyped lambda calculus that extends algebraic effect handlers with parallelizable computations modeled by a for expression inspired by Dex. Its central contribution is the formalization of this calculus, which allows effect handlers to operate on concurrent computations rather than only sequential ones. Examples demonstrate expressiveness, and a Haskell implementation is provided, establishing a foundation for future parallel algebraic effect handler designs.
arXivarXiv · · October 14, 2021
0
6
Beyond In-Place Corruption: Insertion and Deletion In Denoising Probabilistic Models
Daniel D. JohnsonJacob AustinRianne van den BergDaniel Tarlow
This paper extends denoising diffusion probabilistic models (DDPMs) to sequence data by introducing corruption processes that can insert and delete elements, beyond standard in-place noise. The proposed models remain efficient to train and sample from. On an arithmetic sequence task, they outperform standard in-place DDPMs. Additionally, when trained on the text8 dataset, they can correct spelling errors without any fine-tuning.
arXivarXiv · · July 16, 2021
0
31
Structured Denoising Diffusion Models in Discrete State-Spaces
Jacob AustinDaniel D. JohnsonJonathan HoDaniel TarlowRianne van den Berg
This paper introduces Discrete Denoising Diffusion Probabilistic Models (D3PMs), extending diffusion models to discrete data by generalizing the corruption process beyond uniform transition probabilities. The authors propose three transition matrices: ones mimicking Gaussian kernels, nearest-neighbor embeddings, and absorbing states. The latter connects diffusion models to autoregressive and mask-based generative models. A new loss combining the variational lower bound with an auxiliary cross-entropy term is also introduced. On CIFAR-10, D3PMs approach the sample quality and exceed the log-likelihood of the continuous-space DDPM, while achieving strong results on character-level text generation.
arXivarXiv · · July 7, 2021
0
2k+
Getting to the Point. Index Sets and Parallelism-Preserving Autodiff for Pointful Array Programming
Adam PaszkeDaniel JohnsonDavid DuvenaudDimitrios VytiniotisAlexey RadulMatthew JohnsonJonathan Ragan-KelleyDougal Maclaurin
This paper proposes a programming language design that treats arrays as eagerly-memoized functions over typed index sets, enabling style where array manipulations mirror function application. A fine-grained typed effects system, including an associative accumulation effect, allows reverse-mode automatic differentiation of in-place updates while preserving parallelism. Benchmarks against Futhark show that this expressive, pointful style incurs little performance penalty.
arXivarXiv · · April 12, 2021
0
78
Learning Graph Structure With A Finite-State Automaton Layer
Daniel D. JohnsonHugo LarochelleDaniel Tarlow
We introduce a differentiable Graph Finite-State Automaton (GFSA) layer that learns to derive abstract relations, defined as paths on a base graph accepted by a finite-state automaton, from the graph's intrinsic structure. The layer is trained end-to-end by relaxing the automaton learning into policies on a graph-based POMDP and using implicit differentiation. It outputs a new edge type (weighted adjacency matrix) for the base graph. Experiments show the layer discovers shortcuts in grid worlds and reproduces static analyses on Python programs; when combined with a larger model for variable misuse, it outperforms hand-engineered edges.
arXivarXiv · · July 9, 2020
0
20
Frequent collaborators
Daniel Tarlow (9)
Sarah Schwettmann (6)
Jacob Steinhardt (5)
Chris J. Maddison (4)
Neil Chowdhury (3)
Vincent Huang (3)
Dami Choi (3)
David Duvenaud (3)
Hugo Larochelle (3)
Xiang Lisa Li (2)
Tatsunori Hashimoto (2)
Percy Liang (2)