Skip to content

Menu

WorksMathematics

TestBED: An Open-Source Toolkit for Bayesian Experimental Design

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_ppzq3gue. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

Bayesian experimental design (BED) is a principled framework for intelligent data acquisition with applications across a wide range of scientific and industrial domains. However, the development and adoption of BED remains hindered by a lack of standardised software and benchmarks. Existing methods are typically implemented in bespoke codebases and evaluated on a small subset of tasks, making methods difficult to apply, compare, or extend. To address this, we present TestBED, a general-purpose, open-source toolkit for Bayesian experimental design. TestBED decomposes the BED process into modular, reusable components spanning tasks, objectives, training mechanisms, policy architectures, and evaluation procedures, together with scalable implementations of core primitives such as expected information gain estimators. We provide a wide range of these components, which can be freely composed, allowing existing methods to be reproduced within a common framework, while also enabling previously unexplored configurations and new methodologies to be easily implemented and evaluated. Using TestBED, we further conduct a large-scale benchmark of contemporary BED methods, including controlled studies of under-appreciated but surprisingly critical methodological choices, such as the importance of time embeddings in design policy architectures. By providing a modular, extensible software foundation and a reproducible benchmarking suite, we hope that TestBED will accelerate methodological research in BED and lower the barrier to its real-world application.

Introduction

In recent years, Bayesian experimental design (BED, [58, 59, 27]) methodology has developed rapidly, incorporating techniques from areas like amortised optimisation ([33, 49, 77]), variational inference ([31, 43, 18, 70]), reinforcement learning ([40, 16, 17, 6]), foundation models ([21, 44]), and generative models ([47, 29, 80, 70]), amongst others. Beyond the research community, BED has seen uptake in a wide range of applications, including psychology ([90, 4, 51]), quantum physics ([85, 9]), drug discovery ([68, 19, 89]), and beyond.

However, many applications of BED have not leveraged these recent methodological advancements. A domain expert applying BED must often navigate multiple research codebases or re-implement methods from scratch, with little guidance as to which methods are best suited to a particular problem. This lack of standardisation also bottlenecks progress within BED itself. Researchers developing new methods frequently re-build much of the surrounding infrastructure, incurring significant engineering costs. This burden is amplified by the range of settings that experimental design must support, like discrete outcomes ([53, 23, 88, 84]) and history-dependent models ([57, 48]), which can require special care for each method. Furthermore, methods are often tested on different subsets or variants of benchmark problems, and details like experimental horizons, architectures, optimisation procedures, and others vary across papers. This makes results difficult to compare, and can obscure whether an apparent improvement is a result of methodological or implementation choices.

To address these challenges, we introduce TESTBED, an open-source Python toolkit for BED. Built on PyTorch [69, 1], TESTBED is organised around two key design principles. The first is modularity: we decompose the BED pipeline into a task specifying the design problem to be solved, and three components which together define a BED methodology: a designer specifying the strategy for producing designs, an objective specifying what is optimised, and algorithms which specify how the objective is optimised. See Figure 1. Compatible components can be freely composed to obtain an end-to-end BED methodology for a given task. Beyond making existing methods easier to implement and compare, this decomposition enables new combinations not previously studied in the literature, several of which we study in our experiments, see Figure 2.

TESTBED workflow and DAD-style training loop

Figure 1. Left: TESTBED workflow. A Task supplies the model and design space, a Designer produces a Rollout of designs and outcomes, and an Objective scores it. A fitting algorithm updates the designer’s parameters. Hooks augment the rollout loop. Right: a complete DAD-style training loop [33], with each line shaded by the component it uses (imports omitted).

Evaluation of methods across tasks and policy architectures

Figure 2. TESTBED evaluates every method on every task, and enables new methodological contributions. Columns show tasks (left) and design policy architectures (right). Grey: evaluated in prior work. Light green: an existing method, first evaluated in TESTBED. Green (★): new methods, namely REINFORCE estimators extending ActionBED and JointVarPost to discrete outcomes.

The second principle is extensibility: each of these components is defined by a small abstract interface, so that new tasks, objectives, designers, architectures and methods can be developed without reimplementing the necessary surrounding infrastructure. A new expected information gain (EIG) estimator [2, 7], for instance, can be immediately evaluated across the available task suite, while a new application can make use of all compatible methods already implemented in TESTBED. Thus, TESTBED is not merely a collection of methods but rather a foundation on which new BED methodology and applications can be easily developed and tested.

Building on these principles, TESTBED provides reference implementations of contemporary BED methods [32, 33, 16, 43, 77, 70] in a common framework, together with reproducible evaluation protocols and recommended default configurations. We use TESTBED to conduct what is, to our knowledge, the largest controlled empirical comparison of BED methods to date, exploiting its modularity to isolate the effect of individual architectural and computational choices, which existing evaluations cannot do.

While no single method dominates across tasks, our study yields several insights. First, time embeddings in the design policy have a large effect: earlier approaches that lack them [33] improve substantially once they are added. Second, a well-tuned static designer is surprisingly strong on several popular tasks [48, 70], suggesting these tasks have limited power to discriminate between strategies. Third, variational joint posteriors [32, 70], a method rarely included as a baseline, is highly competitive when paired with modern architectures and comparable compute. These results show implementation choices can matter as much as methodological ones, and underscore the need for controlled, reproducible comparisons. Overall, TESTBED provides the infrastructure needed to make Bayesian experimental design easier to use and improve. By providing a highly modular, extensible, and usable toolkit, TESTBED lowers the cost of applying BED in new domains and can accelerate the development of new methodology.

Background

In BED, an experimenter seeks to learn about an unknown quantity θ∈Θ\theta\in\Theta through observations y∈Yy \in\mathcal{Y} which are influenced by a controllable design x∈Xx \in\mathcal{X} [58, 59, 27] Bernardo, [11]; Chaloner & Verdinelli [20]; Ryan et al. [78]; Rainforth et al. [76]; Huan et al. [41]. The experimenter specifies a prior p(θ)p(\theta) and an observation model p(y∣θ,x,ht)p(y \mid\theta, x, h_t), where ht={(xs,ys):s≤t}h_t = \{(x_s, y_s) : s \le t\} denotes a history of previous designs and observations.

In sequential (or adaptive) BED, TT experiments are performed adaptively, using the data hth_t from previous rounds to choose the next design xt+1x_{t+1}. This can be encoded as a policy π:ht↦xt+1\pi: h_t \mapsto x_{t+1}. Historically, BED methods followed an implicit policy, where we calculate a posterior p(θ∣ht)p(\theta\mid h_t) then optimise the next design xt+1x_{t+1} when it is needed (Lindley, [59]; [78, 31]). However, it has recently become the norm to learn an explicit policy before the experiment ([40, 33]), typically using a deep neural network. This allows experiments to be run nearly instantaneously, while the learned policies often also outperform traditional approaches by learning to plan ahead and avoiding direct posterior approximation ([33]). Many techniques for fitting policies have been proposed, such as end-to-end training ([33, 49]), reinforcement learning ([40, 16, 17, 6]), or by joint training with a downstream action policy ([77]). These explicit policy-based approaches are the primary focus of our experiments, due to their dominance in the literature, but TESTBED supports a broad range of alternative design procedures as well.

Training a design policy requires an objective that assigns a value to the data it collects. The most common choice is the expected information gain (EIG) in θ\theta over the entire trajectory (Lindley, [58]),

I(π):=Ep(θ,hT∣π)[log⁡p(hT∣θ,π)−log⁡p(hT∣π)],(1)\mathcal{I}(\pi) := \mathbb{E}_{p(\theta,h_T\mid\pi)}[\log p(h_T \mid\theta,\pi) - \log p(h_T \mid\pi)], \tag*{(1)}

which is equivalently the mutual information between θ\theta and the data hTh_T collected by the policy π\pi. More generally, BED objectives may be defined as an expected utility (Huan et al., [41])

U(π):=Ep(θ,hT∣π)[U(θ,hT)],(2)\mathcal{U}(\pi) := \mathbb{E}_{p(\theta,h_T\mid\pi)}[U(\theta,h_T)], \tag*{(2)}

where the utility UU scores how useful the data hTh_T are when the true parameter is θ\theta. The EIG is the special case U(θ,hT)=log⁡p(hT∣θ,π)−log⁡p(hT∣π)U(\theta,h_T) = \log p(h_T \mid\theta,\pi) - \log p(h_T \mid\pi). Other choices of UU recover many other notions of an experiment’s value from the BED literature. Examples include the expected reward of a downstream action taken Bayes-optimally ([74, 27, 59]), and the negative generalised posterior entropy induced by a proper scoring rule ([27, 81, 26, 13, 77]).

Many BED objectives are, however, difficult to compute. For example, the EIG depends on the typically intractable marginal likelihood p(hT∣π)p(h_T \mid\pi). This has motivated a large literature on EIG estimators ([79, 5, 39, 65, 8, 31, 71]), which vary widely in what they require: some draw additional samples from the prior ([75, 33]), while others train auxiliary networks ([5, 31] (Kleinnesse & Gutmann 2021)). While accommodating this variety of objectives can be challenging, TESTBED provides modular abstractions which enable any utility-based objective to be implemented without changing the rest of the pipeline.

TESTBED: AN OPEN-SOURCE TOOLKIT FOR BED

The core interface of TESTBED consists of a task specifying the underlying Bayesian model, and three components defining a BED method: a designer specifying the strategy for producing designs (e.g., static or policy-based), an objective specifying what is optimised (e.g., sPCE), and algorithms which specify how the objective is optimised. Figure 1 illustrates each of these components and their interactions. The designer, objective, and algorithm can be freely composed and applied to any compatible task, allowing a single interface to be used across different problems.

This composability also extends hierarchically within each component. Each is itself built from modular subcomponents, for which TESTBED provides reusable implementations. For example, TESTBED provides several off-the-shelf and highly performant neural architectures which can be used to instantiate policy designers. These subcomponents are also highly extensible, allowing a user to develop new tools and methods without reimplementing the surrounding infrastructure. We describe the main interface below, and refer to the TESTBED documentation for lower-level details.

Core TestBED Interfaces

Tasks. A Task specifies the experimental design problem to be solved. This consists of a Bayesian model, including a prior p(θ)p(\theta), observation model p(y∣θ,x,ht)p(y \mid\theta, x, h_t). Tasks also specify a design prior p(x)p(x), which can be used to produce random designs and whose support specifies the space of admissible designs. Tasks are highly flexible: parameters, designs, and observations may be continuous or discrete, models may be explicit or implicit, and may depend on the history.

Implementing a new task minimally requires specifying a mechanism for sampling observations y∼p(y∣θ,x,ht)y \sim p(y \mid\theta, x, h_t). For explicit models, users may also provide the corresponding log-probability. Users may use PyTorch distributions or custom implementations, and TESTBED provides re-usable implementations of common priors over designs and parameters. Computational machinery, such as broadcasting, is handled by TESTBED, so that introducing a new task is straightforward. See Figure 3.

A simplified implementation of the location finding task in TESTBED

Figure 3. A simplified implementation of the location finding task in TESTBED. Implementing a new task requires passing metadata (event shapes, prior, etc.) to the base Task, and implementing methods for sampling outcomes and evaluating log-probabilities. Everything else, including broadcasting and safety checks, is handled by the base Task, making new problems straightforward to implement.

Designers and Rollouts. A designer specifies how designs are produced over a sequence of TT experiments. The base Designer class implements a common rollout procedure, where at each step tt, it pro-

class LocationFinding(Task):
    def __init__(self, n_sources, dim_theta, ..., prior=None, design_prior=None):
        super().__init__(
            event_shape_y = [1],
            event_shape_theta = [n_sources, dim_theta],
            event_shape_design = [dim_theta],
            prior = prior or LocationFindingPrior(n_sources, dim_theta),
            design_prior = design_prior # defaults to unconstrained, standard Gaussian
        )

        # task-specific initialisation (hyperparameters, ...)
        ...

        # inputs are a flat batch: inputs of shape [b, *event_shape]
        # histories are ignored as location finding is memoryless
        def _outcome_logp(self, y, theta, design, y_history, design_history):
            ...

        def _sample_outcome(self, theta, design, y_history, design_history):
            ...

        # Example usage: TestBED handles arbitrary batch shapes
        task = LocationFinding(n_sources=2, dim_theta=2)
        theta = torch.randn(2, 2)                    # a single theta
        design = torch.randn(10, 2)                  # a batch of 10 designs
        y = task.sample_outcome(theta, design, n_samples=100) # [100, 10, 1]

duces a design xtx_t, obtains an observation yty_t from the task, and updates a RolloutState containing the current history hth_t of designs and observations via state.y_history and state.design_history, as well as any designer-specific information, e.g., stochastic policy probabilities. Concrete designers thus only need to implement the step_design(state) function, specifying how the next design is selected from the rollout state. After the final step, a designer returns a Rollout which discards any information that is no longer needed, but keeps aspects needed downstream, like the history.

TESTBED currently provides a RandomDesigner, a StaticDesigner that provides all TT designs jointly, a SequentialDesigner that optimises a design at each step, and a PolicyDesigner in which designs are produced using a neural network that maps the relevant parts of the rollout state to the next design. The latter supports any contemporary policy-based method, including DAD [33], RL-BOED [16], ALINE [43], and ActionBED [77], amongst others. We additionally provide several off-the-shelf choices for policy architectures, including Attention [86] and DeepSets [94] based models, while allowing users to implement their own if so desired.

For methods that modify the standard rollout, TESTBED additionally exposes hooks at key stages of the design process. Figure 4 illustrates this. Hooks allow designers to incorporate additional behaviours and modifications by modifying the RolloutState without needing to re-implement the complete design loop. For example, ActionBED [77] is implemented by attaching a hook that produces an action at the end of the rollout. Methods requiring substantial changes to the design loop can implement a new designer subclass, as we do for ALINE [43].

Expanded view of the Rollout block

Figure 4. Expanded view of the Rollout block of Figure 1. Each timestep alternates designer and task calls, with hooks interleaved. All calls receive the current rollout state. After the final step and hook, the completed rollout is returned, including any extra fields produced by the hooks, e.g., actions.

Design Objectives. Optimising designs requires an objective function. As described in § 2, BED objectives can in general be described as an expected utility U(π)=Ep(θ,hT∣π)[U(θ,hT)]U(\pi) = \mathbb{E}_{p(\theta,h_T\mid\pi)}[U(\theta,h_T)]. As these are expectations over the observed history, in TESTBED, our objectives generally accept as input a Rollout which at minimum contains the history hTh_T alongside the true θ\theta that can be used to estimate U(π)U(\pi). For example, we provide highly efficient implementations of the standard sPCE and sNMC utilities [32], which in expectation give bounds on the EIG. See Section G.

Utility functions are often complex, and may depend on additional information beyond the history. In this case, any auxiliary quantities needed to estimate the utility can be recorded in the Rollout, or otherwise calculated within the design objective itself. Generally, computations that a user may want to control or modify (e.g., an action for loss-based utilities [74, 27, 59, 77] or a posterior approximation [31] (Phillips et al. 2022)) are calculated during the design loop and appended to the Rollout, which the objective then directly uses. On the other hand, quantities a user is unlikely to want to configure (e.g., contrastive samples when using the sPCE objective) are typically calculated within the objective itself. For methods which depend on utilities calculated before the terminal step TT, an intermediate rollout may be produced using hth_t and passed in to the Objective to calculate the intermediary utility.

For non-reparameterisable models, TESTBED also provides a general-purpose REINFORCE-style gradient estimator [91] that wraps these utilities. See Section B. We emphasize that the modularity of TESTBED allow a wide range of utilities, including alternative EIG estimators [2, 7] or new objectives [37, 50] to be easily incorporated within a unified framework.

Algorithms. TestBED additionally provides several algorithms for optimising the parameters of a designer, including end-to-end optimisation [33] and RL-based training [16]. We separate these from the designer, as optimisation introduces a further set of choices. Even for a static design, the design quality can depend on hyperparameter choices like initialisation, learning rates, treatment of constraints, and stopping criteria. Keeping these choices explicit avoids committing to a specific optimisation procedure, and allows users to develop alternative fitting procedures for the same underlying designer as needed. Our implementations also expose common reusable infrastructure, for checkpointing, logging and hyperparameter tuning, allowing new methods to reuse the surrounding machinery while only modifying the aspects of interest.

Recipes and Reproducibility. Finally, TestBED provides a set of recipes, i.e., standardised configurations which combine the aforementioned components and specify choices such as policy architecture, optimiser settings, and other method-specific hyperparameters. TestBED includes reference implementations of methods from recent and representative policy-based methods, such as DAD [33], RL-BOED [16], ALINE [43], ActionBED [77], and variational posteriors [31, 32, 70]. The recipes used to produce the results in § 5 are available within TestBED and provide reproducible, default configurations for each method. Configurations can be modified or swept independently, and are compatible with external experiment management tools like Hydra [92] and Weights & Biases [14].

In short, the abstractions in TestBED provide interfaces for the probabilistic model, design strategy, optimisation objective, and training procedure that specify a full BED pipeline, while providing the necessary infrastructure supporting them. This separation allows for existing approaches to be reproduced and compared within a common framework, while new tasks and methodologies can be introduced by modifying only the components in which they differ.

Related Work

The closest work to a general-purpose BED library is the probabilistic programming language (PPL) Pyro [15], whose experimental design module [73] implements several EIG estimators, including those of [31]. However, this module is limited to estimating the EIG of fixed designs, and has seen little development since 2020. Some of the early amortised methods were built on Pyro [33, 49], but as standalone research code rather than as part of the library. More broadly, Pyro is a general-purpose PPL rather than a BED library, and provides no abstractions for design tasks or policies.

Although many BED papers release code, general-purpose BED software remains scarce. Beyond Pyro, BED software is restricted to specific algorithms or model classes [67, 64], classical non-amortised design [61], or inverse problems under Gaussian or linearised approximations [22]. None of these supports amortised, policy-based BED, despite its now-central role in sequential design [76].

Benchmarks and Experiments

We now use TestBED to conduct several controlled studies of contemporary BED methodology. Our aim is not primarily to introduce new methods, but rather to use TestBED to compare existing approaches under consistent conditions and to isolate methodological and implementation choices that are otherwise difficult to study across disparate codebases. We first conduct a large-scale benchmark of existing BED methods across eight diverse tasks. We then use the modularity of TestBED to study two factors that emerge as key, namely, the architecture of the design policy and the computational trade-offs involved in EIG-based training. Section F contains additional empirical results.

Benchmarking BED Algorithms

For our large-scale benchmark, we compare Joint Variational Posteriors (JointVarPost, [32, 70]), Deep Adaptive Design (DAD, [33]), RL-BOED [16], ALINE [43], and ActionBED [77]. We train ActionBED using two downstream losses (MSE and CMSE; see Section C), while the others all target EIG. Here, note that JointVarPost can in fact be seen as a special case of ActionBED, where actions are distributions on θ\theta and the loss is targetting the EIG. We additionally study random and static (sPCE) Foster et al., [32] baselines. Further details of each algorithm and their implementations are given in Section D.

All methods use the same tasks, with two exceptions. First, ALINE requires a finite pool of candidate designs, and handles continuous spaces by sampling candidate designs uniformly. Second, we found RL-BOED training becomes unstable when the design space is unbounded. Therefore, in line with the reference implementations Blau et al., [16]; Huang et al. [43], we modify the design space for both methods as needed, choosing bounds wide enough that they do not meaningfully restrict the method. For other hyperparameters, such as learning rate, weight decay and gradient clipping, we follow the original authors’ recommendations where available.

Following recent work Huang et al., [43, 44]; Rossa et al. [77]; Phillips et al. [70], we use a common Attention-based policy architecture Vaswani et al., [86] wherever possible. ALINE Huang et al., [43] is also Attention-based but requires a specialised architecture, so we closely match its parameter count instead. Some methods train additional networks alongside the design policy, so we cannot match total parameter counts exactly. However, giving every design policy the same capacity still provides a fair basis for comparison. We also normalise computational cost by training every method for 12 hours on identical hardware (an NVIDIA GH200 Superchip). This is a generous budget by the standards of the BED literature, so that no method is disadvantaged by under-training.

Results are shown in Figure 5, with full numerical results in Table 13 and Table 14 in the Appendix. We plot the sNMC upper bound Foster et al., [31, 33] of the EIG (Section G) with L=109L = 10^{9} contrastive samples and N=2,048N = 2{,}048 outer samples, and Table 13 contains matching sPCE lower bounds. This evaluation budget is far larger than is typical, giving EIG bounds substantially tighter than those previously reported and hence high-confidence estimates of the true information gained by each method. We additionally measure downstream utility for each design policy by fitting a small MLP to predict θ\theta from the complete rollout hTh_T using a mean-squared-error (MSE) loss. Although ActionBED fits such an MLP during training, we re-fit it at evaluation time for the sake of a fair comparison. See Section C for further details.

Figure 5. Benchmark (mean ±\pm standard error across five seeds) of BED methods under a shared policy architecture and wall-clock training budget. We report EIG upper bounds (L=109L = 10^{9}, N=2,048N = 2{,}048), together with downstream MSE (negated so higher is better). The horizontal black line indicates performance of a random policy.

Location FindingPharmacokinetic
MethodLowerUpperMethodLowerUpper
Random8.300±0.0198.300 \pm0.0198.300±0.0198.300 \pm0.019Random3.370±0.0183.370 \pm0.0183.370±0.0183.370 \pm0.018
Static8.867±0.0148.867 \pm0.0148.867±0.0138.867 \pm0.013Static4.053±0.0184.053 \pm0.0184.053±0.0184.053 \pm0.018
DAD14.334±0.22314.334 \pm0.22314.359±0.22814.359 \pm0.228DAD4.079±0.0084.079 \pm0.0084.079±0.0084.079 \pm0.008
JointVarPost (m=10m = 10)17.848±0.19817.848 \pm0.19818.775±0.29818.775 \pm0.298JointVarPost (m=10m = 10)4.041±0.0144.041 \pm0.0144.041±0.0144.041 \pm0.014
JointVarPost (m=1m = 1)17.895±0.16517.895 \pm0.16518.879±0.27018.879 \pm0.270JointVarPost (m=1m = 1)3.721±0.0283.721 \pm0.0283.721±0.0283.721 \pm0.028
ALINE14.693±0.03314.693 \pm0.03314.723±0.03414.723 \pm0.034ALINE3.808±0.0053.808 \pm0.0053.808±0.0053.808 \pm0.005
RL-BOED12.188±0.02212.188 \pm0.02212.190±0.02212.190 \pm0.022RL-BOED4.005±0.0254.005 \pm0.0254.005±0.0254.005 \pm0.025
ActionBED (MSE)12.000±0.09012.000 \pm0.09012.000±0.09012.000 \pm0.090ActionBED (MSE)2.754±0.1672.754 \pm0.1672.754±0.1672.754 \pm0.167
ActionBED (CMSE)18.563±0.06818.563 \pm0.06820.034±0.11420.034 \pm0.114ActionBED (CMSE)3.710±0.0583.710 \pm0.0583.710±0.0583.710 \pm0.058
ActionBED (MSE-L)––ActionBED (MSE-L)3.778±0.0443.778 \pm0.0443.778±0.0443.778 \pm0.044
Michaelis MentenCES
MethodLowerUpperMethodLowerUpper
Random4.975±0.0104.975 \pm0.0104.975±0.0104.975 \pm0.010Random9.697±0.1029.697 \pm0.1029.786±0.1019.786 \pm0.101
Static5.978±0.0155.978 \pm0.0155.978±0.0155.978 \pm0.015Static11.254±0.13711.254 \pm0.13711.350±0.14811.350 \pm0.148
DAD6.010±0.0096.010 \pm0.0096.010±0.0096.010 \pm0.009DAD12.636±0.82112.636 \pm0.82112.705±0.85312.705 \pm0.853
JointVarPost (m=10m = 10)5.914±0.0735.914 \pm0.0735.914±0.0735.914 \pm0.073JointVarPost (m=10m = 10)14.317±0.28914.317 \pm0.28914.380±0.29514.380 \pm0.295
JointVarPost (m=1m = 1)5.859±0.0595.859 \pm0.0595.859±0.0595.859 \pm0.059JointVarPost (m=1m = 1)15.148±0.27715.148 \pm0.27715.276±0.29215.276 \pm0.292
ALINE5.984±0.0175.984 \pm0.0175.984±0.0175.984 \pm0.017ALINE14.656±0.04014.656 \pm0.04014.754±0.04214.754 \pm0.042
RL-BOED5.946±0.0075.946 \pm0.0075.946±0.0075.946 \pm0.007RL-BOED14.940±0.12114.940 \pm0.12115.193±0.18315.193 \pm0.183
ActionBED (MSE)5.627±0.1165.627 \pm0.1165.627±0.1165.627 \pm0.116ActionBED (MSE)5.504±1.2995.504 \pm1.2995.504±1.2995.504 \pm1.299
ActionBED (CMSE)5.492±0.1375.492 \pm0.1375.492±0.1375.492 \pm0.137ActionBED (CMSE)3.829±0.5503.829 \pm0.5503.829±0.5503.829 \pm0.550
ActionBED (MSE-L)5.697±0.0635.697 \pm0.0635.697±0.0635.697 \pm0.063ActionBED (MSE-L)15.767±0.25615.767 \pm0.25616.239±0.31716.239 \pm0.317
ActionBED (CMSE-L)13.643±0.56613.643 \pm0.56613.677±0.58413.677 \pm0.584
Temporal DiscountingStochastic Pendulum
MethodLowerUpperMethodLowerUpper
Random2.061±0.0182.061 \pm0.0182.061±0.0182.061 \pm0.018Random2.340±0.0162.340 \pm0.0162.340±0.0162.340 \pm0.016
Static2.572±0.0112.572 \pm0.0112.572±0.0112.572 \pm0.011Static3.982±0.0183.982 \pm0.0183.982±0.0183.982 \pm0.018
DAD4.811±0.0314.811 \pm0.0314.811±0.0314.811 \pm0.031DAD3.952±0.0273.952 \pm0.0273.952±0.0273.952 \pm0.027
JointVarPost (m=10m = 10)4.612±0.0454.612 \pm0.0454.612±0.0454.612 \pm0.045JointVarPost (m=10m = 10)3.890±0.0363.890 \pm0.0363.890±0.0363.890 \pm0.036
JointVarPost (m=1m = 1)4.638±0.0334.638 \pm0.0334.638±0.0334.638 \pm0.033JointVarPost (m=1m = 1)3.930±0.0113.930 \pm0.0113.930±0.0113.930 \pm0.011
ALINE4.499±0.0574.499 \pm0.0574.499±0.0574.499 \pm0.057ALINE2.633±0.0232.633 \pm0.0232.633±0.0232.633 \pm0.023
RL-BOED4.233±0.0224.233 \pm0.0224.233±0.0224.233 \pm0.022RL-BOED3.891±0.0153.891 \pm0.0153.891±0.0153.891 \pm0.015
ActionBED (MSE)0.854±0.0150.854 \pm0.0150.854±0.0150.854 \pm0.015ActionBED (MSE)3.939±0.0343.939 \pm0.0343.939±0.0343.939 \pm0.034
ActionBED (CMSE)4.238±0.0254.238 \pm0.0254.238±0.0254.238 \pm0.025ActionBED (CMSE)3.957±0.0153.957 \pm0.0153.957±0.0153.957 \pm0.015
ActionBED (MSE-L)3.371±0.1033.371 \pm0.1033.371±0.1033.371 \pm0.103ActionBED (MSE-L)3.895±0.0363.895 \pm0.0363.895±0.0363.895 \pm0.036
ActionBED (CMSE-L)4.712±0.0444.712 \pm0.0444.712±0.0444.712 \pm0.044
Double PendulumCart Pole
MethodLowerUpperMethodLowerUpper
Random8.468±0.0198.468 \pm0.0198.471±0.0218.471 \pm0.021Random4.728±0.0204.728 \pm0.0204.728±0.0204.728 \pm0.020
Static12.310±0.03912.310 \pm0.03912.317±0.04112.317 \pm0.041Static7.148±0.0187.148 \pm0.0187.148±0.0187.148 \pm0.018
DAD12.045±0.17012.045 \pm0.17012.050±0.16912.050 \pm0.169DAD7.186±0.0177.186 \pm0.0177.186±0.0177.186 \pm0.017
JointVarPost (m=10m = 10)11.568±0.05611.568 \pm0.05611.572±0.05611.572 \pm0.056JointVarPost (m=10m = 10)7.047±0.0217.047 \pm0.0217.047±0.0217.047 \pm0.021
JointVarPost (m=1m = 1)11.202±0.10811.202 \pm0.10811.206±0.10811.206 \pm0.108JointVarPost (m=1m = 1)6.917±0.0416.917 \pm0.0416.917±0.0416.917 \pm0.041
ALINE8.070±0.1068.070 \pm0.1068.070±0.1068.070 \pm0.106ALINE4.736±0.0434.736 \pm0.0434.736±0.0434.736 \pm0.043
RL-BOED11.591±0.02311.591 \pm0.02311.594±0.02211.594 \pm0.022RL-BOED6.885±0.0926.885 \pm0.0926.885±0.0926.885 \pm0.092
ActionBED (MSE)11.330±0.18011.330 \pm0.18011.332±0.17911.332 \pm0.179ActionBED (MSE)6.721±0.0396.721 \pm0.0396.721±0.0396.721 \pm0.039
ActionBED (CMSE)11.254±0.07111.254 \pm0.07111.256±0.07111.256 \pm0.071ActionBED (CMSE)6.725±0.0316.725 \pm0.0316.725±0.0316.725 \pm0.031
ActionBED (MSE-L)11.269±0.06211.269 \pm0.06211.271±0.06211.271 \pm0.062ActionBED (MSE-L)6.749±0.0526.749 \pm0.0526.749±0.0526.749 \pm0.052

Table 13. Lower and upper bounds on the EIG (mean ±\pm standard error over 5 seeds), estimated using L=109L = 10^{9}, N=2 048N = 2\,048. All policy-based methods are trained for a fixed 12-hour wall-clock budget, and use an attention-based design policy architecture.

Table 14: Losses attained by fitting an MLP on top of the frozen designer (mean ±\pm standard error over five seeds), fit by minimising the MSE between the output of the MLP and θ\theta. CES and temporal discounting predict log⁡θ\log\theta instead of θ\theta.

Location FindingMethodMSECMSEPharmacokineticMethodMSECMSE
Location FindingRandom0.328±0.0020.328\pm0.002−2.522±0.012-2.522\pm0.012PharmacokineticRandom0.940±0.0050.940\pm0.005−3.961±0.013-3.961\pm0.013
Location FindingStatic0.090±0.0010.090\pm0.001−5.151±0.001-5.151\pm0.001PharmacokineticStatic0.624±0.0210.624\pm0.021−4.967±0.060-4.967\pm0.060
Location FindingDAD0.068±0.0150.068\pm0.015−6.460±0.167-6.460\pm0.167PharmacokineticDAD0.734±0.0460.734\pm0.046−4.882±0.070-4.882\pm0.070
Location FindingJointVarPost (m=10m = 10)0.030±0.0010.030\pm0.001−8.283±0.125-8.283\pm0.125PharmacokineticJointVarPost (m=10m = 10)0.523±0.0060.523\pm0.006−5.311±0.019-5.311\pm0.019
Location FindingJointVarPost (m=1m = 1)0.021±0.0030.021\pm0.003−8.592±0.099-8.592\pm0.099PharmacokineticJointVarPost (m=1m = 1)0.375±0.0060.375\pm0.006−5.415±0.021-5.415\pm0.021
Location FindingALINE0.05121±0.000470.05121\pm0.00047−4.4137±0.0153-4.4137\pm0.0153PharmacokineticALINE0.477±0.0070.477\pm0.007−5.0611±0.0340-5.0611\pm0.0340
Location FindingRL-BOED0.091±0.0020.091\pm0.002−4.299±0.020-4.299\pm0.020PharmacokineticRL-BOED0.716±0.0190.716\pm0.019−4.644±0.068-4.644\pm0.068
Location FindingActionBED (MSE)0.009±0.00040.009\pm0.0004−6.782±0.036-6.782\pm0.036PharmacokineticActionBED (MSE)0.490±0.0540.490\pm0.054−4.635±0.169-4.635\pm0.169
Location FindingActionBED (CMSE)0.019±0.0010.019\pm0.001−8.876±0.081-8.876\pm0.081PharmacokineticActionBED (CMSE)0.390±0.0130.390\pm0.013−5.325±0.093-5.325\pm0.093
Location FindingActionBED (MSE-L)––PharmacokineticActionBED (MSE-L)0.726±0.0700.726\pm0.070−4.913±0.096-4.913\pm0.096
Michaelis MentenMethodMSECMSECESMethodMSECMSE
Michaelis MentenRandom145.664±4.866145.664\pm4.866148.363±4.935148.363\pm4.935CESRandom1.860±0.1381.860\pm0.1380.728±0.1920.728\pm0.192
Michaelis MentenStatic50.198±0.74650.198\pm0.74651.375±0.76451.375\pm0.764CESStatic0.532±0.0320.532\pm0.032−2.540±0.094-2.540\pm0.094
Michaelis MentenDAD55.331±1.71455.331\pm1.71456.460±1.72456.460\pm1.724CESDAD0.311±0.0350.311\pm0.035−3.620±0.207-3.620\pm0.207
Michaelis MentenJointVarPost (m=10m = 10)64.316±16.98364.316\pm16.98365.588±17.15465.588\pm17.154CESJointVarPost (m=10m = 10)0.266±0.0270.266\pm0.027−3.860±0.200-3.860\pm0.200
Michaelis MentenJointVarPost (m=1m = 1)59.419±12.13559.419\pm12.13560.662±12.23560.662\pm12.235CESJointVarPost (m=1m = 1)0.141±0.0120.141\pm0.012−5.320±0.189-5.320\pm0.189
Michaelis MentenALINE59.15±1.8059.15\pm1.8060.62±1.8560.62\pm1.85CESALINE0.8604±0.01030.8604\pm0.0103−1.894±0.028-1.894\pm0.028
Michaelis MentenRL-BOED67.947±0.71267.947\pm0.71269.392±0.71569.392\pm0.715CESRL-BOED0.534±0.0110.534\pm0.011−2.082±0.073-2.082\pm0.073
Michaelis MentenActionBED (MSE)53.044±2.33153.044\pm2.33154.561±2.39454.561\pm2.394CESActionBED (MSE)0.863±0.0830.863\pm0.083−1.01±0.325-1.01\pm0.325
Michaelis MentenActionBED (CMSE)54.825±4.67754.825\pm4.67756.449±4.81756.449\pm4.817CESActionBED (CMSE)1.127±0.0701.127\pm0.070−0.254±0.141-0.254\pm0.141
Michaelis MentenActionBED (MSE-L)47.175±1.57247.175\pm1.57248.531±1.64648.531\pm1.646CESActionBED (MSE-L)0.053±0.0040.053\pm0.004−5.978±0.174-5.978\pm0.174
Michaelis MentenCESActionBED (CMSE-L)0.178±0.0270.178\pm0.027−5.882±0.187-5.882\pm0.187
Temporal DiscountingMethodMSECMSEStochastic PendulumMethodMSECMSE
Temporal DiscountingRandom0.725±0.0090.725\pm0.009−1.435±0.009-1.435\pm0.009Stochastic PendulumRandom0.00312±0.00002540.00312\pm0.0000254−7.377±0.011-7.377\pm0.011
Temporal DiscountingStatic0.613±0.100.613\pm0.10−2.569±0.015-2.569\pm0.015Stochastic PendulumStatic0.000555±0.00001950.000555\pm0.0000195−9.344±0.034-9.344\pm0.034
Temporal DiscountingDAD0.290±0.0090.290\pm0.009−4.918±0.059-4.918\pm0.059Stochastic PendulumDAD0.000492±0.000008420.000492\pm0.00000842−9.402±0.010-9.402\pm0.010
Temporal DiscountingJointVarPost (m=10m = 10)0.318±0.0090.318\pm0.009−4.806±0.058-4.806\pm0.058Stochastic PendulumJointVarPost (m=10m = 10)0.000560±0.00006670.000560\pm0.0000667−9.290±0.062-9.290\pm0.062
Temporal DiscountingJointVarPost (m=1m = 1)0.287±0.0090.287\pm0.009−4.974±0.046-4.974\pm0.046Stochastic PendulumJointVarPost (m=1m = 1)0.000437±0.00001930.000437\pm0.0000193−9.244±0.0028-9.244\pm0.0028
Temporal DiscountingALINE0.6028±0.00750.6028\pm0.0075−3.326±0.017-3.326\pm0.017Stochastic PendulumALINE0.0044±0.00010.0044\pm0.0001−6.9631±0.0369-6.9631\pm0.0369
Temporal DiscountingRL-BOED0.548±0.0090.548\pm0.009−3.745±0.014-3.745\pm0.014Stochastic PendulumRL-BOED0.000618±0.0000160.000618\pm0.000016−9.268±0.016-9.268\pm0.016
Temporal DiscountingActionBED (MSE)1.264±0.0191.264\pm0.019−0.546±0.029-0.546\pm0.029Stochastic PendulumActionBED (MSE)0.000480±0.00002390.000480\pm0.0000239−9.339±0.046-9.339\pm0.046
Temporal DiscountingActionBED (CMSE)0.233±0.0040.233\pm0.004−4.773±0.035-4.773\pm0.035Stochastic PendulumActionBED (CMSE)0.000442±0.00001510.000442\pm0.0000151−9.431±0.0376-9.431\pm0.0376
Temporal DiscountingActionBED (MSE-L)0.157±0.0040.157\pm0.004−4.053±0.093-4.053\pm0.093Stochastic PendulumActionBED (MSE-L)0.00042±0.00002150.00042\pm0.0000215−9.368±0.034-9.368\pm0.034
Temporal DiscountingActionBED (CMSE-L)0.290±0.0110.290\pm0.011−5.011±0.040-5.011\pm0.040Stochastic Pendulum
Double PendulumMethodMSECMSECart PoleMethodMSECMSE
Double PendulumRandom0.00172±0.0000140.00172\pm0.000014−7.950±0.008-7.950\pm0.008Cart PoleRandom0.00139±0.0000150.00139\pm0.000015−8.009±0.130-8.009\pm0.130
Double PendulumStatic0.000201±0.000007620.000201\pm0.00000762−9.859±0.028-9.859\pm0.028Cart PoleStatic0.000222±0.000006890.000222\pm0.00000689−9.772±0.039-9.772\pm0.039
Double PendulumDAD0.000200±0.000007080.000200\pm0.00000708−9.838±0.023-9.838\pm0.023Cart PoleDAD0.000200±0.000006030.000200\pm0.00000603−9.710±0.0560-9.710\pm0.0560
Double PendulumJointVarPost (m=10m = 10)0.000218±0.00000700.000218\pm0.0000070−9.867±0.046-9.867\pm0.046Cart PoleJointVarPost (m=10m = 10)0.00025±0.000009800.00025\pm0.00000980−9.716±0.055-9.716\pm0.055
Double PendulumJointVarPost (m=1m = 1)0.000180±0.00001010.000180\pm0.0000101−9.955±0.037-9.955\pm0.037Cart PoleJointVarPost (m=1m = 1)0.000226±0.000007420.000226\pm0.00000742−9.715±0.064-9.715\pm0.064
Double PendulumALINE0.0027±0.00000.0027\pm0.0000−7.386±0.032-7.386\pm0.032Cart PoleALINE0.0025±0.00020.0025\pm0.0002−7.640±0.070-7.640\pm0.070
Double PendulumRL-BOED0.000286±0.0000090.000286\pm0.000009−9.595±0.038-9.595\pm0.038Cart PoleRL-BOED0.000255±0.0000070.000255\pm0.000007−9.657±0.023-9.657\pm0.023
Double PendulumActionBED (MSE)0.000146±0.000006140.000146\pm0.00000614−10.084±0.032-10.084\pm0.032Cart PoleActionBED (MSE)0.000198±0.000002710.000198\pm0.00000271−9.773±0.019-9.773\pm0.019
Double PendulumActionBED (CMSE)0.000128±0.000004840.000128\pm0.00000484−10.084±0.032-10.084\pm0.032Cart PoleActionBED (CMSE)0.000204±0.000002260.000204\pm0.00000226−9.782±0.008-9.782\pm0.008
Double PendulumActionBED (MSE-L)0.000136±0.000001090.000136\pm0.00000109−10.174±0.062-10.174\pm0.062Cart PoleActionBED (MSE-L)0.000205±0.000005540.000205\pm0.00000554−9.737±0.035-9.737\pm0.035

Table 14.

No single method dominates across all tasks and metrics. Notably, overlooked methods like JointVarPost [32, 70] and even the static baseline perform strongly on several tasks. Rankings by EIG and loss do not always agree, reinforcing the complementarity of both measures. More surprisingly, a method trained on a different objective can outperform methods directly trained on the evaluation metric. On pharmacokinetics, e.g., ActionBED (CMSE) has a lower downstream MSE than ActionBED (MSE). Understanding which training objectives yield good designs, and how they relate to downstream objectives, is an important direction for future work.

We see that ALINE often struggles, attaining worse performance than random on several tasks. Note that Table 11 in the Appendix shows our implementation closely matches its published results. While ALINE introduced several advances to BED, including the inspiration for the Attention-based architecture we use here, we hypothesize that ALINE’s restriction to a finite pool of candidate designs can be limiting in tasks with continuous design spaces, like the 3 dynamical systems tasks. In addition, although ALINE’s stated objective is a lower bound on the total information gain over the horizon, its policy-gradient loss [43 Eq. 11] weights each design only by its immediate one-step reward, and the trained policy is hence myopic.

Location Finding (T=30T = 30)Constant Elasticity of Substitution (T=10T = 10)
Original8.91 ± 0.0413.50 ± 0.15
Ours8.92 ± 0.0213.50 ± 0.06

Table 11. EIG lower bound (sPCE) of ALINE on the location finding and CES tasks of Huang et al. [43]. Original: numbers from Table 2 of Huang et al. [43]. Ours: our reimplementation, trained on the same task specifications and network sizes.

The Effects of Architecture

Earlier BED methods (e.g., [33, 16]) often used the DeepSets architecture [94] for the design policy. More recent methods [42, 43, 77, 70] instead use an Attention-based architecture, first introduced by Vinyals et al. (2016). Recent methods also add a time embedding to the design policy, even for exchangeable tasks [42]. Here, we investigate the degree to which recent advances in BED can be attributed to these architectural choices rather than to methodological advances.

We follow the setup from § 5.1, varying only the design network architecture on the location finding task, as this showed clear discrimination between methods. We compare both Attention- and DeepSets-based design policies, with and without time embeddings. To our knowledge, the combination of DeepSets with time embeddings has not been previously studied in the BED literature.

Results are reported in Table 1. DAD performs better with DeepSets, whereas ActionBED favours Attention. Throughput does not explain this, since Attention reduces the number of updates by a similar factor for both methods. Rather, DAD’s training objective saturates: sPCE with L=2,000L = 2{,}000 is bounded by log⁡(L+1)≈7.6\log(L + 1) \approx7.6 nats, which both architectures approach within the first hour, so the objective can no longer resolve differences between policies. ActionBED’s loss has no such ceiling. With DeepSets it plateaus within four hours, whereas with Attention it continues to improve throughout training. We study the related trade-off between EIG-estimation cost and optimisation throughput in § 5.3.

MethodAttention + time LowerAttention + time UpperAttention − time LowerAttention − time UpperDeepSets + time LowerDeepSets + time UpperDeepSets − time LowerDeepSets − time Upper
DAD14.334±0.22314.334 \pm0.22314.359±0.22814.359 \pm0.2285.654±1.0615.654 \pm1.0615.654±1.0615.654 \pm1.06115.423±0.26515.423 \pm0.26515.587±0.30715.587 \pm0.30712.051±0.02812.051 \pm0.02812.052±0.02812.052 \pm0.028
RL-BOED12.188±0.02212.188 \pm0.02212.190±0.02212.190 \pm0.02212.121±0.03412.121 \pm0.03412.122±0.03412.122 \pm0.03412.017±0.00912.017 \pm0.00912.018±0.00912.018 \pm0.00912.058±0.01612.058 \pm0.01612.059±0.01612.059 \pm0.016
ActionBED18.563±0.06818.563 \pm0.06820.034±0.11420.034 \pm0.1149.418±0.4969.418 \pm0.4969.418±0.4979.418 \pm0.49715.818±0.54815.818 \pm0.54816.144±0.63216.144 \pm0.6329.579±0.0919.579 \pm0.0919.579±0.0919.579 \pm0.091

Table 1. Architecture ablation on the location finding task. Entries report the mean ±\pm standard error across five seeds of the sPCE and sNMC bounds of the EIG (L=109L = 10^9, N=2048N = 2048).

Adding explicit timestep information clearly improves performance for both DAD and ActionBED. Although prior work has adopted time embeddings without isolating their effect, the improvement has a principled explanation: a sequential design problem with finite horizon TT is a finite-horizon Markov decision process (MDP) [40, 16, 82], whose state at step tt is the belief p(θ∣ht)p(\theta\mid h_t). In finite-horizon MDPs, the optimal policy is generally time-dependent, and an optimal stationary policy need not exist [72 Chapter 4]. Intuitively, the value of an experiment depends not only on the current belief but also on how many experiments remain. Without explicit time information, the policy must infer tt from the number of observations in hth_t, which common modules such as pooling and layer normalisation can make difficult [93].

The performance of RL-BOED is similar across all combinations, but significantly worse than that of DAD or ActionBED with time embeddings. RL-BOED is trained with Soft Actor-Critic [35], which uses dense per-step rewards and learned critic networks. These may allow it to perform time-specific credit assignment effectively even when the policy has no explicit time input.

EIG as a Training Objective

Finally, we study the computational trade-offs involved in using contrastive EIG objectives for policy learning. Methods optimising the EIG, like DAD, often rely on the sPCE estimator which is upper bounded by log⁡(L+1)\log(L + 1) [33]. Increasing LL reduces saturation and potentially gives more signal, but also makes each optimisation step more expensive. Under a fixed compute budget, this creates a direct trade-off between estimator quality and the number of gradient updates.

To study this, we train DAD on location finding for a fixed budget of 3 hours while varying LL. The results in Table 2 show that increasing LL substantially improves the learned policy up to a plateau. Policies trained with LL between 4,096 and 16,384 are statistically indistinguishable across five seeds, even though L=16,384L = 16,384 completes roughly half as many gradient steps.

LLLowerUpperAverage number of gradient steps
25612.568±0.08412.568 \pm0.08412.571±0.08512.571 \pm0.08528,355.8
51212.896±0.11112.896 \pm0.11112.898±0.11112.898 \pm0.11128,778.2
1,02413.683±0.18413.683 \pm0.18413.691±0.18613.691 \pm0.18627,448.0
2,04813.982±0.12513.982 \pm0.12513.992±0.12713.992 \pm0.12724,954.6
4,09614.615±0.17514.615 \pm0.17514.637±0.17914.637 \pm0.17920,571.2
8,19214.500±0.28814.500 \pm0.28814.521±0.29114.521 \pm0.29115,369.8
16,38414.600±0.05914.600 \pm0.05914.623±0.06014.623 \pm0.06010,216.6

Table 2. Effect of the number of contrastive samples LL used for training DAD on location finding. Entries report mean ±\pm standard error across five training seeds. All policies are evaluated using 2,048 outer samples and 10910^9 contrastive samples.

The results reveal an asymmetry. Under a fixed compute budget, choosing LL too small is far more damaging than choosing it too large. Training with L=256L = 256 yields policies roughly 2 nats below the plateau, whereas we observed no measurable penalty for the largest LL tested. The optimal value will depend on the task and compute budget, but these results suggest prioritising sufficiently accurate estimates of the EIG during training over more updates.

Discussion and Conclusion

We introduced TestBED, an open-source toolkit for Bayesian experimental design that provides a common modular foundation for implementing and comparing BED methods. By separating tasks, designers, objectives, and algorithms, TestBED makes individual components composable, so that new methods can be developed easily and isolated design choices studied in controlled experiments.

Using TestBED, we conducted a benchmark of contemporary BED methods and ablations that expose several key considerations. First, EIG alone can give an incomplete picture of design quality: methods with similar information gain can differ substantially in downstream utility. Second, the choice of test problems matters, as performance varies widely across tasks, and simple baselines such as static designs remain highly competitive on several widely used problems. Finally, often-overlooked implementation details, such as policy architectures and time embeddings, can have effects that outweigh the differences between methods themselves. Architecture, estimator accuracy, and compute allocation should therefore be treated as part of the specification of a BED method rather than as incidental details. We hope that TestBED will serve as a flexible, easy-to-use foundation for both methodological and empirical work, accelerating the development and adoption of BED methods.

Tasks

This section provides additional information about the Task abstraction in TESTBED. Section A.1 describes the design priors we use, which also control the space of admissible designs via the support of the prior. Section A.2 provides full details regarding the tasks we implement. Each task declares a tensor shape for a single design, observation and parameter. We write dXd_{\mathcal{X}}, dYd_{\mathcal{Y}} and dΘd_{\Theta} for the product of the entries of these shapes, i.e., the dimension once flattened to a vector, so that X⊆RdX\mathcal{X} \subseteq\mathbb{R}^{d_{\mathcal{X}}}, Y⊆RdY\mathcal{Y} \subseteq\mathbb{R}^{d_{\mathcal{Y}}} and Θ⊆RdΘ\Theta\subseteq\mathbb{R}^{d_{\Theta}}. For example, location finding with K=2K = 2 sources in two dimensions has parameter shape [2,2][2, 2] and hence dΘ=4d_{\Theta} = 4.

Design Priors

In practice, it is often useful to specify a prior p(x)p(x) over designs, and each Task in TESTBED specifies such a design prior. The design prior itself is a Distribution object, which is a small wrapper around the standard PyTorch distribution class that enables interfacing with the rest of TESTBED. The design prior provides two main functionalities. The first is to sample random designs, which can be used to create a RandomDesigner baseline. The second is that the support of the design prior encodes the space of valid designs for the problem.

We directly extend the existing PyTorch distribution implementation, which includes utilities like transforming between raw/latent designs and constrained designs along with the corresponding change-of-variables Jacobian. While many methods do not require samples x∼p(x)x \sim p(x), the task itself may still crucially rely on its support which defines the valid designs. For this reason, TESTBED provides a Box distribution, which is uniform over the set [a1,b1]×⋯×[adX,bdX][a_1,b_1] \times\cdots\times[a_{d_{\mathcal{X}}},b_{d_{\mathcal{X}}}] where ak,bk∈Ra_k, b_k \in\mathbb{R} are user-specified bounds, which captures many constraints used in practice. For methods that require a finite set of designs, like ALINE [42], we provide an EmpiricalDistribution class. For more complex constraint spaces, users can create custom distributions having the appropriate support, and can choose to not implement sampling if it is difficult or otherwise not required. By default, the design prior p(x)p(x) is a standard Gaussian in RdX\mathbb{R}^{d_{\mathcal{X}}}, corresponding to unconstrained designs.

A policy may condition on either physical designs or the unconstrained values it emitted. When the reparametrisation is bijective these contain the same information, but the unconstrained representation often has a more convenient scale and avoids task-specific input normalisation.

Implemented Tasks

Here, we describe the various tasks currently implemented within TESTBED.

Location Finding

In this task, the experimenter must locate KK hidden sources in Rd\mathbb{R}^{d} from noisy measurements of the signal they emit, following the acoustic energy attenuation model of Sheng & Hu [83] as adapted for BED by Foster et al. [33]. Each source emits a signal whose intensity decays with distance, and a measurement returns the superposition of all KK contributions. The parameter of interest is the source locations θ={θk}k=1K\theta= \{\theta_k\}_{k=1}^{K}, where KK is assumed known ahead of time, and a design is the location x∈Rdx \in\mathbb{R}^{d} at which the next measurement is taken.

Each source location is drawn independently from a standard Gaussian, so that

θk∼i.i.d.N(0d,Id),k=1,…,K,(3)\theta_k \mathrel{\overset{\mathrm{i.i.d.}}{\sim}} \mathcal{N}(0_d, I_d), \qquad k = 1, \ldots, K, \tag*{(3)}

giving θ∈RK×d\theta\in\mathbb{R}^{K \times d}. The total intensity at a measurement location xx is

μ(θ,x)=b+∑k=1Kαm+∥θk−x∥s,(4)\mu(\theta, x) = b + \sum_{k=1}^{K} \frac{\alpha}{m + \lVert\theta_k - x \rVert^{s}}, \tag*{(4)}

and the outcome is the log total intensity observed with Gaussian noise,

y∣θ,x∼N(log⁡μ(θ,x),σ2).(5)y \mid\theta, x \sim\mathcal{N}\left(\log\mu(\theta, x), \sigma^2\right). \tag*{(5)}

Here α\alpha is the amplitude of each source and ss the rate at which its signal decays, with s=2s = 2 recovering the inverse-square law. The two remaining constants control the dynamic range of the observation.

Setting m>0m > 0 caps the contribution of a single source at α/m\alpha/m, so that the intensity does not diverge as a measurement is taken arbitrarily close to a source and the EIG remains finite, while bb sets a background level that bounds how uninformative a measurement far from every source can be.

We adopt the configuration of Foster et al. [33], namely b=0.1b = 0.1, m=10−4m = 10^{-4}, α=1\alpha= 1 for every source, σ=0.5\sigma= 0.5 and s=2s = 2. Our benchmark instantiates K=2K = 2 sources in d=2d = 2 dimensions over a horizon of T=30T = 30 experiments, so θ\theta is four-dimensional. The design space is unbounded: a measurement may be taken anywhere in Rd\mathbb{R}^{d}, and the task therefore uses the default unconstrained space of Section A.1.

The sources are exchangeable, both in the prior and in the likelihood, since Equation (4) depends on θ\theta only through an unordered sum. Any labelling of the sources is therefore equally valid, which is why we report a permutation-invariant RMSE (Section C) and canonicalise the source ordering in the variational posterior (Section D.4).

Hyperbolic Temporal Discounting

Temporal discounting describes the psychological phenomenon whereby the value a person ascribes to a reward falls as the delay before receiving it grows ([25, 34]). Following the notation of Hedman et al. [36], an individual’s time-delay preferences can be elicited through binary choices between an immediate reward and a larger delayed reward. In our setting, each experiment asks whether the participant would prefer R0R_0 today or a fixed $100 in D1D_1 days. The experimental design is therefore x=(D1,R0)x = (D_1, R_0), and the outcome yy records the participant’s choice between the immediate and delayed rewards.

Mazur [60] introduced a widely used parametric model of temporal discounting. Following previous policy-based implementations ([33, 36]), we adopt the particular formulation given by Vincent [87], which combines a discount curve with a probabilistic response rule and thereby defines a likelihood over observed choices. The individual participant is characterised by θ=(k,α)\theta= (k, \alpha), where kk is their discount rate and α\alpha controls the scale of their choice noise, with prior

log⁡k∼N(−4.25,1.52),α∼HalfNormal⁡(2).(6)\log k \sim\mathcal{N}(-4.25, 1.5^{2}), \qquad\alpha\sim\operatorname{HalfNormal}(2). \tag*{(6)}

The two options carry subjective values

V0(x)=R0,V1(θ,x)=100(1+(kD1)s)b,(7)V_0(x) = R_0, \qquad V_1(\theta, x) = \frac{100}{\left(1 + (kD_1)^{s}\right)^{b}}, \tag*{(7)}

and the participant selects the delayed option with probability

p(y=1∣θ,x)=ϵ+(1−2ϵ)Φ(V1(θ,x)−V0(x)α),(8)p(y = 1 \mid\theta, x) = \epsilon+ (1 - 2\epsilon)\Phi\left(\frac{V_1(\theta, x) - V_0(x)}{\alpha}\right), \tag*{(8)}

where Φ\Phi is the standard normal distribution function. Rather than choosing deterministically whichever option has the higher value, the participant compares them with sensitivity governed by α\alpha, and the lapse rate ϵ\epsilon bounds the response probability away from 0 and 1 to allow for a small chance of responding at random. We fix ϵ=0.01\epsilon= 0.01 and use a horizon of T=20T = 20 questions.

The exponents ss and bb are both 1 by default, recovering the standard hyperbolic model. A design must satisfy D1≥0D_1 \ge0 and 0≤R0≤1000 \le R_0 \le100. The design prior is constructed via the pushforward of standard Gaussian (x~d,x~r)∼N(0,1)(\widetilde{x}_d, \widetilde{x}_r) \sim\mathcal{N}(0, 1) along the maps D1=exp⁡(x~d−log⁡k^)D_1 = \exp(\widetilde{x}_d - \log\widehat{k}) and R0=100 σ(x~r)R_0 = 100\,\sigma(\widetilde{x}_r), where the shift by the log prior mean of the discount rate keeps kD1kD_1 at an informative scale for an untrained policy.

Unlike location finding, the outcome is a binary response rather than a continuous measurement, so the likelihood admits no pathwise gradient and methods that would otherwise differentiate through the rollout fall back to a score-function estimator (Section B). TestBED also exposes a relaxed variant in which the response is drawn from a continuous relaxation of the Bernoulli, restoring a pathwise gradient at the cost of altering the model being scored; we retain the discrete model throughout so that reported EIG values remain comparable to existing literature.

Constant Elasticity of Substitution

In economics, the constant elasticity of substitution (CES) model describes how a consumer trades one good off against another, with a single parameter controlling how readily goods substitute for one another [3]. Here the experimenter seeks to identify the preferences of an individual participant, who is shown two baskets of goods and reports the difference in utility they perceive between the two. The model was introduced to the BED setting by Foster et al. [31] and has since been used as a general BED benchmark [16, 46, 36, 50].

A design corresponds to two baskets x,x′∈[0,100]3x, x' \in[0, 100]^3, each specifying non-negative quantities of three goods, so dX=6d_X = 6. The preferences of the participant are governed by θ=(ρ,α,u)\theta= (\rho, \alpha, u), where ρ\rho is the substitution parameter, α=(α1,α2,α3)\alpha= (\alpha_1, \alpha_2, \alpha_3) weights the three goods and uu scales the sensitivity of their response. The prior is

ρ∼Beta⁡(1,1),α∼Dirichlet⁡(1,1,1),log⁡u∼N(1,32),(9)\rho\sim\operatorname{Beta}(1, 1), \qquad\alpha\sim\operatorname{Dirichlet}(1, 1, 1), \qquad\log u \sim\mathcal{N}(1, 3^2), \tag*{(9)}

so that α\alpha lies on the two-dimensional simplex and θ\theta occupies a four-dimensional manifold within R5\mathbb{R}^5.

A basket is valued through the CES utility

U(x)=(∑i=13αixiρ)1/ρ.(10)U(x) = \left(\sum_{i=1}^{3} \alpha_i x_i^\rho\right)^{1/\rho}. \tag*{(10)}

The participant compares the two baskets on a latent scale, which is Gaussian with a mean given by the difference in utility and a spread that grows with how far apart the baskets are,

η∣θ,x,x′∼N(u(U(x)−U(x′)),(uτ(1+∥x−x′∥))2),(11)\eta\mid\theta, x, x' \sim\mathcal{N}\left(u\left(U(x)-U(x')\right), \left(u\tau\left(1+\lVert x-x'\rVert\right)\right)^2\right), \tag*{(11)}

and reports it on a sliding scale from 0 to 1 following a sigmoid transformation,

y=clip⁡(σ(η),ϵ,1−ϵ).(12)y = \operatorname{clip}(\sigma(\eta), \epsilon, 1-\epsilon). \tag*{(12)}

We use τ=0.005\tau= 0.005 and ϵ=2−22\epsilon= 2^{-22} over a horizon of T=10T = 10 experiments, and the design prior is uniform over [0,100]6[0, 100]^6.

The censoring in Equation (12) is a unique characteristic of this task. Whenever one basket is clearly preferred, σ(η)\sigma(\eta) is driven to within ϵ\epsilon of 0 or 1 and the response is clipped, so the observation distribution places atoms at both endpoints and a large part of the design space yields a saturated, uninformative answer. A policy must therefore learn to propose genuinely finely balanced pairs of baskets. This also has a consequence for optimisation: although η\eta is Gaussian and the outcome is formally reparametrisable, the log-likelihood switches branch at the censoring boundaries, and a pathwise gradient discards the term describing how the probability of censoring responds to the design. That term carries the signal telling a policy to leave the saturated region, so on this task we instead estimate the gradient with REINFORCE for DAD and JointVarPost (Section B).

The support of θ\theta also has consequences for methods that fit a posterior approximation. Because α\alpha is confined to the simplex and ρ\rho to an interval, θ\theta does not fill R5\mathbb{R}^5, and a variational family placed directly on those coordinates would be a density with respect to the wrong measure. We instead push a distribution over unconstrained coordinates onto the support of the prior, as described in Section D.4.

Pharmacokinetic

This task models a pharmacokinetic study, in which a drug is administered and blood subsequently drawn at chosen times to characterise how that drug is absorbed, distributed and eliminated. We use the one-compartment model with first-order absorption of Ryan et al. [78], which has become a standard BED benchmark [54, 95], and follow the configuration of Ivanova et al. [49].

The parameter of interest is θ=(ka,ke,V)\theta= (k_a, k_e, V), comprising the absorption rate, the elimination rate and the volume of distribution, with a log-normal prior

log⁡θ∼N(log⁡[1,0.1,20], 0.05I3).(13)\log\theta\sim\mathcal{N}\left(\log[1, 0.1, 20],\ 0.05 I_3\right). \tag*{(13)}

A design is the time xx at which blood is sampled. Following a single dose DvD_v given at the start of the experiment, the drug concentration at time xx is

μ(θ,x)=DvV⋅kaka−ke(e−kex−e−kax),(14)\mu(\theta, x) = \frac{D_v}{V} \cdot\frac{k_a}{k_a-k_e}\left(e^{-k_e x}-e^{-k_a x}\right), \tag*{(14)}

which rises while absorption dominates and then decays as elimination takes over. Measurements carry both multiplicative and additive error, so that

y∣θ,x∼N(μ(θ,x),(σmultμ(θ,x))2+σadd2).(15)y \mid\theta, x \sim\mathcal{N}\left(\mu(\theta, x), \left(\sigma_{\mathrm{mult}} \mu(\theta, x)\right)^2 + \sigma_{\mathrm{add}}^2\right). \tag*{(15)}

The multiplicative term grows in proportion to the quantity being measured, so the noise is heteroscedastic: readings taken near the peak of the concentration curve are inherently less precise than those taken in the tails.

We set Dv=400D_v = 400, σmult2=0.01\sigma_{\mathrm{mult}}^2 = 0.01 and σadd2=0.1\sigma_{\mathrm{add}}^2 = 0.1. Blood may be sampled at any point in the first day, corresponding to a uniform design prior over [0,24][0, 24] hours (Section A.1), and our benchmark uses a horizon of T=10T = 10 measurements. As in the references above, each measurement is taken from a different patient, all of whom are assumed to share the same θ\theta, so a single blood sample is drawn per patient.

The outcome is a differentiable function of θ\theta and xx perturbed by Gaussian noise, so the likelihood is reparametrisable and methods may take pathwise gradients of the EIG. We note that Equation (14) is singular when ka=kek_a = k_e, and the model is conventionally stated with the constraint ka>kek_a > k_e. The prior does not impose this constraint, but it separates the two rates by an order of magnitude relative to a log-scale standard deviation of 0.05\sqrt{0.05}, so draws that approach the singularity are rare.

Michaelis-Menten

This task models an enzyme kinetics experiment, in which the experimenter measures the velocity of a chemical reaction at a chosen substrate concentration in order to characterise the enzyme. The classical description of this relationship is the Michaelis-Menten model (Michaelis et al., [62]), under which the reaction velocity rises with substrate concentration before levelling off as the enzyme saturates. It has a substantial history as an optimal design problem ([28, 66]), and we follow the BED setup of Forster et al. [30].

The parameter of interest is θ=(Vmax⁡,Vhalf)\theta= (V_{\max}, V_{\mathrm{half}}), where Vmax⁡V_{\max} is the velocity the reaction approaches once the enzyme is saturated and VhalfV_{\mathrm{half}} is the substrate concentration at which half that velocity is attained. Both are given independent uniform priors,

Vmax⁡,Vhalf∼i.i.d.Unif⁡(20,200).(16)V_{\max}, V_{\mathrm{half}} \overset{\mathrm{i.i.d.}}{\sim} \operatorname{Unif}(20, 200). \tag*{(16)}

A design is the substrate concentration xx at which the next measurement is made, giving a mean reaction velocity

μ(θ,x)=Vmax⁡xsVhalfs+xs,(17)\mu(\theta, x) = \frac{V_{\max} x^s}{V_{\mathrm{half}}^s + x^s}, \tag*{(17)}

observed with additive Gaussian noise,

y∣θ,x∼N(μ(θ,x),σ2).(18)y \mid\theta, x \sim\mathcal{N}\left(\mu(\theta, x), \sigma^2\right). \tag*{(18)}

We use σ=2.5\sigma= 2.5 and a horizon of T=20T = 20 measurements. Concentrations are non-negative and the design prior is uniform over [0,400][0, 400] (Section A.1), whose upper bound is twice the largest VhalfV_{\mathrm{half}} the prior admits and so comfortably covers the saturating regime.

The exponent ss defaults to 1. Other values give the Hill model ([24]), in which binding at one site alters the affinity of the remaining sites. Forster et al. [30] used this as a controlled setting for studying misspecification, since ss can be varied in the data-generating process while the assumed model is held at s=1s = 1, tuning the severity of the mismatch continuously from none upwards.

The saturating response is the central tension of the task. Measurements at high concentration pin down Vmax⁡V_{\max} but say little about VhalfV_{\mathrm{half}}, whereas the concentrations that identify VhalfV_{\mathrm{half}} lie on the rising part of the curve, whose position is itself unknown a priori. A policy must therefore locate the bend in the curve before it can resolve both parameters. The noise is homoscedastic, so unlike the pharmacokinetic task there is no additional penalty for measuring where the response is large, and the outcome is a differentiable function of θ\theta and xx perturbed by Gaussian noise, so the likelihood is reparametrisable and pathwise gradients of the EIG are available.

Stochastic Pendulum

This task asks the experimenter to identify the physical properties of a pendulum by applying torques and observing how it moves. It is one of three dynamical systems in our TESTBED suite, and a task whose likelihood is not memoryless: the system carries state between steps, so the outcome depends on the previous state as well as the current design, meaning the history is not exchangeable. We take the nonlinear formulation of Iqbal et al. [48], with the diffusion matched to Phillips et al. [70].

The pendulum is modelled as a uniform rod of unknown mass mm and length ll, so the parameter of interest is θ=(m,l)\theta=(m,l) with a log-normal prior

log⁡θ∼N(0,0.01I2).(19)\log\theta\sim\mathcal{N}(0,0.01 I_2). \tag*{(19)}

The state y=(q,q˙)y=(q,\dot{q}) collects the angle and the angular velocity, and the experiment begins from rest at y0=(0,0)y_0=(0,0). A design is the torque xx applied over the next interval. Writing gg for gravitational acceleration and dd for a damping coefficient, the angular acceleration is

q¨=3(−g2lsin⁡q+x−dq˙ml2),(20)\ddot{q}=3\left(-\frac{g}{2l}\sin q+\frac{x-d\dot{q}}{ml^2}\right), \tag*{(20)}

in which the factor of three and the factor of one-half in the gravitational term arise from modelling the pendulum as a uniform rod pivoted at one end, whose centre of mass lies at l/2l/2 and whose moment of inertia is ml2/3ml^2/3; the term x−dq˙x-d\dot{q} represents the applied and damping torques, respectively. The dynamics are integrated by an Euler-Maruyama step, so that

yt∣θ,xt,yt−1∼N(yt−1+Δt⋅f(yt−1,θ,xt),Δt Σ2),(21)y_t\mid\theta,x_t,y_{t-1}\sim\mathcal{N}\left(y_{t-1}+\Delta t\cdot f(y_{t-1},\theta,x_t),\Delta t\,\Sigma^2\right), \tag*{(21)}

where f(y,θ,x)=(q˙,q¨)f(y,\theta,x)=(\dot{q},\ddot{q}) is the time derivative of the state, with q¨\ddot{q} given by Equation (20) and Σ\Sigma is the diffusion scale.

We use Δt=0.05\Delta t=0.05, d=0.1d=0.1, g=9.81g=9.81 and Σ=0.1I2\Sigma=0.1I_2, over a horizon of T=50T=50 steps. The torque is bounded to [−1,1][-1,1], and we use a uniform design prior over this set (Section A.1).

The loss of exchangeability changes what a policy must do. A design is informative in the context of the state it acts upon, so the policy has to reason about the effects of its earlier torques. At the initial equilibrium the model is degenerate: sin⁡q=0\sin q=0 removes the gravitational term from Equation (20), leaving a response that depends on θ\theta only through the product ml2ml^2, so no torque applied at rest can separate mass from length. Breaking that degeneracy requires displacing the pendulum, since the gravitational term is the only one that depends on ll alone, and with the torque bounded to [−1,1][-1,1] against gravity this takes several steps of deliberate excitation. This makes the task a control and an estimation problem. The Euler-Maruyama step is a differentiable drift plus additive Gaussian noise, so the outcome is reparametrisable and pathwise gradients of the EIG are available.

Cart Pole

This task places a pole on a cart that may be pushed along a track, and asks the experimenter to identify the masses of the pole and cart alongside the pole length by choosing a force to be applied at each step. As with the stochastic pendulum it is a non-memoryless dynamical system taken from Iqbal et al. [48], with the diffusion matched to Phillips et al. [70], but the state is four-dimensional and, as we show below, the pole mass is not identifiable until the pole has been displaced from vertical.

The parameter of interest is θ=(mp,mc,l)\theta=(m_p,m_c,l), the pole mass, the cart mass and the pole length, with prior

log⁡θ∼N(0,0.01I3).(22)\log\theta\sim\mathcal{N}(0,0.01I_3). \tag*{(22)}

The state y=(s,q,s˙,q˙)y=(s,q,\dot{s},\dot{q}) collects the cart position, the pole angle and their velocities, and the system starts at rest with y0=0y_0=0. A design is the force xx applied to the cart. Writing Δ:=mc+mpsin⁡2q\Delta:=m_c+m_p\sin^2q, the accelerations are

s¨=1Δ(x+mpsin⁡q(lq˙ 2+gcos⁡q)−(k1s+d1s˙)−(k2q+d2q˙)cos⁡ql),(23)\ddot{s}=\frac{1}{\Delta}\left(x+m_p\sin q\left(l\dot{q}^{\,2}+g\cos q\right)-(k_1s+d_1\dot{s})-\frac{(k_2q+d_2\dot{q})\cos q}{l}\right), \tag*{(23)}
q¨=−1lΔ(xcos⁡q+mplq˙ 2cos⁡qsin⁡q+(mc+mp)gsin⁡q+(k1s+d1s˙)cos⁡q+(k2q+d2q˙)cos⁡2ql)(24)\ddot{q}=-\frac{1}{l\Delta}\left(x\cos q+m_pl\dot{q}^{\,2}\cos q\sin q+(m_c+m_p)g\sin q+(k_1s+d_1\dot{s})\cos q+\frac{(k_2q+d_2\dot{q})\cos^2q}{l}\right) \tag*{(24)}

where k1,k2k_1, k_2 are stiffness coefficients and d1,d2d_1, d_2 damping coefficients acting on the cart and the pole respectively. The dynamics are integrated by an Euler-Maruyama step,

yt∣θ,xt,yt−1∼N(yt−1+Δt⋅f(yt−1,θ,xt),Δt Σ2),(25)y_t \mid\theta, x_t, y_{t-1} \sim\mathcal{N}\left(y_{t-1} + \Delta t \cdot f(y_{t-1}, \theta, x_t), \Delta t\,\Sigma^2\right), \tag*{(25)}

with f=(s˙,q˙,s¨,q¨)f = (\dot{s}, \dot{q}, \ddot{s}, \ddot{q}) the time derivative of the state.

We use Δt=0.05\Delta t = 0.05, g=9.81g = 9.81, k1=k2=d1=d2=0.01k_1 = k_2 = d_1 = d_2 = 0.01 and Σ=0.1I4\Sigma= 0.1 I_4, over a horizon of T=50T = 50 steps. The force is bounded to [−5,5][-5, 5], and we use a uniform design prior over this set (Section A.1). The stiffness and damping terms are small and act as weak restoring forces towards s=0s = 0 and q=0q = 0.

The identifiability structure is what makes this task harder than the pendulum. Every occurrence of mpm_p in Equation (23) and Equation (24), including the one inside Δ\Delta, is multiplied by sin⁡q\sin q or sin⁡2q\sin^2 q, so at the initial state the equations collapse to s¨=x/mc\ddot{s} = x/m_c and q¨=−x/(lmc)\ddot{q} = -x/(l m_c). A force applied at rest therefore reveals the cart mass and the pole length, but carries no information about the pole mass: mpm_p becomes visible only once the pole is away from vertical. A policy must consequently excite the pole, and it can do so only indirectly, by accelerating the cart beneath it. The outcome remains a differentiable drift perturbed by additive Gaussian noise, so pathwise gradients of the EIG are available. At T=50T = 50 with a four-dimensional state this is also one of the more expensive tasks in the suite, and is where the contrastive estimators used by DAD required a reduced batch size (Section D.3).

Double Pendulum

This task consists of two links joined end to end, each of unknown mass and length, driven by a torque at each joint. It is the third and largest of the dynamical system tasks, and it carries the most parameters, the widest design space and the richest dynamics of the three [48, 70].

The parameter of interest is θ=(m1,m2,l1,l2)\theta= (m_1, m_2, l_1, l_2), the masses and lengths of the two links, with prior

log⁡θ∼N(0,0.01I4).(26)\log\theta\sim\mathcal{N}(0, 0.01 I_4). \tag*{(26)}

The state y=(q1,q2,q˙1,q˙2)y = (q_1, q_2, \dot{q}_1, \dot{q}_2) collects the two joint angles and their velocities, starting from rest at y0=0y_0 = 0, and a design x∈R2x \in\mathbb{R}^2 applies a torque at each joint. The dynamics take the manipulator form

M(θ,q) q¨+C(θ,q,q˙) q˙=x+τ(θ,q),(27)M(\theta, q)\,\ddot{q} + C(\theta, q, \dot{q})\,\dot{q} = x + \tau(\theta, q), \tag*{(27)}

in which the mass matrix, the Coriolis and centrifugal matrix, and the gravitational torque are

M=((m1+m2)l12+m2l22+2m2l1l2cos⁡q2m2l22+m2l1l2cos⁡q2m2l22+m2l1l2cos⁡q2m2l22),(28)M = \begin{pmatrix} (m_1 + m_2)l_1^2 + m_2l_2^2 + 2m_2l_1l_2\cos q_2 & m_2l_2^2 + m_2l_1l_2\cos q_2 \\ m_2l_2^2 + m_2l_1l_2\cos q_2 & m_2l_2^2 \end{pmatrix}, \tag*{(28)}
C=(0a(2q˙1+q˙2)−12a(2q˙1+q˙2)12aq˙1),a:=−m2l1l2sin⁡q2,(29)C = \begin{pmatrix} 0 & a(2\dot{q}_1 + \dot{q}_2) \\ -\frac{1}{2}a(2\dot{q}_1 + \dot{q}_2) & \frac{1}{2}a\dot{q}_1 \end{pmatrix}, \qquad a := -m_2l_1l_2\sin q_2, \tag*{(29)}
τ=−g((m1+m2)l1sin⁡q1+m2l2sin⁡(q1+q2)m2l2sin⁡(q1+q2)).(30)\tau= -g \begin{pmatrix} (m_1 + m_2)l_1\sin q_1 + m_2l_2\sin(q_1 + q_2) \\ m_2l_2\sin(q_1 + q_2) \end{pmatrix}. \tag*{(30)}

Solving Equation (27) for q¨\ddot{q} gives the drift, which is integrated by the same Euler-Maruyama step as the other dynamical tasks,

yt∣θ,xt,yt−1∼N(yt−1+Δt⋅f(yt−1,θ,xt),Δt Σ2).(31)y_t \mid\theta, x_t, y_{t-1} \sim\mathcal{N}\left(y_{t-1} + \Delta t \cdot f(y_{t-1}, \theta, x_t), \Delta t\,\Sigma^2\right). \tag*{(31)}

We use Δt=0.05\Delta t = 0.05, g=9.81g = 9.81 and Σ=0.1I4\Sigma= 0.1 I_4, over a horizon of T=50T = 50 steps. The two torques are bounded differently, to [−4,4][-4, 4] at the first joint and [−2,2][-2, 2] at the second, giving a box design space whose coordinates are on distinct scales; this is the task for which conditioning a policy on unconstrained rather than physical designs is most clearly useful (Section A.1). We use a uniform design prior over this space.

As with the other two dynamical systems, the initial state is degenerate, and here the degeneracy is exact. At y0=0y_0 = 0 both the Coriolis matrix and the gravitational torque vanish, leaving q¨=M(θ,0)−1x\ddot{q} = M(\theta, 0)^{-1}x. Since MM is symmetric it contributes only three independent entries, which cannot determine four parameters; concretely, the map (m1,m2,l1,l2)↦(m1/c2,m2/c2,cl1,cl2)(m_1, m_2, l_1, l_2) \mapsto(m_1/c^2, m_2/c^2, cl_1, cl_2) leaves M(θ,0)M(\theta, 0) unchanged for any c>0c > 0, so an entire scaling family of parameters is indistinguishable from rest. It is the gravitational term of Equation (30) that breaks this family, and it is visible only once the links swing away from the vertical. The outcome is again a differentiable drift with additive Gaussian noise, so pathwise gradients are available.

This section provides additional details regarding our REINFORCE-style objectives, which enable us to train BED policies even in the presence of non-reparametrisable likelihoods. Much of this section is not new and detailed only for the sake of completeness. However, Section B.2 derives the necessary details for training JointVarPost [32, 70] on non-reparametrisable likelihoods, and Section B.3 does the same for ActionBED [77] on non-reparametrisable likelihoods, both of which are novel methodological approach not previously studied in the literature.

sPCE and REINFORCE

One of the key design objectives against which policies are optimised is the sPCE lower bound on EIG [33]. Here we derive its REINFORCE-style gradient estimator for deterministic and stochastic policies, as used when the likelihood cannot be reparametrised.

Let ϕ\phi denote the policy parameters and πχϕ\pi^\phi_\chi the design policy. We draw θ0∼p(θ)\theta_0 \sim p(\theta) and contrastive samples θ1:L∼i.i.d.p(θ)\theta_{1:L} \overset{\mathrm{i.i.d.}}{\sim} p(\theta), and generate a history hT=(x1:T,y1:T)h_T = (x_{1:T}, y_{1:T}). The sPCE bound of Equation (59) can then be rewritten as

LT(ϕ)=Ep(θ0:L)p(hT∣θ0,πχϕ)[Rϕ(hT)]+log⁡(L+1),(32)\mathcal{L}_T(\phi) = \mathbb{E}_{p(\theta_{0:L})p(h_T \mid\theta_0,\pi^\phi_\chi)}[R_\phi(h_T)] + \log(L+1), \tag*{(32)}
Rϕ(hT):=log⁡p(hT∣θ0,πχϕ)∑ℓ=0Lp(hT∣θℓ,πχϕ).(33)R_\phi(h_T) := \log\frac{p(h_T \mid\theta_0,\pi^\phi_\chi)}{\sum_{\ell=0}^{L} p(h_T \mid\theta_\ell,\pi^\phi_\chi)}. \tag*{(33)}

The gradient estimator then takes slightly different forms based on whether the design policy is stochastic or deterministic.

Deterministic design policies

This is a reiteration of the derivation within Foster et al. [33]. For a deterministic policy, xt=πχϕ(ht−1)x_t = \pi^\phi_\chi(h_{t-1}), so the only randomness in the rollout is in the observations. Its density is therefore

p(hT∣θ,πχϕ)=∏t=1Tp(yt∣θ,xt,ht−1),xt=πχϕ(ht−1),(34)p(h_T \mid\theta,\pi^\phi_\chi) = \prod_{t=1}^{T} p(y_t \mid\theta,x_t,h_{t-1}), \qquad x_t = \pi^\phi_\chi(h_{t-1}), \tag*{(34)}

where dependence on ϕ\phi enters through the designs xtx_t. Hence while the likelihood may not be reparametrisable in yty_t, its log-density will be differentiable with respect to the designs.

Writing p0(hT)=p(hT∣θ0,πχϕ)p_0(h_T) = p(h_T \mid\theta_0,\pi^\phi_\chi) and differentiating Equation (32) directly,

dLTdϕ=Ep(θ0:L)[∫ddϕ{p0(hT)Rϕ(hT)} dhT](35)\frac{\mathrm{d}\mathcal{L}_T}{\mathrm{d}\phi} = \mathbb{E}_{p(\theta_{0:L})}\left[\int\frac{\mathrm{d}}{\mathrm{d}\phi}\{p_0(h_T)R_\phi(h_T)\}\,\mathrm{d}h_T\right] \tag*{(35)}
=Ep(θ0:L)p0(hT)[Rϕ(hT)ddϕlog⁡p0(hT)+ddϕRϕ(hT)],(36)= \mathbb{E}_{p(\theta_{0:L})p_0(h_T)}\left[R_\phi(h_T)\frac{\mathrm{d}}{\mathrm{d}\phi}\log p_0(h_T) + \frac{\mathrm{d}}{\mathrm{d}\phi}R_\phi(h_T)\right], \tag*{(36)}

where we used the score-function identity ddϕp0=p0ddϕlog⁡p0\frac{\mathrm{d}}{\mathrm{d}\phi}p_0 = p_0\frac{\mathrm{d}}{\mathrm{d}\phi}\log p_0. Expanding the second term gives

dLTdϕ=E[Rϕ(hT)ddϕlog⁡p0(hT)+ddϕlog⁡p0(hT)−ddϕlog⁡∑ℓ=0Lp(hT∣θℓ,πχϕ)].(37)\frac{\mathrm{d}\mathcal{L}_T}{\mathrm{d}\phi} = \mathbb{E}\left[R_\phi(h_T)\frac{\mathrm{d}}{\mathrm{d}\phi}\log p_0(h_T) + \frac{\mathrm{d}}{\mathrm{d}\phi}\log p_0(h_T) - \frac{\mathrm{d}}{\mathrm{d}\phi}\log\sum_{\ell=0}^{L}p(h_T \mid\theta_\ell,\pi^\phi_\chi)\right]. \tag*{(37)}

The middle term vanishes because

Ep0[ddϕlog⁡p0(hT)]=∫ddϕp0(hT) dhT=ddϕ1=0.\mathbb{E}_{p_0}\left[\frac{\mathrm{d}}{\mathrm{d}\phi}\log p_0(h_T)\right] = \int\frac{\mathrm{d}}{\mathrm{d}\phi}p_0(h_T)\,\mathrm{d}h_T = \frac{\mathrm{d}}{\mathrm{d}\phi}1 = 0.

Thus

dLTdϕ=Ep(θ0:L)p(hT∣θ0,πχϕ)[Rϕ(hT)ddϕlog⁡p(hT∣θ0,πχϕ)−ddϕlog⁡∑ℓ=0Lp(hT∣θℓ,πχϕ)](38)\frac{\mathrm{d}\mathcal{L}_T}{\mathrm{d}\phi} = \mathbb{E}_{p(\theta_{0:L})p(h_T\mid\theta_0,\pi^\phi_\chi)}\left[R_\phi(h_T)\frac{\mathrm{d}}{\mathrm{d}\phi}\log p(h_T\mid\theta_0,\pi^\phi_\chi) - \frac{\mathrm{d}}{\mathrm{d}\phi}\log\sum_{\ell=0}^{L}p(h_T\mid\theta_\ell,\pi^\phi_\chi)\right] \tag*{(38)}

The first term is the score-function contribution from the sampled outcomes, while the second differentiates the contrastive objective directly through the deterministic designs. This is the estimator of Foster et al. [33]. We note that the resulting gradient resembles the deterministic policy gradient used in DDPG (Lillicrap et al., [56]). The important distinction is that, rather than differentiating through a learned critic Q(s,a)Q(s,a), we differentiate the sPCE objective directly. Since the distribution over observations entering this objective depends on the design, its derivative contains a score-function term.

Stochastic policies

For a stochastic, non-reparametrised policy, xt∼πχϕ(⋅∣ht−1)x_t \sim\pi^\phi_\chi(\cdot\mid h_{t-1}), and the rollout density is

p(hT∣θ,πχϕ)=∏t=1Tπχϕ(xt∣ht−1)p(yt∣θ,xt,ht−1).(39)p(h_T \mid\theta,\pi^\phi_\chi)=\prod_{t=1}^{T}\pi^\phi_\chi(x_t \mid h_{t-1})p(y_t \mid\theta,x_t,h_{t-1}). \tag*{(39)}

Substituting this into the sPCE likelihood ratio, the policy factors cancel because they are identical for every θℓ\theta_\ell:

R(hT)=log⁡∏t=1Tp(yt∣θ0,xt,ht−1)∑ℓ=0L∏t=1Tp(yt∣θℓ,xt,ht−1).R(h_T)=\log\frac{\prod_{t=1}^{T}p(y_t \mid\theta_0,x_t,h_{t-1})}{\sum_{\ell=0}^{L}\prod_{t=1}^{T}p(y_t \mid\theta_\ell,x_t,h_{t-1})}.

This cancellation removes the explicit policy density from the reward, but it is not what prevents direct differentiation through RR. The key distinction from the deterministic case is that the designs are now sampled from a non-reparametrised distribution. Once a rollout has been realised, the sampled x1:Tx_{1:T} are treated as fixed when differentiating with respect to ϕ\phi, so there is no pathwise derivative from ϕ\phi through the realised designs to the likelihood terms in R(hT)R(h_T). Therefore

ddϕR(hT)=0\frac{\mathrm{d}}{\mathrm{d}\phi}R(h_T)=0

for the realised trajectory, and the dependence of the objective on ϕ\phi is instead captured through how ϕ\phi changes the distribution over sampled designs.

Using Equation (36), the remaining derivative is the score of the stochastic rollout distribution. Holding the realised history fixed,

ddϕlog⁡p(hT∣θ0,πχϕ)=∑t=1Tddϕlog⁡πχϕ(xt∣ht−1),\frac{\mathrm{d}}{\mathrm{d}\phi}\log p(h_T \mid\theta_0,\pi^\phi_\chi)=\sum_{t=1}^{T}\frac{\mathrm{d}}{\mathrm{d}\phi}\log\pi^\phi_\chi(x_t \mid h_{t-1}),

since the observation likelihood contains no explicit ϕ\phi-dependence when the sampled designs are held fixed. Hence

dLTdϕ=Ep(θ0:L)p(hT∣θ0,πχϕ)[R(hT)∑t=1Tddϕlog⁡πχϕ(xt∣ht−1)].(40)\frac{\mathrm{d}\mathcal{L}_T}{\mathrm{d}\phi}=\mathbb{E}_{p(\theta_{0:L})p(h_T\mid\theta_0,\pi^\phi_\chi)}\left[R(h_T)\sum_{t=1}^{T}\frac{\mathrm{d}}{\mathrm{d}\phi}\log\pi^\phi_\chi(x_t\mid h_{t-1})\right]. \tag*{(40)}

which is the standard REINFORCE policy-gradient estimator used by general reinforcement-learning approaches.

The distinction between the two cases is therefore where the dependence on ϕ\phi enters. For a deterministic policy, the realised designs remain differentiable functions of ϕ\phi, so both the rollout likelihood and the contrastive reward can be differentiated through the designs. For a stochastic, non-reparametrised policy, the realised designs provide no pathwise gradient, and the effect of ϕ\phi is captured entirely through the score of the policy distribution.

JointVarPost and REINFORCE

JointVarPost (Section D.4) co-optimises a variational posterior and a design policy against the Barber-Agakov bound of Equation (58). As with sPCE, a pathwise gradient of that bound is unavailable when the outcomes cannot be reparametrised. We introduce the corresponding score-function estimator as a methodological contribution to the BED literature. We derive it here, which is what allows us to run JointVarPost on the tasks with discrete or censored outcomes.

Write ψ\psi for the variational parameters and ϕ\phi for those of the design policy, so that Equation (58) reads

LBA(ϕ,ψ)=Ep(θ)p(hT∣θ,πχϕ)[Rψ,ϕ(θ,hT)],(41)\mathcal{L}_{\mathrm{BA}}(\phi,\psi)=\mathbb{E}_{p(\theta)p(h_T\mid\theta,\pi^\phi_{\chi})}\left[R_{\psi,\phi}(\theta,h_T)\right], \tag*{(41)}
Rψ,ϕ(θ,hT):=log⁡qψ(θ∣hT)−log⁡p(θ).(42)R_{\psi,\phi}(\theta,h_T):=\log q_\psi(\theta\mid h_T)-\log p(\theta). \tag*{(42)}

The prior term depends on neither set of parameters. When applying REINFORCE, the realised outcomes are treated as constants, having no derivative path back to the designs that produced them, as holds automatically whenever the outcomes are not reparametrisable. The designs themselves remain differentiable functions of ϕ\phi, which is what makes the second term of Equation (44) non-zero.

Proposition 1 (REINFORCE for JointVarPost). Assume the design policy πχϕ\pi^\phi_\chi is deterministic and that log⁡p(y∣θ,x)\log p(y\mid\theta,x) is differentiable with respect to xx. Then, with both expectations taken over p(θ)p(hT∣θ,πχϕ)p(\theta)p(h_T\mid\theta,\pi^\phi_\chi),

dLBAdψ=E[ddψlog⁡qψ(θ∣hT)],(43)\frac{\mathrm{d}\mathcal{L}_{\mathrm{BA}}}{\mathrm{d}\psi}=\mathbb{E}\left[\frac{\mathrm{d}}{\mathrm{d}\psi}\log q_\psi(\theta\mid h_T)\right], \tag*{(43)}
dLBAdϕ=E[Rψ,ϕ(θ,hT)ddϕlog⁡p(hT∣θ,πχϕ)+ddϕRψ,ϕ(θ,hT)].(44)\frac{\mathrm{d}\mathcal{L}_{\mathrm{BA}}}{\mathrm{d}\phi}=\mathbb{E}\left[R_{\psi,\phi}(\theta,h_T)\frac{\mathrm{d}}{\mathrm{d}\phi}\log p(h_T\mid\theta,\pi^\phi_\chi)+\frac{\mathrm{d}}{\mathrm{d}\phi}R_{\psi,\phi}(\theta,h_T)\right]. \tag*{(44)}

Proof. The variational parameters do not enter the sampling distribution, giving Equation (43) immediately. For Equation (44), differentiating under the integral and applying the score-function identity,

dLBAdϕ=Ep(θ)[∫ddϕ{p(hT∣θ,πχϕ)Rψ,ϕ(θ,hT)} dhT](45)\frac{\mathrm{d}\mathcal{L}_{\mathrm{BA}}}{\mathrm{d}\phi}=\mathbb{E}_{p(\theta)}\left[\int\frac{\mathrm{d}}{\mathrm{d}\phi}\left\{p(h_T\mid\theta,\pi^\phi_\chi)R_{\psi,\phi}(\theta,h_T)\right\}\,\mathrm{d}h_T\right] \tag*{(45)}
=E[Rψ,ϕ(θ,hT)ddϕlog⁡p(hT∣θ,πχϕ)+ddϕRψ,ϕ(θ,hT)].(46)=\mathbb{E}\left[R_{\psi,\phi}(\theta,h_T)\frac{\mathrm{d}}{\mathrm{d}\phi}\log p(h_T\mid\theta,\pi^\phi_\chi)+\frac{\mathrm{d}}{\mathrm{d}\phi}R_{\psi,\phi}(\theta,h_T)\right]. \tag*{(46)}

The two sets of parameters behave quite differently. The variational parameters never enter the sampling distribution, so Equation (43) is an ordinary pathwise gradient, and maximising it with respect to ψ\psi amounts to amortised maximum likelihood: fitting qψq_\psi to the posterior on the histories the current policy generates. Neither the form of the policy nor the reparametrisability of the outcomes affects the ψ\psi gradient, since both only affect how ϕ\phi acts on the sampling distribution; the score-function estimator is therefore needed for ϕ\phi alone.

The two gradients are nonetheless coupled. The reward Rψ,ϕR_{\psi,\phi} is itself learned, depending on the current variational parameters, whereas the sPCE reward of Equation (32) is determined by the model alone. Early in training the policy is therefore rewarded for histories on which an under-fitted qψq_\psi happens to score well. The bound of Equation (58) remains valid throughout, since it holds for any qψq_\psi, but its tightness, and hence the quality of the signal reaching the policy, improves only as the posterior is fitted.

For a stochastic, non-reparametrised policy the realised designs provide no pathwise gradient through the reward, so the reward, now written RψR_\psi, loses its dependence on ϕ\phi, the second term of Equation (44) vanishes, and the score becomes that of the policy,

dLBAdϕ=E[Rψ(θ,hT)∑t=1Tddϕlog⁡πχϕ(xt∣ht−1)].(47)\frac{\mathrm{d}\mathcal{L}_{\mathrm{BA}}}{\mathrm{d}\phi}=\mathbb{E}\left[R_\psi(\theta,h_T)\sum_{t=1}^{T}\frac{\mathrm{d}}{\mathrm{d}\phi}\log\pi^\phi_\chi(x_t\mid h_{t-1})\right]. \tag*{(47)}

In both cases the score term admits a baseline, and we use a leave-one-out control variate.

ActionBED and REINFORCE

The original ActionBED work of Rossa et al. [77] mentions that non-reparametrisable likelihoods (e.g., when yy is discrete) can be handled using a REINFORCE estimator (Williams, [91]) of the policy gradients. However, Rossa et al. [77] do not include the necessary details for actually carrying this out (which are nontrivial), and do not perform any experiments in the non-reparametrisable setting. In this section, we derive a novel REINFORCE estimator that is compatible with ActionBED, enabling us to apply ActionBED to tasks with non-reparametrisable likelihoods.

Write ϕ\phi for the collection of all policy parameters, including both the design and action policies, so that πXϕ\pi_{\mathsf{X}}^{\phi} is our design policy and πAϕ\pi_{\mathsf{A}}^{\phi} is our action policy. For a downstream loss ℓ(a,θ)\ell(a,\theta), we define the loss L(ϕ)\mathcal{L}(\phi) on parameters via

L(ϕ)=Ep(θ)p(hT∣θ,πXϕ)[ℓ(πAϕ(hT),θ)].(48)\mathcal{L}(\phi) = \mathbb{E}_{p(\theta)p(h_T\mid\theta,\pi_{\mathsf{X}}^{\phi})}\left[\ell\left(\pi_{\mathsf{A}}^{\phi}(h_T),\theta\right)\right]. \tag*{(48)}

We do not assume the likelihood is reparametrisable, but we will assume that the log-likelihood evaluations are differentiable with respect to the designs. This is frequently the case in many BED settings of interest. We have the following REINFORCE style gradient expression.

Proposition 2 (REINFORCE for ActionBED). Assume that the design policy πX\pi_{\mathsf{X}} is deterministic and the log-likelihood p(y∣θ,x)p(y\mid\theta,x) is differentiable with respect to xx. Then,

dLdϕ=Ep(θ)p(hT∣θ,πXϕ)[ℓ(πAϕ(hT),θ)(ddϕlog⁡p(hT∣θ,πXϕ))+ddϕℓ(πAϕ(hT),θ)].(49)\frac{\mathrm{d}\mathcal{L}}{\mathrm{d}\phi} = \mathbb{E}_{p(\theta)p(h_T\mid\theta,\pi_{\mathsf{X}}^{\phi})}\left[\ell\left(\pi_{\mathsf{A}}^{\phi}(h_T),\theta\right)\left(\frac{\mathrm{d}}{\mathrm{d}\phi}\log p(h_T\mid\theta,\pi_{\mathsf{X}}^{\phi})\right) + \frac{\mathrm{d}}{\mathrm{d}\phi}\ell\left(\pi_{\mathsf{A}}^{\phi}(h_T),\theta\right)\right]. \tag*{(49)}

Proof. Using the log-derivative trick,

dLdϕ=Ep(θ)[∫ddϕ(ℓ(πAϕ(hT),θ)p(hT∣θ,πXϕ)) dhT](50)\frac{\mathrm{d}\mathcal{L}}{\mathrm{d}\phi} = \mathbb{E}_{p(\theta)}\left[\int\frac{\mathrm{d}}{\mathrm{d}\phi}\left(\ell\left(\pi_{\mathsf{A}}^{\phi}(h_T),\theta\right)p(h_T\mid\theta,\pi_{\mathsf{X}}^{\phi})\right)\,\mathrm{d}h_T\right] \tag*{(50)}
=Ep(θ)[∫(ℓ(πAϕ(hT),θ)ddϕp(hT∣θ,πXϕ)+p(hT∣θ,πXϕ)ddϕℓ(πAϕ(hT),θ)) dhT](51)= \mathbb{E}_{p(\theta)}\left[\int\left(\ell\left(\pi_{\mathsf{A}}^{\phi}(h_T),\theta\right)\frac{\mathrm{d}}{\mathrm{d}\phi}p(h_T\mid\theta,\pi_{\mathsf{X}}^{\phi}) + p(h_T\mid\theta,\pi_{\mathsf{X}}^{\phi})\frac{\mathrm{d}}{\mathrm{d}\phi}\ell\left(\pi_{\mathsf{A}}^{\phi}(h_T),\theta\right)\right)\,\mathrm{d}h_T\right] \tag*{(51)}
=Ep(θ)[∫p(hT∣θ,πXϕ)(ℓ(πAϕ(hT),θ)ddϕlog⁡p(hT∣θ,πXϕ)+ddϕℓ(πAϕ(hT),θ)) dhT](52)= \mathbb{E}_{p(\theta)}\left[\int p(h_T\mid\theta,\pi_{\mathsf{X}}^{\phi})\left(\ell\left(\pi_{\mathsf{A}}^{\phi}(h_T),\theta\right)\frac{\mathrm{d}}{\mathrm{d}\phi}\log p(h_T\mid\theta,\pi_{\mathsf{X}}^{\phi})+\frac{\mathrm{d}}{\mathrm{d}\phi}\ell\left(\pi_{\mathsf{A}}^{\phi}(h_T),\theta\right)\right)\,\mathrm{d}h_T\right] \tag*{(52)}
=Ep(θ)p(hT∣θ,πXϕ)[ℓ(πAϕ(hT),θ)(ddϕlog⁡p(hT∣θ,πXϕ))+ddϕℓ(πAϕ(hT),θ)].(53)= \mathbb{E}_{p(\theta)p(h_T\mid\theta,\pi_{\mathsf{X}}^{\phi})}\left[\ell\left(\pi_{\mathsf{A}}^{\phi}(h_T),\theta\right)\left(\frac{\mathrm{d}}{\mathrm{d}\phi}\log p(h_T\mid\theta,\pi_{\mathsf{X}}^{\phi})\right)+\frac{\mathrm{d}}{\mathrm{d}\phi}\ell\left(\pi_{\mathsf{A}}^{\phi}(h_T),\theta\right)\right]. \tag*{(53)}

Note that the second summand in this expression is a total derivative, and that hTh_T itself depends on ϕ\phi through the policy πXϕ\pi_{\mathsf{X}}^{\phi}.

In the special case that the two policies do not share any parameters, i.e., ϕ=(ϕX,ϕA)\phi=(\phi_{\mathsf{X}},\phi_{\mathsf{A}}) separates into two subsets such that our policies are πXϕX\pi_{\mathsf{X}}^{\phi_{\mathsf{X}}} and πAϕA\pi_{\mathsf{A}}^{\phi_{\mathsf{A}}}, we see from Proposition 2 that our loss gradients take the simpler form

dLdϕA=Ep(θ)p(hT∣θ,πXϕX)[ddϕAℓ(πAϕA(hT),θ)](54)\frac{\mathrm{d}\mathcal{L}}{\mathrm{d}\phi_{\mathsf{A}}} = \mathbb{E}_{p(\theta)p(h_T\mid\theta,\pi_{\mathsf{X}}^{\phi_{\mathsf{X}}})}\left[\frac{\mathrm{d}}{\mathrm{d}\phi_{\mathsf{A}}}\ell\left(\pi_{\mathsf{A}}^{\phi_{\mathsf{A}}}(h_T),\theta\right)\right] \tag*{(54)}
dLdϕX=Ep(θ)p(hT∣θ,πXϕX)[ℓ(πAϕA(hT),θ)(ddϕXlog⁡p(hT∣θ,πXϕX))+ddϕXℓ(πAϕA(hT),θ)].(55)\frac{\mathrm{d}\mathcal{L}}{\mathrm{d}\phi_{\mathsf{X}}} = \mathbb{E}_{p(\theta)p(h_T\mid\theta,\pi_{\mathsf{X}}^{\phi_{\mathsf{X}}})}\left[\ell\left(\pi_{\mathsf{A}}^{\phi_{\mathsf{A}}}(h_T),\theta\right)\left(\frac{\mathrm{d}}{\mathrm{d}\phi_{\mathsf{X}}}\log p(h_T\mid\theta,\pi_{\mathsf{X}}^{\phi_{\mathsf{X}}})\right)+\frac{\mathrm{d}}{\mathrm{d}\phi_{\mathsf{X}}}\ell\left(\pi_{\mathsf{A}}^{\phi_{\mathsf{A}}}(h_T),\theta\right)\right]. \tag*{(55)}

That is, gradients for the action policy are the usual pathwise gradients as ϕA\phi_{\mathsf{A}} does not affect the sampling distribution. On the other hand, the design policy gradient includes terms coming from the REINFORCE estimator.

Downstream Losses

One way in which we evaluate design policies in this work is through fitting a downstream action policy on top of a frozen design policy. This section contains additional details regarding this evaluation. These losses are additionally used to train ActionBED [77] policies.

We consider two closely related downstream decisions: our action aa is either a prediction of θ\theta or of log⁡θ\log\theta. On some tasks, θ\theta is naturally on a log-scale, making the latter a more appropriate target. Both can be handled under the same framework via the reparametrisation θ↦log⁡θ\theta\mapsto\log\theta. We predict θ\theta on all tasks except for temporal discounting and CES, where we predict log⁡θ\log\theta. Note that in Table 13, MSE and CMSE on temporal discounting and CES refer to errors on log⁡θ\log\theta. We define ϑ\vartheta as the prediction target.

In both cases, a,ϑ∈RdΘa,\vartheta\in\mathbb{R}^{d_\Theta} have the same dimensionality, so that if a=(a1,…,adΘ)a = (a_1,\ldots,a_{d_\Theta}) and ϑ=(ϑ1,…,ϑdΘ)\vartheta= (\vartheta_1,\ldots,\vartheta_{d_\Theta}), we may define the coordinate-wise error ei=ai−ϑie_i = a_i - \vartheta_i. We consider two losses. The first is the usual mean-squared-error (MSE) loss

ℓMSE(a,ϑ)=1dΘ∥a−ϑ∥2=1dΘ∑i=1dΘei2.(56)\ell_{\mathrm{MSE}}(a,\vartheta) = \frac{1}{d_\Theta}\lVert a-\vartheta\rVert^2 = \frac{1}{d_\Theta}\sum_{i=1}^{d_\Theta} e_i^2. \tag*{(56)}

We also consider the combined MSE (CMSE) loss ([77]), which simultaneously measures predictive accuracy on the scale of the prediction target as well as accuracy on a finer-grained log scale, via

ℓCMSE(a,ϑ)=1dΘ∑i=1dΘ(ei2+log⁡(ei2+ϵ))(57)\ell_{\mathrm{CMSE}}(a,\vartheta) = \frac{1}{d_\Theta}\sum_{i=1}^{d_\Theta}\left(e_i^2+\log(e_i^2+\epsilon)\right) \tag*{(57)}

where 0<ϵ≪10 < \epsilon\ll1 is a small positive constant added for numerical stability; we use ϵ=10−6\epsilon= 10^{-6} throughout. For the sake of consistent reporting, we follow ActionBED ([77]) and normalise by the dimensionality dΘd_\Theta of the space, which allows for comparison across tasks of different dimensions.

Permutation Invariant Lossess. For some tasks, the parameter θ\theta consists of a set of objects θ={θ1′,…,θK′}\theta= \{\theta'_1,\ldots,\theta'_K\} whose order does not matter. For example, in location finding, KK represents the number of sources, and each θk′∈RdΘ′\theta'_k \in\mathbb{R}^{d'_\Theta} is a source location. In this case, we do not want to penalise an action which recovers the object but happens to be in a different order from θ\theta. In this case, we report permutation-invariant versions of the MSE and CMSE by calculating the loss for all K!K! permutations of θ\theta and reporting the minimal value. For small values of KK, this comes with negligible overhead. Location Finding is currently the only task for which this applies. An intuitive alternative is to sort the objects in θ\theta e.g. by their norm, but this requires the action policy to reproduce that ordering, which is an unnecessarily additional challenge.

Training and Parametrisation. Our action policy is parametrised by an MLP having widths [T⋅(dX+dY),512,256,128,dΘ][T \cdot(d_X+d_Y), 512, 256, 128, d_\Theta] and using GELU activations (Hendrycks & Gimpel [38]). We use the same MLP architecture for our action policy across all tasks. Note this is the same action policy architecture used for ActionBED ([77]) as well. We train for 25 000 gradient steps using Adam (Kingma & Ba (2014)) with β=(0.8,0.998)\beta= (0.8, 0.998) and an initial learning rate of 5×10−45 \times10^{-4} which we decay by a factor of γ=0.95\gamma= 0.95 every 1 000 steps. We use a batch size of 2 000 during training and final evaluation uses 8 192 rollouts.

Methods

In this section, we provide additional details on each of the methods implemented in TestBED. As discussed in § 3, new methods can be readily implemented within our framework.

Random

As a simple baseline, TestBED implements RandomDesigner, which draws designs i.i.d. from a specified distribution. By default, this distribution is inherited from the design prior of the task the designer is constructed with (Section A.1). For example, unconstrained spaces use a standard Gaussian, box design spaces use a uniform distribution, and more general reparametrised spaces (e.g., temporal discounting) sample a latent Gaussian before applying the reparametrisation. While TestBED supports the use of general distributions within this designer, and task-specific heuristics could potentially serve as stronger baselines, these defaults provide a convenient starting point.

Static

For a non-adaptive baseline, we consider static design optimisation, where all TT designs are jointly optimised up-front. This is provided in TESTBED via StaticDesigner. In general, many different techniques could be applied towards optimising a static batch of designs, and TESTBED is agnostic to this choice.

In our benchmarks, we train the static designs by maximising the sPCE lower bound on the EIG (Equation (59)). For the CES and temporal discounting task we use REINFORCE (Section B) with a leave-one-out baseline and for all other directly take the gradient of our sPCE estimator. During training we use L=4 096L = 4\,096 inner samples on all tasks, except for Location Finding, CES, and Double Pendulum where we use L=8 192L = 8\,192 as the sPCE lower bound saturated for these tasks during training.

All designs are optimised using Adam (Kingma & Ba, 2014) for 10 000 gradient steps at a fixed learning rate of 5×10−35 \times10^{-3}, except for Double Pendulum where the cost of training at a high values of TT, LL limited us to 5 000 gradient steps. This was sufficient for convergence across all tasks. To avoid local optima, we train five random restarts in parallel and select the restart that achieved the highest SPCE in a held-out evaluation with L=106L = 10^{6} and 2 048 rollouts (which is independent of the final evaluation reported in our results). Each random restart is initialised via a standard Gaussian which is reparametrised through the design space of the task if necessary.

Deep Adaptive Design (DAD)

DAD was a method introduced by Foster et al. [33] and was the seminal work transitioning BED to a policy-based paradigm. Conceptually, it describes the idea of amortising adaptive design by optimising a (possibly deep) policy against a non-myopic objective, taking the whole TT-step rollout into account rather than only one step at a time. The key conceptual idea of DAD to use the history of designs and observations itself as the state, rather than relying on any posterior approximations throughout the design process; a number of policy-based approaches in the literature directly apply this key idea: iDAD (Ivanova et al. [49]), RL-BOED (Blau et al. [16]), Step-DAD (Hedman et al. [36]), ActionBED (Rossa et al. [77]), JointVarPost (Phillips et al. [70]) and ALINE (Huang et al. [43]) are all, in this sense, DAD methods. Conflating the general idea with the particular implementation details in the original paper (e.g., choice of policy network architecture) is a common source of confusion in the literature.

Throughout this work, when referring to DAD in results we are referring to the specific instantiation of Foster et al. [33], namely a policy trained to maximise the EIG through the sPCE lower bound (Equation (59)), with contrastive samples drawn from the prior and one gradient step taken per sPCE evaluation. We emphasize that DAD as a method is not tied to the particular DeepSets architecture used in the original paper, as shown in our experiments. Our hyperparameter settings are given in Table 3.

ParameterValue
Gradient estimatorPathwise (REINFORCE with leave-one-out baseline on CES, Temporal Discounting)
Contrastive samples, LL2 000
Outer samples, BB2 048 (1 024 on Double Pendulum, Cart Pole due to memory)
Initial learning rate10−410^{-4}
Betas(0.9, 0.999)
Gradient clipping1.0 (none on Temporal Discounting)
Decay factor, γ\gammaNone (CES: 0.9938; Temporal Discounting: 0.96)
Annealing frequency1 000 steps (used on CES and Temporal Discounting only)

Table 3. Training hyperparameters for DAD. Values apply to all eight benchmark tasks with exceptions explicitly called out.

Two points of note. Firstly, within Table 13 we use the shared attention design network of § 5 rather than the DeepSets network variants of the original paper. Secondly, where outcomes are not reparametrisable we estimate the gradient with REINFORCE (Section B) adding an additional leave-one-out baseline compared to existing literature. This applies to temporal discounting because the responses are discrete, and to CES because its outcome, a censored sigmoid of a Gaussian, places much of its mass on the two censoring atoms, where the pathwise gradient discards the term describing how the censoring probability responds to the design.

Joint Variational Posterior (JointVarPost)

This approach optimises a design policy by targeting a variational lower bound on EIG (Equation (58)).

I(π)≥Ep(θ)p(hT∣θ,π)[log⁡qψ(θ∣hT)−log⁡p(θ)](58)\mathcal{I}(\pi) \ge\mathbb{E}_{p(\theta)p(h_T\mid\theta,\pi)}\left[\log q_\psi(\theta\mid h_T)-\log p(\theta)\right] \tag*{(58)}

which is tight when qψq_\psi recovers the true posterior but remains a valid lower bound regardless of the variational fit. Barber & Agakov [5] introduced Equation (58) as a bound on mutual information and Foster et al. [31] first brought this machinery to BED, recognising the equivalence of EIG and MI, thereby introducing a practical EIG objective alongside a complementary marginal-based upper bound. Foster et al. [32] proposed jointly optimising the design and variational parameters in a single stochastic gradient procedure. Phillips et al. [70] generalised this to a policy-based procedure, and we follow their implementation closely in this work, including choices of variational family.

Our implementation co-optimises qψq_\psi and the policy from scratch, with no separate posterior-pretraining phase (Phillips et al., [70]). The policy network is the shared attention architecture of § 5 and is identical to the one DAD uses (Section D.3), so on each task the two methods differ only in the objective that trains the policy. Training hyperparameter settings are provided in Table 4. Note that the Barber-Agakov bound has no contrastive axis, relieving a memory pressure that exists within DAD’s sPCE-based training (Section D.3). The gradient estimator follows the same split as DAD: pathwise where the outcomes are reparametrisable, and REINFORCE with a leave-one-out baseline on temporal discounting and CES.

Table 4: Training hyperparameters for JointVarPost. Values apply to all eight benchmark tasks with exceptions explicitly called out. The policy and the posterior networks are optimised jointly from scratch, so there is no pretraining phase unlike variants within Phillips et al. [70].

ParameterValue
Gradient estimatorPathwise (REINFORCE with leave-one-out baseline on CES, Temporal Discounting)
Outer samples, BB2 048
Posterior pretraining steps0
Mixture components10
Policy learning rate10−510^{-5}, cosine decay to 5×10−65 \times10^{-6}
Policy betas(0.9, 0.999)
Policy gradient clipping1.0
Policy EMA decay0.99
Posterior net learning ratePeak 10−310^{-3}, warmup over the first 0.1% of steps, cosine decay to 10−610^{-6}
Posterior net betas(0.9, 0.999)
Posterior net gradient clipping1.0
Schedule horizon200 000 steps (280 000 on Michaelis-Menten, Temporal Discounting; 600 000 on CES, Pharmacokinetic)

Table 4.

The variational posterior is a 10-component conditional mixture of Gaussians with an attention encoder that mirrors the design network (Phillips et al., [70]). Its architecture is shown in Figure 6 and set out in full in Table 5. Since the encoder dominates the parameter count and only the output heads differ, the posterior network has ∼\sim670k trainable parameters across the eight tasks, closely matching the ∼\sim650k of the attentive design network it is trained alongside. When θ\theta is constrained, the mixture is defined over unconstrained coordinates that are pushed forward onto the support of the prior through a task/θ\theta-specific bijection: an exponential map where θ\theta is strictly positive, a squashed affine map where it is bounded to an interval, and a stick-breaking map for the simplex-valued component of CES. Placing a Gaussian mixture in θ\theta’s own coordinate space would otherwise put mass outside the support and, where θ\theta occupies a lower-dimensional manifold as in CES, give a density with respect to the wrong measure, leaving the Barber-Agakov gain unbounded above and the bound meaningless. On location finding we additionally canonicalise the source ordering, since the K=2K = 2 sources are exchangeable and the label-switching symmetry would otherwise have to be learned.

Table 5: Architecture of the variational posterior network used within the JointVarPost method. The encoder mirrors the shared design network of § 5; the mixture readout replaces its design head. DD denotes the dimension of the space the mixture is defined over, which is dΘd_{\Theta} where θ\theta is unconstrained and the dimension of the unconstrained coordinates otherwise.

ComponentValue
Token encoderMLP with widths [dX+dY,256,128][d_X + d_Y, 256, 128] and GELU after each hidden layer (no activation on the output)
Time embeddingLearned, dimension 128
Transformer blocks3 blocks, width 128, 4 heads
PoolingLearned CLS token
TrunkLinear 128→128128 \to128 followed by GELU
Output headsThree linear heads from the trunk: component means (mDm_D), diagonal log standard deviations (mDm_D), mixing logits (mm)
Mixture components, mm10
Log std. dev. rangeClamped to [−7,3][-7, 3]
Support transformIdentity (Location Finding); exponential (Pharmacokinetic, Stochastic Pendulum, Cart Pole, Double Pendulum); exponential and affine (Temporal Discounting); squashed affine (Michaelis-Menten); squashed affine, stick-breaking and exponential (CES)
CanonicalisationSource ordering sorted on Location Finding only
Trainable parameters669k to 675k depending on the task

Table 5.

Variational posterior network used by JointVarPost

Figure 6. The variational posterior network used by JointVarPost. Each history pair is embedded, a time embedding is added, and a learned CLS token is appended as an extra position; the resulting T+1T+1 tokens are normalised and then pass through the pre-norm transformer blocks, each applying x↦x+MHA⁡(LN⁡(x))x \mapsto x + \operatorname{MHA}(\operatorname{LN}(x)) and then x↦x+MLP⁡(LN⁡(x))x \mapsto x + \operatorname{MLP}(\operatorname{LN}(x)). The CLS position is read out and passed to the mixture head, whose three linear heads parametrise a mm-component Gaussian mixture over unconstrained coordinates zz, which a task-specific bijection pushes onto the support of θ\theta. Note, each history token tt carries the time embedding of tt while the CLS token carries the embedding of index tt, the position it occupies at the end of the history so that the readout knows how many experiments have been run. Additional details are provided in Table 5.

RL-BOED

RL-BOED (Blau et al., [16]) formulates sequential BED as a Markov decision process (MDP, Bellman, [10]; Puterman [72]) and learns the design policy with reinforcement learning. It was introduced to address two shortcomings of DAD, that of requiring differentiable likelihoods and continuous design spaces. Beyond the use of RL algorithms for policy learning, the main difference to DAD is a dense reward over time steps: the sPCE is decomposed into a telescoping sum where the tt-th term is the contribution of the tt-th experiment. This keeps the terminal objective unchanged while improving credit assignment.

The implementation in TESTBED is written in plain PyTorch without any dependencies on third-party RL libraries. The only methodological difference to the authors’ original code2 is that we use Soft Actor-Critic (SAC, Haarnoja et al., [35]) instead of REDQ to optimize the policy.3 REDQ is itself a modification of SAC (it adds an ensemble of critics and a high update-to-data ratio) designed to improve sample efficiency in settings where environment interaction is costly. In sequential BED the environment is the probabilistic model itself, so transitions are (usually) cheap to simulate and

sample efficiency is not the binding constraint; the additional critic updates therefore buy little at considerable computational cost. Consistent with this, our implementation matches or exceeds the performance reported by Blau et al. [16] on all tasks they consider.

While we only implement SAC, TESTBED already provides the building blocks common to modern off-policy RL algorithms: actor and critic networks, a replay buffer, and the environment wrapper that exposes the sequential BED problem as an MDP (including the telescoping stage rewards). Implementing an alternative algorithm therefore amounts to overriding the train step for RL-BOED, leaving the remainder of the training loop untouched. REDQ, for instance, differs from SAC only in the number of critics and the update-to-data ratio, and hence requires minimal changes to the existing code.

Our implementation also uses the attention-based architecture for the design policy (the actor) described in Section E, but the same critic networks as the original implementation, and the hyperparameters are also the same, with some task-specific variations. Our hyperparameter settings are given in Table 6, with the settings that vary by task given in Table 7. For instance, on Stochastic Pendulum and Cart Pole we use a discount factor γ=0.99\gamma= 0.99 instead of the default γ=0.9\gamma= 0.9 from the paper.

ParameterValue
RL algorithmSoft Actor-Critic with twin critics and a learned temperature
Actor networkShared attention architecture (Section E): encoder width 256, embedding dimension 128, 4 heads, 3 blocks
Critic networksDeepSets encoder and readout MLP with hidden widths [128, 128], embedding dimension 64, as in the original implementation
Policy headGaussian squashed by tanh into the design box, with log σ∈[−20,0]\sigma\in[-20, 0] and initial σ=3−1/2\sigma= 3^{-1/2} before squashing
RewardDense (telescoping) sPCE reward with L=100 000L = 100\,000 contrastive samples
Episodes per iteration100 (parallel environments)
Gradient steps per iteration64
Batch size4,096 transitions
Replay buffer size10610^6 transitions (10710^7 on Location Finding)
Learning starts after100,000 transitions
OptimiserAdam
Critic learning rate3×10−43 \times10^{-4}
Actor learning rate3×10−43 \times10^{-4} (10−410^{-4} on Location Finding); also used for the temperature
Discount factor, γ\gamma0.9 (0.99 on Stochastic Pendulum, Cart Pole)
Target smoothing, τ\tau0.001 (0.005 on Temporal Discounting, CES, Pharmacokinetic, Michaelis-Menten)
Initial temperature1
Target entropyInitially −dX-d_X (the negative design dimension), reduced by 7.143×10−57.143 \times10^{-5} per iteration up to a total reduction of 1.429 (reached after about 20,000 iterations)

Table 6. Training setup and hyperparameters for RL-BOED. Values apply to all eight benchmark tasks with exceptions explicitly mentioned. The bounded design space and outcome normalisation range used for each task are given in Table 7.

TaskDesign boxOutcome range
Location Finding†[−4,4]2[-4, 4]^2[−3,10][-3, 10]
Temporal Discounting†D1∈[0.5,200]D_1 \in[0.5, 200], R0∈[1,99]R_0 \in[1, 99][0,1][0, 1]
CES†[0.01,100]6[0.01, 100]^6[0,1][0, 1]
Pharmacokinetic[0,24][0, 24][−2,70][-2, 70]
Michaelis-Menten[0,400][0, 400][−10,210][-10, 210]
Stochastic Pendulum[−1,1][-1, 1][−10,10][-10, 10]
Cart Pole[−5,5][-5, 5][−10,10][-10, 10]
Double Pendulum[−4,4]×[−2,2][-4, 4] \times[-2, 2][−10,10][-10, 10]

Table 7. Task-specific RL-BOED settings. Design box is the bounded design space used to train and evaluate RL-BOED (Section D.5), and equals the task’s own design space except where marked †: on Location Finding the task is unbounded, on Temporal Discounting it is D1≥0D_1 \ge0, R0∈[0,100]R_0 \in[0, 100], and on CES it is [0,100]6[0, 100]^6. Outcome range is the reference range used to rescale outcomes before they enter the actor and critics; outcomes outside it are not clipped.

RL-BOED requires a bounded design space. We therefore train it on the boxes given in Table 7, which for Location Finding and Temporal Discounting are tighter than the design spaces of the tasks themselves, and for CES differ in having a lower bound of 0.01 rather than 0. These bounds restrict only which designs the policy is able to propose: the prior and likelihood of every task are unchanged, and the sPCE and sNMC estimators used in our final evaluation depend only on these. The reported bounds are therefore estimates of the same EIG as for the other methods, although the RL-BOED policy is trained and evaluated on the bounded space.

ALINE

ALINE [43] is an amortized algorithm for BED that jointly trains a design policy and an inference network for posterior distributions. It uses an Attention-based architecture, in particular a Transformer Neural Process [63], that serves as a common spine for both the design and inference networks, which are learned jointly. The inference network is trained to minimize the negative log likelihood of true parameter values, while the design network is trained to maximize the sum of the incremental EIGs over a rollout.

The implementation of ALINE in TESTBED is faithful to the authors’ specification and their official code,4 with the following exceptions:

  • The TESTBED implementation only supports maximizing the EIG in the full set of hidden parameters of a task, just like the other methods. The original method is more general, and allows targeting the EIG in a subset of the hidden parameters as well as the expected predictive information gain (EPIG, [12]). These cases can still be handled in TESTBED, but require a new Task definition rather than a change in the algorithm’s configuration.

  • The original implementation always samples the first design randomly, then the rest are sampled from the policy. The TESTBED implementation samples all designs from the policy, to be consistent with the other methods. Consequently, the policy is rewarded for all TT designs rather than the last T−1T - 1, and the inference network is also trained on the empty history, i.e., to predict the prior.

  • ALINE training is split into two phases, where in the first phase only the inference network is trained. During this phase, in the original code the designs are sampled from the untrained policy network. Here we choose to sample them from a uniform distribution over the design space instead.

  • TESTBED has an option to apply a fixed affine rescaling to the designs and outcomes before they are passed to the network, which is disabled by default.

Hyperparameters for our benchmark runs are given in Table 8, network sizes in Table 10, and settings that vary by task in Table 9. The reproduction below instead uses the original hyperparameters and network sizes. We enable the fixed rescaling of designs and outcomes on every task except Location Finding and Pharmacokinetic. ALINE selects each design from a finite candidate pool sampled from a box, so, as with RL-BOED Section D.5, it requires a bounded design space and we train it on the boxes in Table 9. This restricts which designs the policy can propose without changing the prior or likelihood of any task, so its sPCE and sNMC estimates are of the same EIG as for the other methods, although the ALINE policy is trained and evaluated on the bounded space.

ParameterValue
NetworkShared transformer spine for design and inference networks; embedding dimension 128, feedforward dimension 384, 4 heads, 3 layers, no dropout, 10-component Gaussian mixture posterior head
Warm-up iterations20,000 (inference network only, with designs drawn uniformly from the design space)
Outer samples per iteration200 rollouts
Candidate pool, training200 designs drawn afresh for each rollout
Candidate pool, evaluation2,000 designs, with the policy acting deterministically
OptimiserAdamW, weight decay 0.01
Learning rateWarm-up: 10−310^{-3} with cosine decay over the full 200,000 iterations. Joint phase: optimiser and cosine schedule restarted, with 10−310^{-3} for the acquisition head and 2×10−42 \times10^{-4} for all other parameters
Gradient clipping1.0 (on the ℓ∞\ell_{\infty} norm of the gradient)
Policy loss weight, α\alpha1.0
Reward discount, γ\gamma1.0
Policy rewardIncremental posterior log-density gains, clipped at zero and standardised across the batch
Canonicalise θ\thetaLocation Finding only (its two sources are exchangeable)

Table 8. Training hyperparameters for ALINE. Values apply to all eight benchmark tasks with exceptions explicitly mentioned. Network sizes are given in Table 10, and the bounded design space and input rescaling used for each task in Table 9.

TaskDesign boxDesign (c;s)(c; s)Outcome (c;s)(c; s)
Location Finding{sup}†`[−4,4]2[-4, 4]^2——
Temporal Discounting{sup}†`[0.5,200]×[1,99][0.5, 200] \times[1, 99](100.25,50);(100.25, 50); (99.75, 49)0.5; 0.5
CES[0,100]6[0, 100]^650; 500.5; 0.5
Pharmacokinetic[0,24][0, 24]——
Michaelis-Menten[0,400][0, 400]200; 200100; 100
Stochastic Pendulum[−1,1][-1, 1]—0; (3, 8)
Cart Pole[−5,5][-5, 5]0; 50; (10, 2, 8, 5)
Double Pendulum[−4,4]×[−2,2][-4, 4] \times[-2, 2]0; (4, 2)0; (8, 10, 12, 25)

Table 9. Task-specific ALINE settings. Design box is the bounded design space used to train and evaluate ALINE (Section D.6), and equals the task’s own design space except where marked †; as with RL-BOED, the Location Finding and Temporal Discounting tasks are modified. Designs and outcomes are rescaled elementwise as (x−c)/s(x - c)/s before being passed to the network; the table gives the centre and scale as (c;s)(c; s). Outcomes are not clipped. A single value applies to every coordinate, and a dash denotes no rescaling.

OriginalBenchmark
Embedding dimension32128
Feedforward dimension128384
Parameters (total)97.5K1.15M
Parameters (policy)51.4K647K

Table 10. Network sizes of ALINE in the original paper, which we also use for the reproduction in Table 11, and in our benchmark. Both use 4 attention heads, 3 transformer layers and a 10-component Gaussian mixture posterior head. The design policy comprises every parameter except the posterior head. Parameter counts are for location finding; the counts for CES are within 1% of these.

To verify that our changes to ALINE do not affect its performance, we train it on the BED task specifications of the original paper (which differ slightly from those in TESTBED), using the original hyperparameters and network sizes, which are smaller than in our benchmark. To make the results in Table 11 directly comparable, we also follow the original evaluation protocol rather than our own. Since sPCE is a lower bound that grows with the number of contrastive samples LL, we use the original values: L=106L = 10^6 for location finding and L=107L = 10^7 for CES. We also match the original candidate pool: 2000 designs, drawn afresh for each rollout, from which the policy greedily picks one not-yet-chosen design at each step. We train ALINE with 5 random seeds and evaluate the final policy of each on 2048 rollouts. We report the mean sPCE over seeds, with a 95% confidence interval computed from the standard errors over rollouts.

The CES task in TESTBED differs from the one in the original paper in how the scale parameter uu of the latent Gaussian is represented: TESTBED includes u∼LogNormal⁡(1,3)u \sim\operatorname{LogNormal}(1, 3) itself in the hidden parameters, whereas the original includes log⁡u∼N(1,32)\log u \sim\mathcal{N}(1, 3^2). This does not change the EIG, but it gives ALINE’s inference network a heavy-tailed target. In our benchmark, training on this version of the task was numerically unstable unless the designs and outcomes were rescaled to [−1,1][-1, 1] before

being passed to the network, so we enable this rescaling for CES even though the original method has no such step. The reproduction in Table 11, which uses the original log uu parameterization, trained stably without it.

ActionBED

ActionBED (Rossa et al. [77]) is a policy learning method for BED which jointly optimises an action policy πA\pi_A alongside the design policy πX\pi_X in order to minimise a downstream loss function ℓ(a,θ)\ell(a,\theta) defined between actions a∈Aa \in\mathcal{A} and the parameters θ∈Θ\theta\in\Theta, i.e., the objective is

min⁡πA,πXEp(θ)p(hT∣θ,π)[ℓ(πA(hT),θ)].\min_{\pi_A,\pi_X} \mathbb{E}_{p(\theta)p(h_T \mid\theta,\pi)}[\ell(\pi_A(h_T),\theta)].

The action policy πA\pi_A is a small MLP, parametrised as described in Section C. Both networks are trained using a single optimiser.

We compare several different losses for ActionBED in this work: ℓMSE\ell_{\mathrm{MSE}} and ℓCMSE\ell_{\mathrm{CMSE}} on the original scale of θ\theta, as well as ℓMSE−L\ell_{\mathrm{MSE-L}} and ℓCMSE−L\ell_{\mathrm{CMSE-L}}, i.e., the MSE and CMSE losses on ϑ=log⁡θ\vartheta= \log\theta as the prediction target. See Section C. Where available, we follow the optimisation and training procedures described in the original paper. We summarise our hyperparameter choices in Table 12.

ComponentValue
Action networkMLP with widths [T(dX+dY),512,256,128,dΘ][T(d_X + d_Y), 512, 256, 128, d_\Theta] and GELU after each hidden layer (no activation on the output)
Action net. parameters175k to 319k depending on the task
Gradient estimatorPathwise; REINFORCE with a leave-one-out baseline on Temporal Discounting
Action warm-up25,000 steps training on designs sampled at random from the design space
Batch size2,000 rollouts per step
OptimiserAdam, learning rate 5×10−45 \times10^{-4}, β=(0.8,0.998)\beta= (0.8, 0.998)
Learning rate scheduleMultiplied by 0.95 every 2,000 steps after warm-up
Gradient clipping750 by default; 5 on Temporal Discounting

Table 12. Hyperparameters for ActionBED method, shared across all tasks unless stated otherwise.

Network Architectures

This section describes the various architectures used for our design policies. As discussed in § 5, our main benchmark uses a shared attention-based architecture across all methods. This architecture is summarised in Figure 8, and is closely inspired by the TNP-style (Nguyen & Grover [63]) architecture used in ALINE (Huang et al. [43]) and other works (Rossa et al. [77]). Each observation (xs,ys)(x_s, y_s) in a history ht={(xs,ys):s≤t}h_t = \{(x_s, y_s) : s \leq t\} is concatenated to give tt tokens of dimension dX+dYd_X + d_Y, which are passed through a small MLP embedding block to obtain tt fixed-dimensional embeddings. Optionally, learned timestep embeddings are added to these token-wise embeddings. An additional, learned t+1t + 1’th embedding is concatenated to these. The full stack of t+1t + 1 embeddings is passed through a transformer block, and the resulting encoding for the t+1t + 1’th position is used as a readout token, which is passed through a small MLP before being decoded into the resulting design xt+1x_{t+1}.

Attentive design policy network architecture

Figure 8. The attentive design policy network used throughout the benchmark and in the architecture ablation (Table 1). The same encoder is used by the posterior network of Figure 6: each history pair is embedded, a time embedding is added, a learned CLS token is appended, and the t+1t+1 tokens are normalised and passed through three pre-norm transformer blocks. The CLS position is read out and decoded into an unconstrained design x~t+1\tilde{x}_{t+1}, which the design space of the task maps onto the feasible set (Section A.1). The ablation switches the time embedding (dashed) on and off, leaving every other component unchanged. When on, history token ss carries the embedding of ss and the CLS token the embedding of tt; when off, the encoder attends over an unordered set of tokens and is permutation invariant. On location finding the network has 663k trainable parameters with the time embedding and 646k without.

In § 5.2, we perform an architecture ablation in which we replace this attention-based architecture with a simpler DeepSets-based architecture (Foster et al. [33]; Zaheer et al. [94]). This is summarised in Figure 7. Each observation (xs,ys)(x_s, y_s) in a history ht={(xs,ys):s≤t}h_t = \{(x_s, y_s) : s \leq t\} is again concatenated to give tt tokens of dimension dX+dYd_X + d_Y. Optional, learned time embeddings are concatenated with these input tokens. Each of these tokens is passed through a small MLP, and the resulting embeddings are summed over. The result is then passed through a small MLP which decodes this summed embedding into the subsequent design. The t=1t = 1 case is handled by a learnable null encoding.

DeepSets design policy network architecture

Figure 7. The DeepSets design policy network of the architecture ablation (Table 1), following the location finding network of Foster et al. [33]. Each history pair is embedded by a shared per-step MLP and the embeddings are sum-pooled into a 16-dimensional summary, which a decoder maps to an unconstrained design x~t+1\tilde{x}_{t+1} before the design space of the task maps it onto the feasible set (Section A.1). An empty history is encoded by a learned null embedding, which is distinct from Foster et al. [33] who fix it to zero. The ablation switches the time embedding (dashed) off, leaving every other component unchanged. When on, a learned 16-dimensional embedding of ss is concatenated onto history pair ss before the per-step MLP, so it passes through the nonlinearity and reordering the history changes the pooled summary; when off, the encoder is permutation invariant. On location finding the network has 11.4k trainable parameters with the time embedding and 5.2k without.

Additional Empirical Results

This section contains additional experimental results. Section F.1 expands on the results in our main benchmark in § 5.1 by providing tabular versions of our figures, as well as additional ablations not shown in the main paper. Section F.2 studies the choice of variational family in JointVarPost.

Full Benchmarking Results

For our benchmark in § 5.1, we train each method on five random seeds, and report results averaged over these runs.

In Table 13, we present both sNMC upper bounds and sPCE lower bounds of the EIG. These bounds are estimated using L=109L = 10^{9} contrastive samples over N=2048N = 2048 rollouts for all designers considered. These yield tight estimates, with the difference between our lower and upper bounds being smaller than the standard error across seeds in many cases.

Table 14 similarly reports the MSE achieved by the post-hoc action policy fit on top of the frozen designers, as described in Section C. The final loss is estimated using N=8192N = 8192 rollouts. For the ActionBED variants, we re-fit the action policy from scratch, discarding the action policy used in the training of ActionBED itself. This is done for the sake of a fair comparison, eliminating any benefit ActionBED may have gained from co-training its design and action networks. We note this then offers a pessimistic view of ActionBED’s MSE performance.

We also study several loss functions for ActionBED. Our results in § 5.1 use ActionBED (MSE) and ActionBED (CMSE), except on CES and temporal discounting, where we report ActionBED (MSE-L) and ActionBED (CMSE-L). This is because directly predicting θ\theta on these two tasks is impractical, as there θ\theta consists of sub-variables which vary widely in terms of their scaling and signal-to-noise-ratios, making MSE an inappropriate metric. On both of these tasks, the prior p(θ)p(\theta) has components which are log-normal, making a log-scaling natural.

Variational Posterior Ablations

Here, we study the choice of variational family in the JointVarPost method. First, we compare JointVarPost using m=1m = 1 versus m=10m = 10 mixture components in its Gaussian mixture variational family (Section D.4). These results are contained in Table 13. Both m=1m = 1 and m=10m = 10 both offer relatively close performance in terms of both EIG. However, using only a single mixture component tends to outperform m=10m = 10 in terms of downstream MSE. While the m=10m = 10 mixture is more expressive, the variational family only needs to approximate the posterior after all TT experiments have been completed, and in our tasks, the resulting posteriors are often sufficiently concentrated that a single mixture component suffices. Given the surprisingly strong performance of this method, studying the choice of variational family more closely is an important direction for future work.

We further study the effect of transforming the latent Gaussian mixture used to define the variational family. Any qψq_\psi gives a valid Barber-Agakov bound (Equation (58)), but a family that respects the support of θ\theta gives a tighter bound, and hence a better training signal for the policy. On Temporal Discounting, θ=(k,α)\theta= (k, \alpha) with log⁡k∼N(−4.25,1.52)\log k \sim\mathcal{N}(-4.25, 1.5^2) and α∼HalfNormal⁡(2)\alpha\sim\operatorname{HalfNormal}(2). We compare a 10-component mixture placed directly on R2\mathbb{R}^2 with one placed on (log⁡k,α)(\log k, \alpha), the coordinates in which the prior on kk is exactly Gaussian, and pushed through an exponential map on kk. The first wastes mass on k≤0k \le0 and fits the skewed posterior on kk poorly. We leave α\alpha untransformed, since its prior has its mode at zero and log⁡α\log\alpha has a heavy left tail that a Gaussian mixture covers poorly.

As shown in Table 15, the transformed family raises the EIG of the trained policy from 4.33 to 4.56 nats, several standard errors apart. The reported sPCE and sNMC bounds do not depend on qψq_\psi, so this gain comes entirely from better policy training. The two rows differ only in the posterior network. Both use the gated DeepSets design network of previous literature ([33, 36]) on this task (Table 16), 1,024 outer samples and a fixed 200k training steps, so the values are not directly comparable to Table 13. We use the transformed family and distinct policy architecture throughout the benchmark (Table 5).

Variational familyLower BoundUpper Bound
Unconstrained4.327±0.0814.327\pm0.0814.328±0.0814.328\pm0.081
Transformed (exp on kk)4.561±0.0574.561\pm0.0574.561±0.0574.561\pm0.057

Table 15. JointVarPost on Temporal Discounting with two variational families. Unconstrained places the Gaussian mixture directly on θ=(k,α)∈R2\theta= (k, \alpha) \in\mathbb{R}^2. Transformed places it on (log⁡k,α)(\log k, \alpha) and pushes it through an exponential map on kk, leaving α\alpha unchanged. Both give valid Barber-Agakov bounds, but the transformed family puts no mass on k≤0k \le0 and so gives a tighter training signal. The rows differ only in the variational family: both use the gated DeepSets design network (Table 16), 1,024 outer samples, a fixed 200k training steps rather than a time budget, and are evaluated with N=2,048N = 2{,}048 and L=106L = 10^6. Mean ±\pm standard error over five seeds.

ComponentValue
Token encoderMLP on the unconstrained design x~s\tilde{x}_s alone, widths [2,256,256,2×16][2, 256, 256, 2 \times16], Softplus after each hidden layer
Outcome gatingThe two 16-dimensional heads are mixed by the binary outcome, yshs(1)+(1−ys)hs(0)y_sh_s^{(1)} + (1-y_s)h_s^{(0)}
Time embeddingNone
PoolingSum over s≤ts \le t; learned null encoding for the empty history
EmitterMLP with widths [16,256,256,2][16, 256, 256, 2], Softplus after each hidden layer
OutputUnconstrained design (x~d,x~r)(\tilde{x}_d,\tilde{x}_r), mapped to (D1,R0)(D_1,R_0) by the design space

Table 16. Architecture of the gated DeepSets design network used in the variational posterior ablation (Table 15). It follows the Temporal Discounting network of previous literature ([33, 36]); the only difference is that the null encoding is learned rather than fixed to zero.

sPCE and sNMC Estimators of the EIG

As outlined in § 2, the EIG is one of the key metrics used in this work to evaluate the quality of a design policy. However, evaluating the EIG (Equation (1)) is generally challenging because the marginal likelihood p(hT∣π)p(h_T \mid\pi) is typically intractable. Consequently, an extensive literature has developed around estimators and bounds for both evaluating and optimising the EIG (§ 2).

Among the many approaches available, we focus on two commonly used bounds from the literature: sequential variants of the nested Monte Carlo (sNMC) and prior contrastive estimator (sPCE) ([31, 33]). We use these primarily to evaluate the EIG of learned policies, while some of the methods considered also employ them as objectives during training.

Both estimators are constructed from the same set of Monte Carlo samples. We draw NN outer samples (θ0(n),hT(n))∼p(θ,hT∣π)(\theta_0^{(n)}, h_T^{(n)}) \sim p(\theta, h_T \mid\pi) and, for each outer sample, draw LL independent contrastive parameters θ1:L(n)∼p(θ)\theta_{1:L}^{(n)} \sim p(\theta). The two estimators differ in how these samples are used to approximate the marginal likelihood p(hT∣π)p(h_T \mid\pi). In sPCE, the outer parameter θ0(n)\theta_0^{(n)} is included alongside the LL contrastive samples, giving

I^sPCE(π)=1N∑n=1N(log⁡p(hT(n)∣θ0(n),π)−log⁡(1L+1∑ℓ=0Lp(hT(n)∣θℓ(n),π))).(59)\widehat{I}_{\mathrm{sPCE}}(\pi) = \frac{1}{N} \sum_{n=1}^{N} \left( \log p\left(h_T^{(n)} \mid\theta_0^{(n)}, \pi\right) - \log\left(\frac{1}{L+1}\sum_{\ell=0}^{L}p\left(h_T^{(n)} \mid\theta_\ell^{(n)}, \pi\right)\right) \right). \tag*{(59)}

In sNMC, by contrast, the marginal estimate is formed using only the LL independent contrastive samples:

I^sNMC(π)=1N∑n=1N(log⁡p(hT(n)∣θ0(n),π)−log⁡(1L∑ℓ=1Lp(hT(n)∣θℓ(n),π))).(60)\widehat{I}_{\mathrm{sNMC}}(\pi) = \frac{1}{N} \sum_{n=1}^{N} \left( \log p\left(h_T^{(n)} \mid\theta_0^{(n)}, \pi\right) - \log\left(\frac{1}{L}\sum_{\ell=1}^{L}p\left(h_T^{(n)} \mid\theta_\ell^{(n)}, \pi\right)\right) \right). \tag*{(60)}

In expectation, sPCE provides a lower bound on the EIG, whereas sNMC provides an upper bound, with both becoming tight as L→∞L \to\infty. An important caveat is that sPCE is itself upper bounded by log⁡(L+1)\log(L+1) ([31]). It can therefore saturate as either a training objective or an evaluation metric when LL is not sufficiently large. More generally, accurate estimation of the EIG can require very large values of LL, making computationally and memory-efficient implementations particularly important.

References

  1. [1]Jason Ansel, Edward Yang, Horace He, Natalia Gimelshein, Animesh Jain, Michael Voznesensky, Bin Bao, Peter Bell, David Berard, Evgeni Burovski, Geeta Chauhan, Anjali Chourdia, Will Constable, Alban Desmaison, Zachary DeVito, Elias Ellison, Will Feng, Jiong Gong, Michael Gschwind, Brian Hirsh, Sherlock Huang, Kshitijee Kalambarkar, Laurent Kirsch, Michael Lazos, Mario Lezcano, Yanbo Liang, Jason Liang, Yinghai Lu, C. K. Luk, Bert Maher, Yunjie Pan, Christian Pührsch, Matthias Reso, Mark Saroufim, Marcos Yukio Siraichi, Helen Suk, Shunting Zhang, Michael Suo, Phil Tillet, Xu Zhao, Eikan Wang, Keren Zhou, Richard Zou, Xiaodong Wang, Ajit Mathews, William Wen, Gregory Chanan, Peng Wu, and Soumith Chintala. PyTorch 2: Faster machine learning through dynamic Python bytecode transformation and graph compilation. In Proceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2, ASPLOS ’24, pp. 929–947. Association for Computing Machinery, 2024.DOI
  2. [2]Ziqiao Ao and Jinglai Li. On estimating the gradient of the expected information gain in Bayesian experimental design. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pp. 20311–20319, 2024.arxiv.org/abs/2308.09888
  3. [3]K. J. Arrow, H. B. Chenery, B. S. Minhas, and R. M. Solow. Capital-labor substitution and economic efficiency. The Review of Economics and Statistics, 43:225–250, 1961.DOI
  4. [4]Alexander Aushev, Aini Putkonen, Grégoire Clarté, Suyog Chandramouli, Luigi Acerbi, Samuel Kaski, and Andrew Howes. Online simulator-based experimental design for cognitive model selection. Computational Brain & Behavior, 6(4):719–737, 2023.arxiv.org/abs/2303.02227
  5. [5]David Barber and Felix Agakov. Information maximization in noisy channels : A variational approach. In Advances in Neural Information Processing Systems, volume 16, 2003.
  6. [6]Yasir Zubayr Barlas and Kizito Salako. Performance comparisons of reinforcement learning algorithms for sequential experimental design. arXiv preprint arXiv:2503.05905, 2025.arxiv.org/abs/2503.05905
  7. [7]Arved Bartuska, André Gustavo Carlon, Luis Espath, Sebastian Krumscheid, and Raúl Tempone. Multilevel randomized quasi-Monte Carlo estimator for nested integration. arXiv preprint arXiv:2412.07723, 2024.
  8. [8]Mohamed Ishmael Belghazi, Aristide Baratın, Sai Rajeshwar, Sherjil Ozair, Yoshua Bengio, Aaron Courville, and R. Devon Hjelm. Mutual information neural estimation. In International Conference on Machine Learning, 2018.
  9. [9]Federico Belliardo, Erik M. Gauger, Mohamed H. Abobeih, Tim H. Taminiau, Yoann Altmann, and Cristian Bonato. Multidimensional quantum estimation and model learning framework based on variational Bayesian inference. PRX Quantum, 7(2):020360, 2026.
  10. [10]Richard Bellman. A Markovian decision process. Journal of Mathematics and Mechanics, 6(5):679–684, 1957.DOI
  11. [11]José M. Bernardo. Expected information as expected utility. The Annals of Statistics, pp. 686–690, 1979.DOI
  12. [12]Freddie Bickford Smith, Andreas Kirsch, Sebastian Farquhar, Yarin Gal, Adam Foster, and Tom Rainforth. Prediction-oriented Bayesian active learning. In International Conference on Artificial Intelligence and Statistics, 2023.arxiv.org/abs/2304.08151
  13. [13]Freddie Bickford Smith, Jannik Kossen, Eleanor Trollope, Mark van der Wilk, Adam Foster, and Tom Rainforth. Rethinking aleatoric and epistemic uncertainty. International Conference on Machine Learning, 2025.
  14. [14]Lukas Biewald. Experiment tracking with Weights and Biases, 2020. URL https://www.wandb.com/. Software available from wandb.com.
  15. [15]Eli Bingham, Jonathan P. Chen, Martin Jankowiak, Fritz Obermeyer, Neeraj Pradhan, Theofanis Karaletsos, Rohit Singh, Paul Szerlip, Paul Horsfall, and Noah D. Goodman. Pyro: Deep universal probabilistic programming. Journal of Machine Learning Research, 20(28):1–6, 2019.arxiv.org/abs/1810.09538
  16. [16]Tom Blau, Edwin V. Bonilla, Iadine Chades, and Amir Dezfouli. Optimizing sequential experimental design with deep reinforcement learning. In International Conference on Machine Learning, 2022.arxiv.org/abs/2202.00821
  17. [17]Tom Blau, Iadine Chades, Amir Dezfouli, Daniel Steinberg, and Edwin V. Bonilla. Statistically efficient Bayesian sequential experiment design via reinforcement learning with cross-entropy estimators. arXiv preprint arXiv:2305.18435, 2023.arxiv.org/abs/2305.18435
  18. [18]Niels Leif Bracher, Lars Kühmmichel, Desi R. Ivanova, Xavier Intes, Paul-Christian Bür̈kner, and Stefan T. Radev. JADAI: Jointly amortizing adaptive design and bayesian inference. In Forty-third International Conference on Machine Learning, 2026.arxiv.org/abs/2512.22999
  19. [19]Atlanta Chakraborty, Siyi Chen, Xun Huan, and Gary Luker. Bridging biology and statistics with hybrid Bayesian experimental design for drug dose-response assays. bioRxiv, pp. 2025–09, 2025.DOI
  20. [20]Kathryn Chaloner and Isabella Verdinelli. Bayesian experimental design: A review. Statistical Science, pp. 273–304, 1995.DOI
  21. [21]Deepro Choudhury, Sinead Williamson, Adam Golinski, Ning Miao, Freddie Bickford Smith, Michael Kirchhoff, Yizhe Zhang, and Tom Rainforth. BED-LLM: Intelligent information gathering with LLMs and Bayesian experimental design. In International Conference on Learning Representations, 2026.arxiv.org/abs/2508.21184
  22. [22]Abhijit Chowdhary, Shady E. Ahmed, and Ahmed Attia. PyOED: An extensible suite for data assimilation and model-constrained optimal design of experiments. ACM Transactions on Mathematical Software, 50(2):1–22, 2024.arxiv.org/abs/2301.08336
  23. [23]Alex R. Cook, Gavin J. Gibson, and Christopher A. Gilligan. Optimal observation times in experimental epidemic processes. Biometrics, 64(3):860–868, 2008.DOI
  24. [24]Athel Cornish-Bowden. Fundamentals of Enzyme Kinetics. Wiley, 2013.
  25. [25]Thomas S. Critchfield and Scott H. Kollins. Temporal discounting: Basic research and the analysis of socially important behavior. Journal of Applied Behavior Analysis, 34, 2001.pubmed.ncbi.nlm.nih.gov/11317983
  26. [26]A. Philip Dawid. Coherent measures of discrepancy, uncertainty and dependence, with applications to Bayesian predictive experimental design. arXiv preprint arXiv:2607.26077, 1998.
  27. [27]Morris H. DeGroot. Uncertainty, information, and sequential experiments. The Annals of Mathematical Statistics, 33(2):404–419, 1962.DOI
  28. [28]Holger Dette and Stefanie Biedermann. Robust and efficient designs for the Michaelis–Menten model. Journal of the American Statistical Association, 98(463):679–686, 2003.DOI
  29. [29]Jiayuan Dong, Christian Jacobsen, Mehdi Khalloufi, Maryam Akram, Wanjiao Liu, Karthik Duraresamy, and Xun Huan. Variational Bayesian optimal experimental design with normalizing flows. Computer Methods in Applied Mechanics and Engineering, 433:117457, 2025.DOI
  30. [30]Alex Forster, Desi R. Ivanova, and Tom Rainforth. Improving robustness to model misspecification in Bayesian experimental design. In 7th Symposium on Advances in Approximate Bayesian Inference – Workshop Track, 2025.
  31. [31]Adam Foster, Martin Jankowiak, Eli Bingham, Paul Horsfall, Yee Whye Teh, Tom Rainforth, and Noah Goodman. Variational Bayesian optimal experimental design. In Advances in Neural Information Processing Systems, 2019.arxiv.org/abs/1903.05480
  32. [32]Adam Foster, Martin Jankowiak, Matthew O’Meara, Yee Whye Teh, and Tom Rainforth. A unified stochastic gradient approach to designing Bayesian-optimal experiments. In Proceedings of the Twenty Third International Conference on Artificial Intelligence and Statistics, volume 108, pp. 2959–2969, 2020.arxiv.org/abs/1911.00294
  33. [33]Adam Foster, Desi R. Ivanova, Ilyas Malik, and Tom Rainforth. Deep adaptive design: Amortizing sequential Bayesian experimental design. In International Conference on Machine Learning, 2021.arxiv.org/abs/2103.02438
  34. [34]Leonard Green and Joel Myerson. A discounting framework for choice with delayed and probabilistic rewards. Psychological Bulletin, 2004.pubmed.ncbi.nlm.nih.gov/15367080
  35. [35]Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In *International Conference on Machine Learning*, 2018.arxiv.org/abs/1801.01290
  36. [36]Marcel Hedman, Desi R. Ivanova, Cong Guan, and Tom Rainforth. Step-DAD: Semi-amortized policy-based Bayesian experimental design. In *International Conference on Machine Learning*, 2025.arxiv.org/abs/2507.14057
  37. [37]Tapio Helin, Youssef Marzouk, and Jose Rodrigo Rojo-Garcia. Bayesian optimal experimental design with Wasserstein information criteria. *arXiv preprint arXiv:2504.10092*, 2025.arxiv.org/abs/2504.10092
  38. [38]Dan Hendrycks and Kevin Gimpel. Gaussian error linear units (GELUs). *arXiv preprint arXiv:1606.08415*, 2016.
  39. [39]Xun Huan and Youssef M. Marzouk. Simulation-based optimal Bayesian experimental design for nonlinear systems. *Journal of Computational Physics*, 232(1):288–317, 2013.DOI
  40. [40]Xun Huan and Youssef M. Marzouk. Sequential Bayesian optimal experimental design via approximate dynamic programming. *arXiv preprint arXiv:1604.08320*, 2016.arxiv.org/abs/1604.08320
  41. [41]Xun Huan, Jayanth Jagalur, and Youssef Marzouk. Optimal experimental design: Formulations and computations. *Acta Numerica*, 33:715–840, 2024.DOI
  42. [42]Daolang Huang, Yujia Guo, Luigi Acerbi, and Samuel Kaski. Amortized Bayesian experimental design for decision-making. In *Advances in Neural Information Processing Systems*, 2024.arxiv.org/abs/2411.02064
  43. [43]Daolang Huang, Xinyi Wen, Ayush Bharti, Samuel Kaski, and Luigi Acerbi. ALINE: Joint amortization for Bayesian inference and active data acquisition. In *Advances in Neural Information Processing Systems*, 2025.arxiv.org/abs/2506.07259
  44. [44]Daolang Huang, Zhuoyue Huang, Conor Hassan, Luigi Acerbi, Samuel Kaski, and Tom Rainforth. Efficient adaptive data acquisition via pretrained belief representations. *arXiv preprint arXiv:2606.25197*, 2026.arxiv.org/abs/2606.25197
  45. [45]Shengyi Huang, RoussIan Fernand Julien Dossa, Chang Ye, Jeff Braga, Dipam Chakraborty, Kinal Mehta, and João G.M. Araújo. CleanRL: High-quality single-file implementations of deep reinforcement learning algorithms. *Journal of Machine Learning Research*, 23(274):1–18, 2022. URL https://github.com/vwxyzjn/cleanrl.arxiv.org/abs/2111.08819
  46. [46]Jacopo Iollo, Christophe Heinkelé, Pierre Alliez, and Florence Forbes. PASOA- Particle baSed Bayesian optimal adaptive design. In *International Conference on Machine Learning*, 2024.
  47. [47]Jacopo Iollo, Christophe Heinkelé, Pierre Alliez, and Florence Forbes. Bayesian experimental design via contrastive diffusions. In *International Conference on Learning Representations*, 2025.
  48. [48]Sahel Iqbal, Adrien Cornélos, Simo Särkkä, and Hany Abdulsamad. Nesting particle filters for experimental design in dynamical systems. In *International Conference on Machine Learning*, 2024.arxiv.org/abs/2402.07868
  49. [49]Desi R. Ivanova, Adam Foster, Steven Kleingesse, Michael U Gutmann, and Tom Rainforth. Implicit deep adaptive design: Policy-based experimental design without likelihoods. In *Advances in Neural Information Processing Systems*, 2021.arxiv.org/abs/2111.02329
  50. [50]Gavin Kerrigan, Christian A. Naesseth, and Tom Rainforth. A geometric approach to optimal experimental design. In *The 29th International Conference on Artificial Intelligence and Statistics*, 2026.arxiv.org/abs/2510.14848
  51. [51]Antti Keurulainen, Isak Westerlund, Oskar Keurulainen, and Andrew Howes. Amortised design optimization for item response theory. In *International Conference on Artificial Intelligence in Education*, pp. 359–364. Springer, 2023.arxiv.org/abs/2307.09891
  52. [53]Kris N Kirby and Nino N Maraković. Delay-discounting probabilistic rewards: Rates decrease as amounts increase. Psychonomic bulletin & review, 3(1):100–104, 1996.DOI
  53. [54]Steven Kleinegesse and Michael U. Gutmann. Bayesian experimental design for implicit models by mutual information neural estimation. In International Conference on Machine Learning, 2020.arxiv.org/abs/2002.08129
  54. [56]Timothy P. Lillicrap, Jonathan J. Hunt, Alexander Pritzel, Nicolas Heess, Tom Erez, Yuval Tassa, David Silver, and Daan Wierstra. Continuous control with deep reinforcement learning. arXiv preprint arXiv:1509.02971, 2015.arxiv.org/abs/1509.02971
  55. [57]Vincent Lim, Ellen Novoseller, Jeffrey Ich­nowski, Huang Huang, and Ken Goldberg. Policy-based Bayesian experimental design for non-differentiable implicit models. arXiv preprint arXiv:2203.04272, 2022.arxiv.org/abs/2203.04272
  56. [58]Dennis Victor Lindley. On a measure of the information provided by an experiment. The Annals of Mathematical Statistics, 27(4):986–1005, 1956.DOI
  57. [59]Dennis Victor Lindley. Bayesian Statistics: A Review. Society for Industrial and Applied Mathematics, 1972.
  58. [60]James E. Mazur. An adjusting procedure for studying delayed reinforcement. The Effect of Delay and of Intervening Events on Reinforcement Value: Quantitative Analyses of Behavior; Volume V, pp. 55, 1987.DOI
  59. [61]Robert D. McMichael, Sean M. Blakley, and Sergey Dushenko. Optbayesexpt: Sequential Bayesian experiment design for adaptive measurements. Journal of Research of the National Institute of Standards and Technology, 126(126002), 2021.DOI
  60. [62]Leonor Michaelis, Maud L. Menten, Kenneth A. Johnson, and Roger S. Goody. The original Michaelis constant: Translation of the 1913 Michaelis-Menten paper. Biochemistry, 2011.DOI
  61. [63]Tung Nguyen and Aditya Grover. Transformer neural processes: Uncertainty-aware meta learning via sequence modeling. In International Conference on Machine Learning, 2022.arxiv.org/abs/2207.04179
  62. [64]Joakim Nyberg, Sebastian Ueckert, Eric A. Strömberg, Stefanie Hennig, Mats O. Karlsson, and Andrew C. Hooker. PopED: An extended, parallelized, nonlinear mixed effects models optimal design tool. Computer Methods and Programs in Biomedicine, 108(2):789–805, 2012.DOI
  63. [65]Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018.arxiv.org/abs/1807.03748
  64. [66]Antony Overstall and James McGree. Bayesian decision-theoretic design of experiments under an alternative model. Bayesian Analysis, 2022.arxiv.org/abs/1909.12570
  65. [67]Antony M. Overstall, David C. Woods, and Maria Adamou. acebayes: An R package for Bayesian optimal design of experiments via approximate coordinate exchange. Journal of Statistical Software, 95:1–33, 2020.arxiv.org/abs/1705.08096
  66. [68]Mijung Park, Marcel Nassar, and Haris Vikalo. Bayesian active learning for drug combinations. IEEE Transactions on Biomedical Engineering, 60(11):3248–3255, 2013.DOI
  67. [69]Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Köp̈f, Edward Yang, Zach DeVito, Martin Raison, Aly­khan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. Pytorch: An imperative style, high-performance deep learning library. In Advances in Neural Information Processing Systems, volume 32, 2019.arxiv.org/abs/1912.01703
  68. [70]Angus Phillips, Gavin Kerrigan, and Tom Rainforth. Bayesian experimental design via score matching. In Forty-Second Annual Conference on Uncertainty in Artificial Intelligence, 2026.arxiv.org/abs/2607.08335
  69. [71]Ben Poole, Sherjil Ozair, Aäron van den Oord, Alexander A. Alemi, and George Tucker. On variational bounds of mutual information. In International Conference on Machine Learning, 2019.arxiv.org/abs/1905.06922
  70. [72]Martin L. Puterman. Markov Decision Processes: Discrete Stochastic Dynamic Programming. John Wiley & Sons, 1994.
  71. [73]Pyro Contributors. Optimal Experiment Design (pyro.contrib.oed). https://docs.pyro.ai/en/stable/contrib.oed.html, 2020. Pyro documentation, last updated 2020. Accessed 23 September 2026.
  72. [74]Howard Raiffa and Robert Schlaifer. Applied Statistical Decision Theory. Division of Research, Graduate School of Business Administration, Harvard University, Boston, 1961.
  73. [75]Tom Rainforth, Rob Cornish, Hongseok Yang, Andrew Warrington, and Frank Wood. On nesting Monte Carlo estimators. In International Conference on Machine Learning, 2018.arxiv.org/abs/1709.06181
  74. [76]Tom Rainforth, Adam Foster, Desi R Ivanova, and Freddie Bickford Smith. Modern Bayesian experimental design. Statistical Science, 39(1):100–114, 2024.arxiv.org/abs/2302.14545
  75. [77]Tom Rossa, Angus Phillips, and Tom Rainforth. Action-BED: Task-driven Bayesian experimental design with singly intractable objectives. arXiv preprint arXiv:2606.23662, 2026.
  76. [78]Elizabeth G. Ryan, Christopher C. Drovandi, M. Helen Thompson, and Anthony N. Pettitt. Towards Bayesian experimental design for nonlinear models that require a large number of sampling times. Computational Statistics & Data Analysis, 70:45–60, 2014.
  77. [79]Kenneth J. Ryan. Estimating expected information gains for experimental designs with application to the random fatigue-limit model. Journal of Computational and Graphical Statistics, 12(3):585–603, 2003.
  78. [80]Adhithya Saravanan, Rik Knowles, Gavin Kerrigan, and Tom Rainforth. DiffBED: Scaling Bayesian experimental design to high-dimensions. In International Conference on Learning Representations, volume 2026, pp. 131048–131073, 2026.
  79. [81]Leonard J. Savage. Elicitation of personal probabilities and expectations. Journal of the American Statistical Association, 66(336):783–801, 1971.DOI
  80. [82]Wanggang Shen and Xun Huan. Bayesian sequential optimal experimental design for nonlinear models using policy gradient reinforcement learning. Computer Methods in Applied Mechanics and Engineering, 416:116304, 2023.
  81. [83]Xiaohong Sheng and Yu-Hen Hu. Maximum likelihood multiple-source localization using acoustic energy measurements with wireless sensor networks. IEEE Transactions on Signal Processing, 53(1):44–53, 2005.
  82. [84]Simon Valentin, Steven Kleinesesse, Neil R. Bramley, Peggy Series, Michael U. Gutmann, and Christopher G. Lucas. Designing optimal behavioral experiments using machine learning. eLife, 13:e86224, 2024.
  83. [85]B. Varona-Uriarte, F. Belliardo, T. H. Taminiau, C. Bonato, E. Garrote, and J. Casanova. Computationally trainable offline quantum experimental design for nuclear spin detection. arXiv preprint arXiv:2508.2145, 2025.
  84. [86]Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, 2017.arxiv.org/abs/1706.03762
  85. [87]Benjamin T. Vincent. Hierarchical Bayesian estimation and hypothesis testing for delay discounting tasks. Behavior Research Methods, 2016.
  86. [88]Benjamin T. Vincent and Tom Rainforth. The DARC toolbox: automated, flexible, and efficient delayed and risky choice experiments using Bayesian adaptive design. PsyArXiv preprint, 5:9, 2017.
  87. [89]Fanjin Wang, Anthony Harker, Mohan Edirisinghe, and Maryam Parhizkar. Advanced experiment design strategies for drug development. Advanced Intelligent Discovery, 2(4):e202500087, 2026.DOI
  88. [90]Andrew B. Watson. QUEST+: A general multidimensional Bayesian adaptive psychometric method. Journal of Vision, 17(3):10–10, 2017.DOI
  89. [91]Ronald J. Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine Learning, 8(3):229–256, 1992.
  90. [92]Omry Yadan. Hydra - a framework for elegantly configuring complex applications. Github, 2019. URL https://github.com/hydra-ecosystem/hydra.
  91. [93]Gilad Yehudai, Haim Kaplan, Guy Dar, Royi Rassin, Asma Ghandehar ioun, Mor Geva, and Amir Globerson. When can transformers count to n? arXiv preprint arXiv:2407.15160, 2024.arxiv.org/abs/2407.15160
  92. [94]Manzil Zaheer, Satwik Kottur, Siamak Rav anbak hsh, Barnabas Poczos, Russ R Salakhutdinov, and Alexander Smola. Deep sets. In Advances in Neural Information Processing Systems, 2017.
  93. [95]Jiaxin Zhang, Sirui Bi, and Guannan Zhang. A scalable gradient free method for Bayesian experimental design with implicit models. In Proceedings of The 24th International Conference on Artificial Intelligence and Statistics, pp. 3745–3753, 2021.arxiv.org/abs/2103.08026

Machine contribution statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How machine contributions are recorded

Paper details

Citation

Cite
Published
Version
Latest

Data & code

Code, data, proofs and workflows the authors linked for testing, review and reproduction. These links are part of this work’s metadata and are released under the same license as the rest of that metadata. Valency doesn’t host the files; each keeps the license set where it’s hosted.

Contents

Pick where to look, or just type