Cui Ding

@cuiding.bsky.social

New paper out in Cognitive Science! We analyzed various predictors of local ambiguity resolution on a heterogeneous set of garden-path sentences, namely surprisal, frequency, plausibility and cloze scores (measuring the likelihood of misanalysis of the ambiguous region). 1/2

Cloze, Frequency, Surprisal, or Plausibility? A Comparative Analysis of Predictors for Local Ambiguity Resolution

This study investigated the cognitive mechanisms underlying the processing of garden-path sentences by examining the influence of verb/structural bias, cloze probability, surprisal, and plausibility....

onlinelibrary.wiley.com

So happy to have presented our project on **Individual signatures of spillover** at CPL2025. Grateful to my supervisor Lena Jaeger, for her great ideas and for her kind support! Thanks to my coauthors and the audience at CPL2025. The award was a democratic vote by the audience!

Bild
Computational Linguistics @ UZH@cl-uzh.bsky.social · 8mo ago

Congratulations to our PhD student @cuiding.bsky.social for winning the Best Talk Award in the Computational Psycholinguistics Meeting 2025 (CPL 2025) lnkd.in/euTX89gi!

Best Talk Award CPL 2025

💥Introducing new paper: arxiv.org/pdf/2510.17715, QueST — train specialized generators to create challenging coding problems. From Qwen3-8B-Base ✅ 100K synthetic problems: better than Qwen3-8B ✅ Combining with human written problems: matches DeepSeek-R1-671B 🧵(1/5)

Bild

Exciting #rstats news for Bayesian model comparison: bridgesampling is finally ready to support cmdstanr, see screenshot. Help us by installing the development version of bridgesampling and letting us know if it works for your model(s): pak::pkg_install("quentingronau/bridgesampling#44")

R code and output showing the new functionality:
``` r
## pak::pkg_install("quentingronau/bridgesampling#44")
## see: https://cran.r-project.org/web/packages/bridgesampling/vignettes/bridgesampling_example_stan.html
library(bridgesampling)

### generate data ###
set.seed(12345)
mu <- 0
tau2 <- 0.5
sigma2 <- 1
n <- 20
theta <- rnorm(n, mu, sqrt(tau2))
y <- rnorm(n, theta, sqrt(sigma2))

### set prior parameters ###
mu0 <- 0
tau20 <- 1
alpha <- 1
beta <- 1

stancodeH0 <- 'data {
  int<lower=1> n; // number of observations
  vector[n] y; // observations
  real<lower=0> alpha;
  real<lower=0> beta;
  real<lower=0> sigma2;
}
parameters {
  real<lower=0> tau2; // group-level variance
  vector[n] theta; // participant effects
}
model {
  target += inv_gamma_lpdf(tau2 | alpha, beta);
  target += normal_lpdf(theta | 0, sqrt(tau2));
  target += normal_lpdf(y | theta, sqrt(sigma2));
}
'
tf <- withr::local_tempfile(fileext = ".stan")
writeLines(stancodeH0, tf)
mod <- cmdstanr::cmdstan_model(tf, quiet = TRUE, force_recompile = TRUE)

fitH0 <- mod$sample(
  data = list(y = y, n = n,
              alpha = alpha,
              beta = beta,
              sigma2 = sigma2),
  seed = 202,
  chains = 4,
  parallel_chains = 4,
  iter_warmup = 1000,
  iter_sampling = 50000,
  refresh = 0
)
#> Running MCMC with 4 parallel chains...
#> 
#> Chain 3 finished in 0.8 seconds.
#> Chain 2 finished in 0.8 seconds.
#> Chain 4 finished in 0.8 seconds.
#> Chain 1 finished in 1.1 seconds.
#> 
#> All 4 chains finished successfully.
#> Mean chain execution time: 0.9 seconds.
#> Total execution time: 1.2 seconds.
H0.bridge <- bridge_sampler(fitH0, silent = TRUE)
print(H0.bridge)
#> Bridge sampling estimate of the log marginal likelihood: -37.73301
#> Estimate obtained in 8 iteration(s) via method "normal".

#### Expected output:
## Bridge sampling estimate of the log marginal likelihood: -37.53183
## Estimate obtained in 5 iteration(s) via method "normal".
```