## Abstract

The emergence of computer-based assessments has made response times, in addition to response accuracies, available as a source of information about test takersâ€™ latent abilities. The development of substantively meaningful accounts of the cognitive process underlying item responses is critical to establishing the validity of psychometric tests. However, existing substantive theories such as the diffusion model have been slow to gain traction due to their unwieldy functional form and regular violations of model assumptions in psychometric contexts. In the present work, we develop an attention-based diffusion model based on process assumptions that are appropriate for psychometric applications. This model is straightforward to analyse using Gibbs sampling and can be readily extended. We demonstrate our modelâ€™s good computational and statistical properties in a comparison with two well-established psychometric models.

The advent of computerised testing has made response time (RT), in addition to response accuracy, available as a source of information about the test takerâ€™s latent ability. Psychometricians have generally taken one of two approaches to take advantage of this additional information; whilst some psychometricians treat RTs as a purely statistical entity in their models, others aim to model the cognitive processes underlying the observed RTs in a substantively meaningful way. This latter approach largely relies on sequential sampling models from mathematical psychology (e.g. Ranger & Kuhn, 2018; Rouder et al., 2015; Stone, 1960; Tuerlinckx & De Boeck, 2005; Van der Maas et al., 2011) that were originally developed to account for RT and accuracy data in fast-paced decision and memory tasks (Ratcliff & McKoon, 2008). Although these models have been adopted for psychometric applications with some success, the original emphasis on experimental tasks means that the substantive assumptions in the models are not appropriate for psychometric settings. In the present work, we propose an attention-based diffusion model, which we derive from cognitive process assumptions that are more appropriate in the psychometric setting of performance tests.

Diffusion-type models conceptualise the process by which a test taker chooses between two response options, A and B, as the noisy accumulation of information. In their most basic mathematical form, diffusion-type models include five parameters, \(t_0\), *v*, *s*, *a*, and *z* (Fig. 1). These parameters account for the joint distribution of response time \(t \in \mathbb {R}^+\) and choice \(x \in \{0,1\}\), where \(x=1\) corresponds to choosing option A and \(x=0\) corresponds to choosing option B.

For applications to experimental data, Ratcliff (1978) proposed a particular set of substantive interpretations for the model parameters that, together with the mathematical form of the model, gives rise to his diffusion model (DM). The DM decomposes response time as \(t = t_0 + t_d\). The constant \(t_0\) is the non-decision time, which accounts for the time spent on cognitive processes not related to the choice process, such as visual encoding and the execution of a motor response. The distribution of the decision time \(t_d\) is determined by the remaining four model parameters. The DM represents the choice process as a repeated sampling process where the decision maker samples and integrates noisy information about the two response options from a normal distribution with mean given by the drift rate parameter *v* and standard deviation given by the diffusion coefficient *s*. The diffusion coefficient, which represents the within-trial volatility of the information being sampled, is assigned a fixed value, typically 0.1 or 1. The drift rate, which represents the rate at which the decision maker processes information, is estimated from the observed data. Each response option is associated with a decision threshold, one located at 0 and the other located at *a*, and *a* is referred to as the boundary separation. Boundary separation represents the response caution the decision maker applies in a given decision problem, and this model parameter is estimated from the observed data. Finally, the sampling process starts at the point *z*, located between the two decision thresholds, and continues until a decision threshold is reached. The starting point represents the decision makerâ€™s a priori preference for one response option over the other and is again estimated from the data. The final decision time \(t_d\) is determined by the point where the accumulated evidence first crosses a decision threshold, upon which the test taker commits to the corresponding response option.

Implicit in the DMâ€™s interpretation of the model parameters are four assumptions that might be plausible in an experimental context but appear less appropriate for data from a performance test. These assumptions are the independence of decision and non-decision processes, a fixed diffusion coefficient, independence of decision boundaries and diffusion coefficient, and biases in the starting point of the decision process. Concerns about the applicability of the DM outside fast-paced experimental tasks were also expressed by Ratcliff and McKoon (2008), who warned that the DM was developed for task settings that involve only a single processing stage, and is not suited to tasks that elicit longer RTs (see also Lerche & Voss, 2019; Ratcliff & Frank, 2012; Ratcliff et al., 2004). To address these inadequacies of the DM, we propose four cognitive process assumptions that are appropriate for the analysis of performance test data. These assumptions in conjunction with the standard mathematical form of diffusion-type models constitute our Attention-Based Diffusion Model (ABDM).

Firstly, the additive decomposition \(t = t_0 + t_d\) in the DM embodies the assumption that decision and non-decision processes are completely independent; the duration and number of non-decision processes affect neither the duration nor the outcome of the decision process. This assumption might be plausible in simple experimental tasks that involve only a single processing stage, where non-decision processes can be reasonably assumed not to interrupt the decision process. However, in more complex cognitive tasks that require multiple processing states, non-decision process might occur at the transition between different processing stages and can interrupt ongoing cognitive processes. Hence, the duration and number of non-decision processes in complex tasks are related to the duration and outcome of the decision process. A prime example of an interruptive non-decision process is mind wandering, the diversion of attentional resources away from an ongoing cognitive task to task-unrelated thoughts (Schooler et al., 2014). Several studies have found that a higher frequency of mind-wandering is correlated with worse outcomes on tests of cognitive performance such as sustained attention (Allan Cheyne et al., 2009), working memory, and general intelligence (Mrazek et al., 2012; see Mooneyham & Schooler, 2013, for a review). In the context of the DM, Hawkins et al. (2015) argue that mind-wandering is associated with increased variability in drift rate across experimental trials. An association between drift rate and non-decision processes is further supported by Voss et al. (2004) finding that an experimental manipulation that increased the duration of non-decision processes also resulted in a lower drift rate.

In our ABDM, we assume that lapses in attention directly affect the decision process. Rather than additively decomposing RTs, we assume that non-decision processes lead to a decrease in the rate of information processing. In more formal terms, this assumption can be understood via the random walk approximation of Brownian motion (see Appendix A). The classic DM is the limit of a random walk where, at each time step, the decision maker processes information that favours response option *A* with probability \(p_A\) and processes information that favours response option *B* with probability \(p_B=1-p_A\). The time spent on non-decision processes is then accommodated by adding a constant \(t_0\) to the decision time \(t_d\). Our ABDM, on the other hand, is the limit of a random walk where, at each time step, the decision maker processes information that favours response option *A* with probability \(p_A\), processes information that favours response option *B* with probability \(p_B\), and engages in non-decision processes with probability \(1-(p_A+p_B)\). The effect of non-decision processes is manifested in a lower drift rate *v* and thus becomes an integral part of the decision time. Although non-interruptive non-decision processes might be present, their contribution to the observed RT is negligible. We will return to this point in our simulation studies below.

Secondly, setting the diffusion coefficient *s* to a fixed value in the DM embodies the assumption that the volatility of the information being accumulated is constant across experimental trials and conditions. Setting the diffusion coefficient to a constant value is often justified by the need to fix one of the DM parameters to identify the model. However, as pointed out by Donkin et al. (2009), most applications of the DM make additional assumptions, such as equality of boundary settings across experimental trials and conditions, that in themselves suffice to identify the model. Hence, a fixed diffusion coefficient tacitly introduces the additional assumption that information accumulation is equally volatile throughout the experiment. This assumption might often be plausible in experimental settings where stimulus materials are simple and homogeneous across trials, and researchers have full control over all statistical properties of the stimuli. In the popular random dot motion task, for instance, stimuli consist of a cloud of pseudo-randomly moving dots that is constructed to elicit the same level of visual noise across experimental trials (Britten et al., 1992). Researchers can control the difficulty of the experimental task by increasing or decreasing the proportion of consistently moving dots independent of the level of visual noise. However, in psychometric settings stimulus materials are complex and vary across items, and researchers have limited control over the statistical properties of the stimuli. On a reading test, for instance, words will differ in length and shape between items, which will introduce uncontrolled visual noise. To accommodate this natural item-specific within-trial volatility in our ABDM, we allow the diffusion coefficient *s* to vary across items.

Thirdly, the independence of boundary separation *a* and diffusion coefficient *s* in the DM suggests that decision makers adjust their response caution irrespective of the volatility of the information that becomes available. Although this assumption has been a default in applications of the DM to experimental data, a recent debate in the literature has highlighted the controversial nature of this assumption. Several authors have suggested that decision makers adjust their boundary separation in response to changes in information volatility (e.g. Deneve, 2012; Ditterich, 2006; Shadlen & Kiani, 2013). Recent experimental results suggest that such adjustments can even occur within a single decision, with decision makers lowering their response caution in the face of lower signal-to-noise ratios (e.g. Drugowitsch et al., 2012; Hanks et al., 2011; Thura et al., 2012).

In our ABDM, we assume that decision makers accommodate changes in information volatility across items by adjusting their response caution. Several authors have suggested different functional relationships between volatility and response caution (e.g. Drugowitsch et al., 2012; Hanks et al., 2011; Thura et al., 2012). Here, we assume that the decision makerâ€™s response caution is a fixed ratio of the volatility, that is, \({s}/{a}=c\). This assumption corresponds to linearly decreasing decision boundaries with increasing volatility in the classic DM and yields a particularly simple expression for the likelihood of our ABDM.

Finally, in the DM the starting point of the sampling process *z* is assumed unknown and is estimated from the observed data. This assumption is reasonable in experimental settings that manipulate the prior probability of one response option being correct or receiving a reward; the strength of the a priori preference for a response option induced by the manipulation might vary across decision makers and therefore needs to be estimated. However, in the absence of such manipulations the sampling process is regularly found to be unbiased (e.g. Ratcliff et al., 2004; Voss et al., 2004; Wagenmakers et al., 2008; see also Matzke and Wagenmakersâ€™s (2009) review of DM parameter values found in empirical studies). In psychometric applications to performance tests, unbiasedness of the sampling process even becomes a necessity. An a priori preference for one response option over another is indicative of a flawed test construction, and unbiasedness is assumed by default in psychometric models (Haladyna, 2004; Osterlind, 1998). Therefore, we assume in our ABDM that the psychometric test does not induce a response bias, that is, the starting point of the accumulation process is in the middle of the decision boundaries, \(z={a}/{2}\).

Taken together, our ABDM assumes that decision makers choose between two response options by accumulating noisy information about the options. Lapses in attention that interrupt the accumulation process decrease the rate of information accumulation. The volatility of the available information depends on the item, which decision makers accommodate by lowering their response caution in proportion to the volatility. Moreover, assuming proper test construction, decision makers exhibit no a priori preference for one response option over the other. A further theoretical exploration of the relationship between the DM and our ABDM can be found in Appendix B.

These assumptions yield a model with three parameters, namely the rate of information accumulation *v*, the volatility parameter *s* and the ratio of response caution and volatility *c*. The values of these parameters might vary across persons and items. The rate parameter *v* is clearly subject to person and item effects as the rate at which person *p*, \(p = 1,\ldots N_P\), answering item *i*, \(i = 1, \ldots , N_I\), depends on the personâ€™s ability as well as the difficulty of the item. Following Tuerlinckx and De Boeck (2005), we assume additive effects of the personâ€™s ability \(\theta _p\) and the item easiness \(\beta _i\) on *v*:

As pointed out above, information volatility varies across items, which is expressed in the item effect \(\alpha _i\) on *s*:

As we will see in the following, having additive person and item effects on *s* would yield an unidentified model. Although identification of the model could also be achieved with a different random and fixed effects structure for \(v_{ip}\) and \(s_{ip}\), our choice here yields a 2-PLM (Birnbaum, 1968) for the probability of a correct response.

Finally, the volatility-to-response caution ratio *c* represents the adjustment of a decision makerâ€™s response caution to the information volatility of an item, and *c* is therefore constant across items but might differ across decision makers. Here, we will follow the approach recently advocated in neuroscience (Cisek et al., 2009; Shadlen & Kiani, 2013; Thura et al., 2012; Thura & Cisek, 2014; Thura et al., 2014), where the volatility-to-caution ratio is fixed to the same value for all decision makers. This approach conveys considerable computational advantages, as we discuss in the following.

The joint density of the response time *t* and choice *x* in diffusion-type models is given by (Ratcliff, 1978):

From this density, expressions can be derived for the mean RT (Cox & Miller, 1970; Laming, 1973):

and the probability of a correct response:

The substantive assumptions derived above yield for the density of our ABDM:

The form of the model density (4) shows that additive person and item effects on *s* would lead to an unidentifiable model because *v* and *s* always appear in a ratio where person and item effects on the two parameters cancel. Our substantive assumptions mean that the probability of a correct response given in Eq.Â (3) becomes:

which is a 2-PLM (see also Tuerlinckx & De Boeck, 2005).

Finally, the volatility-to-caution ratio *c* is the only model parameter that appears in the series expression in Eq.Â (4), whilst *s* and *v* only appear in the exponential term. As *c* is assumed to be constant across persons and items, the estimation of the person and item effects on *s* and *v* can be separated from the estimation of *c*. This conveys a considerable computational advantage as the costly evaluation of the series expression is limited to the estimation of *c*. In the next section, we will first introduce a Bayesian implementation of our ABDM that enables efficient estimation of the person and item effects on *s* and *v*, which we will subsequently use to estimate *c*.

## 1 Bayesian Implementation

Our ABDM lends itself naturally to Bayesian analysis due its functional form. Specifically, assuming the parameterisation introduced above, where the rate of information accumulation for person *p* answering item *i* is determined by the personâ€™s ability \(\theta _p\) and the item easiness \(\beta _i\), \(v_{ip} = \beta _i + \theta _p\), and the volatility varies across items, \(s_i = \alpha _i\), the density of the ABDM is:

and dropping all constants not related to \(\beta _i\), \(\theta _p\), or \(\alpha _i\) and letting \(\tilde{\alpha }_i=\alpha ^{-1}_i\):

If we assume for now that the value of *c* is known, then this form of the density suggests a conjugate analysis for the estimation of the remaining parameters. Choosing a multivariate normal distribution as joint prior for the model parameters \(\beta _i\), \(\theta _p\), and \(\tilde{\alpha }_i\), and an inverse Wishart prior for the varianceâ€“covariance matrix, will yield a multivariate normal posterior distribution for all parameters. Due to the interpretation of the volatility \(\tilde{\alpha }_i\) as a standard deviation, only positive values are admissible for this parameter and the prior distribution for \(\tilde{\alpha }_i\) needs to be truncated at zero, which complicates the form of the joint posterior distribution considerably. Nevertheless, conjugacy will still hold for the full conditional posterior distributions of \(\beta _i\), \(\theta _p\) and \(\tilde{\alpha }_i\). Hence, our model can be straightforwardly analysed using Gibbs sampling.

### 1.1 Random Effects

The likelihood function of our ABDM, Eq.Â (6), has a simple form that makes it amenable to extension. The terms of the series expression do not depend on any of the model parameters and can therefore be dropped in analyses of the likelihood function, which leaves a simple exponential family model. Moreover, the item and person effects on drift rate, \(\beta _i\) and \(\theta _p\), and the item effects on the information volatility, \(\tilde{\alpha }_i\), only appear in the first and second powers. Hence, the full-conditional distributions we introduce below take the form of a normal kernel, which allows for simple conjugate analysis and easy sampling-based estimation.

One problem that is regularly of interest in psychometrics is the modelling of unobserved heterogeneity. We show here how our ABDM can be extended to accommodate a random effects structure. Extensions to other statistical problems such as missing data, inclusion of manifest predictor variables, or the addition of autoregressive components are straightforward.

To model heterogeneity in the data, we assume the following population-level distributions:

Here, \(\mathscr {N}(\mu ,\sigma ^2)\) denotes the normal distribution with mean \(\mu \) and variance \(\sigma ^2\). The expression \([0, \infty )\) indicates the support of the truncated distribution. The population-level parameters can be assigned prior distributions in a similar manner:

Here, *invG*(*a*,Â *b*) denotes the inverse gamma distribution with shape parameter *a* and scale parameter *b*.

The full-conditional conjugate posterior distributions for the person and item effects on drift rate \(v_{ip}\) for \(N_P\) persons answering \(N_I\) items are:

where

Similarly, the full-conditional conjugate posterior distribution for item effects on the reciprocal volatility parameter \(s^{-1}_{ip}\) is:

where

The full-conditional posterior distributions for the population-level parameters are:

Let \(\vec {t}=[t_{11}, \ldots , t_{IP}]\) be the vector of response times and let \(\vec {x}=[x_{11}, \ldots , x_{IP}]\) be the vector of accuracies. Moreover, denote by \(\Theta \) the set of all item, person, and population-level parameters, then:

This random effects extension of our model is not identified, which we address by fixing two model parameters:

The first constraint addresses the trade-off between the \(\beta _i\) and \(\theta _p\), where adding a constant to all \(\beta _i\) and subtracting the same constant from all \(\theta _p\) yields the same value for the likelihood as the original values \(\beta _i\) and \(\theta _p\). By requiring \(\mu _P = 0\), we fix the location of the person effects on drift rate. The second constraint addresses the indeterminate scale of the item and person effects, where multiplying all \(\beta _i\) and \(\theta _p\) by a constant is compensated for by multiplying the corresponding variance terms by the same constant.

### 1.2 Regression Models for Person Effects

Our ABDM allows for the inclusion of regression models for the latent person effects and can also be extended to latent regression of item parameters on manifest covariates. We will illustrate this for the case where the person effects \(\theta _p\) are regressed on a set of covariates. A more complete discussion of latent regression models can be found in, for example, Fox (2001), Fox and Glas (2006), Mislevy (1985), and Zwinderman (1991).

Due to the functional form of our ABDM, the addition of a regression extension is straightforward. The random effects structure for the latent variable of interest can be replaced by a regression equation. For an appropriately chosen prior distribution on the regression coefficients and residual variance, this yields normalâ€“inverse gamma posterior distributions for the regression coefficients and residual variance and leaves the normalâ€“normal conjugacy for the latent variables intact.

To regress the person effect \(\theta _p\) on a set of covariates, we specify the regression model as:

where \(\vec {y}_p\) is a \((K+1) \times 1\) vector with first entry equal to 1 and the remaining *K* entries being the manifest covariate values for person *p*, \(\vec {\lambda }\) is a \((K+1) \times 1\) vector of regression weights, and \(\epsilon _p\) is a normally distributed error term with mean 0 and variance \(\sigma ^2_{res}\). If we assign the non-informative prior distribution \([\vec {\lambda },\sigma ^2_{res}] \propto 1/\sigma ^2_{res}\) and replace the random effects term for \(\theta _p\) by the regression model in Eq.Â (7), our model becomes:

Here, \(\vec {\theta }\) denotes the \(N_p \times 1\) vector of person effects on drift rate. Note that replacing the expression for the random effect on \(\theta _p\) by the regression model replaces the variance term \(\sigma ^2_P\) by the residual variance \(\sigma ^2_{res}\). From the expression above, it can be seen that the full-conditional posterior distributions for \(\vec {\lambda }\), \(\sigma ^2_{res}\), and \(\theta _p\) have the form (for details on the derivation, see chapter 14 in Gelman et al., 2013):

where

Here, *Y* is the \(N_p \times (K+1)\) design matrix with all entries of the first column equal to 1 and the remaining columns being the *K* vectors containing the values of the predictors \(Y_1,\ldots ,Y_K\). Hence, MCMC samples for latent regression in the ABDM can be easily obtained using Gibbs-sampling.

As before, this extended model is unidentified, which we address by fixing two parameters. Firstly, we set \(\lambda _0=0\) to fix the location of the person effects \(\theta _p\), which we previously addressed by setting \(\mu _P=0\). Secondly, we set \(\sigma ^2_{res} = 1\) to fix the scale of the person effects \(\theta _p\), which we previously addressed by setting \(\sigma ^2_P=1\).

### 1.3 MCMC Sampling

The analysis of our model relies on MCMC sampling from the posterior distribution. The full-conditional posterior distributions for all parameters are conjugate to the prior distributions and have standard functional forms. We can therefore easily obtain MCMC samples using the Gibbs sampler (Gelfand & Smith, 1990), which is implemented by alternately sampling from the full-conditional posterior distributions. Custom-written R code that implements the Gibbs sampler for our ABDM is available on the projectâ€™s OSF page https://osf.io/fh4wp/.

### 1.4 Estimation of the Volatility-to-Caution Ratio

As pointed out above, estimation of the volatility-to-caution ratio *c* requires the evaluation of the full density of the ABDM, including the series expression in Eq.Â (6). The assumption that *c* is constant across persons and items means that the estimation problem is one dimensional. Fully Bayesian estimation of *c* would be computationally intractable. However, simple iterative optimisation can be carried out by estimating the person and item effects \(\beta _i\), \(\theta _p\), and \(\tilde{\alpha }_i\) for each candidate value \(\tilde{c}\) using Gibbs sampling and using the ABDM likelihood in Eq.Â (6) evaluated at the posterior means as the objective function.

If the objective function has a unique global maximum, efficient adaptive estimation can be achieved by the golden section algorithm (Kiefer, 1953). If the objective function does not have a unique global maximum, other approaches such as a grid search or adaptive gradient descent methods can be employed. Initial values for the latter type of search algorithm can be obtained from the moment estimator of *c*. Specifically, if we fix all item and person effects on the ABDM parameters and write \(p=\mathbb {P}(X=1)\) for the probability of a correct response, then Eq.Â (3) gives:

Writing *M* for the mean RT and substituting *L* into the expression in Eq.Â (2) gives:

Solving for *c* and using the fact that \(c>0\), we get the estimator:

As the joint likelihood of the data conditional on *c* had a unique global maximum in all our example applications, we used a golden section algorithm to estimate *c*.

## 2 Simulation Study

We tested the sampling behaviour of our ABDM in a simulation study. We used the rdiffusion function from the RTdists R package (Singmann et al., 2016) to generate RT and choice data for 120 persons answering 70 items. The generating population-level parameters were set to \(\mu _I=1\), \(\sigma ^2_I=1\), \(\mu _P=0\), \(\sigma ^2_P=1\), \(\mu _{A}=1\), and \(\gamma ^2_{A}={1}/{2}\). We truncated the generating distribution for \(\tilde{\alpha }_i\) at \({1}/{2}\) instead of 0 to avoid unrealistically large values of the information volatility in the simulated data. We furthermore set the caution-to-volatility ratio to \(c = 0.35\). Panel A of Fig. 2 shows the joint distribution of mean accuracies and mean RTs for the simulated items. As can be seen, both variables spanned a realistic range of values. Panel B of Fig. 2 shows the marginal distribution of RTs. All RTs fell in the range below 10s. Moreover, the distribution exhibits the skew and long tail that is characteristic of RT data.

We implemented our random effects model using custom-written R code in combination with the algorithm for sampling from truncated normal distributions implemented in the truncnorm package (Mersmann et al., 2018). For the estimation of the volatility-to-caution ratio *c*, we used the method described in the preceding section. R code for the simulations and model fitting is available on OSF: https://osf.io/fh4wp/. We considered the search space \(C=[0.1,1]\). We set the maximum number of iterations for the golden section algorithm to 10, and we terminated the search if the relative change in the log-likelihood between iterations was less than 1%. To estimate the person and item parameters for each candidate value of *c*, we generated a single chain of 2,000 MCMC samples and discarded the first 1,000 samples as burn-in samples. Once we had obtained an estimate of *c*, we generated the final set of three chains with 12000 MCMC samples. We discarded the first 2000 samples as burn-in samples. The golden section algorithm yielded an estimate of \(\hat{c}=0.343\). Panel C of Fig. 2 shows the posterior mean estimates of the person and item effects \(\theta _p\), \(\beta _i\), and \(\tilde{\alpha }_i\). As can be seen, all parameters could be recovered accurately. Panel D of Fig. 2 shows three example chains for the person and item effects. All three parameters, \(\beta _2\), \(\theta _2\), and \(\tilde{\alpha }_2\), showed good sampling behaviour with relatively small autocorrelations.

Table 1 shows a summary of the potential scale reduction factor \(\hat{R}\) (Gelman & Rubin, 1992). As can be seen, \(\hat{R}\) was below 1.02 for all population parameters. Moreover, \(\hat{R}\) did not exceed 1.03 for all chains for all parameters \(\beta _i\), \(\theta _p\), and \(\tilde{\alpha }_i\). Taken together, the results of our simulation study show that person and item effects on drift rate and item effects on the diffusion coefficient can be estimated with good efficiency and generating values can be recovered with high accuracy.

In a further set of simulations, we explored the effect of a neglected additive non-decision time on the ABDM parameter estimates. As pointed in the introduction, our ABDM assumes that non-decision processes affect the decision time by interrupting decision processes, and changes in non-decision time are therefore reflected by changes in the rate of information processing. However, it might be argued that some quick-paced non-decision processes such as stimulus encoding and response execution do not affect decision processes and result in a small additive non-decision component of the observable response time. To gauge the effect of such a small additive non-decision component on parameter estimates in our ABDM, we generated data from the ABDM and added a small non-decision component to the generated RTs.

As in our first simulation, we generated RT and accuracy data for 120 persons answering 70 items with the same settings for the generating population parameters. We generated data with four different values for the additive non-decision time component, \(t_0=0.1, 0.5, 1, 2\). Relative to the mean decision time (i.e. the mean response time without the additive non-decision component) of 1.1s, an additive non-decision component of 2s represents an extreme case where non-intrusive non-decision processes triple the observable decision time. All fitting procedures were the same as in the first simulation.

Figure 3 shows how the additive non-decision component affects estimates of the ABDM parameters. Correlations \(\rho \) between generating and estimated parameter values are given in the top left corner of each plot. As can be seen, item effects on the rate of information processing \(\beta _i\) (leftmost column) are largely unaffected by \(t_0\); but only extreme values of \(t_0\) lead to a noticeable overestimation of large values of \(\beta _i\). This is also confirmed by the overall high correlation between generating and estimated parameter values. Person effects on the rate of information processing \(\theta _p\) (second column from the left) are largely unaffected by small values of \(t_0\). Large values of \(t_0\) result in an underestimation of large values of \(\theta _p\) and an overestimation of small values of \(\theta _p\). However, the bias is monotonic, which means that the order of \(\theta _p\) across persons is not affected. Hence, even in the presence of an unrealistically large additive non-decision component, inferences about the relative rate of information processing among test takers are still valid. This is further confirmed by the overall high correlation between generating and estimated parameter values. Item effects on the volatility parameter \(\tilde{\alpha }_i\) (third column from the left) are largely unaffected by very small values of \(t_0\). However, for larger values of \(t_0\), the \(\tilde{\alpha }_i\) tend to be underestimated and the precision with which the generating value can be recovered decreases. This is also reflected in a sizeable decrease in the correlation between generating and estimated parameter values for large values of \(t_0\). Finally, estimates of the population-level parameters (rightmost column) are largely unaffected by small values of \(t_0\). For extreme values of \(t_0\), \(\mu _I\) remains largely unaffected, whilst the variance \(\sigma ^2_I\) is overestimated, and \(\mu _A\) and \(\gamma ^2_A\) are considerably underestimated. Estimates of the boundary-to-volatility ratio *c* are unaffected for small values of \(t_0\) but tend to be underestimated for larger values of \(t_0\).

Taken together, the results of these simulations show that neglecting realistic, small additive non-decision components in the ABDM does not significantly bias parameter estimates. Large additive non-decision components mainly affect estimates of item volatility. However, these biases only become significant when the additive non-decision component is at least as large as the mean decision time. Substantively, this means that non-intrusive non-decision processes such as stimulus encoding and response execution would need to occupy as much time as decision processes, which is implausible in realistic psychometric settings.

## 3 Application

We gauged the performance of our ABDM in realistic settings by re-analysing data sets used in Van Rijn and Ali (2017) and Molenaar et al. (2015). Since Molenaar et al.â€™s (2015) data set was considerably smaller, it provides little insight into the ABDMâ€™s performance in the large-data contexts for which the model was developed. Therefore, we only report our analysis of Van Rijn and Aliâ€™s (2017) data here, the analysis of Molenaar et al.â€™s (2015) data can be found in Appendix C. The data set from Van Rijn and Ali (2017) consists of RT and accuracy data from 4899 first-year students in teachers college who completed 50 spelling items as part of a Dutch language test. Items had a two-alternative forced choice format and were presented in random order. There were no time limits imposed for the completion of individual items, but the duration of the entire language test was limited to 90 min. For our analysis, we only used data from the A version of the test and excluded test takers with incomplete data, who spent less than 3 s per item on average, or had taken (a version of) the test previously.

Figure 4 shows the marginal RT quantiles (0, 0.2, 0.4, 0.6, 0.8, and 1.0) for each of the 50 items and for the first 50 persons, ordered by mean RT. As can be seen, marginal RT distributions for the items (left plot) had a sharp leading edge and a typical long tail. Minimum RTs were generally small compared to the median RT; the ratio of the minimum observed RT to the median RT ranged between 0.11 and 0.29, with a mean of 0.21. Since item-specific additive non-decision components cannot exceed the minimum RT, this means that, in line with the assumptions of our ABDM, any possible additive non-decision components were negligible relative to the median RT. Marginal RT distributions for the persons (right plot) also exhibited the typical skewed shape with a long tail. The leading edge tended to be less steep compared to the marginal distributions for the items. However, due to the small number of items, the exact shape of the marginal distributions is insufficiently constrained by the data. Although the ratio of the minimum observed RT to the median RT across all 4899 participants ranged between 0.10 and 0.80, for 90% of the participants the minimum RT was smaller than half their median RT. This means that any potential person-specific additive non-decision components were small relative to the median RT.

We aimed to compare the performance of our ABDM to Van der Lindenâ€™s (2009) popular hierarchical model and to Van der Maas et al.â€™s (2011) Q-diffusion model. We compared our ABDM to the two competitor models in terms of relative and absolute model fit. For the comparison of the relative model fit with the hierarchical model, we fitted both models to the full data set of 4899 persons and 50 items. For the comparison of the absolute model fit, we only used the data of the first 50 persons on all 50 items due to the formidable computational costs of generating data from the full ABDM. For the comparison of the relative as well as the absolute model fit with the Q-diffusion model, we only used the data of the first 200 persons and the first 15 items due to prohibitively long computing times of the Q-diffusion model (see also Van Rijn & Ali, 2017). Moreover, as the DM likelihood function approaches zero quickly for RTs above 10s, we fitted all models to the RTs in tenths of seconds to guarantee numerical stability.

Van der Lindenâ€™s (2009) hierarchical model describes log-RTs as normally distributed, where the RT for a person completing one item is described by a person-dependent speed parameter, and item-dependent discrimination and time-intensity parameters. The probability of giving a correct response is described by a normal ogive model with a person-dependent ability parameter and two item-dependent discrimination and difficulty parameters. Dependencies between RTs and accuracies are introduced through multivariate normal population-level distributions for the item and person parameters. Hence, the model as implemented by Fox et al. (2019) describes a data set with \(N_I\) items and \(N_P\) persons in terms of \(2N_I+5N_P+25\) parameters.

Van der Maas et al.â€™s (2011) Q-diffusion model describes the joint distribution of RTs and accuracies in terms of the classic DM. The Q-diffusion model describes the rate of information processing and boundary separation as a ratio of a person and an item parameter. Moreover, non-decision time is assumed to be an additive component of the observed RT and is determined by an item parameter. Together with two parameters for the population-level variance of the person parameters, the model describes a data set with \(N_I\) items and \(N_P\) persons in terms of \(3N_I+2N_P+2\) parameters.

For the comparison with the hierarchical model, we fitted our ABDM using the routine described earlier. We first estimated the boundary-to-volatility ratio *c* to using the golden section algorithm, where the algorithm terminated if either a maximum number of ten iterations had been reached or the change in the log-likelihood between iterations was less than 1%. To estimate the person and item parameters for each candidate value of *c*, we drew 2,000 posterior samples for all other model parameters and discarding the first 1,000 samples as burn-in samples. The golden section estimation of *c* was completed after seven iterations with a change in the log-likelihood of less than 0.03%. In a second step, we obtained the desired number of posterior samples for the best-fitting value of *c*. We sampled three chains with 12,000 posterior samples each of which we discarded the first 2,000 samples as burn-in. All chains showed good convergence, with \(\hat{R} < 1.02\). We used the ddiffusion function implemented in the rtdists R package (Singmann et al., 2016) to compute the ABDM likelihood. We fitted van der Lindenâ€™s hierarchical model using the LNIRT function in Fox et al.â€™s (2019) LNIRT R package. We obtained three chains with 12,000 posterior samples each of which we discarded the first 2,000 samples as burn-in. All chains showed good convergence, with \(\hat{R} < 1.02\).

We assessed relative model fit by means of AIC, BIC and DIC. For the computation of AIC and BIC, we evaluated the conditional model likelihoods^{Footnote 1} at the posterior means. We also based our computation of DIC on the conditional likelihood for both models.^{Footnote 2} Due to the long computing times required for the evaluation of the full ABDM likelihood function, we based the computation of the model selection criteria on the first 1,000 posterior samples after burn-in from a single MCMC chain. Table 2 shows the relative fit of the two models. As can be seen, the log-likelihood was larger for the ABDM than for the hierarchical model and all three model selection criteria indicated that the ABDM also fitted the data better when model complexity was taken into account.

We assessed the absolute model fit by means of the posterior predictive mean RTs and accuracies for persons and items. Due to the high computational costs of generating samples from the full ABDM, we limited our analysis to the first 50 items and persons in the data set. We generated 500 posterior predictive samples for each item and person. We used the rdiffusion function in the rtdists R package (Singmann et al., 2016) to generate posterior predictive samples for the ABDM, and we used custom-written code to generate posterior predictive samples for the hierarchical model.

Figure 5 shows the comparison of the data and the posterior predictive samples generated by the two models, ordered by the mean RT in the data. As can be seen, the ABDM generated wider posterior predictive intervals for RTs (left column in the left panel) than the hierarchical model (left column in the right panel). Whereas the ABDMâ€™s posterior predictives matched the mean item RTs relatively closely (top left plot in the left panel), the hierarchical model systematically underpredicted the mean item RTs (top left plot in the right panel). The ABDM overpredicted some of the mean person RTs (bottom left plot in the left panel), whereas the hierarchical model matched the mean person RTs closely (bottom left plot in the right panel). Both models matched the mean item (top right plot in each panel) and person accuracies (bottom right plot in each panel) closely, although the ABDM overpredicted some particularly low item accuracies. Taken together, both models fitted the data well, although the hierarchical model showed a systematic overprediction of mean item RTs that was not present in the ABDM.

As there are no Bayesian implementations available of the Q-diffusion, we developed a maximum-likelihood fitting method for our ABDM to compare both models on an equal footing. To avoid the computationally costly evaluation of the full ABDM likelihood required for the maximum-likelihood estimation of the boundary-to-volatility ratio *c*, we fixed *c* to the value estimated based on the complete data set in our comparison with the hierarchical model.

Joint maximum-likelihood estimates of the ABDM parameters can be obtained by differentiating the logarithm of the likelihood (6) with respect to the person and item effects on the rate of information processing and volatility, which yields:

Equating to 0 and solving for \(\beta _i\), \(\theta _p\), and \(\tilde{\alpha }_i\) yields for the estimators:

which can be solved by iterative computation. To identify the model, we imposed the same constraints on the \(\theta _p\) as we imposed on the population mean and variance in our Bayesian implementation, fixing the mean and variance of the \(\theta _p\) to \(\bar{\theta } = {1}/{N_P}\sum _{p=1}^{N_P}\theta _p = 0\) and \(\sigma ^2 = {1}/{N_P}\sum _{p=1}^{N_P}(\theta _p-\bar{\theta })^2 = 1\). Note that the remaining population-level parameters, \(\mu _I, \sigma ^2_I, \mu _A\), and \(\gamma ^2_A\), are not estimated in the JML approach. We obtained maximum-likelihood estimates of the Q-diffusion parameters using the diffIRT function in the diffIRT R package (Molenaar, 2015). We fitted both models to RTs divided by 10 to guarantee numerical stability when evaluating the model likelihood. One reviewer pointed out that the selection of the 15 items might have affected the outcomes of the model comparisons. We therefore repeated the model comparisons with a different set of 15 items. As the results of both analyses agreed closely, we only report the results for the first set of 15 items. The analysis for the second set of 15 items is reported in Appendix D.

We assessed relative model fit by means of AIC and BIC. Table 3 shows the relative fit of the two models. As can be seen, the log-likelihood was smaller for the ABDM than for the Q-diffusion model. AIC preferred the Q-diffusion model over the ABDM, whereas BIC preferred the ABDM over the Q-diffusion model. This difference between the two criteria is due to the higher penalty for model complexity imposed by BIC, which thus avoids selecting overly complex models at small sample sizes. Moreover, the difference in AIC between the two models was considerably smaller than the difference in BIC. These results suggest that the ABDM accounted as well for the data as the Q-diffusion model when model complexity was taken into account.

We assessed absolute model fit through a cross-validation approach. To this end, we split up the data in two ways. Firstly, we divided the data into five folds of 40 persons each, removed one fold from the data and fitted both models to the remaining data (person-based fit). Secondly, we divided the data into five folds of three items each, removed one fold from the data and fitted both models to the remaining data (item-based fit). We used the results of the person-based fit to compute the item parameters for the item fold removed in the item-based fit, and we used the results of the item-based fit to compute the person parameters for the person-fold removed in the person-based fit. We subsequently combined the person and item parameters obtained in the two steps and used expressions (2) and (3) to predict RTs and accuracies for the person-by-item combinations contained in the removed folds. This was repeated for all 25 person-by-item folds.

Figure 6 shows the deviation between observed and predicted RTs (top row of plots) and accuracies (bottom row of plots) for the ABDM (left column of plots) and the Q-diffusion model (right column of plots). Each column of dots shows the results for the 40 persons in one person-fold, each cluster of five columns of dots shows the results for all five person folds on one item, and each group of three items shows the results for all five person folds in one item fold. As can be seen, the prediction errors for RTs for the ABDM clustered symmetrically around 0, with a few large positive outliers. This means that the ABDM predicted RTs were largely unbiased, except for very long RTs, in which case the ABDM tended to underpredict observed RTs. For the Q-diffusion model, prediction errors also clustered symmetrically around 0, except for the third item fold, for which the model systematically underpredicted the observed RTs. The spread of the prediction error for the Q-diffusion model was comparable to that for the ABDM. Finally, the Q-diffusion model showed a less pronounced tendency to underpredict long RTs than the ABDM; the Q-diffusion model equally often overpredicted short RTs.

The results for the predicted accuracy are again similar between the two models. For the ABDM prediction, errors tend to be positive, which indicates a tendency to underpredict accuracies. Nevertheless, most prediction errors are close to 0, which means that the ABDM generally captured the probability of a correct response well. The Q-diffusion model showed a similar tendency to underpredict accuracies but, in general, predicted the probability of a correct response well, with most prediction errors being slightly larger than 0. The spread of the prediction errors is also comparable to those observed for the ABDM. However, for the third item fold, the Q-diffusion model showed a systematic underprediction of accuracies. Taken together, both models provided a comparable absolute fit to the data.

To sum up, our comparison with the hierarchical model showed that our ABDM provides a better relative fit and a comparable absolute fit to the data, with a considerably smaller number of parameters. Our comparison with the Q-diffusion model further showed that the ABDM provides a comparable relative and absolute fit to the data. This latter result indicates that our ABDM does not lose much descriptive power compared to an instantiation of the classic DM, but requires fewer parameters (\(N_I+N_P+4\), to be precise).

### 3.1 Regression Model

As a final step in the assessment of our ABDM, we tested whether the estimated person effects on drift rate behave in accordance with their substantive interpretation. Van Rijn and Aliâ€™s (2017) data set included information on test takersâ€™ prior education. If individual differences in the person effects on drift rate \(\theta _p\) do indeed reflect differences in the speed of information processing, one would expect that \(\theta _p\) is larger for test takers who completed a higher level of prior education. To test this substantive hypothesis, we extended our ABDM with a regression model that described the \(\theta _p\) in terms of the dummy-coded prior education levels, with MBO as the reference level.

Prior education was categorised as MBO, HAVO, or VWO, which reflect increasing levels in the Dutch education system. We excluded the data of 348 test takers from this analysis as there were either no data available on their prior education or their prior education did not fall into one of the three categories. As a first analysis step, we fitted the ABDM without the regression component to the data. The left panel in Fig. 7 shows the posterior means of \(\theta _p\) for the three education levels. As can be seen, the estimated person effects were smallest for test takers with MBO as their prior education and largest for test takers with a VWO education. As a second step, we fitted the ABDM with the regression extension to the data. The right panel in Fig. 7 shows the equal-tailed 95% credible intervals for the regression coefficients. In line with the hypothesis, the regression coefficient for the difference between HAVO and MBO was positive and the credible interval did not include 0. The difference between VWO and MBO was considerably larger than the difference between HAVO and MBO, and the credible interval again did not include 0. Taken together, these results are in line with the substantive hypothesis that higher education levels are associated with faster information processes, which is represented by the person effects on drift rate.

## 4 Discussion

In the present paper, we developed the Attention-Based Diffusion Model. Based on cognitive process assumptions that we believe to be appropriate in psychometric contexts, we derived a substantively meaningful model with favourable computational properties. Our simulation study demonstrated good parameter recovery and furthermore showed the robustness of our model to the presence of non-intrusive non-decision processes. In our application to data from a performance test, we compared our ABDM to Van der Lindenâ€™s (2009) popular hierarchical model and to Van der Maas et al.â€™s (2011) Q-diffusion model. Whereas our ABDM and the hierarchical model could be fitted to the complete data set, we had to limit our comparison with the Q-diffusion model to a subset of the data due to the considerable computing time required to fit the Q-diffusion model to data. Formal model comparisons showed that our ABDM provided a better fit to the data than the hierarchical model and performed as well as the Q-diffusion model. These results indicate that our ABDM provides a substantively meaningful and computationally efficient model for performance test data.

One limitation on the theoretical interpretation of our ABDM is the requirement that data conform to a two-alternative forced choice format, where each decision threshold corresponds to one response option and the sign of the rate parameter indicates which response option is favoured by the accumulated information. However, this is rarely the case in psychometric settings, where items typically have a multiple-choice format. In a multiple-choice setting, there is no such clear correspondence between the response options, and the two decision thresholds and the sign of the drift rate parameter. In some testing situations, this problem might be resolved by grouping response options. Specifically, if there is only one correct option and the incorrect options are equally attractive, that is, each incorrect option generates information at the same rate, all incorrect options might be subsumed under one threshold and the correct response might be associated with the other threshold (see also Van der Maas et al., 2011). However, in a setting with multiple correct answers that differ in their attractiveness, as is typically the case in attitude or personality tests, models based on a diffusion process with two thresholds will generally not be applicable (e.g. Ratcliff et al., 2016).

An interesting theoretical aspect of our ABDM is the fixed volatility-to-response caution ratio. This assumption corresponds to linearly decreasing decision boundaries (Hanks et al., 2011). In the classic DM, the assumption that decision boundaries are constant is motivated by a statistical optimality argument; constant boundaries yield the lowest mean decision time for a given accuracy level if the stimulus strength and volatility are constant (Wald & Wolfowitz, 1948). However, in natural environments, as well as in psychometric settings, stimulus strength and/or volatility varies between decisions. Under these circumstances, decision makers should become increasingly willing to sacrifice decision accuracy as the decision time increases to avoid unacceptably long mean decision times. An optimal trade-off between decision time and accuracy can be achieved by decreasing the decision boundaries (Anderson, 1960; Shadlen & Kiani, 2013).

An important criterion in the development of latent trait models for RT data is the trade-off between statistical convenience and substantive scope. At one end of the spectrum are highly tractable statistical models that are void of any conceptual commitments. At the other of the spectrum are models from mathematical psychology that are conceptually rich but computationally inefficient. Purely statistical models are unsatisfactory as psychological theories. Because the validity of psychometric tests hinges on the psychological processes that connect item presentation and item response, models should provide a substantively meaningful account of this connection (Van der Maas et al., 2011). Although models from mathematical psychology provide this type of substantively meaningful item response theory, their functional form precludes applications of models from mathematical psychology to large psychometric data sets. To attain an acceptable trade-off between computational efficiency and substantive scope, researchers typically remove conceptual commitments that are embodied in the modelâ€™s functional form until the resulting model is sufficiently tractable for psychometric applications. In recent years, several authors have suggested such simplified cognitive models for psychometric applications. In the remainder of this section, we will discuss how the trade-off between statistical convenience and substantive scope in our ABDM compares to the trade-offs made in these models.

Our development of the ABDM here is based on a diffusion process account of item responding with substantive assumptions that are adjusted to a psychometric context. A close relative of our ABDM is the proportional-rate diffusion model suggested by Palmer et al. (2005). They assume unbiased responding and a constant ratio of response caution to volatility which, unlike our ABDM, they fix to 1. Moreover, Palmer et al. assume that drift rate is a constant multiple of the known stimulus strength in a random dot motion task. These simplifying assumptions result in a two-parameter model for psychophysical applications.

Other researchers have attempted to make the classic DM applicable to psychometric data whilst retaining the modelâ€™s substantive commitments. Van der Maas et al.â€™s (2011) Q-diffusion model imposes a random effects structure on the four parameters of the classic DM for psychometric applications. A more flexible version of the classic DM is provided by Vandekerckhove et alâ€™s. (2010) hierarchical Bayesian diffusion model (HDM), which allows users to implement custom random effects and regression components. Although both models provide a statistical structure that is appropriate for psychometric applications, their substantive assumptions seem to be inappropriate in psychometric contexts. Moreover, the functional form of the classic DM used in HDM and Q-diffusion is computational intractable and thus precludes applications in psychometric settings with large data sets, as demonstrated in our example application.

A further model that is based on the classic DM is Wagenmakers et al. (2007) EZ model. The EZ model uses moment estimators to efficiently fit a three-parameter version of the classic DM, under the assumption that the starting point of the accumulation process is equidistant from the decision thresholds. Estimation of the model parameters is highly efficient as it relies on closed-form expressions for the model parameters in terms of the probability of a correct response and the mean and variance of correct RTs. However, in addition to the questionable appropriateness of the modelâ€™s process assumptions in psychometric contexts, the reliance on the moments of the marginal likelihood functions for RT and accuracy severely limits the modelâ€™s flexibility. The three model parameters can only be estimated from either the marginal RT distribution for each item or the marginal RT distribution for each test taker, which precludes the estimation of separate person and item effects (see also Ratcliff, 2008). Moreover, the lack of a likelihood function means that the model cannot be implemented hierarchically or extended in any meaningful way.

Another class of cognitive models that have been adapted for psychometric applications are ballistic accumulator models. These models replace the stochastic information accumulation process in the DM by a ballistic process and allow information to accumulate independently for each choice option, which yields more tractable models (e.g. Brown & Heathcote, 2008). One particular instantiation of a ballistic accumulator model, the log-normal race model (LNR; Heathcote & Love, 2012), has recently been adapted to account for RTs in attitudinal and personality tests with multiple response categories (Ranger & Kuhn, 2018). Moreover, Rouder et al.â€™s (2015) hierarchical Bayesian implementation of the LNR can account for RT data in ability tests with multiple response options. Their model can furthermore be extended to include autocorrelation and latent regression components and is straightforward to analyse using Gibbs sampling. However, although the LNR model parameters have a cognitive process interpretation similar to the DM parameters, the LNR model lacks the key distinction between boundary separation and the rate of information accumulation. Thus, whilst the LNR model shares the statistical convenience of our ABDM and can readily be applied in settings with more than two choice options, the lack of a differentiation between boundary separation and the rate of information accumulation represents a considerable limitation of the substantive scope of the LNR.

Taken together, our ABDM combines a high level of computational efficiency and statistical flexibility with a conceptually meaningful interpretation of its model parameters. It thus outperforms earlier attempts to make diffusion-type models applicable in psychometric contexts. Within the larger class of accumulator models of decision-making, only the LNR model provides a similar level of statistical convenience but has a more limited substantive scope.

## Notes

Although DIC should preferably be computed based on the integrated likelihood (Celeux et al., 2006), integrating the likelihood of the models under consideration here requires additional simplifying assumptions and might still yield normalising constants that are not available in closed form (Marsman et al., 2019).

As we estimated the boundary-to-volatility ratio for the ABDM before obtaining posterior samples, DIC neglects the influence of this parameter on model fit.

Note that, since we chose \(s_{ABDM}=1\) and \(c=1/8\), the corresponding value for the boundary separation in the classic DM is \(a_{cDM}=8\).

## References

Allan Cheyne, J., Solman, G. J., Carriere, J. S., & Smilek, D. (2009). Anatomy of an error: A bidirectional state model of task engagement/disengagement and attention-related errors.

*Cognition*,*111*(1), 98â€“113. https://doi.org/10.1016/j.cognition.2008.12.009.Anderson, T. W. (1960). A modification of the sequential probability ratio test to reduce the sample size.

*The Annals of Mathematical Statistics*,*31*(1), 165â€“197.Birnbaum, A. (1968). Some latent trait models and their use in inferring an examineeâ€™s ability. In F. M. Lord & M. R. Novick (Eds.),

*Statistical theories of mental test scores*(pp. 397â€“479). Reading, MA: Addison-Wesley.Borst, G., Kievit, R. A., Thompson, W. L., & Kosslyn, S. M. (2011). Mental rotation is not easily cognitively penetrable.

*Journal of Cognitive Psychology*,*23*(1), 60â€“75. https://doi.org/10.1080/20445911.2011.454498.Britten, K. H., Shadlen, M. N., Newsome, W. T., & Movshon, A. J. (1992). The analysis of visual motion: A comparison of neuronal and psychophysical performance.

*Journal of Neuroscience*,*12*(12), 4745â€“4765. https://doi.org/10.1523/JNEUROSCI.12-12-04745.1992.Brown, S. D., & Heathcote, A. (2008). The simplest complete model of choice response time: linear ballistic accumulation.

*Cognitive Psychology*,*57*(3), 153â€“178. https://doi.org/10.1016/j.cogpsych.2007.12.002.Celeux, G., Forbesy, F., Robertz, C. P., & Titteringtonx, D. M. (2006). Deviance information criteria for missing data models.

*Bayesian Analysis*,*1*(4), 651â€“674. https://doi.org/10.1214/06-BA122.Cisek, P., Puskas, G. A., & El-Murr, S. (2009). Decisions in changing conditions: The urgencygating model.

*Journal of Neuroscience*,*29*(37), 11560â€“11571.Cox, D. R., & Miller, H. D. (1970).

*The theory of stochastic processes*. London: Chapman & Hall/CRC Press.Deneve, S. (2012). Making decisions with unknown sensory reliability.

*Frontiers in Neuroscience,**6,*. https://doi.org/10.3389/fnins.2012.00075.Ditterich, J. (2006). Evidence for time-variant decision making.

*The European Journal of Neuroscience*,*24*(12), 3628â€“3641.Donkin, C., Brown, S. D., & Heathcote, A. (2009). The overconstraint of response time models: Rethinking the scaling problem.

*Psychonomic Bulletin & Review*,*16*(6), 1129â€“1135. https://doi.org/10.3758/PBR.16.6.1129.Drugowitsch, J., Moreno-Bote, R., Churchland, A. K., Shadlen, M. N., & Pouget, A. (2012). The cost of accumulating evidence in perceptual decision making.

*Journal of Neuroscience*,*32*(11), 3612â€“3628.Fox, J.-P. (2006). Fixed effects IRT model.

*Behaviormetrika*,*33*(1), 1â€“16.Fox, J.-P., & Glas, C. A. W. (2001). Bayesian estimation of a multilevel IRT model using Gibbs sampling.

*Psychometrika*,*66*(2), 271â€“288.Fox, J.-P., Klotzke, K., & Klein Entink, R. (2019). LogNormal Response Time Item Response Theory Models (R package version 0.4.0) [Computer software]. Retrieved from https://cran.r-project.org/web/packages/LNIRT/index.html.

Gelfand, A. E., & Smith, A. F. (1990). Sampling-based approaches to calculating marginal densities.

*Journal of the American Statistical Association*,*85*(410), 398â€“409. https://doi.org/10.1080/01621459.1990.10476213.Gelman, A., Carlin, J. B., Stern, H. S., Dunson, D. B., Vehtari, A., & Rubin, D. B. (2013).

*Bayesian Data Analysis*(3rd ed.). London: Chapman and Hall/ CRC.Gelman, A., & Rubin, D. B. (1992). Inference from iterative simulation using multiple sequences.

*Statistical Science*,*7*(4), 457â€“511. https://doi.org/10.1214/ss/1177011136.Haladyna, T. M. (2004).

*Developing and validating multiple-choice test items*(3rd ed.). New York: Routledge.Hanks, T. D., Mazurek, M. E., Kiani, R., Hopp, E., & Shadlen, M. N. (2011). Elapsed decision time affects the weighting of prior probability in a perceptual decision task.

*Journal of Neuroscience*,*31*(17), 6339â€“63352.Hawkins, G. E., Mittner, M., Boekel, W., Heathcote, A., & Forstmann, B. U. (2015). Toward a model-based cognitive neuroscience of mind wandering.

*Neuroscience*,*310*, 290â€“305. https://doi.org/10.1016/j.neuroscience.2015.09.053.Heathcote, A., & Love, J. (2012). Linear deterministic accumulator models of simple choice.

*Frontiers in Psychology,**3,*. https://doi.org/10.3389/fpsyg.2012.00292.Kiefer, J. (1953). Sequential minimax search for a maximum.

*Proceedings of the American Mathematical Society*,*4*(3), 502â€“506.Laming, D. R. J. (1973).

*Mathematical psychology*. London: Academic Press.Lerche, V., & Voss, A. (2019). Experimental validation of the diffusion model based on a slow response time paradigm.

*Psychological Research*,*83*(6), 1194â€“1209. https://doi.org/10.1007/s00426-017-0945-8.Marsman, M., SigurdardĂłttir, H., Bolsinova, M., & Maris, G. (2019). Characterizing the manifest probability distributions of three latent trait models for accuracy and response time.

*Psychometrika*,*84*(3), 870â€“891. https://doi.org/10.1007/s11336-019-09668-3.Matzke, D., & Wagenmakers, E.-J. (2009). Psychological interpretation of the ex-Gaussian and shifted Wald parameters: A diffusion model analysis.

*Psychonomic Bulletin & Review*,*16*(5), 798â€“817. https://doi.org/10.3758/PBR.16.5.798.Mersmann, O., Trautmann, H., Steuer, D., & Bornkamp, B. (2018). truncnorm: Truncated normal distribution (R package version 1.0-8) [Computer software]. Retrieved from https://cran.rproject.org/web/packages/truncnorm/index.html.

Mislevy, R. J. (1985). Estimation of latent group effects.

*Journal of the American Statistical Association*,*80*(392), 993â€“997.Molenaar, D. (2015). diffIRT (R package version 1.5) [Computer software]. Retrieved from https://cran.r-project.org/web/packages/diffIRT/index.html.

Molenaar, D., Tuerlinckx, F., & van der Maas, H. L. J. (2015). Fitting diffusion item response theory models for responses and response times using the R package diffIRT.

*Journal of Statistical Software*,*66*(4), 1â€“34. https://doi.org/10.18637/jss.v066.i04.Mooneyham, B. W., & Schooler, J. W. (2013). The costs and benefits of mind-wandering: A review.

*Canadian Journal of Experimental Psychology*,*67*(1), 11â€“18. https://doi.org/10.1037/a0031569.Mrazek, M. D., Smallwood, J., Franklin, M. S., Chin, J. M., Baird, B., & Schooler, J. W. (2012). The role of mind-wandering in measurements of general aptitude.

*Journal of Experimental Psychology: General*,*141*(4), 788â€“798. https://doi.org/10.1037/a0027968.Osterlind, S. J. (1998).

*What is constructing test items?*. Dordrecht: Springer.Palmer, J., Huk, A. C., & Shadlen, M. N. (2005). The effect of stimulus strength on the speed and accuracy of a perceptual decision.

*Journal of Vision*,*5*, 376â€“404. https://doi.org/10.1167/5.5.1.Ranger, J., & Kuhn, J. (2018). Modeling responses and response times in rating scales with the linear ballistic accumulator.

*Methodology*,*14*(3), 119â€“132. https://doi.org/10.1027/1614-2241/a000152.Ratcliff, R. (1978). A theory of memory retrieval.

*Psychological Review*,*85*(2), 59â€“108.Ratcliff, R. (2008). The EZ-diffusion method: Too EZ?

*Psychonomic Bulletin & Review*,*15*(6), 1218â€“1228. https://doi.org/10.3758/PBR.15.6.1218.Ratcliff, R., & Frank, M. J. (2012). Reinforcement-based decision making in corticostriatal circuits: Mutual constraints by neurocomputational and diffusion models.

*Neural Computation*,*24*(5), 1186â€“1229. https://doi.org/10.1162/NECO_a_00270.Ratcliff, R., & McKoon, G. (2008). The Diffusion Decision Model: theory and data for two-choice decision tasks.

*Neural Computation*,*20*(4), 873â€“922. https://doi.org/10.1162/neco.2008.12-06-420.Ratcliff, R., Smith, P. L., Brown, S. D., & McKoon, G. (2016). Diffusion Decision Model: Current issues and history.

*Trends in Cognitive Sciences*,*20*(4), 260â€“281. https://doi.org/10.1016/j.tics.2016.01.007.Ratcliff, R., Thapar, A., Gomez, P., & McKoon, G. (2004). A diffusion model analysis of the effects of aging in the lexical decision task.

*Psychology and Aging*,*19*(2), 278â€“289. https://doi.org/10.1037/0882-7974.19.2.278.Rouder, J. N., Province, J. M., Morey, R. D., Gomez, P., & Heathcote, A. (2015). The lognormal race: A cognitive-process model of choice and latency with desirable psychometric properties.

*Psychometrika*,*80*(2), 491â€“513. https://doi.org/10.1007/s11336-013-9396-3.Schilling, R. L., & Partzsch, L. (2014).

*Brownian motion*(2nd ed.). Berlin: de Gruyter.Schooler, J. W., Mrazek, M. D., Franklin, M. S., Baird, B., Mooneyham, B. W., Zedelius, C., & Broadway, J. M. (2014). The middle way: Finding the balance between mindfulness and mind-wandering. In B. H. Ross (Ed.), Psychology of learning and motivation (Chap. 1, Vol. 60, pp. 1â€“33). Academic Press.

Shadlen, M. N., & Kiani, R. (2013). Decision making as a window on cognition.

*Neuron*,*80*(3), 791â€“806.Singmann, H., Scott, B., Gretton, M., Heathcote, A., Voss, A., Voss, J., & Terry, A. (2016). rtdists: Response time distributions (R package version 0.6-6) [Computer software]. Retrieved from https://cran.r-project.org/web/packages/rtdists/index.html.

Stone, M. (1960). Models for choice-reaction time.

*Psychometrika*,*25*, 251â€“260.Thura, D., Beauregard-Racine, J., Fradet, C.-W., & Cisek, P. (2012). Decision making by urgency gating: Theory and experimental support.

*Journal of Neurophysiology*,*108*(11), 2912â€“2930.Thura, D., & Cisek, P. (2014). Deliberation and commitment in the premotor and primary motor cortex during dynamic decision making.

*Neuron*,*81*(6), 1401â€“1416.Thura, D., Cos, I., Trung, J., & Cisek, P. (2014). Context-dependent urgency influences speedaccuracy trade-offs in decision-making and movement execution.

*Journal of Neuroscience*,*34*(49), 16442â€“16454.Tuerlinckx, F., & De Boeck, P. (2005). Two interpretations of the discrimination parameter.

*Psychometrika*,*70*(4), 629â€“650. https://doi.org/10.1007/s11336-000-0810-3.Van der Linden, W. J. (2009). Conceptual issues in response-time modeling.

*Journal of Educational Measurement*,*46*(3), 247â€“272.Van der Maas, H. L. J., Molenaar, D., Maris, G., Kievit, R. A., & Borsboom, D. (2011). Cognitive psychology meets psychometric theory: On the relation between process models for decision making and latent variable models for individual differences.

*Psychological Review*,*118*(2), 339â€“356. https://doi.org/10.1037/a0022749.Van Rijn, P. W., & Ali, U. S. (2017). A comparison of item response models for accuracy and speed of item responses with applications to adaptive testing.

*British Journal of Mathematical and Statistical Psychology*,*70*(2), 317â€“345. https://doi.org/10.1111/bmsp.12101.Vandekerckhove, J., Verheyen, S., & Tuerlinckx, F. (2010). A crossed random effects diffusion model for speeded semantic categorization decisions.

*Acta Psychologica*,*133*(3), 269â€“282. https://doi.org/10.1016/j.actpsy.2009.10.009.Voss, A., Rothermund, K., & Voss, J. (2004). Interpreting the parameters of the diffusion model: An empirical validation.

*Memory and Cognition*,*32*(7), 1206â€“1220.Wagenmakers, E. J., Van der Maas, H. L. J., & Grasman, R. P. P. P. (2007). An EZ-diffusion model for response time and accuracy.

*Psychonomic Bulletin & Review*,*14*(1), 3â€“22. https://doi.org/10.3758/BF03194023.Wagenmakers, E.-J., Ratcliff, R., Gomez, P., & McKoon, G. (2008). A diffusion model account of criterion shifts in the lexical decision task.

*Journal of Memory and Language*,*58*, 140â€“159. https://doi.org/10.1016/j.jml.2007.04.006.Wald, A., & Wolfowitz, J. (1948). Optimum character of the sequential probability ratio test.

*The Annals of Mathematical Statistics*,*19*(3), 326â€“339. https://doi.org/10.1017/CBO9781107415324.004.Zwinderman, A. H. (1991). A generalized Rasch model for manifest predictors.

*Psychometrika*,*56*(4), 589â€“600. https://doi.org/10.1007/BF02294492.

## Author information

### Authors and Affiliations

### Corresponding author

## Additional information

### Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

The authors declare no competing financial interests. This research was supported by a Netherlands Organisation for Scientific Research (NWO) Creative Industry Grant (314-99-107) to GM and a Veni Grant (451-17-017) to MM.

We would like to thank Leendert van Maanen, Eric-Jan Wagenmakers, and Andrew Heathcote for comments on an earlier version of the manuscript. We would like to thank Cito B.V. for making the data for our example application available. R code for our model and simulation studies is available on OSF: https://osf.io/fh4wp/.

## Appendices

### Appendix A: Non-Decision Time in the ABDM

In our ABDM, we assume that lapses in attention affect decision processes, decreasing the effective rate of information accumulation. Our conceptualisation of these attentional lapses can be most easily understood by contrasting the random walk approximation of the classic DM with the random walk approximation of our ABDM. We begin by showing that the diffusion process in the classic DM is the weak limit of a random walk in which the walker moves either up or down at each time step. We base our exposition on Schilling and Partzsch (2014).

We discretise space into units of size \(\Delta x\) and consider discrete time steps of size \(\Delta t\) in an interval [0,Â *T*]. This means that there are \(N = \lfloor {T}/{\Delta t}\rfloor \) time steps in total, where \(\lfloor \cdot \rfloor \) denotes rounding down to the nearest integer. Let \(\mathscr {E}_n \sim \text {Bern}(p)\), \(n = 1, \ldots , N\) be independent Bernoulli random variables with parameter \(p \in [0,1]\) and define \(X_n = 2\mathscr {E}_n-1\). At each time step *n*, the walker moves \(X_n \Delta x\) units up or down, depending on the sign of \(X_n\). The random walk process is defined as:

The mean and variance of *X*(*T*) are:

We now note that (i) \(X(0) = 0\). If we let \(T' = M\Delta t\), \(M < N\), we may write \(X(T) = (X(T)-X(T')) + (X(T')-X(0))\). Since the \(\mathscr {E}_n\) are independent, identically distributed random variables, the increments \(X(T)-X(T')\) and \(X(T')-X(0)\) are also (ii) independent and (iii) identically distributed random variables. These are three of the four properties we require for *X*(*T*) to approximate a diffusion process as \(N\rightarrow \infty \). The last property we require is that increments must be normally distributed with variance \((T-T')\sigma ^2\), where the constant \(\sigma \) is the diffusion coefficient. To show this, we first note that independence of the increments implies that \(\mathbb {V}[X(T)]=\mathbb {V}[X(T)-X(T')]+\mathbb {V}[X(T')-X(0)]\), that is, the variance of *X*(*T*) is linear in *T*:

From Eq.Â (A2), we conclude that:

We now write:

and let \(p = {1}/{2} \left( \mu \left( {\Delta t}/{\Delta x}\right) +1 \right) \), where the constant \(\mu \) is the drift rate. Taking \(N\rightarrow \infty \) and applying the central limit theorem to the first term shows that (iv) the limiting process has normally distributed increments with mean \(T \mu \) and variance \(T\sigma ^2\). This shows that the process *X*(*T*) approximates a diffusion process.

In contrast to the classic DM, the random walk approximation to our ABDM allows the random walker to remain at its current position with a certain probability at each time step. Nevertheless, the weak limit of this random walk is again a diffusion process.

Using the same discretisation of space and time as above, we now consider two sets of independent Bernoulli random variables \(\mathscr {E}_{+,n} \sim \text {Bern}(p_+)\) and \(\mathscr {E}_{-,n} \sim \text {Bern}(p_-)\) with \(n = 1, \ldots , N\) and \(p_{\pm } \in [0,1]\). We now define \(Y_n = \Delta x (\mathscr {E}_{+,n} - \mathscr {E}_{-,n})\) and note that:

That is, at each time step *n* the walker moves \(Y_n \Delta x\) units up, down, or remains at its current position, depending on the value of \(Y_n\). The corresponding random walk process is defined as:

The mean and variance of *Y*(*T*) are:

Clearly, (i) \(Y(0) = 0\) and the independence of \(\mathscr {E}_{+,n}\) and \(\mathscr {E}_{-,n}\) means that *Y*(*T*) has (ii) independent and (iii) identically distributed increments. A similar argument as above furthermore shows that the variance of *Y*(*T*) is linear in *T* and:

We now write:

and let \(p_{\pm } = {1}/{2}\left( (1-p_0)\pm \mu \left( {\Delta t}/{\Delta x}\right) \right) \), where the constant \(\mu \) is the drift rate and \(p_0=p_+p_-+(1-p_+)(1-p_-)\) is the probability that the random walker does not move at some time step. Taking \(N\rightarrow \infty \) and applying the central limit theorem to the first term shows that (iv) the limiting process has normally distributed increments with mean \(T\mu \) and variance \(T\sigma ^2\). This shows that the process *Y*(*T*) approximates a diffusion process. Moreover, the expression for the expectation in Eq.Â (A5) shows that information is accumulated at a lower rate if non-decision time is larger (i.e. for larger \(p_0\)).

### Appendix B: Relationship Between the Attention-Based and Classic Diffusion Model

Here, we explore how the parameters of the classic DM are related to the parameters of our ABDM. From the expression for the mean RT and the probability of choosing option A given in Eqs.Â (2) and (3), we can derive the corresponding expressions in our ABDM for the mean RT, \(M_{RT~ABDM}\):

and for the probability of choosing option A, \(P_{A~ABDM}\):

These latter expressions provide a simple way to study the relationship between our ABDM and the classic DM. Given a fixed value for *c*, say \(c=1/8\), the ABDM includes only two free parameters, which, for the purpose of this comparison, are denoted \(v_{ABDM}\) and \(s_{ABDM}\). As can be seen from Eqs.Â (B1) and (B2), in the absence of further constraints on the model parameters, \(M_{RT~ABDM}\) and \(P_{A~ABDM}\) are only determined up to a ratio of \(v_{ABDM}\) and \(s_{ABDM}\). For our comparison with the classic DM, we will, therefore, assume that \(s_{ABDM}=1\). Similarly, for this comparison we denote the parameters of the DM as \(v_{DM}\), \(s_{DM}\), \(z_{DM}\), \(a_{DM}\), and \(t_{0_{DM}}\). We adopt the usual assumption that the diffusion coefficient^{Footnote 3}\(s_{DM}=1\), and we furthermore assume that the decision process is unbiased, that is, \(z_{DM}=\frac{a_{DM}}{2}\) (this corresponds to the EZ-diffusion model; Wagenmakers et al., 2007). Thus, the DM has three free parameters, \(v_{DM}\), \(a_{DM}\), and \(t_{0_{DM}}\). The resulting expression in the DM for the mean response, \(M_{RT~DM}\), is:

and the expression for the probability of choosing option A, \(P_{A~DM}\), is:

We can now study the relationship between the two models by setting \(M_{RT}=M_{RT~ABDM}=M_{RT~DM}\) to a fixed value, and numerically solving Eq.Â (B1) for \(v_{ABDM}\) and numerically solving Eq.Â (B3) for \(v_{DM}\) whilst \(a_{DM}\) and \(t_{0_{DM}}\) are held constant at different values.

Figure 8 shows the relationship between the ABDM parameters (x-axis) and the DM parameters (y-axis). The grey curves show how \(v_{ABDM}\) relates to \(v_{DM}\) as \(M_{RT}\) decreases from 15 s (bottom left on each curve) to \(t_{0_{DM}}\) s (top right on each curve). Each grey curve shows the relationship between \(v_{ABDM}\) and \(v_{DM}\) for a different fixed value of \(t_{0_{DM}}\). Black dots show the values of \(v_{ABDM}\) and \(v_{DM}\) that produce a mean response time of \(M_{RT}=6\) s. The left panel shows the relationship when \(a_{DM}=8\); the right panel shows the relationship when \(a_{DM}=12\). As can be seen, the qualitative pattern is the same for both values of \(a_{DM}\): \(v_{ABDM}\) and \(v_{DM}\) increase monotonically as \(M_{RT}\) increases from left to right along any of the grey curves. Higher values of boundary separation in the DM merely scale up the x-axis, which means that larger values of \(v_{DM}\) are required to match the \(M_{RT}\) produced by the ABDM. For instance, if \(a_{DM}=8\) and \(t_{0_{DM}}=0\) s (leftmost straight line in the left panel), a mean response time of \(M_{RT}=6\) s is produced by the same drift rate of \(v_{DM}=v_{ABDM}=0.66\) in the DM and in the ABDM. If \(a_{DM}=12\) and \(t_{0_{DM}}=0\) s (leftmost straight line in the right panel), a mean response time of \(M_{RT}=6\) s is produced by a drift rate of \(v_{DM}=1.00\) in the DM but only requires a drift rate of \(v_{ABDM}=0.66\) in the ABDM.

The effect of \(t_{0_{DM}}\) for a fixed value of \(a_{DM}\) is to modulate the slope and curvature of the grey curves. For larger values of \(t_{0_{DM}}\), the slope of the grey curves becomes shallower and small mean response times are produced by much smaller values of \(v_{ABDM}\) compared to \(v_{DM}\). For instance, if \(a_{DM}=8\) (left panel) and \(t_{0_{DM}}=0\) s, a mean response time of \(M_{RT}=6\) s is produced by \(v_{ABDM}=v_{DM}=0.66\). As the non-decision time increases to \(t_{0_{DM}}=5\) s, the DM requires \(v_{DM}=4\) to produce a mean response time of \(M_{RT}=6\) s, whilst the ABDM produces the same mean response time with \(v_{DM}=0.66\).

Taken together, in the case of non-response time close to 0 s, the drift rate parameters in both models are approximately linearly related. Hence, for small non-decision times the drift rate parameter in the ABDM can be interpreted analogously to the drift rate parameter in the classic DM. For higher values of boundary separation in the classic DM, the drift rate in the classic DM corresponds to a lower ratio of boundary separation and diffusion coefficient *c* in the ABDM. For larger values of non-response time, the relation between the drift rate parameters in both models becomes increasingly nonlinear as the drift rate parameter in the ABDM accounts for the combined effects of non-decision and decision processes. However, as already observed in our simulation studies, the relationship between the drift rate parameters in both models remains monotonic, which means that comparisons based on the ordering of different drift rate values in the two models remain valid.

### Appendix C: Analysis of Data Set II From Molenaar (2015)

Data set II from Molenaar (2015) consists of RT and accuracy data of 121 test takers answering ten items of a mental rotation test. Each item had a response deadline of 7.5s (Borst et al., 2011). Twenty-six persons failed to complete all items, and we excluded these personâ€™s data from our analysis.

Figure 9 shows the marginal RT quantiles (0, 0.2, 0.4, 0.6, 0.8, and 1.0) for each of the ten items and for each of the 95 persons, ordered by mean RT. As can be seen, marginal RT distributions for the items (left plot) had a relatively shallow leading edge and a typical long tail. Compared to Van Rijn and Aliâ€™s (2017) data, the minimum RTs in this data set were longer relative to the median RT; the ratio of the minimum observed RT to the median RT ranged between 0.25 and 0.45, with a mean of 0.35. Hence, item-specific additive non-decision components might have a more pronounced effect the RT data.

Marginal RT distributions for the persons (right plot) again had a shallow leading edge and exhibited a typical long tail. However, due to the small number of items, the exact shape of the marginal distributions is insufficiently constrained by the data. The ratio of the minimum observed RT to the median RT ranged between 0.28 and 0.93, with a mean of 0.58. This again means that person-specific additive non-decision components might significantly affect the RT data.

We compared the relative and absolute fit of our ABDM to Van der Lindenâ€™s (2009) hierarchical model and Van der Maas et al.â€™s (2011) Q-diffusion model in the same way as in the main text. For the comparison with the hierarchical model, we again used the golden section algorithm to estimate the boundary-to-volatility ratio *c* with the same termination criteria as before. We subsequently obtained 12,000 posterior samples from 3 MCMC chains for both models and discarded the first 2,000 samples as burn-in. All chains showed good convergence, with \(\hat{R} < 1.01\) for both models.

We assessed relative model fit by means of AIC, BIC and DIC. Due to the long computing times required for the evaluation of the full ABDM likelihood function, we based the computation of the model selection criteria on the first 1,000 posterior samples after burn-in from a single MCMC chain. Table 4 shows the relative fit of the two models. As can be seen, the log-likelihood was smaller for the ABDM. AIC and BIC indicated that the hierarchical model fitted the data better than the ABDM, whereas DIC preferred the ABDM over the hierarchical model.

We assessed the absolute model fit by means of the posterior predictive mean RTs and accuracies for persons and items. We generated 500 posterior predictive samples for each item and person. Figure 10 shows the comparison of the data and the posterior predictive samples generated by the two models, ordered by the mean RT in the data. As can be seen, the ABDM generated wider posterior predictive intervals for RTs (left column in the left panel) than the hierarchical model (left column in the right panel). Whereas the ABDM systematically underpredicted the mean item RTs (top left plot in the left panel), the hierarchical modelâ€™s posterior predictives matched the mean item RTs relatively closely (top left plot in the right panel). Both modelsâ€™ posterior predictives covered the mean person RTs well (bottom left plot in the both panels). The results for the mean accuracies showed the opposite pattern. Whereas the ABDM matched the item and person accuracies well (right column in the left panel), the hierarchical model underpredicted both the mean item and person accuracies (right column in the right panel). Taken together, the hierarchical model provided a better fit to the RT data, whereas the ABDM provided a better fit to the accuracy data.

We compared our ABDM to the Q-diffusion model based on maximum-likelihood fits. We again used the estimate of the boundary-to-volatility ratio *c* from the Bayesian implementation of the ABDM to avoid the formidable computational costs associated with evaluating the complete ABDM likelihood.

We assessed relative model fit by means of AIC and BIC. Table 5 shows the relative fit of the two models. As can be seen, the log-likelihood was smaller for the ABDM than for the Q-diffusion model. AIC preferred the Q-diffusion model over the ABDM, whereas BIC preferred the ABDM over the Q-diffusion model. This difference between the two criteria is due to the higher penalty for model complexity imposed by BIC, which aims to select simpler models at small sample sizes. These results thus suggest that the ABDM provided a good account of the data at such a small sample size, despite being much simpler than the Q-diffusion model.

We used fivefold cross-validation to assess the absolute model fit. Firstly, we divided the data into five folds of 19 persons each, removed one fold from the data and fitted both models to the remaining data (person-based fit). Secondly, we divided the data into five folds of two items each, removed one fold from the data and fitted both models to the remaining data (item-based fit). We used the results of the person-based fit to compute the item parameters for the item fold removed in the item-based fit, and we used the results of the item-based fit to compute the person parameters for the person fold removed in the person-based fit. We subsequently combined the person and item parameters obtained in the two steps and used expressions (2) and (3) to predict RTs and accuracies for the person-by-item combinations contained in the removed folds. This was repeated for all 25 person-by-item folds.

Figure 11 shows the deviation between observed and predicted RTs (top row of plots) and accuracies (bottom row of plots) for the ABDM (left column of plots) and the Q-diffusion model (right column of plots). Each column of dots shows the results for the 19 persons in one person fold, each cluster of five columns of dots shows the results for all five person folds on one item, and each group of two items shows the results for all five person folds on one item fold. As can be seen, the ABDM tended to slightly overpredict RTs and produced more extreme outliers than the Q-diffusion model. For the Q-diffusion model, prediction errors clustered symmetrically around 0 with fewer outliers.

The results for the predicted accuracy show the opposite pattern of the response times. For the ABDM, prediction errors clustered closely around 0 with a few negative outliers. For the Q-diffusion model, prediction errors were larger and the model tended to underpredict accuracy.

Taken together, the comparison of the relative fits was ambiguous in that some criteria preferred the ABDM, whilst others preferred the hierarchical model or the Q-diffusion model. In terms of absolute fit, the ABDM tended to capture the accuracy data better than its competitor models, whilst the hierarchical model and the Q-diffusion model provided a better account for the RT data. A possible explanation for the worse performance of the ABDM is the very small number of items, which might have compromised the estimation of the person parameters. This explanation is also supported by the fact that the posterior predictive ranges for the person RTs and accuracies in Fig. 10 are much wider than the posterior predictive ranges for the item RTs and accuracies.

### Appendix D: Further Cross-Validation Results for the comparison of the ABDM and the Q-Diffusion Model

The comparison of the relative model fit by means of AIC and BIC is shown in Table 6. As reported in the main text, the log-likelihood was smaller for the ABDM than for the Q-diffusion model. Whilst AIC preferred the Q-diffusion model over the ABDM, BIC preferred the ABDM over the Q-diffusion model. This difference between the two criteria is due to the higher penalty for model complexity imposed by BIC.

The comparison of the absolute fit is presented in Fig. 12. As can be seen, the prediction errors for RTs for the ABDM clustered symmetrically around 0, with a few large positive outliers. This means that the ABDM predicted RTs were largely unbiased, except for very long RTs, in which case the ABDM tended to underpredict observed RTs. For the Q-diffusion model, prediction errors also clustered symmetrically around 0. The spread of the prediction error for the Q-diffusion model was comparable to that for the ABDM. Finally, the Q-diffusion model showed a similar tendency to underpredict long RTs as the ABDM.

The results for the predicted accuracy are again similar between the two models. For the ABDM, prediction errors tend to be positive, which indicates a tendency to underpredict accuracies. Nevertheless, most prediction errors are close to 0, which means that the ABDM generally captured the probability of a correct response well. The Q-diffusion model showed a similar tendency to underpredict accuracies but, in general, predicted the probability of a correct response well, with most prediction errors being slightly larger than 0. The spread of the prediction errors is also comparable to those observed for the ABDM. Taken together, both models provided a comparable absolute fit to the data.

## Rights and permissions

**Open Access** This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the articleâ€™s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the articleâ€™s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.

## About this article

### Cite this article

Boehm, U., Marsman, M., van der Maas, H.L.J. *et al.* An Attention-Based Diffusion Model for Psychometric Analyses.
*Psychometrika* **86**, 938â€“972 (2021). https://doi.org/10.1007/s11336-021-09783-0

Received:

Revised:

Published:

Issue Date:

DOI: https://doi.org/10.1007/s11336-021-09783-0

### Keywords

- diffusion model
- response time data
- cognitive psychometrics