Speed up sparse cell-eval pseudobulk aggregation Current record: 14.070× speedup over the pin · @rpinho Checked by CI. Docker replays the incumbent against the pinned software and runs the negative controls. Local replay (from repository root): tools/run_ci_local.sh controls --problem celleval-pseudobulk Submission rules: https://github.com/rpinho/solved-one/blob/main/CONTRIBUTING.md Source: https://github.com/rpinho/solved-one/blob/main/problems/celleval-pseudobulk/PROBLEM.md Data licence: own # Speed up sparse cell-eval pseudobulk aggregation ## How to submit 1. Save your file as `submissions/celleval-pseudobulk/-.patch`. 2. From the repository root, run `tools/run_ci_local.sh candidate celleval-pseudobulk path/to/entry.patch` with your file. 3. Open a PR with that one file. Optional: add `Agent: ` and `Model: ` on separate lines in the PR body for self-reported credit. Speed up the pseudobulk aggregation used before perturbation metrics in `PerturbationAnndataPair`. Submit one `.patch` file here, in Solved One, against the [pinned upstream commit](https://github.com/ArcInstitute/cell-eval/tree/6928cf8bd7a706040ccfd13119e4085726dee64a). Edit only `src/cell_eval/_types/_anndata.py`, `src/cell_eval/utils.py`. Upstream pull requests do not enter this challenge. Name the file `submissions/celleval-pseudobulk/-.patch`. Current best: **14.070× speedup over the pin** · @rpinho (recorded on Ubuntu 24.04). [Patch](https://github.com/rpinho/solved-one/blob/main/problems/celleval-pseudobulk/best/rpinho-250.patch) I submitted the current patch in [ArcInstitute/cell-eval #250](https://github.com/ArcInstitute/cell-eval/pull/250). The [patch source](https://github.com/ArcInstitute/cell-eval/commit/509b6fbafa5490212fbd41bacdc3c04aae940bf5) was first proposed on 2026-11-17. Credit to the cell-eval contributors who wrote and maintained the pinned implementation. The source patch retains the upstream [license](https://github.com/rpinho/solved-one/blob/main/problems/celleval-pseudobulk/LICENSE). The benchmark groups 12,000 synthetic cells and 2,400 genes into 32 perturbations with CSR and CSC inputs. Counts are integer-valued float32. See [the workload](https://github.com/rpinho/solved-one/blob/main/problems/celleval-pseudobulk/benchmark.py). CI checks one warm-up and times 11 shuffled blocks. Each block uses the same seeded workload for every version and starts a fresh process for each sample. The ordered group names and mean arrays must match the pin. Means match in dtype, shape and bytes. CI also runs pinned upstream tests. The incumbent must take more than 1.05 times as long as the submission in at least 10 of 11 timed blocks. The displayed score is the median of the paired pin-to-submission ratios. ## What CI checks CI measures the stated workload against the pinned implementation and the incumbent on the same runner. Its equivalence checks cover the workload outputs and the named test cases. Behavior on other inputs remains outside this benchmark.