Manuscript Offprint
arXiv:2611.06633TestBED: An Open-Source Toolkit for Bayesian Experimental Design
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
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.
1 INTRODUCTION
In recent years, Bayesian experimental design (BED, Lindley, 1956; 1972; DeGroot, 1962) methodology has developed rapidly, incorporating techniques from areas like amortised optimisation (Foster et al., 2021; Ivanova et al., 2021; Rossa et al., 2026), variational inference (Foster et al., 2019; Huang et al., 2025; Bracher et al., 2026; Phillips et al., 2026), reinforcement learning (Huan & Marzouk, 2016; Blau et al., 2022; 2023; Barlas & Salako, 2025), foundation models (Choudhury et al., 2026; Huang et al., 2026), and generative models (Iollo et al., 2025; Dong et al., 2025; Saravanan et al., 2026; Phillips et al., 2026), amongst others. Beyond the research community, BED has seen uptake in a wide range of applications, including psychology (Watson, 2017; Aushev et al., 2023; Keurulainen et al., 2023), quantum physics (Varona-Uriarte et al., 2025; Belliardo et al., 2026), drug discovery (Park et al., 2013; Chakraborty et al., 2025; Wang et al., 2026), 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 (Kirby & Maraković, 1996; Cook et al., 2008; Vincent & Rainforth, 2017; Valentin et al., 2024) and history-dependent models (Lim et al., 2022; Iqbal et al., 2024), 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,
*Correspondence to: Kerrigan@stats.ox.ac.uk. Code for TESTBED is available at https://github.com/testbed-benchmark/testbed.

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 (Foster et al., 2021), with each line shaded by the component it uses (imports omitted).
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 (Paszke et al., 2019; Ansel et al., 2024), 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.
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 (Ao & Li, 2024; Bartuska et al., 2024), 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 (Foster et al., 2020; 2021; Blau et al., 2022; Huang et al., 2025; Rossa et al., 2026; Phillips et al., 2026) 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 (Foster et al., 2021) improve substantially once they are added. Second, a well-tuned static design is surprisingly strong on several popular tasks (Iqbal et al., 2024; Phillips et al., 2026), suggesting these tasks have limited power to discriminate between strategies. Third, variational joint posteriors (Foster et al., 2020; Phillips et al., 2026), 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.

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.
Bernardo, 1979; Chaloner & Verdinelli, 1995; Ryan et al., 2014; Rainforth et al., 2024; Huan et al., 2024). The experimenter specifies a prior and an observation model , where denotes a history of previous designs and observations.
In sequential (or adaptive) BED, experiments are performed adaptively, using the data from previous rounds to choose the next design . This can be encoded as a policy . Historically, BED methods followed an implicit policy, where we calculate a posterior then optimise the next design when it is needed (Lindley, 1972; Ryan et al., 2014; Foster et al., 2019). However, it has recently become the norm to learn an explicit policy before the experiment (Huan & Marzouk, 2016; Foster et al., 2021), 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 (Foster et al., 2021). Many techniques for fitting policies have been proposed, such as end-to-end training (Foster et al., 2021; Ivanova et al., 2021), reinforcement learning (Huan & Marzouk, 2016; Blau et al., 2022; 2023; Barlas & Salako, 2025), or by joint training with a downstream action policy (Rossa et al., 2026). 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 over the entire trajectory (Lindley, 1956),
which is equivalently the mutual information between and the data collected by the policy . More generally, BED objectives may be defined as an expected utility (Huan et al., 2024)
where the utility scores how useful the data are when the true parameter is . The EIG is the special case . Other choices of 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 (Raiffa & Schlaifer, 1961; DeGroot, 1962; Lindley, 1972), and the negative generalised posterior entropy induced by a proper scoring rule (DeGroot, 1962; Savage, 1971; Dawid, 1998; Bickford Smith et al., 2025; Rossa et al., 2026).
Many BED objectives are, however, difficult to compute. For example, the EIG depends on the typically intractable marginal likelihood . This has motivated a large literature on EIG estimators (Ryan, 2003; Barber & Agakov, 2003; Huan & Marzouk, 2013; Oord et al., 2018; Belghazi et al., 2018; Foster et al., 2019; Poole et al., 2019), which vary widely in what they require: some draw additional samples from the prior (Rainforth et al., 2018; Foster et al., 2021), while others train auxiliary networks (Barber & Agakov, 2003; Foster et al., 2019; Kleinegesse & 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.
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]
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.
3 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.
3.1 CORE TESTBED INTERFACES
Tasks. A Task specifies the experimental design problem to be solved. This consists of a Bayesian model, including a prior , observation model . Tasks also specify a design prior , 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 . 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.
Designers and Rollouts. A designer specifies how designs are produced over a sequence of experiments. The base Designer class implements a common rollout procedure, where at each step , it pro-

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.
duces a design , obtains an observation from the task, and updates a RolloutState containing the current history 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 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 (Foster et al., 2021), RL-BOED (Blau et al., 2022), ALINE (Huang et al., 2025), and ActionBED (Rossa et al., 2026), amongst others. We additionally provide several off-the-shelf choices for policy architectures, including Attention (Vaswani et al., 2017) and DeepSets (Zaheer et al., 2017) 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 (Rossa et al., 2026) 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 (Huang et al., 2025).
Design Objectives. Optimising designs requires an objective function. As described in Section 2, BED objectives can in general be described as an expected utility . As these are expectations over the observed history, in TESTBED, our objectives generally accept as input a Rollout which at minimum contains the history alongside the true that can be used to estimate . For example, we provide highly efficient implementations of the standard sPCE and sNMC utilities (Foster et al., 2020), 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 (Raiffa & Schlaifer, 1961; DeGroot, 1962; Lindley, 1972; Rossa et al., 2026) or a posterior approximation (Foster et al., 2019; Phillips et al., 2026)) 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 , an intermediate rollout may be produced using 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 (Williams, 1992) that wraps these utilities. See Section B. We emphasize that the modularity of TESTBED allow a wide range of utilities, including alternative EIG estimators (Ao & Li, 2024; Bartuska et al., 2024) or new objectives (Helin et al., 2025; Kerrigan et al., 2026) 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 (Foster et al., 2021) and RL-based training (Blau et al., 2022). 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 (Foster et al., 2021), RL-BOED (Blau et al., 2022), ALINE (Huang et al., 2025), ActionBED (Rossa et al., 2026), and variational posteriors (Foster et al., 2019; 2020; Phillips et al., 2026). The recipes used to produce the results in Section 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 (Yadan, 2019) and Weights & Biases (Biewald, 2020).
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.
4 RELATED WORK
The closest work to a general-purpose BED library is the probabilistic programming language (PPL) Pyro (Bingham et al., 2019), whose experimental design module (Pyro Contributors, 2020) implements several EIG estimators, including those of Foster et al. (2019). 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 (Foster et al., 2021; Ivanova et al., 2021), 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 (Overstall et al., 2020; Nyberg et al., 2012), classical non-amortised design (McMichael et al., 2021), or inverse problems under Gaussian or linearised approximations (Chowdhary et al., 2024). None of these supports amortised, policy-based BED, despite its now-central role in sequential design (Rainforth et al., 2024).
5 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.
5.1 BENCHMARKING BED ALGORITHMS
For our large-scale benchmark, we compare Joint Variational Posteriors (JointVarPost, Foster et al., 2020; Phillips et al., 2026), Deep Adaptive Design (DAD, Foster et al., 2021), RL-BOED (Blau et al., 2022), ALINE (Huang et al., 2025), and ActionBED (Rossa et al., 2026). We train ActionBED using two downstream losses (MSE and CMSE; see Section C), while the others all target EIG. Here, note

Figure 5: Benchmark (mean ± standard error across five seeds) of BED methods under a shared policy architecture and wall-clock training budget. We report EIG upper bounds (, ), together with downstream MSE (negated so higher is better). The horizontal black line indicates performance of a random policy.
that JointVarPost can in fact be seen as a special case of ActionBED, where actions are distributions on and the loss is targeting the EIG. We additionally study random and static (sPCE) (Foster et al., 2020) 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., 2022; Huang et al., 2025), 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., 2025; 2026; Rossa et al., 2026; Phillips et al., 2026), we use a common Attention-based policy architecture (Vaswani et al., 2017) wherever possible. ALINE (Huang et al., 2025) 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., 2019; 2021) of the EIG (Section G) with contrastive samples and outer samples, and Table 13 contains matching sPCE lower
Table 1: Architecture ablation on the location finding task. Entries report the mean ± standard error across five seeds of the sPCE and sNMC bounds of the EIG (, ).
| Method | Attention | DeepSets | ||||||
|---|---|---|---|---|---|---|---|---|
| + time | - time | + time | - time | |||||
| Lower | Upper | Lower | Upper | Lower | Upper | Lower | Upper | |
| DAD | 14.334±0.223 | 14.359±0.228 | 5.654±1.061 | 5.654±1.061 | 15.423±0.265 | 15.587±0.307 | 12.051±0.028 | 12.052±0.028 |
| RL-BOED | 12.188±0.022 | 12.190±0.022 | 12.121±0.034 | 12.122±0.034 | 12.017±0.009 | 12.018±0.009 | 12.058±0.016 | 12.059±0.016 |
| ActionBED | 18.563±0.068 | 20.034±0.114 | 9.418±0.496 | 9.418±0.497 | 15.818±0.548 | 16.144±0.632 | 9.579±0.091 | 9.579±0.091 |
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 from the complete rollout 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.
No single method dominates across all tasks and metrics. Notably, overlooked methods like JointVarPost (Foster et al., 2020; Phillips et al., 2026) 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 (Huang et al., 2025, Eq. 11) weights each design only by its immediate one-step reward, and the trained policy is hence myopic.
5.2 THE EFFECTS OF ARCHITECTURE
Earlier BED methods (e.g., Foster et al., 2021; Blau et al., 2022) often used the DeepSets architecture (Zaheer et al., 2017) for the design policy. More recent methods (Huang et al., 2024; 2025; Rossa et al., 2026; Phillips et al., 2026) instead use an Attention-based architecture, first introduced by Ivanova et al. (2021). Recent methods also add a time embedding to the design policy, even for exchangeable tasks (Huang et al., 2024). 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 Section 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 is bounded by 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 Section 5.3.
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 is a finite-horizon Markov decision process (MDP) (Huan & Marzouk, 2016; Blau et al., 2022; Shen & Huan, 2023), whose state at step is the belief . In finite-horizon MDPs, the optimal policy is generally time-dependent,
Table 2: Effect of the number of contrastive samples used for training DAD on location finding. Entries report mean standard error across five training seeds. All policies are evaluated using 2,048 outer samples and contrastive samples.
| Lower | Upper | Average number of gradient steps | |
|---|---|---|---|
| 256 | 12.568 0.084 | 12.571 0.085 | 28,355.8 |
| 512 | 12.896 0.111 | 12.898 0.111 | 28,778.2 |
| 1,024 | 13.683 0.184 | 13.691 0.186 | 27,448.0 |
| 2,048 | 13.982 0.125 | 13.992 0.127 | 24,954.6 |
| 4,096 | 14.615 0.175 | 14.637 0.179 | 20,571.2 |
| 8,192 | 14.500 0.288 | 14.521 0.291 | 15,369.8 |
| 16,384 | 14.600 0.059 | 14.623 0.060 | 10,216.6 |
and an optimal stationary policy need not exist (Puterman, 1994, 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 from the number of observations in , which common modules such as pooling and layer normalisation can make difficult (Yehudai et al., 2024).
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 (Haarnoja et al., 2018), 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.
5.3 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 (Foster et al., 2021). Increasing 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 . The results in Table 2 show that increasing substantially improves the learned policy up to a plateau. Policies trained with between 4,096 and 16,384 are statistically indistinguishable across five seeds, even though completes roughly half as many gradient steps.
The results reveal an asymmetry. Under a fixed compute budget, choosing too small is far more damaging than choosing it too large. Training with yields policies roughly 2 nats below the plateau, whereas we observed no measurable penalty for the largest 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.
6 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.
REFERENCES
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, Kshiteej Kalambarkar, Laurent Kirsch, Michael Lazos, Mario Lezcano, Yanbo Liang, Jason Liang, Yinghai Lu, C. K. Luk, Bert Maher, Yunjie Pan, Christian Puhrsch, 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.
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.
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.
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.
David Barber and Felix Agakov. Information maximization in noisy channels : A variational approach. In Advances in Neural Information Processing Systems, volume 16, 2003.
Yasir Zubayr Barlas and Kizito Salako. Performance comparisons of reinforcement learning algorithms for sequential experimental design. arXiv preprint arXiv:2503.05905, 2025.
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.
Mohamed Ishmael Belghazi, Aristide Baratin, Sai Rajeswar, Sherjil Ozair, Yoshua Bengio, Aaron Courville, and R. Devon Hjelm. Mutual information neural estimation. In International Conference on Machine Learning, 2018.
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.
Richard Bellman. A Markovian decision process. Journal of Mathematics and Mechanics, 6(5): 679–684, 1957.
José M. Bernardo. Expected information as expected utility. The Annals of Statistics, pp. 686–690, 1979.
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.
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.
Lukas Biewald. Experiment tracking with Weights and Biases, 2020. URL https://www.wandb.com/. Software available from wandb.com.
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.
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.
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.
Niels Leif Bracher, Lars Kühnmichel, Desi R. Ivanova, Xavier Intes, Paul-Christian Bürkner, and Stefan T. Radev. JADAI: Jointly amortizing adaptive design and bayesian inference. In Forty-third International Conference on Machine Learning, 2026.
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.
Kathryn Chaloner and Isabella Verdinelli. Bayesian experimental design: A review. Statistical Science, pp. 273–304, 1995.
Deepro Choudhury, Sinead Williamson, Adam Golinski, Ning Miao, Freddie Bickford Smith, Michael Kirchhof, Yizhe Zhang, and Tom Rainforth. BED-LLM: Intelligent information gathering with LLMs and Bayesian experimental design. In International Conference on Learning Representations, 2026.
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.
Alex R. Cook, Gavin J. Gibson, and Christopher A. Gilligan. Optimal observation times in experimental epidemic processes. Biometrics, 64(3):860–868, 2008.
Athel Cornish-Bowden. Fundamentals of Enzyme Kinetics. Wiley, 2013.
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.
A. Philip Dawid. Coherent measures of discrepancy, uncertainty and dependence, with applications to Bayesian predictive experimental design. arXiv preprint arXiv:2607.26077, 1998.
Morris H. DeGroot. Uncertainty, information, and sequential experiments. The Annals of Mathematical Statistics, 33(2):404–419, 1962.
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.
Jiayuan Dong, Christian Jacobsen, Mehdi Khalloufi, Maryam Akram, Wanjiao Liu, Karthik Duraisamy, and Xun Huan. Variational Bayesian optimal experimental design with normalizing flows. Computer Methods in Applied Mechanics and Engineering, 433:117457, 2025.
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.
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.
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.
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.
Leonard Green and Joel Myerson. A discounting framework for choice with delayed and probabilistic rewards. Psychological Bulletin, 2004.
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.
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.
Tapio Helin, Youssef Marzouk, and Jose Rodrigo Rojo-Garcia. Bayesian optimal experimental design with Wasserstein information criteria. arXiv preprint arXiv:2504.10092, 2025.
Dan Hendrycks and Kevin Gimpel. Gaussian error linear units (GELUs). arXiv preprint arXiv:1606.08415, 2016.
Xun Huan and Youssef M. Marzouk. Simulation-based optimal Bayesian experimental design for nonlinear systems. Journal of Computational Physics, 232(1):288–317, 2013.
Xun Huan and Youssef M. Marzouk. Sequential Bayesian optimal experimental design via approximate dynamic programming. arXiv preprint arXiv:1604.08320, 2016.
Xun Huan, Jayanth Jagalur, and Youssef Marzouk. Optimal experimental design: Formulations and computations. Acta Numerica, 33:715–840, 2024.
Daolang Huang, Yujia Guo, Luigi Acerbi, and Samuel Kaski. Amortized Bayesian experimental design for decision-making. In Advances in Neural Information Processing Systems, 2024.
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.
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.
Shengyi Huang, Rousslan 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.
Jacopo Iollo, Christophe Heinkelé, Pierre Alliez, and Florence Forbes. PASOA- PArticle baSed Bayesian optimal adaptive design. In International Conference on Machine Learning, 2024.
Jacopo Iollo, Christophe Heinkelé, Pierre Alliez, and Florence Forbes. Bayesian experimental design via contrastive diffusions. In International Conference on Learning Representations, 2025.
Sahel Iqbal, Adrien Corenflos, Simo Särkkä, and Hany Abdulsamad. Nesting particle filters for experimental design in dynamical systems. In International Conference on Machine Learning, 2024.
Desi R. Ivanova, Adam Foster, Steven Kleinegesse, Michael U Gutmann, and Tom Rainforth. Implicit deep adaptive design: Policy-based experimental design without likelihoods. In Advances in Neural Information Processing Systems, 2021.
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.
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.
Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
Kris N Kirby and Nino N Maraković. Delay-discounting probabilistic rewards: Rates decrease as amounts increase. Psychonomic bulletin & review, 3(1):100–104, 1996.
Steven Kleinegesse and Michael U. Gutmann. Bayesian experimental design for implicit models by mutual information neural estimation. In International Conference on Machine Learning, 2020.
Steven Kleinegesse and Michael U. Gutmann. Gradient-based Bayesian experimental design for implicit models using mutual information lower bounds. arXiv preprint arXiv:2105.04379, 2021.
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.
Vincent Lim, Ellen Novoseller, Jeffrey Ichnowski, Huang Huang, and Ken Goldberg. Policy-based Bayesian experimental design for non-differentiable implicit models. arXiv preprint arXiv:2203.04272, 2022.
Dennis Victor Lindley. On a measure of the information provided by an experiment. The Annals of Mathematical Statistics, 27(4):986–1005, 1956.
Dennis Victor Lindley. Bayesian Statistics: A Review. Society for Industrial and Applied Mathematics, 1972.
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.
Robert D. McMichael, Sean M. Blakley, and Sergey Dushenko. Optbayesext: Sequential Bayesian experiment design for adaptive measurements. Journal of Research of the National Institute of Standards and Technology, 126(126002), 2021.
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.
Tung Nguyen and Aditya Grover. Transformer neural processes: Uncertainty-aware meta learning via sequence modeling. In International Conference on Machine Learning, 2022.
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.
Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018.
Antony Overstall and James McGree. Bayesian decision-theoretic design of experiments under an alternative model. Bayesian Analysis, 2022.
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.
Mijung Park, Marcel Nassar, and Haris Vikalo. Bayesian active learning for drug combinations. IEEE Transactions on Biomedical Engineering, 60(11):3248–3255, 2013.
Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Köpf, Edward Yang, Zach DeVito, Martin Raison, Alykhan 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.
Angus Phillips, Gavin Kerrigan, and Tom Rainforth. Bayesian experimental design via score matching. In Forty-Second Annual Conference on Uncertainty in Artificial Intelligence, 2026.
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.
Martin L. Puterman. Markov Decision Processes: Discrete Stochastic Dynamic Programming. John Wiley & Sons, 1994.
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.
Howard Raiffa and Robert Schlaifer. Applied Statistical Decision Theory. Division of Research, Graduate School of Business Administration, Harvard University, Boston, 1961.
Tom Rainforth, Rob Cornish, Hongseok Yang, Andrew Warrington, and Frank Wood. On nesting Monte Carlo estimators. In International Conference on Machine Learning, 2018.
Tom Rainforth, Adam Foster, Desi R Ivanova, and Freddie Bickford Smith. Modern Bayesian experimental design. Statistical Science, 39(1):100–114, 2024.
Tom Rossa, Angus Phillips, and Tom Rainforth. Action-BED: Task-driven Bayesian experimental design with singly intractable objectives. arXiv preprint arXiv:2606.23662, 2026.
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.
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.
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.
Leonard J. Savage. Elicitation of personal probabilities and expectations. Journal of the American Statistical Association, 66(336):783–801, 1971.
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.
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.
Simon Valentin, Steven Kleinegesse, Neil R. Bramley, Peggy Seriès, Michael U. Gutmann, and Christopher G. Lucas. Designing optimal behavioral experiments using machine learning. eLife, 13:e86224, 2024.
B. Varona-Uriarte, F. Belliardo, T. H. Taminiau, C. Bonato, E. Garrote, and J. Casanova. Computationally tractable offline quantum experimental design for nuclear spin detection. arXiv preprint arXiv:2508.2145, 2025.
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.
Benjamin T. Vincent. Hierarchical Bayesian estimation and hypothesis testing for delay discounting tasks. Behavior Research Methods, 2016.
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.
Fanjin Wang, Anthony Harker, Mohan Edirisinghe, and Maryam Parhizkar. Advanced experiment design strategies for drug development. Advanced Intelligent Discovery, 2(4):e202500087, 2026.
Andrew B. Watson. QUEST+: A general multidimensional Bayesian adaptive psychometric method. Journal of Vision, 17(3):10–10, 2017.
Ronald J. Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine Learning, 8(3):229–256, 1992.
Omry Yadan. Hydra - a framework for elegantly configuring complex applications. Github, 2019. URL https://github.com/hydra-ecosystem/hydra.
Gilad Yehudai, Haim Kaplan, Guy Dar, Royi Rassin, Asma Ghandeharioun, Mor Geva, and Amir Globerson. When can transformers count to n? arXiv preprint arXiv:2407.15160, 2024.
Manzil Zaheer, Satwik Kottur, Siamak Ravanbakhsh, Barnabas Poczos, Russ R Salakhutdinov, and Alexander Smola. Deep sets. In Advances in Neural Information Processing Systems, 2017.
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.
A 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 , and for the product of the entries of these shapes, i.e., the dimension once flattened to a vector, so that , and . For example, location finding with sources in two dimensions has parameter shape and hence .
A.1 DESIGN PRIORS
In practice, it is often useful to specify a prior 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 , 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 where are user-specified bounds, which captures many constraints used in practice. For methods that require a finite set of designs, like ALINE (Huang et al., 2024), 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 is a standard Gaussian in , 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.
A.2 IMPLEMENTED TASKS
Here, we describe the various tasks currently implemented within TESTBED.
A.2.1 LOCATION FINDING
In this task, the experimenter must locate hidden sources in from noisy measurements of the signal they emit, following the acoustic energy attenuation model of Sheng & Hu (2005) as adapted for BED by Foster et al. (2021). Each source emits a signal whose intensity decays with distance, and a measurement returns the superposition of all contributions. The parameter of interest is the source locations , where is assumed known ahead of time, and a design is the location at which the next measurement is taken.
Each source location is drawn independently from a standard Gaussian, so that
giving . The total intensity at a measurement location is
and the outcome is the log total intensity observed with Gaussian noise,
Here is the amplitude of each source and the rate at which its signal decays, with recovering the inverse-square law. The two remaining constants control the dynamic range of the observation.
Setting caps the contribution of a single source at , so that the intensity does not diverge as a measurement is taken arbitrarily close to a source and the EIG remains finite, while sets a background level that bounds how uninformative a measurement far from every source can be.
We adopt the configuration of Foster et al. (2021), namely , , for every source, and . Our benchmark instantiated sources in dimensions over a horizon of experiments, so is four-dimensional. The design space is unbounded: a measurement may be taken anywhere in , 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 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).
A.2.2 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 (Critchfield & Kollins, 2001; Green & Myerson, 2004). Following the notation of Hedman et al. (2025), 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 \$$R_0100D_1x = (D_1, R_0)y$ records the participant's choice between the immediate and delayed rewards.
Mazur (1987) introduced a widely used parametric model of temporal discounting. Following previous policy-based implementations (Foster et al., 2021; Hedman et al., 2025), we adopt the particular formulation given by Vincent (2016), which combines a discount curve with a probabilistic response rule and thereby defines a likelihood over observed choices. The individual participant is characterised by , where is their discount rate and controls the scale of their choice noise, with prior
The two options carry subjective values
and the participant selects the delayed option with probability
where is the standard normal distribution function. Rather than choosing deterministically whichever option has the higher value, the participant compares them with sensitivity governed by , and the lapse rate bounds the response probability away from 0 and 1 to allow for a small chance of responding at random. We fix and use a horizon of questions.
The exponents and are both 1 by default, recovering the standard hyperbolic model. A design must satisfy and . The design prior is constructed via the pushforward of standard Gaussian along the maps and , where the shift by the log prior mean of the discount rate keeps 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.
A.2.3 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
17
A design corresponds to two baskets $x, x' \in [0, 100]^3$, each specifying non-negative quantities of three goods, so $d_\chi = 6$. The preferences of the participant are governed by $\theta = (\rho, \alpha, u)$, where $\rho$ is the substitution parameter, $\alpha = (\alpha_1, \alpha_2, \alpha_3)$ weights the three goods and $u$ scales the sensitivity of their response. The prior is\rho \sim \mathrm{Beta}(1,1),\qquad \alpha \sim \mathrm{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 $\mathbb{R}^5$. A basket is valued through the CES utilityU(x)=\left(\sum_{i=1}^{3} \alpha_i x_i^\rho\right)^{1/\rho}. \tag{10}
\eta \mid \theta, x, x' \sim \mathcal{N}!\left(u\left(U(x)-U(x')\right),\ (u\tau\left(1+|x-x'|\right))^2\right), \tag{11}
y=\mathrm{clip}(\sigma(\eta),,\epsilon,,1-\epsilon),. \tag{12}
We use $\tau = 0.005$ and $\epsilon = 2^{-22}$ over a horizon of $T = 10$ experiments, and the design prior is uniform over $[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 $\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. #### A.2.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. (2014), which has become a standard BED benchmark (Kleinegesse & Gutmann, 2020; Zhang et al., 2021), and follow the configuration of Ivanova et al. (2021). The parameter of interest is $\theta = (k_a, k_e, V)$, comprising the absorption rate, the elimination rate and the volume of distribution, with a log-normal prior\log \theta \sim \mathcal{N}(\log \left[1,\ 0.1,\ 20\right],\ 0.05\ I_3),. \tag{13}
A design is the time $x$ at which blood is sampled. Following a single dose $D_v$ given at the start of the experiment, the drug concentration at time $x$ is\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),
y\mid\theta,x\sim\mathcal{N}\Big(\mu(\theta,x),(\sigma_{\mathrm{m u l t}}\mu(\theta,x))^{2}+\sigma_{\mathrm{a d d}}^{2}\Big). \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 $D_v = 400$, $\sigma_{\mathrm{mult}}^2 = 0.01$ and $\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]$ hours (Section A.1), and our benchmark uses a horizon of $T = 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 $x$ 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 $k_a = k_e$, and the model is conventionally stated with the constraint $k_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 $\sqrt{0.05}$, so draws that approach the singularity are rare. ### A.2.5 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., 2011), 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 (Dette & Biedermann, 2003; Overstall & McGree, 2022), and we follow the BED setup of Forster et al. (2025). The parameter of interest is $\theta = (V_{\max}, V_{\mathrm{half}})$, where $V_{\max}$ is the velocity the reaction approaches once the enzyme is saturated and $V_{\mathrm{half}}$ is the substrate concentration at which half that velocity is attained. Both are given independent uniform priors,V_{\max},V_{\mathrm{half}}\stackrel{\mathrm{i.i.d.}}{\sim}\mathrm{Unif}(20,200). \tag{16}
A design is the substrate concentration $x$ at which the next measurement is made, giving a mean reaction velocity\mu(\theta,x)=\frac{V_{\max}x^{s}}{V_{\mathrm{half}}^{s}+x^{s}}, \tag{17}
y\mid\theta,x\sim\mathcal{N}\big(\mu(\theta,x),\sigma^{2}\big). \tag{18}
We use $\sigma = 2.5$ and a horizon of $T = 20$ measurements. Concentrations are non-negative and the design prior is uniform over $[0, 400]$ (Section A.1), whose upper bound is twice the largest $V_{\mathrm{half}}$ the prior admits and so comfortably covers the saturating regime. The exponent $s$ defaults to 1. Other values give the Hill model (Cornish-Bowden, 2013), in which binding at one site alters the affinity of the remaining sites. Forster et al. (2025) used this as a controlled setting for studying misspecification, since $s$ can be varied in the data-generating process while the assumed model is held at $s = 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 $V_{\max}$ but say little about $V_{\mathrm{half}}$, whereas the concentrations that identify $V_{\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 $x$ perturbed by Gaussian noise, so the likelihood is reparametrisable and pathwise gradients of the EIG are available. ### A.2.6 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. (2024), with the diffusion matched to Phillips et al. (2026). The pendulum is modelled as a uniform rod of unknown mass $m$ and length $l$, so the parameter of interest is $\theta = (m, l)$ with a log-normal prior\log \theta \sim \mathcal{N}(0, 0.01,I_2),. \tag{19}
The state $y = (q, \dot{q})$ collects the angle and the angular velocity, and the experiment begins from rest at $y_0 = (0, 0)$. A design is the torque $x$ applied over the next interval. Writing $g$ for gravitational acceleration and $d$ for a damping coefficient, the angular acceleration is\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/2$ and whose moment of inertia is $ml^2/3$; the term $x - d\dot{q}$ represents the applied and damping torques, respectively. The dynamics are integrated by an Euler-Maruyama step, so thaty_t \mid \theta, x_t, y_{t-1} \sim \mathcal{N}\big(y_{t-1} + \Delta t \cdot f(y_{t-1}, \theta, x_t), \Delta t \Sigma^2\big), \tag{21}
where $f(y, \theta, x) = (\dot{q}, \ddot{q})$ is the time derivative of the state, with $\ddot{q}$ given by Equation (20) and $\Sigma$ is the diffusion scale. We use $\Delta t = 0.05$, $d = 0.1$, $g = 9.81$ and $\Sigma = 0.1I_2$, over a horizon of $T = 50$ steps. The torque is bounded to $[-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$ removes the gravitational term from Equation (20), leaving a response that depends on $\theta$ only through the product $ml^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 $l$ alone, and with the torque bounded to $[-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. ### A.2.7 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. (2024), with the diffusion matched to Phillips et al. (2026), 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 $\theta = (m_p, m_c, l)$, the pole mass, the cart mass and the pole length, with prior\log \theta \sim \mathcal{N}(0, 0.01,I_3),. \tag{22}
The state $y = (s, q, \dot{s}, \dot{q})$ collects the cart position, the pole angle and their velocities, and the system starts at rest with $y_0 = 0$. A design is the force $x$ applied to the cart. Writing $\Delta := m_c + m_p \sin^2 q$, the accelerations are\ddot{s} = \frac{1}{\Delta}\left(x + m_p \sin q\left(l\dot{q}^2 + g \cos q\right) - (k_1 s + d_1 \dot{s}) - \frac{(k_2 q + d_2 \dot{q}) \cos q}{l}\right), \tag{23}
\ddot{q} = -\frac{1}{l\Delta}\left(x \cos q + m_p l\dot{q}^2 \cos q \sin q + (m_c + m_p) g \sin q\right)
- \left(k_1 s + d_1 \dot{s}\right) \cos q + \frac{(k_2 q + d_2 \dot{q}) \cos^2 q}{l}\right)
y_{t}\mid\theta,x_{t},y_{t-1}\sim\mathcal{N}\big(y_{t-1}+\Delta t\cdot f(y_{t-1},\theta,x_{t}),\Delta t\Sigma^{2}\big), \tag{25}
with $f=(\dot{s},\dot{q},\ddot{s},\ddot{q})$ the time derivative of the state. We use $\Delta t=0.05$, $g=9.81$, $k_1=k_2=d_1=d_2=0.01$ and $\Sigma=0.1$ $I_4$, over a horizon of $T=50$ steps. The force is bounded to $[-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=0$ and $q=0$. The identifiability structure is what makes this task harder than the pendulum. Every occurrence of $m_p$ in Equation (23) and Equation (24), including the one inside $\Delta$, is multiplied by $\sin q$ or $\sin^2 q$, so at the initial state the equations collapse to $\ddot{s}=x/m_c$ and $\ddot{q}=-x/(lm_c)$. A force applied at rest therefore reveals the cart mass and the pole length, but carries no information about the pole mass: $m_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=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). #### A.2.8 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 (Iqbal et al., 2024; Phillips et al., 2026). The parameter of interest is $\theta = (m_1, m_2, l_1, l_2)$, the masses and lengths of the two links, with prior\log\theta\sim\mathcal{N}(0,0.01I_{4}). \tag{26}
The state $y = (q_1, q_2, \dot{q}_1, \dot{q}_2)$ collects the two joint angles and their velocities, starting from rest at $y_0 = 0$, and a design $x \in \mathbb{R}^2$ applies a torque at each joint. The dynamics take the manipulator formM(\theta,q)\ddot{q}+C(\theta,q,\dot{q})\dot{q}=x+\tau(\theta,q), \tag{27}
M=\begin{pmatrix}(m_{1}+m_{2})l_{1}^{2}+m_{2}l_{2}^{2}+2m_{2}l_{1}l_{2}\cos q_{2}&m_{2}l_{2}^{2}+m_{2}l_{1}l_{2}\cos q_{2}\m_{2}l_{2}^{2}+m_{2}l_{1}l_{2}\cos q_{2}&m_{2}l_{2}^{2}\end{pmatrix}, \tag{28}
C=\begin{pmatrix}0&a\left(2\dot{q}{1}+\dot{q}{2}\right)\ -\frac{1}{2}a\left(2\dot{q}{1}+\dot{q}{2}\right)&\frac{1}{2}a\dot{q}{1}\end{pmatrix},\qquad a:=-m{2}l_{1}l_{2}\sin q_{2}, \tag{29}
\tau=-g\left(\begin{matrix}{(m_{1}+m_{2})l_{1}\sin q_{1}+m_{2}l_{2}\sin(q_{1}+q_{2})}\ {m_{2}l_{2}\sin(q_{1}+q_{2})}\ \end{matrix}\right). \tag{30}
Solving Equation (27) for $\ddot{q}$ gives the drift, which is integrated by the same Euler-Maruyama step as the other dynamical tasks,y_{t}\mid\theta,x_{t},y_{t-1}\sim\mathcal{N}\big(y_{t-1}+\Delta t\cdot f(y_{t-1},\theta,x_{t}),\Delta t\Sigma^{2}\big). \tag{31}
We use $\Delta t = 0.05$, $g = 9.81$ and $\Sigma = 0.1$ $I_4$, over a horizon of $T = 50$ steps. The two torques are bounded differently, to $[-4,4]$ at the first joint and $[-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 $y_0 = 0$ both the Coriolis matrix and the gravitational torque vanish, leaving $\ddot{q} = M(\theta, 0)^{-1}x$. Since $M$ is symmetric it contributes only three independent entries, which cannot determine four parameters; concretely, the map $(m_1, m_2, l_1, l_2) \mapsto (m_1/c^2, m_2/c^2, cl_1, cl_2)$ leaves $M(\theta, 0)$ unchanged for any $c > 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. ## B POLICY GRADIENTS AND REINFORCE 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 (Foster et al., 2020; Phillips et al., 2026) on non-reparametrisable likelihoods, and Section B.3 does the same for ActionBED (Rossa et al., 2026) on non-reparametrisable likelihoods, both of which are novel methodological approach not previously studied in the literature. ## B.1 SPCE AND REINFORCE One of the key design objectives against which policies are optimised is the sPCE lower bound on EIG (Foster et al., 2021). 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_{\mathcal{X}}^{\phi}$ the design policy. We draw $\theta_0 \sim p(\theta)$ and contrastive samples $\theta_{1:L} \overset{\mathrm{i.i.d.}}{\sim} p(\theta)$, and generate a history $h_T = (x_{1:T}, y_{1:T})$. The sPCE bound of Equation (59) can then be rewritten as\mathcal{L}{T}(\phi)=\mathbb{E}{p(\theta_{0:L})p(h_{T}|\theta_{0},\pi_{\mathcal{X}}^{\phi})}\left[R_{\phi}(h_{T})\right]+\log(L+1), \tag{32}
R_{\phi}(h_{T}):=\log \frac{p(h_{T}\mid\theta_{0},\pi_{\mathcal{X}}^{\phi})}{\sum_{\ell=0}^{L} p(h_{T}\mid\theta_{\ell},\pi_{\mathcal{X}}^{\phi})}. \tag{33}
The gradient estimator then takes slightly different forms based on whether the design policy is stochastic or deterministic. ### B.1.1 DETERMINISTIC DESIGN POLICIES This is a reiteration of the derivation within Foster et al. (2021). For a deterministic policy, $x_t = \pi_{\mathcal{X}}^{\phi}(h_{t-1})$, so the only randomness in the rollout is in the observations. Its density is thereforep(h_{T}\mid\theta,\pi_{\mathcal{X}}^{\phi})=\prod_{t=1}^{T} p(y_{t}\mid\theta,x_{t},h_{t-1}),\qquad x_{t}=\pi_{\mathcal{X}}^{\phi}(h_{t-1}), \tag{34}
where dependence on $\phi$ enters through the designs $x_t$. Hence while the likelihood may not be reparametrisable in $y_t$, its log-density will be differentiable with respect to the designs. Writing $p_0(h_T)=p(h_T\mid\theta_0,\pi_{\mathcal{X}}^{\phi})$ and differentiating Equation (32) directly,\frac{\mathrm{d}\mathcal{L}{T}}{\mathrm{d}\phi}=\mathbb{E}{p(\theta_{0:L})}\left[\int \frac{\mathrm{d}}{\mathrm{d}\phi}\left{p_{0}(h_{T})R_{\phi}(h_{T})\right},\mathrm{d}h_{T}\right] \tag{35}
=\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 $\frac{\mathrm{d}}{\mathrm{d}\phi}p_{0}=p_{0}\frac{\mathrm{d}}{\mathrm{d}\phi}\log p_{0}$. Expanding the second term gives\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_{\mathcal{X}}^{\phi})\right]. \tag{37}
\mathbb{E}{p{0}}\bigg[\frac{\mathrm{d}}{\mathrm{d}\phi}\log p_{0}(h_{T})\bigg]=\int \frac{\mathrm{d}}{\mathrm{d}\phi}p_{0}(h_{T}),\mathrm{d}h_{T}=\frac{\mathrm{d}}{\mathrm{d}\phi}1=0.
\frac{\mathrm{d}\mathcal{L}{T}}{\mathrm{d}\phi}=\mathbb{E}{p(\theta_{0:L})p(h_{T}|\theta_{0},\pi_{\mathcal{X}}^{\phi})}\left[R_{\phi}(h_{T})\frac{\mathrm{d}}{\mathrm{d}\phi}\log p(h_{T}\mid\theta_{0},\pi_{\mathcal{X}}^{\phi})-\frac{\mathrm{d}}{\mathrm{d}\phi}\log\sum_{\ell=0}^{L} p(h_{T}\mid\theta_{\ell},\pi_{\mathcal{X}}^{\phi})\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. (2021). We note that the resulting gradient resembles the deterministic policy gradient used in DDPG (Lillicrap et al., 2015). The important distinction is that, rather than differentiating through a learned critic $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. ### B.1.2 STOCHASTIC POLICIES For a stochastic, non-reparametrised policy, $x_t \sim \pi_{\mathcal{X}}^{\phi}(\cdot \mid h_{t-1})$, and the rollout density isp(h_T \mid \theta,\pi_{\mathcal{X}}^{\phi})=\prod_{t=1}^{T}\pi_{\mathcal{X}}^{\phi}(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(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 $R$. 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 $x_{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(h_T)$. Therefore\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,\frac{\mathrm{d}}{\mathrm{d}\phi}\log p(h_T \mid \theta_0,\pi_{\mathcal{X}}^{\phi})=\sum_{t=1}^{T}\frac{\mathrm{d}}{\mathrm{d}\phi}\log \pi_{\mathcal{X}}^{\phi}(x_t \mid h_{t-1}),
since the observation likelihood contains no explicit $\phi$-dependence when the sampled designs are held fixed. Hence\frac{\mathrm{d}\mathcal{L}{T}}{\mathrm{d}\phi}=\mathbb{E}{p(\theta_{0:L})p(h_T|\theta_0,\pi_{\mathcal{X}}^{\phi})}\left[R(h_T)\sum_{t=1}^{T}\frac{\mathrm{d}}{\mathrm{d}\phi}\log \pi_{\mathcal{X}}^{\phi}(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. ### B.2 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\mathcal{L}{\mathrm{B A}}(\phi,\psi)=\mathbb{E}{p(\theta)p(h_{T}|\theta,\pi_{\mathcal{X}}^{\phi})}\left[R_{\psi,\phi}(\theta,h_{T})\right], \tag{41}
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_{\mathcal{X}}^{\phi}$ is deterministic and that $\log p(y \mid \theta, x)$ is differentiable with respect to $x$. Then, with both expectations taken over $p(\theta)p(h_T \mid \theta, \pi_{\mathcal{X}}^{\phi})$,\frac{\mathrm{d}\mathcal{L}{\mathrm{B A}}}{\mathrm{d}\psi}=\mathbb{E}\left[\frac{\mathrm{d}}{\mathrm{d}\psi}\log q{\psi}(\theta\mid h_{T})\right], \tag{43}
\frac{\mathrm{d}\mathcal{L}{\mathrm{B A}}}{\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_{\mathcal{X}}^{\phi})+\frac{\mathrm{d}}{\mathrm{d}\phi}R_{\psi,\phi}(\theta,h_{T})\right]. \tag{44}
\frac{\mathrm{d}\mathcal{L}{\mathrm{B A}}}{\mathrm{d}\phi}=\mathbb{E}{p(\theta)}\left[\int\frac{\mathrm{d}}{\mathrm{d}\phi}\left{p(h_{T}\mid\theta,\pi_{\mathcal{X}}^{\phi})R_{\psi,\phi}(\theta,h_{T})\right}\mathrm{d}h_{T}\right] \tag{45}
=\mathbb{E}\left[R_{\psi,\phi}(\theta,h_{T})\frac{\mathrm{d}}{\mathrm{d}\phi}\log p(h_{T}\mid\theta,\pi_{\mathcal{X}}^{\phi})+\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_{\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_{\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_{\psi}$ happens to score well. The bound of Equation (58) remains valid throughout, since it holds for any $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_{\psi}$, loses its dependence on $\phi$, the second term of Equation (44) vanishes, and the score becomes that of the policy,\frac{\mathrm{d}\mathcal{L}{\mathrm{B A}}}{\mathrm{d}\phi}=\mathbb{E}\left[R{\psi}(\theta,h_{T})\sum_{t=1}^{T}\frac{\mathrm{d}}{\mathrm{d}\phi}\log\pi_{\mathcal{X}}^{\phi}(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. ### B.3 ACTIONBED AND REINFORCE The original ActionBED work of Rossa et al. (2026) mentions that non-reparametrisable likelihoods (e.g., when $y$ is discrete) can be handled using a REINFORCE estimator (Williams, 1992) of the policy gradients. However, Rossa et al. (2026) 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 $\pi_{\mathcal{X}}^{\phi}$ is our design policy and $\pi_{\mathcal{A}}^{\phi}$ is our action policy. For a downstream loss $\ell(a,\theta)$, we define the loss $\mathcal{L}(\phi)$ on parameters via\mathcal{L}(\phi)=\mathbb{E}{p(\theta)p(h{T}|\theta,\pi_{\mathcal{X}}^{\phi})}\left[\ell(\pi_{\mathcal{A}}^{\phi}(h_{T}),\theta)\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 $\pi_{\mathcal{X}}$ is deterministic and the log-likelihood $p(y\mid\theta,x)$ is differentiable with respect to $x$. Then,\frac{\mathrm{d}\mathcal{L}}{\mathrm{d}\phi}=\mathbb{E}{p(\theta)p(h{T}|\theta,\pi_{\mathcal{X}}^{\phi})}\left[\ell\left(\pi_{\mathcal{A}}^{\phi}(h_{T}),\theta\right)\left(\frac{\mathrm{d}}{\mathrm{d}\phi}\log p(h_{T}\mid\theta,\pi_{\mathcal{X}}^{\phi})\right)+\frac{\mathrm{d}}{\mathrm{d}\phi}\ell\left(\pi_{\mathcal{A}}^{\phi}(h_{T}),\theta\right)\right]. \tag{49}
\frac{\mathrm{d}\mathcal{L}}{\mathrm{d}\phi}=\mathbb{E}{p(\theta)}\left[\int\frac{\mathrm{d}}{\mathrm{d}\phi}\left(\ell\left(\pi{\mathcal{A}}^{\phi}(h_{T}),\theta\right)p(h_{T}\mid\theta,\pi_{\mathcal{X}}^{\phi})\right)\mathrm{d}h_{T}\right] \tag{50}
=\mathbb{E}{p(\theta)}\left[\int\left(\ell\left(\pi{\mathcal{A}}^{\phi}(h_{T}),\theta\right)\frac{\mathrm{d}}{\mathrm{d}\phi}p(h_{T}\mid\theta,\pi_{\mathcal{X}}^{\phi})+p(h_{T}\mid\theta,\pi_{\mathcal{X}}^{\phi})\frac{\mathrm{d}}{\mathrm{d}\phi}\ell\left(\pi_{\mathcal{A}}^{\phi}(h_{T}),\theta\right)\right)\mathrm{d}h_{T}\right] \tag{51}
=\mathbb{E}{p(\theta)}\left[\int p(h{T}\mid\theta,\pi_{\mathcal{X}}^{\phi})\left(\ell\left(\pi_{\mathcal{A}}^{\phi}(h_{T}),\theta\right)\frac{\mathrm{d}}{\mathrm{d}\phi}\log p(h_{T}\mid\theta,\pi_{\mathcal{X}}^{\phi})+\frac{\mathrm{d}}{\mathrm{d}\phi}\ell\left(\pi_{\mathcal{A}}^{\phi}(h_{T}),\theta\right)\right)\mathrm{d}h_{T}\right] \tag{52}
=\mathbb{E}{p(\theta)p(h{T}|\theta,\pi_{\mathcal{X}}^{\phi})}\left[\ell\left(\pi_{\mathcal{A}}^{\phi}(h_{T}),\theta\right)\left(\frac{\mathrm{d}}{\mathrm{d}\phi}\log p(h_{T}\mid\theta,\pi_{\mathcal{X}}^{\phi})\right)+\frac{\mathrm{d}}{\mathrm{d}\phi}\ell\left(\pi_{\mathcal{A}}^{\phi}(h_{T}),\theta\right)\right]. \tag{53}
Note that the second summand in this expression is a total derivative, and that $h_T$ itself depends on $\phi$ through the policy $\pi_{\mathcal{X}}^{\phi}$. In the special case that the two policies do not share any parameters, i.e., $\phi = (\phi_{\mathcal{X}}, \phi_{\mathcal{A}})$ separates into two subsets such that our policies are $\pi_{\mathcal{X}}^{\phi_{\mathcal{X}}}$ and $\pi_{\mathcal{A}}^{\phi_{\mathcal{A}}}$, we see from Proposition 2 that our loss gradients take the simpler form\frac{\mathrm{d}\mathcal{L}}{\mathrm{d}\phi_{\mathcal{A}}}=\mathbb{E}{p(\theta)p(h{T}|\theta,\pi_{\mathcal{X}}^{\phi_{\mathcal{X}}})}\left[\frac{\mathrm{d}}{\mathrm{d}\phi_{\mathcal{A}}}\ell\left(\pi_{\mathcal{A}}^{\phi_{\mathcal{A}}}(h_{T}),\theta\right)\right] \tag{54}
\frac{\mathrm{d}\mathcal{L}}{\mathrm{d}\phi_{\mathcal{X}}}=\mathbb{E}{p(\theta)p(h{T}|\theta,\pi_{\mathcal{X}}^{\phi_{\mathcal{X}}})}\left[\ell\left(\pi_{\mathcal{A}}^{\phi_{\mathcal{A}}}(h_{T}),\theta\right)\left(\frac{\mathrm{d}}{\mathrm{d}\phi_{\mathcal{X}}}\log p(h_{T}\mid\theta,\pi_{\mathcal{X}}^{\phi_{\mathcal{X}}})\right)+\frac{\mathrm{d}}{\mathrm{d}\phi_{\mathcal{X}}}\ell\left(\pi_{\mathcal{A}}^{\phi_{\mathcal{A}}}(h_{T}),\theta\right)\right]. \tag{55}
That is, gradients for the action policy are the usual pathwise gradients as $\phi_{\mathcal{A}}$ does not affect the sampling distribution. On the other hand, the design policy gradient includes terms coming from the REINFORCE estimator. ## C 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 (Rossa et al., 2026) policies. We consider two closely related downstream decisions: our action $a$ is either a prediction of $\theta$ or of $\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 $\theta \mapsto \log \theta$. We predict $\theta$ on all tasks except for temporal discounting and CES, where we predict $\log \theta$. Note that in Table 13, MSE and CMSE on temporal discounting and CES refer to errors on $\log \theta$. We define $\vartheta$ as the prediction target. In both cases, $a, \vartheta \in \mathbb{R}^{d_{\Theta}}$ have the same dimensionality, so that if $a = (a_1, \ldots, a_{d_{\Theta}})$ and $\vartheta = (\vartheta, \ldots, \vartheta_{d_{\Theta}})$, we may define the coordinate-wise error $e_i = a_i - \vartheta_i$. We consider two losses. The first is the usual mean-squared-error (MSE) loss\ell_{\mathrm{MSE}}(a,\vartheta)=\frac{1}{d_{\Theta}}|a-\vartheta|^{2}=\frac{1}{d_{\Theta}}\sum_{i=1}^{d_{\Theta}}e_{i}^{2}. \tag{56}
\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 < \epsilon \ll 1$ is a small positive constant added for numerical stability; we use $\epsilon = 10^{-6}$ throughout. For the sake of consistent reporting, we follow ActionBED (Rossa et al., 2026) and normalise by the dimensionality $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 $\theta = \{\theta'_1, \ldots, \theta'_K\}$ whose order does not matter. For example, in location finding, $K$ represents the number of sources, and each $\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!$ permutations of $\theta$ and reporting the minimal value. For small values of $K$, 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 \cdot (d_{\mathcal{X}} + d_{\mathcal{Y}}), 512, 256, 128, d_{\Theta}]$ and using GELU activations (Hendrycks & Gimpel, 2016). We use the same MLP architecture for our action policy across all tasks. Note this is the same action policy architecture used for ActionBED (Rossa et al., 2026) as well. We train for 25 000 gradient steps using Adam (Kingma & Ba, 2014) with $\beta = (0.8, 0.998)$ and an initial learning rate of $5 \times 10^{-4}$ which we decay by a factor of $\gamma = 0.95$ every 1 000 steps. We use a batch size of 2 000 during training and final evaluation uses 8 192 rollouts. ## D METHODS In this section, we provide additional details on each of the methods implemented in TESTBED. As discussed in Section 3, new methods can be readily implemented within our framework. ## D.1 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. ## D.2 STATIC For a non-adaptive baseline, we consider static design optimisation, where all $T$ 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 = 4096$ inner samples on all tasks, except for Location Finding, CES, and Double Pendulum where we use $L = 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 \times 10^{-3}$, except for Double Pendulum where the cost of training at a high values of $T$, $L$ 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 = 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. ## D.3 DEEP ADAPTIVE DESIGN (DAD) DAD was a method introduced by Foster et al. (2021) 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 $T$-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., 2021), RL-BOED (Blau et al., 2022), Step-DAD (Hedman et al., 2025), ActionBED (Rossa et al., 2026), JointVarPost (Phillips et al., 2026) and ALINE (Huang et al., 2025) 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. (2021), 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. Table 3: Training hyperparameters for DAD. Values apply to all eight benchmark tasks with exceptions explicitly called out. <table><tr><td>Parameter</td><td>Value</td></tr><tr><td>Gradient estimator</td><td>Pathwise (REINFORCE with leave-one-out baseline on CES, Temporal Discounting)</td></tr><tr><td>Contrastive samples, $L$</td><td>2 000</td></tr><tr><td>Outer samples, $B$</td><td>2 048 (1 024 on Double Pendulum, Cart Pole due to memory)</td></tr><tr><td>Initial learning rate</td><td>$10^{-4}$</td></tr><tr><td>Betas</td><td>(0.9, 0.999)</td></tr><tr><td>Gradient clipping</td><td>1.0 (none on Temporal Discounting)</td></tr><tr><td>Decay factor, $\gamma$</td><td>None (CES: 0.9938; Temporal Discounting: 0.96)</td></tr><tr><td>Annealing frequency</td><td>1 000 steps (used on CES and Temporal Discounting only)</td></tr></table> Two points of note. Firstly, within Table 13 we use the shared attention design network of Section 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. ## D.4 JOINT VARIATIONAL POSTERIOR (JOINTVARPOST) This approach optimises a design policy by targeting a variational lower bound on EIG (Equation (58)).\mathcal{I}{T}(\pi) \geq \mathbb{E}{p(\theta)p(h_{T}|\theta,\pi)}[\log q_{\psi}(\theta \mid h_{T}) - \log p(\theta)], \tag{58}
which is tight when $q_{\psi}$ recovers the true posterior but remains a valid lower bound regardless of the variational fit. Barber & Agakov (2003) introduced Equation (58) as a bound on mutual information and Foster et al. (2019) 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. (2020) proposed jointly optimising the design and variational parameters in a single stochastic gradient procedure. Phillips et al. (2026) 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_{\psi}$ and the policy from scratch, with no separate posterior-pretraining phase (Phillips et al., 2026). The policy network is the shared attention architecture of Section 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. The variational posterior is a 10-component conditional mixture of Gaussians with an attention encoder that mirrors the design network (Phillips et al., 2026). 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 $\sim 670k$ trainable parameters across the eight tasks, closely matching the $\sim 650k$ 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=2$ sources are exchangeable and the label-switching symmetry would otherwise have to be learned. ## D.5 RL-BOED RL-BOED (Blau et al., 2022) formulates sequential BED as a Markov decision process (MDP, Bellman, 1957; Puterman, 1994) 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 $t$-th term is the contribution of the $t$-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 code$^{1}$ is that we use Soft Actor-Critic (SAC, Haarnoja et al., 2018) instead of REDQ to optimize the policy.$^{2}$ 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 $^{1}$Available at https://github.com/csiro-mlai/RL-BOED. $^{2}$Our implementation of SAC follows that of CleanRL (Huang et al., 2022). 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. (2026). <table><tr><td>Parameter</td><td>Value</td></tr><tr><td>Gradient estimator</td><td>Pathwise (REINFORCE with leave-one-out baseline on CES, Temporal Discounting)</td></tr><tr><td>Outer samples, $B$</td><td>2 048</td></tr><tr><td>Posterior pretraining steps</td><td>0</td></tr><tr><td>Mixture components</td><td>10</td></tr><tr><td>Policy learning rate</td><td>$10^{-5}$, cosine decay to $5 \times 10^{-6}$</td></tr><tr><td>Policy betas</td><td>(0.9, 0.999)</td></tr><tr><td>Policy gradient clipping</td><td>1.0</td></tr><tr><td>Policy EMA decay</td><td>0.99</td></tr><tr><td>Posterior net learning rate</td><td>Peak $10^{-3}$, warmup over the first 0.1% of steps, cosine decay to $10^{-6}$</td></tr><tr><td>Posterior net betas</td><td>(0.9, 0.999)</td></tr><tr><td>Posterior net gradient clipping</td><td>1.0</td></tr><tr><td>Schedule horizon</td><td>200 000 steps (280 000 on Michaelis-Menten, Temporal Discounting; 600 000 on CES, Pharmacokinetic)</td></tr></table> Table 5: Architecture of the variational posterior network used within the JointVarPost method. The encoder mirrors the shared design network of Section 5; the mixture readout replaces its design head. $D$ denotes the dimension of the space the mixture is defined over, which is $d_{\Theta}$ where $\theta$ is unconstrained and the dimension of the unconstrained coordinates otherwise. <table><tr><td>Component</td><td>Value</td></tr><tr><td>Token encoder</td><td>MLP with widths $[d_{\mathcal{X}} + d_{\mathcal{Y}}, 256, 128]$ and GELU after each hidden layer (no activation on the output)</td></tr><tr><td>Time embedding</td><td>Learned, dimension 128</td></tr><tr><td>Transformer blocks</td><td>3 blocks, width 128, 4 heads</td></tr><tr><td>Pooling</td><td>Learned CLS token</td></tr><tr><td>Trunk</td><td>Linear 128 → 128 followed by GELU</td></tr><tr><td>Output heads</td><td>Three linear heads from the trunk: component means $(mD)$, diagonal log standard deviations $(mD)$, mixing logits $(m)$</td></tr><tr><td>Mixture components, $m$</td><td>10</td></tr><tr><td>Log std. dev. range</td><td>Clamped to $[-7, 3]$</td></tr><tr><td>Support transform</td><td>Identity (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)</td></tr><tr><td>Canonicalisation</td><td>Source ordering sorted on Location Finding only</td></tr><tr><td>Trainable parameters</td><td>669k to 675k depending on the task</td></tr></table>  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+1$ tokens are normalised and then pass through the pre-norm transformer blocks, each applying $x \mapsto x + \text{MHA}(\text{LN}(x))$ and then $x \mapsto x + \text{MLP}(\text{LN}(x))$. The CLS position is read out and passed to the mixture head, whose three linear heads parametrise a $m$-component Gaussian mixture over unconstrained coordinates $z$, which a task-specific bijection pushes onto the support of $\theta$. Note, each history token $t$ carries the time embedding of $t$ while the CLS token carries the embedding of index $t$, 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. 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. (2022) 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 $\gamma = 0.99$ instead of the default $\gamma = 0.9$ from the paper. 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. <table border="1"><tr><td>Parameter</td><td>Value</td></tr><tr><td>RL algorithm</td><td>Soft Actor-Critic with twin critics and a learned temperature</td></tr><tr><td>Actor network</td><td>Shared attention architecture (Section E): encoder width 256, embedding dimension 128, 4 heads, 3 blocks</td></tr><tr><td>Critic networks</td><td>DeepSets encoder and readout MLP with hidden widths [128, 128], embedding dimension 64, as in the original implementation</td></tr><tr><td>Policy head</td><td>Gaussian squashed by tanh into the design box, with $\log \sigma \in [-20, 0]$ and initial $\sigma = 3^{-1/2}$ before squashing</td></tr><tr><td>Reward</td><td>Dense (telescoping) sPCE reward with $L = 100\,000$ contrastive samples</td></tr><tr><td>Episodes per iteration</td><td>100 (parallel environments)</td></tr><tr><td>Gradient steps per iteration</td><td>64</td></tr><tr><td>Batch size</td><td>4,096 transitions</td></tr><tr><td>Replay buffer size</td><td>$10^6$ transitions ($10^7$ on Location Finding)</td></tr><tr><td>Learning starts after</td><td>100,000 transitions</td></tr><tr><td>Optimiser</td><td>Adam</td></tr><tr><td>Critic learning rate</td><td>$3 \times 10^{-4}$</td></tr><tr><td>Actor learning rate</td><td>$3 \times 10^{-4}$ ($10^{-4}$ on Location Finding); also used for the temperature</td></tr><tr><td>Discount factor, $\gamma$</td><td>0.9 (0.99 on Stochastic Pendulum, Cart Pole)</td></tr><tr><td>Target smoothing, $\tau$</td><td>0.001 (0.005 on Temporal Discounting, CES, Pharmacokinetic, Michaelis-Menten)</td></tr><tr><td>Initial temperature</td><td>1</td></tr><tr><td>Target entropy</td><td>Initially $-d_{\mathcal{X}}$ (the negative design dimension), reduced by $7.143 \times 10^{-5}$ per iteration up to a total reduction of 1.429 (reached after about 20,000 iterations)</td></tr></table> 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 $^{\dagger}$: on Location Finding the task is unbounded, on Temporal Discounting it is $D_1 \geq 0$, $R_0 \in [0, 100]$, and on CES it is $[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. <table border="1"><tr><td>Task</td><td>Design box</td><td>Outcome range</td></tr><tr><td>Location Finding$^{\dagger}$</td><td>$[-4, 4]^2$</td><td>$[-3, 10]$</td></tr><tr><td>Temporal Discounting$^{\dagger}$</td><td>$D_1 \in [0.5, 200], R_0 \in [1, 99]$</td><td>$[0, 1]$</td></tr><tr><td>CES$^{\dagger}$</td><td>$[0.01, 100]^6$</td><td>$[0, 1]$</td></tr><tr><td>Pharmacokinetic</td><td>$[0, 24]$</td><td>$[-2, 70]$</td></tr><tr><td>Michaelis-Menten</td><td>$[0, 400]$</td><td>$[-10, 210]$</td></tr><tr><td>Stochastic Pendulum</td><td>$[-1, 1]$</td><td>$[-10, 10]$</td></tr><tr><td>Cart Pole</td><td>$[-5, 5]$</td><td>$[-10, 10]$</td></tr><tr><td>Double Pendulum</td><td>$[-4, 4] \times [-2, 2]$</td><td>$[-10, 10]$</td></tr></table> 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. ## D.6 ALINE ALINE (Huang et al., 2025) 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 (Nguyen & Grover, 2022), 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,³ 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, Bickford Smith et al., 2023). 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 $T$ designs rather than the last $T-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. 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 $L$, we use the original values: $L = 10^6$ for location finding and $L = 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 $u$ of the latent Gaussian is represented: TESTBED includes $u \sim \text{LogNormal}(1, 3)$ itself in the hidden parameters, whereas the original includes $\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]$ before ³Available at https://github.com/huangdaolang/aline. 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. <table border="1"><tr><td>Parameter</td><td>Value</td></tr><tr><td>Network</td><td>Shared 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</td></tr><tr><td>Warm-up iterations</td><td>20,000 (inference network only, with designs drawn uniformly from the design space)</td></tr><tr><td>Outer samples per iteration</td><td>200 rollouts</td></tr><tr><td>Candidate pool, training</td><td>200 designs drawn afresh for each rollout</td></tr><tr><td>Candidate pool, evaluation</td><td>2,000 designs, with the policy acting deterministically</td></tr><tr><td>Optimiser</td><td>AdamW, weight decay 0.01</td></tr><tr><td>Learning rate</td><td>Warm-up: $10^{-3}$ with cosine decay over the full 200,000 iterations. Joint phase: optimiser and cosine schedule restarted, with $10^{-3}$ for the acquisition head and $2 \times 10^{-4}$ for all other parameters</td></tr><tr><td>Gradient clipping</td><td>1.0 (on the $\ell_\infty$ norm of the gradient)</td></tr><tr><td>Policy loss weight, $\alpha$</td><td>1.0</td></tr><tr><td>Reward discount, $\gamma$</td><td>1.0</td></tr><tr><td>Policy reward</td><td>Incremental posterior log-density gains, clipped at zero and standardised across the batch</td></tr><tr><td>Canonicalise $\theta$</td><td>Location Finding only (its two sources are exchangeable)</td></tr></table> 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$ before being passed to the network; the table gives the centre and scale as $(c; s)$. Outcomes are not clipped. A single value applies to every coordinate, and a dash denotes no rescaling. <table border="1"><tr><td>Task</td><td>Design box</td><td>Design $(c; s)$</td><td>Outcome $(c; s)$</td></tr><tr><td>Location Finding$^{\dagger}$</td><td>$[-4, 4]^{2}$</td><td>—</td><td>—</td></tr><tr><td>Temporal Discounting$^{\dagger}$</td><td>$[0.5, 200] \times [1, 99]$</td><td>$(100.25, 50); (99.75, 49)$</td><td>0.5; 0.5</td></tr><tr><td>CES</td><td>$[0, 100]^{6}$</td><td>50; 50</td><td>0.5; 0.5</td></tr><tr><td>Pharmacokinetic</td><td>$[0, 24]$</td><td>—</td><td>—</td></tr><tr><td>Michaelis-Menten</td><td>$[0, 400]$</td><td>200; 200</td><td>100; 100</td></tr><tr><td>Stochastic Pendulum</td><td>$[-1, 1]$</td><td>—</td><td>0; $(3, 8)$</td></tr><tr><td>Cart Pole</td><td>$[-5, 5]$</td><td>0; 5</td><td>0; $(10, 2, 8, 5)$</td></tr><tr><td>Double Pendulum</td><td>$[-4, 4] \times [-2, 2]$</td><td>0; $(4, 2)$</td><td>0; $(8, 10, 12, 25)$</td></tr></table> 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. <table border="1"><tr><td></td><td>Original</td><td>Benchmark</td></tr><tr><td>Embedding dimension</td><td>32</td><td>128</td></tr><tr><td>Feedforward dimension</td><td>128</td><td>384</td></tr><tr><td>Parameters (total)</td><td>97.5K</td><td>1.15M</td></tr><tr><td>Parameters (policy)</td><td>51.4K</td><td>647K</td></tr></table> Table 11: EIG lower bound (sPCE) of ALINE on the location finding and CES tasks of Huang et al. (2025). Original: numbers from Table 2 of Huang et al. (2025). Ours: our reimplementation, trained on the same task specifications and network sizes. <table border="1"><tr><td></td><td>Location Finding ($T=30$)</td><td>Constant Elasticity of Substitution ($T=10$)</td></tr><tr><td>Original</td><td>$8.91 \pm 0.04$</td><td>$13.50 \pm 0.15$</td></tr><tr><td>Ours</td><td>$8.92 \pm 0.02$</td><td>$13.50 \pm 0.06$</td></tr></table> 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 $u$ parameterization, trained stably without it. ## D.7 ACTIONBED ActionBED (Rossa et al., 2026) is a policy learning method for BED which jointly optimises an action policy $\pi_{\mathcal{A}}$ alongside the design policy $\pi_{\mathcal{X}}$ in order to minimise a downstream loss function $\ell(a,\theta)$ defined between actions $a \in \mathcal{A}$ and the parameters $\theta \in \Theta$, i.e., the objective is $\min_{\pi_{\mathcal{A}},\pi_{\mathcal{X}}} \mathbb{E}_{p(\theta)p(h_T|\theta,\pi)}[\ell(\pi_{\mathcal{A}}(h_T),\theta)]$. The action policy $\pi_{\mathcal{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: $\ell_{\mathrm{MSE}}$ and $\ell_{\mathrm{CMSE}}$ on the original scale of $\theta$, as well as $\ell_{\mathrm{MSE-L}}$ and $\ell_{\mathrm{CMSE-L}}$, i.e., the MSE and CMSE losses on $\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. Table 12: Hyperparameters for ActionBED method, shared across all tasks unless stated otherwise. <table border="1"><tr><td>Component</td><td>Value</td></tr><tr><td>Action network</td><td>MLP with widths $[T(d_{\mathcal{X}}+d_{\mathcal{Y}}), 512, 256, 128, d_{\Theta}]$ and GELU after each hidden layer (no activation on the output)</td></tr><tr><td>Action net. parameters</td><td>175k to 319k depending on the task</td></tr><tr><td>Gradient estimator</td><td>Pathwise; REINFORCE with a leave-one-out baseline on Temporal Discounting</td></tr><tr><td>Action warm-up</td><td>25,000 steps training on designs sampled at random from the design space</td></tr><tr><td>Batch size</td><td>2,000 rollouts per step</td></tr><tr><td>Optimiser</td><td>Adam, learning rate $5 \times 10^{-4}$, $\beta = (0.8, 0.998)$</td></tr><tr><td>Learning rate schedule</td><td>Multiplied by 0.95 every 2,000 steps after warm-up</td></tr><tr><td>Gradient clipping</td><td>750 by default; 5 on Temporal Discounting</td></tr></table>  Figure 7: The DeepSets design policy network of the architecture ablation (Table 1), following the location finding network of Foster et al. (2021). 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 $\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. (2021) 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 $s$ is concatenated onto history pair $s$ 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. ## E NETWORK ARCHITECTURES This section describes the various architectures used for our design policies. As discussed in Section 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, 2022) architecture used in ALINE (Huang et al., 2025) and other works (Rossa et al., 2026). Each observation $(x_s, y_s)$ in a history $h_t = \{(x_s, y_s) : s \leq t\}$ is concatenated to give $t$ tokens of dimension $d_{\mathcal{X}} + d_y$, which are passed through a small MLP embedding block to obtain $t$ fixed-dimensional embeddings. Optionally, learned timestep embeddings are added to these token-wise embeddings. An additional, learned $t+1$th embedding is concatenated to these. The full stack of $t+1$ embeddings is passed through a transformer block, and the resulting encoding for the $t+1$th position is used as a readout token, which is passed through a small MLP before being decoded into the resulting design $x_{t+1}$. In Section 5.2, we perform an architecture ablation in which we replace this attention-based architecture with a simpler DeepSets-based architecture (Foster et al., 2021; Zaheer et al., 2017). This is summarised in Figure 7. Each observation $(x_s, y_s)$ in a history $h_t = \{(x_s, y_s) : s \leq t\}$ is again concatenated to give $t$ tokens of dimension $d_{\mathcal{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=1$ case is handled by a learnable null encoding.  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+1$ tokens are normalised and passed through three pre-norm transformer blocks. The CLS position is read out and decoded into an unconstrained design $\bar{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 $s$ carries the embedding of $s$ and the CLS token the embedding of $t$; 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. ## F ADDITIONAL EMPIRICAL RESULTS This section contains additional experimental results. Section F.1 expands on the results in our main benchmark in Section 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. ## F.1 FULL BENCHMARKING RESULTS For our benchmark in Section 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 = 10^9$ contrastive samples over $N = 2\,048$ 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 = 8\,192$ 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 Section 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(\theta)$ has components which are log-normal, making a log-scaling natural. Table 13: Lower and upper bounds on the EIG (mean ± standard error over 5 seeds), estimated using $L=10^9$, $N=2048$. All policy-based methods are trained for a fixed 12-hour wall-clock budget, and use an attention-based design policy architecture. <table><tr><td colspan="3">Location Finding</td></tr><tr><td>Method</td><td>Lower</td><td>Upper</td></tr><tr><td>Random</td><td>$8.300\pm0.019$</td><td>$8.300\pm0.019$</td></tr><tr><td>Static</td><td>$8.867\pm0.014$</td><td>$8.867\pm0.013$</td></tr><tr><td>DAD</td><td>$14.334\pm0.223$</td><td>$14.359\pm0.228$</td></tr><tr><td>JointVarPost ($m=10$)</td><td>$17.848\pm0.198$</td><td>$18.775\pm0.298$</td></tr><tr><td>JointVarPost ($m=1$)</td><td>$17.895\pm0.165$</td><td>$18.879\pm0.270$</td></tr><tr><td>ALINE</td><td>$14.693\pm0.033$</td><td>$14.723\pm0.034$</td></tr><tr><td>RL-BOED</td><td>$12.188\pm0.022$</td><td>$12.190\pm0.022$</td></tr><tr><td>ActionBED (MSE)</td><td>$12.000\pm0.090$</td><td>$12.000\pm0.090$</td></tr><tr><td>ActionBED (CMSE)</td><td>$18.563\pm0.068$</td><td>$20.034\pm0.114$</td></tr><tr><td>ActionBED (MSE-L)</td><td>-</td><td>-</td></tr></table> <table><tr><td colspan="3">Michaelis Menten</td></tr><tr><td>Method</td><td>Lower</td><td>Upper</td></tr><tr><td>Random</td><td>$4.975\pm0.010$</td><td>$4.975\pm0.010$</td></tr><tr><td>Static</td><td>$5.978\pm0.015$</td><td>$5.978\pm0.015$</td></tr><tr><td>DAD</td><td>$6.010\pm0.009$</td><td>$6.010\pm0.009$</td></tr><tr><td>JointVarPost ($m=10$)</td><td>$5.914\pm0.073$</td><td>$5.914\pm0.073$</td></tr><tr><td>JointVarPost ($m=1$)</td><td>$5.859\pm0.059$</td><td>$5.859\pm0.059$</td></tr><tr><td>ALINE</td><td>$5.984\pm0.017$</td><td>$5.984\pm0.017$</td></tr><tr><td>RL-BOED</td><td>$5.946\pm0.007$</td><td>$5.946\pm0.007$</td></tr><tr><td>ActionBED (MSE)</td><td>$5.627\pm0.116$</td><td>$5.627\pm0.116$</td></tr><tr><td>ActionBED (CMSE)</td><td>$5.492\pm0.137$</td><td>$5.492\pm0.137$</td></tr><tr><td>ActionBED (MSE-L)</td><td>$5.697\pm0.063$</td><td>$5.697\pm0.063$</td></tr></table> <table><tr><td colspan="3">Temporal Discounting</td></tr><tr><td>Method</td><td>Lower</td><td>Upper</td></tr><tr><td>Random</td><td>$2.061\pm0.018$</td><td>$2.061\pm0.018$</td></tr><tr><td>Static</td><td>$2.572\pm0.011$</td><td>$2.572\pm0.011$</td></tr><tr><td>DAD</td><td>$4.811\pm0.031$</td><td>$4.811\pm0.031$</td></tr><tr><td>JointVarPost ($m=10$)</td><td>$4.612\pm0.045$</td><td>$4.612\pm0.045$</td></tr><tr><td>JointVarPost ($m=1$)</td><td>$4.638\pm0.033$</td><td>$4.638\pm0.033$</td></tr><tr><td>ALINE</td><td>$4.499\pm0.057$</td><td>$4.499\pm0.057$</td></tr><tr><td>RL-BOED</td><td>$4.233\pm0.022$</td><td>$4.233\pm0.022$</td></tr><tr><td>ActionBED (MSE)</td><td>$0.854\pm0.015$</td><td>$0.854\pm0.015$</td></tr><tr><td>ActionBED (CMSE)</td><td>$4.238\pm0.025$</td><td>$4.238\pm0.025$</td></tr><tr><td>ActionBED (MSE-L)</td><td>$3.371\pm0.103$</td><td>$3.371\pm0.103$</td></tr><tr><td>ActionBED (CMSE-L)</td><td>$4.712\pm0.044$</td><td>$4.712\pm0.044$</td></tr></table> <table><tr><td colspan="3">Double Pendulum</td></tr><tr><td>Method</td><td>Lower</td><td>Upper</td></tr><tr><td>Random</td><td>$8.468\pm0.019$</td><td>$8.471\pm0.021$</td></tr><tr><td>Static</td><td>$12.310\pm0.039$</td><td>$12.317\pm0.041$</td></tr><tr><td>DAD</td><td>$12.045\pm0.170$</td><td>$12.050\pm0.169$</td></tr><tr><td>JointVarPost ($m=10$)</td><td>$11.568\pm0.056$</td><td>$11.572\pm0.056$</td></tr><tr><td>JointVarPost ($m=1$)</td><td>$11.202\pm0.108$</td><td>$11.206\pm0.108$</td></tr><tr><td>ALINE</td><td>$8.070\pm0.106$</td><td>$8.070\pm0.106$</td></tr><tr><td>RL-BOED</td><td>$11.591\pm0.023$</td><td>$11.594\pm0.022$</td></tr><tr><td>ActionBED (MSE)</td><td>$11.330\pm0.180$</td><td>$11.332\pm0.179$</td></tr><tr><td>ActionBED (CMSE)</td><td>$11.254\pm0.071$</td><td>$11.256\pm0.071$</td></tr><tr><td>ActionBED (MSE-L)</td><td>$11.269\pm0.062$</td><td>$11.271\pm0.062$</td></tr></table> <table><tr><td colspan="3">Pharmacokinetic</td></tr><tr><td>Method</td><td>Lower</td><td>Upper</td></tr><tr><td>Random</td><td>$3.370\pm0.018$</td><td>$3.370\pm0.018$</td></tr><tr><td>Static</td><td>$4.053\pm0.018$</td><td>$4.053\pm0.018$</td></tr><tr><td>DAD</td><td>$4.079\pm0.008$</td><td>$4.079\pm0.008$</td></tr><tr><td>JointVarPost ($m=10$)</td><td>$4.041\pm0.014$</td><td>$4.041\pm0.014$</td></tr><tr><td>JointVarPost ($m=1$)</td><td>$3.721\pm0.028$</td><td>$3.721\pm0.028$</td></tr><tr><td>ALINE</td><td>$3.808\pm0.005$</td><td>$3.808\pm0.005$</td></tr><tr><td>RL-BOED</td><td>$4.005\pm0.025$</td><td>$4.005\pm0.025$</td></tr><tr><td>ActionBED (MSE)</td><td>$2.754\pm0.167$</td><td>$2.754\pm0.167$</td></tr><tr><td>ActionBED (CMSE)</td><td>$3.710\pm0.058$</td><td>$3.710\pm0.058$</td></tr><tr><td>ActionBED (MSE-L)</td><td>$3.778\pm0.044$</td><td>$3.778\pm0.044$</td></tr></table> <table><tr><td colspan="3">CES</td></tr><tr><td>Method</td><td>Lower</td><td>Upper</td></tr><tr><td>Random</td><td>$9.697\pm0.102$</td><td>$9.786\pm0.101$</td></tr><tr><td>Static</td><td>$11.254\pm0.137$</td><td>$11.350\pm0.148$</td></tr><tr><td>DAD</td><td>$12.636\pm0.821$</td><td>$12.705\pm0.853$</td></tr><tr><td>JointVarPost ($m=10$)</td><td>$14.317\pm0.289$</td><td>$14.380\pm0.295$</td></tr><tr><td>JointVarPost ($m=1$)</td><td>$15.148\pm0.277$</td><td>$15.276\pm0.292$</td></tr><tr><td>ALINE</td><td>$14.656\pm0.040$</td><td>$14.754\pm0.042$</td></tr><tr><td>RL-BOED</td><td>$14.940\pm0.121$</td><td>$15.193\pm0.183$</td></tr><tr><td>ActionBED (MSE)</td><td>$5.504\pm1.299$</td><td>$5.504\pm1.299$</td></tr><tr><td>ActionBED (CMSE)</td><td>$3.829\pm0.550$</td><td>$3.829\pm0.550$</td></tr><tr><td>ActionBED (MSE-L)</td><td>$15.767\pm0.256$</td><td>$16.239\pm0.317$</td></tr><tr><td>ActionBED (CMSE-L)</td><td>$13.643\pm0.566$</td><td>$13.677\pm0.584$</td></tr></table> <table><tr><td colspan="3">Stochastic Pendulum</td></tr><tr><td>Method</td><td>Lower</td><td>Upper</td></tr><tr><td>Random</td><td>$2.340\pm0.016$</td><td>$2.340\pm0.016$</td></tr><tr><td>Static</td><td>$3.982\pm0.018$</td><td>$3.982\pm0.018$</td></tr><tr><td>DAD</td><td>$3.952\pm0.027$</td><td>$3.952\pm0.027$</td></tr><tr><td>JointVarPost ($m=10$)</td><td>$3.890\pm0.036$</td><td>$3.890\pm0.036$</td></tr><tr><td>JointVarPost ($m=1$)</td><td>$3.930\pm0.011$</td><td>$3.930\pm0.011$</td></tr><tr><td>ALINE</td><td>$2.633\pm0.023$</td><td>$2.633\pm0.023$</td></tr><tr><td>RL-BOED</td><td>$3.891\pm0.015$</td><td>$3.891\pm0.015$</td></tr><tr><td>ActionBED (MSE)</td><td>$3.939\pm0.034$</td><td>$3.939\pm0.034$</td></tr><tr><td>ActionBED (CMSE)</td><td>$3.957\pm0.015$</td><td>$3.957\pm0.015$</td></tr><tr><td>ActionBED (MSE-L)</td><td>$3.895\pm0.036$</td><td>$3.895\pm0.036$</td></tr></table> <table><tr><td colspan="3">Cart Pole</td></tr><tr><td>Method</td><td>Lower</td><td>Upper</td></tr><tr><td>Random</td><td>$4.728\pm0.020$</td><td>$4.728\pm0.020$</td></tr><tr><td>Static</td><td>$7.148\pm0.018$</td><td>$7.148\pm0.018$</td></tr><tr><td>DAD</td><td>$7.186\pm0.017$</td><td>$7.186\pm0.017$</td></tr><tr><td>JointVarPost ($m=10$)</td><td>$7.047\pm0.021$</td><td>$7.047\pm0.021$</td></tr><tr><td>JointVarPost ($m=1$)</td><td>$6.917\pm0.041$</td><td>$6.917\pm0.041$</td></tr><tr><td>ALINE</td><td>$4.736\pm0.043$</td><td>$4.736\pm0.043$</td></tr><tr><td>RL-BOED</td><td>$6.885\pm0.092$</td><td>$6.885\pm0.092$</td></tr><tr><td>ActionBED (MSE)</td><td>$6.721\pm0.039$</td><td>$6.721\pm0.039$</td></tr><tr><td>ActionBED (CMSE)</td><td>$6.725\pm0.031$</td><td>$6.725\pm0.031$</td></tr><tr><td>ActionBED (MSE-L)</td><td>$6.749\pm0.052$</td><td>$6.749\pm0.052$</td></tr></table> Table 14: Losses attained by fitting an MLP on top of the frozen designer (mean ± standard error over five seeds), fit by minimising the MSE between the output of the MLP and $\theta$. CES and temporal discounting predict $\log \theta$ instead of $\theta$. <table><tr><td colspan="3">Location Finding</td></tr><tr><td>Method</td><td>MSE</td><td>CMSE</td></tr><tr><td>Random</td><td>0.328±0.002</td><td>-2.522±0.012</td></tr><tr><td>Static</td><td>0.090±0.001</td><td>-5.151±0.001</td></tr><tr><td>DAD</td><td>0.068±0.015</td><td>-6.460±0.167</td></tr><tr><td>JointVarPost (m = 10)</td><td>0.030±0.001</td><td>-8.283±0.125</td></tr><tr><td>JointVarPost (m = 1)</td><td>0.021±0.003</td><td>-8.592±0.099</td></tr><tr><td>ALINE</td><td>0.05121±0.00047</td><td>-4.4137±0.0153</td></tr><tr><td>RL-BOED</td><td>0.091±0.002</td><td>-4.299±0.020</td></tr><tr><td>ActionBED (MSE)</td><td>0.009±0.0004</td><td>-6.782±0.036</td></tr><tr><td>ActionBED (CMSE)</td><td>0.019±0.001</td><td>-8.876±0.081</td></tr><tr><td>ActionBED (MSE-L)</td><td>-</td><td>-</td></tr></table> <table><tr><td colspan="3">Michaelis Menten</td></tr><tr><td>Method</td><td>MSE</td><td>CMSE</td></tr><tr><td>Random</td><td>145.664±4.866</td><td>148.363±4.935</td></tr><tr><td>Static</td><td>50.198±0.746</td><td>51.375±0.764</td></tr><tr><td>DAD</td><td>55.331±1.714</td><td>56.460±1.724</td></tr><tr><td>JointVarPost (m = 10)</td><td>64.316±16.983</td><td>65.588±17.154</td></tr><tr><td>JointVarPost (m = 1)</td><td>59.419±12.135</td><td>60.662±12.235</td></tr><tr><td>ALINE</td><td>59.15±1.80</td><td>60.62±1.85</td></tr><tr><td>RL-BOED</td><td>67.947±0.712</td><td>69.392±0.715</td></tr><tr><td>ActionBED (MSE)</td><td>53.044±2.331</td><td>54.561±2.394</td></tr><tr><td>ActionBED (CMSE)</td><td>54.825±4.677</td><td>56.449±4.817</td></tr><tr><td>ActionBED (MSE-L)</td><td>47.175±1.572</td><td>48.531±1.646</td></tr></table> <table><tr><td colspan="3">Temporal Discounting</td></tr><tr><td>Method</td><td>MSE</td><td>CMSE</td></tr><tr><td>Random</td><td>0.725±0.009</td><td>-1.435±0.009</td></tr><tr><td>Static</td><td>0.613±0.10</td><td>-2.569±0.015</td></tr><tr><td>DAD</td><td>0.290±0.009</td><td>-4.918±0.059</td></tr><tr><td>JointVarPost (m = 10)</td><td>0.318±0.009</td><td>-4.806±0.058</td></tr><tr><td>JointVarPost (m = 1)</td><td>0.287±0.009</td><td>-4.974±0.046</td></tr><tr><td>ALINE</td><td>0.6028±0.0075</td><td>-3.326±0.017</td></tr><tr><td>RL-BOED</td><td>0.548±0.009</td><td>-3.745±0.014</td></tr><tr><td>ActionBED (MSE)</td><td>1.264±0.019</td><td>-0.546±0.029</td></tr><tr><td>ActionBED (CMSE)</td><td>0.233±0.004</td><td>-4.773±0.035</td></tr><tr><td>ActionBED (MSE-L)</td><td>0.157±0.004</td><td>-4.053±0.093</td></tr><tr><td>ActionBED (CMSE-L)</td><td>0.290±0.011</td><td>-5.011±0.040</td></tr></table> <table><tr><td colspan="3">Double Pendulum</td></tr><tr><td>Method</td><td>MSE</td><td>CMSE</td></tr><tr><td>Random</td><td>0.00172±0.000014</td><td>-7.950±0.008</td></tr><tr><td>Static</td><td>0.000201±0.00000762</td><td>-9.859±0.028</td></tr><tr><td>DAD</td><td>0.000200±0.00000708</td><td>-9.838±0.023</td></tr><tr><td>JointVarPost (m = 10)</td><td>0.000218±0.0000170</td><td>-9.867±0.046</td></tr><tr><td>JointVarPost (m = 1)</td><td>0.000180±0.0000101</td><td>-9.955±0.037</td></tr><tr><td>ALINE</td><td>0.0027±0.0000</td><td>-7.386±0.032</td></tr><tr><td>RL-BOED</td><td>0.000286±0.000009</td><td>-9.595±0.038</td></tr><tr><td>ActionBED (MSE)</td><td>0.000146±0.00000614</td><td>-10.084±0.032</td></tr><tr><td>ActionBED (CMSE)</td><td>0.000128±0.00000484</td><td>-10.084±0.032</td></tr><tr><td>ActionBED (MSE-L)</td><td>0.000136±0.0000109</td><td>-10.174±0.062</td></tr></table> <table><tr><td colspan="3">Pharmacokinetic</td></tr><tr><td>Method</td><td>MSE</td><td>CMSE</td></tr><tr><td>Random</td><td>0.940±0.005</td><td>-3.961±0.013</td></tr><tr><td>Static</td><td>0.624±0.021</td><td>-4.967±0.060</td></tr><tr><td>DAD</td><td>0.734±0.046</td><td>-4.882±0.070</td></tr><tr><td>JointVarPost (m = 10)</td><td>0.523±0.006</td><td>-5.311±0.019</td></tr><tr><td>JointVarPost (m = 1)</td><td>0.375±0.006</td><td>-5.415±0.021</td></tr><tr><td>ALINE</td><td>0.477±0.007</td><td>-5.0611±0.0340</td></tr><tr><td>RL-BOED</td><td>0.716±0.019</td><td>-4.644±0.068</td></tr><tr><td>ActionBED (MSE)</td><td>0.490±0.054</td><td>-4.635±0.169</td></tr><tr><td>ActionBED (CMSE)</td><td>0.390±0.013</td><td>-5.325±0.093</td></tr><tr><td>ActionBED (MSE-L)</td><td>0.726±0.070</td><td>-4.913±0.096</td></tr></table> <table><tr><td colspan="3">CES</td></tr><tr><td>Method</td><td>MSE</td><td>CMSE</td></tr><tr><td>Random</td><td>1.860±0.138</td><td>0.728±0.192</td></tr><tr><td>Static</td><td>0.532±0.032</td><td>-2.540±0.094</td></tr><tr><td>DAD</td><td>0.311±0.035</td><td>-3.620±0.207</td></tr><tr><td>JointVarPost (m = 10)</td><td>0.266±0.027</td><td>-3.860±0.200</td></tr><tr><td>JointVarPost (m = 1)</td><td>0.141±0.012</td><td>-5.320±0.189</td></tr><tr><td>ALINE</td><td>0.8604±0.0103</td><td>-1.894±0.028</td></tr><tr><td>RL-BOED</td><td>0.534±0.011</td><td>-2.082±0.073</td></tr><tr><td>ActionBED (MSE)</td><td>0.863±0.083</td><td>-1.01±0.325</td></tr><tr><td>ActionBED (CMSE)</td><td>1.127±0.070</td><td>-0.254±0.141</td></tr><tr><td>ActionBED (MSE-L)</td><td>0.053±0.004</td><td>-5.978±0.174</td></tr><tr><td>ActionBED (CMSE-L)</td><td>0.178±0.027</td><td>-5.882±0.187</td></tr></table> <table><tr><td colspan="3">Stochastic Pendulum</td></tr><tr><td>Method</td><td>MSE</td><td>CMSE</td></tr><tr><td>Random</td><td>0.00312±0.0000254</td><td>-7.377±0.011</td></tr><tr><td>Static</td><td>0.000555±0.0000195</td><td>-9.344±0.034</td></tr><tr><td>DAD</td><td>0.000492±0.0000842</td><td>-9.402±0.010</td></tr><tr><td>JointVarPost (m = 10)</td><td>0.000560±0.0000667</td><td>-9.290±0.062</td></tr><tr><td>JointVarPost (m = 1)</td><td>0.000437±0.0000193</td><td>-9.244±0.0028</td></tr><tr><td>ALINE</td><td>0.0044±0.0001</td><td>-6.9631±0.0369</td></tr><tr><td>RL-BOED</td><td>0.000618±0.000016</td><td>-9.268±0.016</td></tr><tr><td>ActionBED (MSE)</td><td>0.000480±0.0000239</td><td>-9.339±0.046</td></tr><tr><td>ActionBED (CMSE)</td><td>0.000442±0.0000151</td><td>-9.431±0.0376</td></tr><tr><td>ActionBED (MSE-L)</td><td>0.00042±0.0000215</td><td>-9.368±0.034</td></tr></table> <table><tr><td colspan="3">Cart Pole</td></tr><tr><td>Method</td><td>MSE</td><td>CMSE</td></tr><tr><td>Random</td><td>0.00139±0.000015</td><td>-8.009±0.130</td></tr><tr><td>Static</td><td>0.000222±0.00000689</td><td>-9.772±0.039</td></tr><tr><td>DAD</td><td>0.000200±0.00000603</td><td>-9.710±0.0560</td></tr><tr><td>JointVarPost (m = 10)</td><td>0.00025±0.00000980</td><td>-9.716±0.055</td></tr><tr><td>JointVarPost (m = 1)</td><td>0.000226±0.0000742</td><td>-9.715±0.064</td></tr><tr><td>ALINE</td><td>0.0025±0.0002</td><td>-7.640±0.070</td></tr><tr><td>RL-BOED</td><td>0.000255±0.000007</td><td>-9.657±0.023</td></tr><tr><td>ActionBED (MSE)</td><td>0.000198±0.0000271</td><td>-9.773±0.019</td></tr><tr><td>ActionBED (CMSE)</td><td>0.000204±0.0000226</td><td>-9.782±0.008</td></tr><tr><td>ActionBED (MSE-L)</td><td>0.000205±0.0000554</td><td>-9.737±0.035</td></tr></table> ## F.2 VARIATIONAL POSTERIOR ABLATIONS Here, we study the choice of variational family in the JointVarPost method. First, we compare JointVarPost using $m=1$ versus $m=10$ mixture components in its Gaussian mixture variational family (Section D.4). These results are contained in Table 13. Both $m=1$ and $m=10$ both offer relatively close performance in terms of both EIG. However, using only a single mixture component tends to outperform $m=10$ in terms of downstream MSE. While the $m=10$ mixture is more expressive, the variational family only needs to approximate the posterior after all $T$ 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_\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, $\theta = (k, \alpha)$ with $\log k \sim \mathcal{N}(-4.25, 1.5^2)$ and $\alpha \sim \text{HalfNormal}(2)$. We compare a 10-component mixture placed directly on $\mathbb{R}^2$ with one placed on $(\log k, \alpha)$, the coordinates in which the prior on $k$ is exactly Gaussian, and pushed through an exponential map on $k$. The first wastes mass on $k \leq 0$ and fits the skewed posterior on $k$ poorly. We leave $\alpha$ untransformed, since its prior has its mode at zero and $\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_\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 (Foster et al., 2021; Hedman et al., 2025) 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). Table 15: JointVarPost on Temporal Discounting with two variational families. Unconstrained places the Gaussian mixture directly on $\theta = (k, \alpha) \in \mathbb{R}^2$. Transformed places it on $(\log k, \alpha)$ and pushes it through an exponential map on $k$, leaving $\alpha$ unchanged. Both give valid Barber-Agakov bounds, but the transformed family puts no mass on $k \leq 0$ 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,048$ and $L=10^6$. Mean $\pm$ standard error over five seeds. <table><tr><td>Variational family</td><td>Lower Bound</td><td>Upper Bound</td></tr><tr><td>Unconstrained</td><td>4.327$\pm$0.081</td><td>4.328$\pm$0.081</td></tr><tr><td>Transformed (exp on $k$)</td><td>4.561$\pm$0.057</td><td>4.561$\pm$0.057</td></tr></table> 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 (Foster et al., 2021; Hedman et al., 2025); the only difference is that the null encoding is learned rather than fixed to zero. <table><tr><td>Component</td><td>Value</td></tr><tr><td>Token encoder</td><td>MLP on the unconstrained design $\tilde{x}_s$ alone, widths [2, 256, 256, $2 \times 16$], Softplus after each hidden layer</td></tr><tr><td>Outcome gating</td><td>The two 16-dimensional heads are mixed by the binary outcome, $y_s h_s^{(1)} + (1 - y_s) h_s^{(0)}$</td></tr><tr><td>Time embedding</td><td>None</td></tr><tr><td>Pooling</td><td>Sum over $s \leq t$; learned null encoding for the empty history</td></tr><tr><td>Emitter</td><td>MLP with widths [16, 256, 256, 2], Softplus after each hidden layer</td></tr><tr><td>Output</td><td>Unconstrained design $(\tilde{x}_d, \tilde{x}_r)$, mapped to $(D_1, R_0)$ by the design space</td></tr></table> ## G sPCE and sNMC ESTIMATORS OF THE EIG As outlined in Section 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(h_T \mid \pi)$ is typically intractable. Consequently, an extensive literature has developed around estimators and bounds for both evaluating and optimising the EIG (Section 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) (Foster et al., 2019; 2021). 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 $N$ outer samples $(\theta_0^{(n)}, h_T^{(n)}) \sim p(\theta, h_T \mid \pi)$ and, for each outer sample, draw $L$ independent contrastive parameters $\theta_{1:L}^{(n)} \sim p(\theta)$. The two estimators differ in how these samples are used to approximate the marginal likelihood $p(h_T \mid \pi)$. In sPCE, the outer parameter $\theta_0^{(n)}$ is included alongside the $L$ contrastive samples, giving\widehat{\mathcal{I}}{\mathrm{sPCE}}(\pi)=\frac{1}{N}\sum{n=1}^{N}\left(\log p(h_T^{(n)}\mid \theta_0^{(n)},\pi)-\log\left(\frac{1}{L+1}\sum_{\ell=0}^{L} p(h_T^{(n)}\mid \theta_{\ell}^{(n)},\pi)\right)\right). \tag{59}
In sNMC, by contrast, the marginal estimate is formed using only the $L$ independent contrastive samples:\widehat{\mathcal{I}}{\mathrm{sNMC}}(\pi)=\frac{1}{N}\sum{n=1}^{N}\left(\log p(h_T^{(n)}\mid \theta_0^{(n)},\pi)-\log\left(\frac{1}{L}\sum_{\ell=1}^{L} p(h_T^{(n)}\mid \theta_{\ell}^{(n)},\pi)\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 \to \infty$. An important caveat is that sPCE is itself upper bounded by $\log(L+1)$ (Foster et al., 2019). It can therefore saturate as either a training objective or an evaluation metric when $L$ is not sufficiently large. More generally, accurate estimation of the EIG can require very large values of $L$, making computationally and memory-efficient implementations particularly important.