CoFilter Method is a multifaceted approach that employs an explicit filtering step to improve decision rules in fields such as statistical multiple testing, image filtering, anomaly detection, and language-model pre-training.
It adapts filtering principles to reduce conservativeness in hypothesis testing, preserve texture boundaries via co-occurrence statistics, refine cost volumes for anomaly scoring, and select target data using likelihood ratios.
Its implementations demonstrate practical benefits including increased discovery rates in GWAS, improved edge preservation in images, enhanced AUROC in anomaly detection benchmarks, and efficient data selection for language model pre-training.
Searching arXiv for papers associated with “CoFilter Method” and closely related usages.
Search query: "CoFilter arXiv"
The expression “CoFilter Method” is polysemous in the arXiv literature. In its most specific usage, CoFilter denotes conditional testing after filtering for multiple testing of partial conjunction hypotheses, introduced as a two-step procedure that removes conservative partial-conjunction p-values before multiplicity correction (Dickhaus et al., 2021). In other contexts, the label is also used for the Co-occurrence Filter (CoF), a boundary-preserving image filter (Jevnisek et al., 2017); as an informal shorthand for CostFilter-AD, a cost-volume filtering plug-in for unsupervised anomaly detection (Zhang et al., 2 May 2025); and as an informal shorthand for CoLoR-Filter, a data-selection method for targeted language-model pre-training (Brandfonbrener et al., 2024). A later neuroimaging paper applies the partial-conjunction CoFilter framework to activation localization across subjects or tasks (Dey et al., 5 Aug 2025). This suggests a family resemblance rather than a single method: each variant inserts an explicit filtering stage before a downstream decision rule.
1. Terminological scope and disambiguation
The term is best understood by distinguishing canonical names from secondary usages.
Label in practice
Canonical name in paper
Domain
CoFilter
CoFilter (conditional testing after filtering)
Partial conjunction multiple testing
CoFilter Method
Co-occurrence Filter (CoF)
Boundary-preserving image filtering
CoFilter
CostFilter-AD
Unsupervised anomaly detection
CoFilter
CoLoR-Filter
Targeted LM pre-training
The statistically oriented CoFilter is explicitly named in "A procedure for multiple testing of partial conjunction hypotheses based on a hazard rate inequality" (Dickhaus et al., 2021). The image-processing paper "Co-occurrence Filter" states that CoF is also referred to as the “CoFilter Method” (Jevnisek et al., 2017). The anomaly-detection paper states that CostFilter-AD is abbreviated there as “CoFilter” for cost filtering, while also noting that the official terminology used in the paper is “CostFilter-AD” (Zhang et al., 2 May 2025). The language-model paper states that if one encounters “CoFilter,” it is an informal shorthand for CoLoR-Filter, but that the authors’ canonical name and framing are CoLoR-Filter (Brandfonbrener et al., 2024).
A recurring misconception is therefore terminological: the same label does not identify a single established algorithm across fields. In statistical multiple testing, CoFilter is a formal method name; in the other cases, it is either an alias or a shorthand.
2. Co-occurrence Filter in image processing
In image processing, the Co-occurrence Filter (CoF) is a boundary-preserving, texture-aware image filter inspired by the bilateral filter (BF), but it replaces BF’s range Gaussian with a learned co-occurrence weighting that reflects which intensity or color pairs tend to appear together in the training data (Jevnisek et al., 2017). Its motivation is that BF preserves any large intensity jump, whereas CoF distinguishes edges from boundaries by using local co-occurrence statistics: pixel values that frequently co-occur inside a texture are smoothed together even when their intensities differ substantially, while pixel pairs that rarely co-occur across texture boundaries are not averaged.
The paper also lists conditional and symmetrized-conditional alternatives. The limiting cases are instructive: as the spatial kernel bandwidth I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),2, CoF becomes identity; as I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),3, I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),4 and CoF reduces to Gaussian smoothing in the image plane.
For color images, direct RGB co-occurrence is infeasible, so the method clusters colors, typically in CIELab, using I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),5-means. Let
The reported practical profile is local rather than non-local: hard co-occurrence collection is ws(∥p−q∥)=exp(−2σs2∥p−q∥2),wr(ΔI)=exp(−2σr2∥ΔI∥2),0, filtering is ws(∥p−q∥)=exp(−2σs2∥p−q∥2),wr(ΔI)=exp(−2σr2∥ΔI∥2),1, and the soft approximation adds ws(∥p−q∥)=exp(−2σs2∥p−q∥2),wr(ΔI)=exp(−2σr2∥ΔI∥2),2, with typical settings Lab color space, ws(∥p−q∥)=exp(−2σs2∥p−q∥2),wr(ΔI)=exp(−2σr2∥ΔI∥2),3 clusters, and window ws(∥p−q∥)=exp(−2σs2∥p−q∥2),wr(ΔI)=exp(−2σr2∥ΔI∥2),4. The paper also distinguishes Iterative CoF (I-CoF), which fixes ws(∥p−q∥)=exp(−2σs2∥p−q∥2),wr(ΔI)=exp(−2σr2∥ΔI∥2),5 across passes and converges quickly while preserving boundaries, from Rolling CoF (R-CoF), which recomputes ws(∥p−q∥)=exp(−2σs2∥p−q∥2),wr(ΔI)=exp(−2σr2∥ΔI∥2),6 after each pass and yields stronger homogenization at the cost of possible boundary degradation. Relative to BF, Guided Filter, Domain Transform, L0 smoothing, Rolling Guided Filter, semantic filtering, WLS with diffusion distances, and Non-Local Means, CoF is positioned as a method that smooths repeated textures without sacrificing texture boundaries.
3. CoFilter for partial conjunction multiple testing
In statistics, CoFilter is a two-step procedure for multiple testing of partial conjunction (PC) hypotheses, designed to reduce the conservativeness of standard PC ws(∥p−q∥)=exp(−2σs2∥p−q∥2),wr(ΔI)=exp(−2σr2∥ΔI∥2),7-value testing (Dickhaus et al., 2021). For ws(∥p−q∥)=exp(−2σs2∥p−q∥2),wr(ΔI)=exp(−2σr2∥ΔI∥2),8 studies and target replicability level ws(∥p−q∥)=exp(−2σs2∥p−q∥2),wr(ΔI)=exp(−2σr2∥ΔI∥2),9, the PC null hypothesis is
Zp=q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q)).0
If the ordered study-level Zp=q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q)).1-values are
Zp=q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q)).2
the Fisher-based PC statistic combines the Zp=q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q)).3 largest Zp=q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q)).4-values:
Zp=q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q)).5
with
Zp=q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q)).6
The method’s motivation is that these PC Zp=q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q)).7-values are often conservative under the composite null, so many very large Zp=q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q)).8 contribute to multiplicity but not to discoveries. CoFilter therefore applies a filter threshold Zp=q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q)).9:
wr0
For selected features, it forms conditional PC wr1-values
wr2
and then applies a multiple testing procedure such as Bonferroni, Holm, BH, Storey, or BY on the filtered family.
The theoretical contribution is the validity of these conditional PC wr3-values when the null wr4-values are uniform and Fisher’s combining method is used. The proof is based on a novel inequality in hazard rate order of partial sums of order statistics. The paper states the theorem as follows: if wr5 and wr6 are i.i.d. wr7, and for some wr8, wr9 are any positive random variables, independent of wc0, then
wc1
From this, the paper derives the corollary that
wc2
is a valid conditional wc3-value for wc4.
The method includes a data-adaptive threshold. For BH at level wc5, the threshold at a given wc6 is
wc7
and one may choose
wc8
Under PRDS-type conditions, finite-sample BH control is available; under weak dependence, asymptotic FDP control is given for fixed or random wc9.
The reported application is to multiple GWAS of Crohn’s disease with 8 independent GWAS studies and about 953,241 autosomal SNPs per study. Using Fisher PC I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wc(I(p),I(q))I(q),0-values for I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wc(I(p),I(q))I(q),1, CoFilter with fixed I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wc(I(p),I(q))I(q),2 or greedy I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wc(I(p),I(q))I(q),3 yielded substantially more discoveries than unfiltered BH or adaptive BH on PC I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wc(I(p),I(q))I(q),4-values. The paper reports, for I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wc(I(p),I(q))I(q),5, I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wc(I(p),I(q))I(q),6 for I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wc(I(p),I(q))I(q),7, I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wc(I(p),I(q))I(q),8 for I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wc(I(p),I(q))I(q),9, and Zp=q∈N(p)∑ws(∥p−q∥)wc(I(p),I(q)).0 for Zp=q∈N(p)∑ws(∥p−q∥)wc(I(p),I(q)).1.
4. Neuroimaging adaptation of CoFilter
"A New Approach to Partial Conjunction Analysis in Neuroimaging" applies the recently proposed CoFilter method to voxelwise activation localization across subjects or tasks (Dey et al., 5 Aug 2025). For subject Zp=q∈N(p)∑ws(∥p−q∥)wc(I(p),I(q)).2 and voxelZp=q∈N(p)∑ws(∥p−q∥)wc(I(p),I(q)).3, let Zp=q∈N(p)∑ws(∥p−q∥)wc(I(p),I(q)).4 be the voxelwise Zp=q∈N(p)∑ws(∥p−q∥)wc(I(p),I(q)).5-value for testing inactivity. The number of truly active subjects at voxel Zp=q∈N(p)∑ws(∥p−q∥)wc(I(p),I(q)).6 is
Zp=q∈N(p)∑ws(∥p−q∥)wc(I(p),I(q)).7
and the Zp=q∈N(p)∑ws(∥p−q∥)wc(I(p),I(q)).8-level PC hypothesis is
Zp=q∈N(p)∑ws(∥p−q∥)wc(I(p),I(q)).9
If
K0
are the ordered subject-level K1-values at voxel K2, the paper uses Fisher’s combination on the largest K3 ordered K4-values:
K5
For a threshold K6, the filtered set is
K7
and the conditional PC K8-values are
K9
BH is then applied at level C(i,j)=p∑q∈N(p)∑Ks(∥p−q∥)1[Q(I(p))=i]1[Q(I(q))=j].0 on the filtered family. The procedure is repeated for all C(i,j)=p∑q∈N(p)∑Ks(∥p−q∥)1[Q(I(p))=i]1[Q(I(q))=j].1, and the voxelwise replicability lower bound is
The paper also studies an adaptive or “greedy” threshold over a grid C(i,j)=p∑q∈N(p)∑Ks(∥p−q∥)1[Q(I(p))=i]1[Q(I(q))=j].4, choosing the C(i,j)=p∑q∈N(p)∑Ks(∥p−q∥)1[Q(I(p))=i]1[Q(I(q))=j].5 that maximizes the number of rejections. It states that Dickhaus et al. (2024) show FDR control for fixed C(i,j)=p∑q∈N(p)∑Ks(∥p−q∥)1[Q(I(p))=i]1[Q(I(q))=j].6 for any choice of C(i,j)=p∑q∈N(p)∑Ks(∥p−q∥)1[Q(I(p))=i]1[Q(I(q))=j].7, including adaptive choices, when using Fisher’s combination and the conditional scaling C(i,j)=p∑q∈N(p)∑Ks(∥p−q∥)1[Q(I(p))=i]1[Q(I(q))=j].8. For varying C(i,j)=p∑q∈N(p)∑Ks(∥p−q∥)1[Q(I(p))=i]1[Q(I(q))=j].9, the paper reports strong empirical evidence of overall FDR control, while noting that a full formal proof is not yet provided.
The empirical evaluation includes two simulation regimes and a real dataset. In Simulation 1, with I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),00 subjects, I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),01 voxels, I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),02 time points, and equi-correlation I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),03, the reported FDR values over 500 repetitions are 0.0262, 0.0256, 0.0234, 0.0191 for CoFilter, compared with 0.0403, 0.0408, 0.0377, 0.0298 for Benjamini–Heller (2009) and 0.0207, 0.0197, 0.0174, 0.0147 for AdaFilter. In Simulation 2, with I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),04 subjects, I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),05 voxels in a I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),06 array and SNRI′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),07, the reported FDR values are 0.0478, 0.0475, 0.0473, 0.0470 for CoFilter, 0.0477, 0.0474, 0.0472, 0.0469 for Benjamini–Heller (2009), and 0.1066, 0.1152, 0.1142, 0.1141 for AdaFilter.
The real-data study uses the Smeets et al. (2013) food-cue fMRI dataset from OpenNeuro ds000157, comprising 30 healthy women. The paper reports that CoFilter discovers more voxels at very high I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),08 than Benjamini–Heller, makes on average 0.56 more rejections on the full voxel set, differs from Benjamini–Heller in about 18.7\% of voxels, and in about 70\% of those differing voxels CoFilter finds more activation, with about 3 more rejections on average in that subset. Reported Talairach coordinates include I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),09 and I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),10 in visual cortex.
5. CostFilter-AD as a cost-filtering “CoFilter” method
In unsupervised anomaly detection, CostFilter-AD introduces explicit matching cost volume filtering into UAD and is abbreviated in the paper as “CoFilter” for cost filtering (Zhang et al., 2 May 2025). The method addresses a failure mode shared by reconstruction-based and embedding-based UAD systems: anomaly maps are typically derived from image-level or feature-level matching, but that matching can be noisy and inaccurate due to imperfect reconstructions, misalignment across views or scales, and the absence of ideal normal templates.
The method constructs a dense matching cost volume from frozen multi-layer features of an input image I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),11 and normal templates I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),12. Using a frozen encoder such as DINO ViT-B/8 or EfficientNet-B4, the paper extracts
Filtering is performed by a 3D U-Net with dual-stream guidance. Spatial guidance (SG) uses multi-layer input features I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),18 to preserve edges and contours, while matching guidance (MG) uses the coarse anomaly map I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),19 to bias the network toward channels likely to contain anomalies. The core Residual Channel-Spatial Attention (RCSA) module concatenates the cost feature with projected guidance,
and the image-level anomaly score is the average of the top-I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),24 pixels with I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),25.
The paper emphasizes that CostFilter-AD is a generic post-processing plug-in that can be attached to both reconstruction-based and embedding-based pipelines. In reconstruction-based settings, templates can include intermediate denoising steps
where I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),27 is the frozen diffusion noise predictor. In embedding-based settings, a small number I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),28 of normal images per category is sampled instead of using large memory banks. The filtering network is trained on synthetic anomalies under the GLAD protocol with
using I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),30 and I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),31 in the class-aware focal adaptor.
The implementation details reported are I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),32 feature layers, I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),33 for GLAD and AnomalDF, I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),34 for HVQ-Trans, input sizes I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),35 for GLAD and AnomalDF and I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),36 for HVQ-Trans, and Adam, lr I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),37, batch size 8, 40 epochs, with ReduceLROnPlateau. On A100 40GB, the added runtime and memory are reported as +0.37 s and +2.07 GB for GLAD, +0.07 s and +0.94 GB for HVQ-Trans, and +0.32 s and +0.82 GB for AnomalDF.
The reported gains are benchmark-specific but consistently positive. On MVTec-AD multi-class UAD, mean image/pixel AUROC improves from 97.5/97.3 to 98.7/98.2 for GLAD, from 98.0/97.3 to 99.0/98.0 for HVQ-Trans, and from 96.8/98.1 to 98.5/98.8 for AnomalDF. On VisA, the corresponding changes are 90.1/97.4 to 93.2/98.1, 91.3/98.5 to 93.4/98.6, and 90.5/97.5 to 94.3/99.2. The paper also reports improvements for a unified single-class model and ablations showing that mapping I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),38 to channels is superior to mapping I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),39 to depth, that multiple denoised templates outperform the final-step template alone, and that dual-stream attention plus the full loss gives the best results.
6. CoLoR-Filter as an informal “CoFilter” in language-model pre-training
In language-model pre-training, CoLoR-Filter stands for Conditional Loss Reduction Filtering. The paper states that if one encounters “CoFilter,” it is an informal shorthand for the same method, but that the canonical name is CoLoR-Filter because the method is defined by the conditional reduction in loss of a target-domain model relative to a background model (Brandfonbrener et al., 2024).
The setting is targeted data selection. Let I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),40 be a large corpus, I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),41 a small sample from the downstream target distribution, and I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),42 a prior dataset, typically sampled from the same distribution as I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),43. For an autoregressive LLM,
The paper derives an empirical Bayes-inspired objective and approximates it using two small auxiliary models: a marginal model I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),45 trained on I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),46, and a conditional model I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),47 obtained by fine-tuning I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),48 on I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),49. The per-example score is
Selection is by ranking: choose the bottom-I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),51 examples by I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),52, equivalently those with the largest likelihood ratio I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),53.
The procedure is offline and largely parallelizable. One trains I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),54 on I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),55, fine-tunes it on I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),56 to obtain I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),57, samples a candidate pool I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),58 of size I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),59, computes per-token losses under both auxiliary models on fixed-length 512-token chunks, scores each example by I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),60, then trains the target model on the selected subset. The auxiliary models are reported as I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),61M non-embedding parameters, with 12 layers, 1024 hidden size, 4096 MLP, 64 head dimension, RoPE positional encoding, context length 512, mixed precision (bfloat16), Adam, batch size 256, learning rate I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),62, warmup and cosine decay, and z-loss I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),63. The target models are 1.2B non-embedding parameters, with 24 layers, 2048 hidden size, and 8192 MLP.
The paper gives total compute cost, in model-forwards per token, as
where I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),65, I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),66, and I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),67 for 1.2B vs 150M in the reported setup. The term I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),68 is fully parallelizable.
Two empirical settings are emphasized. For domain adaptation to Books, CoLoR-Filter with a pair of 150M auxiliary models can train a 1.2B target model to match a 1.2B model trained on 25B randomly selected tokens using about 1.5B filtered tokens, or about 25I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),69 less data. The paper also reports a compute reduction of over I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),70 in the example calculation with I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),71B, I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),72B, I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),73, and I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),74, comparing 82 to 412.5 units. For a suite of downstream multiple-choice QA tasks, CoLoR-Filter data selected with 150M auxiliary models can train a 1.2B target to match the performance of a 25B random-token baseline with about 3B filtered tokens, or about 11I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),75 less data.
For 150M targets at I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),76 and 3.1B selected tokens, average accuracy on the multiple-choice QA suite improves from 46.3 for Random 1I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),77 to 49.1 for CoLoR-Filter, exceeding the Random 8I′(p)=Zp1q∈N(p)∑ws(∥p−q∥)wr(I(p)−I(q))I(q),78 baseline at 47.1. CoLoR-Filter also outperforms Conditional-only (46.0), RHO-down (46.1), RHO-down+prior (48.5), and DSIR (48.3) on average. The paper additionally notes that CoLoR-Filter is most effective when targeting a downstream distribution different from the pretraining source; using it to improve IID losses on C4 does not help.
Across these uses, the label CoFilter consistently refers to a design pattern in which a downstream inference stage is preceded by an explicit filtering operation: co-occurrence weighting before local smoothing, thresholded conditional testing before multiplicity correction, guided cost-volume denoising before anomaly scoring, or likelihood-ratio ranking before target pre-training. The methods are not interchangeable, but they share a common structural principle: filtering is treated as part of the estimator rather than as an incidental preprocessing step.