Most of the experimental data that train genomic deep learning models come from a few immortalized cancer cell lines such as K562, HepG2 and GM12878. The variants that matter clinically act in primary human tissue. A model asked how a non-coding variant behaves in liver therefore answers mostly from HepG2, a liver-derived tumor line. That answer mixes two signals: real liver regulatory biology, and the proliferation and stress programs of a cell growing in a dish.
We propose to train a chromatin model whose internal description of each genomic window is split into two parts. One part carries lineage (which tissue the cell comes from). The other carries culture status (whether the cell is a cultured line or primary tissue). An adversary, meaning a second network that tries to read culture status out of the lineage part and whose success the main model is penalized for, enforces the split. Once the parts are separated, the model can take a cell line it has never paired with primary tissue, keep its lineage part, swap in the "primary tissue" culture part, and predict accessibility and variant effects as they would appear in vivo.
Core Claim
What Does a Chromatin Foundation Model Know About a Petri Dish? motivates this work. Its authors used sparse autoencoders on EPIBERT, a transformer trained on ATAC-seq (a measure of which DNA is open and accessible), and found features that separate cell lines from matched primary tissues in three lineages: K562 vs. hematopoietic stem cells, HepG2 vs. liver, and GM12878 vs. naive B cells. Cell-line features reflected oncogenic programs (AP-1, E2F), and liver-tissue features reflected HNF4A. Ablating the top 25 such features changed predictions with Cohen's d = 1.79. However, adding primary-tissue feature directions after training closed only 11.2% of the prediction gap between cell lines and tissue.
Our claim is that most of the remaining 88.8% cannot be reached by editing a model after training. It needs a representation trained so that culture artifacts live somewhere they can be removed. The adversary must be conditioned on lineage so that removing the artifact does not also remove the tissue identity that the whole exercise is meant to keep. The proposal differs from that paper in three ways. The separation is enforced during training rather than found afterwards. The intervention is a nonlinear substitution rather than a linear shift. And evaluation reaches variant effects on held-out lineages, not only 200 windows on chromosomes 8 and 9.
Why ordinary adversarial adaptation is the wrong tool here
The obvious combination is to treat cell lines as the "source domain" and primary tissues as the "target domain" and apply standard domain-adversarial training. In that setup a gradient reversal layer (an identity map whose gradient is negated during training) makes features indistinguishable across domains.
That design fails for a reason the field already recognizes. Forcing invariance between biologically distinct contexts erases real context-specific regulation, which is exactly the signal we want to keep. Conditional Adversarial Domain Adaptation diagnosed a related failure, "mode mismatch," in which aligning whole distributions maps one category onto another. CDAN repairs this by conditioning the discriminator on classifier predictions through a multilinear map.
CDAN's fix does not transfer directly. Our outputs are continuous coverage tracks, not class probabilities. And the category we must protect is lineage, which is known for every training context. We therefore borrow the multilinear conditioning but condition on the known lineage label rather than on predictions. The question the adversary asks becomes: "given that this is liver, can you tell whether it was cultured?" It no longer asks "can you tell cell line from tissue?", which would let lineage leak into the culture decision.
Research Program
The model reads a DNA window together with the observed ATAC-seq signal of a given cell context, in the style of EPIBERT. It produces a per-window representation split into two parts: a wide lineage-and-regulation part $a$ and a narrow culture part $b$. A decoder reconstructs held-out targets from $(a, b)$, namely masked accessibility and, where available, H3K27ac. A discriminator $D$ receives the randomized multilinear product of $a$ with a lineage embedding $e_\ell$ and tries to predict culture status $c \in \{\text{in vitro}, \text{in vivo}\}$. The encoder $E$ and decoder $F$ are trained to
$$\min_{E,F}\max_{D}\; \mathcal{L}_{\text{pred}}(F(a,b)) \;-\; \lambda\,\mathcal{L}_{\text{CE}}\big(D(\mathcal{T}(a, e_\ell)),\, c\big) \;+\; \mu\,\mathcal{L}_{\text{CE}}\big(G(a), \ell\big),$$
The terms are defined as follows. $\mathcal{L}_{\text{pred}}$ is the reconstruction loss. $\mathcal{L}_{\text{CE}}$ is cross-entropy. $\mathcal{T}$ is CDAN's randomized multilinear map. $G$ is an auxiliary lineage classifier that keeps lineage readable from $a$. $\lambda$ and $\mu$ are weights.
The narrow culture part $b$ is the only route for culture information, so the decoder must route proliferation and stress signals through it. At inference on a new cell line, we replace $b$ with the average in vivo culture code learned from training tissues. A variant's predicted effect is the difference in decoded accessibility between the reference and alternate sequence under this substituted code.
The data work matters as much as the model. The research file documents only three matched cell-line/tissue pairs. Leave-one-lineage-out evaluation needs more, so the first deliverable is a larger set of matched pairs assembled from ENCODE cell-line and primary-tissue accessibility. Where pairs cannot be matched, we use GTEx-derived primary epigenomes such as Multitissue H3K27ac profiling of GTEx samples, which profiles H3K27ac across GTEx tissues. If fewer than about six usable lineages result, the held-out-lineage claims become underpowered, and we will report that limitation rather than overstate them.
Three further design choices come from the file. Lineage-conditioning, rather than unconditional invariance, is taken from CDAN. A frozen source representation, shared with the baseline so that the adapted part cannot drift arbitrarily, follows the untied-encoder analysis in Adversarial Discriminative Domain Adaptation. Ren et al.'s within-slide consistency penalty in Adversarial Domain Adaptation for Classification of Prostate Histopathology Whole-Slide Images raised accuracy from 54.3% to 77.1% and suggests that anchoring adversarial alignment to a biological unit matters. Our counterpart is that the substituted predictions for a held-out cell line must stay consistent across windows of the same cell; we keep this as an optional penalty and test it as an ablation.
Baselines
The naive reference point is doing nothing: using each cell line's own model predictions as the estimate of the matched primary tissue. This is what MetaChrom-style transfer, Annotating functional effects of non-coding variants in neuropsychiatric cell types by deep transfer learning, implicitly assumes when it carries features learned from ENCODE cell lines into new contexts without adaptation. It defines the zero point of gap closure.
The strongest existing method on this exact question is post-hoc sparse-autoencoder steering from What Does a Chromatin Foundation Model Know About a Petri Dish?. On held-out chromosome 8 and 9 windows across its three lineage pairs, it reports that steering closed 11.2% of the gap, which was 4.5 times more effective than random interventions. We will reimplement steering on the same backbone, the same windows and our expanded pairs. Beating it means a substantially larger gap closure on the original 200-window evaluation, where the reported 11.2% is directly comparable. It also means a gain on held-out lineages, where steering vectors must be transferred from other lineages.
The second baseline is pooled multi-task training with an explicit context token. A single model, Enformer-like in spirit (Effective gene expression prediction from sequence by integrating long-range interactions), receives lineage and culture as input tokens and is queried at test time with (new lineage, in vivo). Run with identical architecture, data, and tuning budget and with $\lambda = 0$, this is also the ablation that isolates the adversary.
The third is unconditional gradient-reversal invariance, which we expect to erase lineage signal. It will show whether the conditioning is necessary.
The fourth is a supervised nonlinear translator, a network trained on paired lineages to map cell-line profiles to primary-tissue profiles. The upper bound is fine-tuning directly on the held-out lineage's primary data.
All methods share the backbone initialization, the training windows, the hyperparameter search budget, and the held-out chromosomes.
Why not just…?
Why not just fine-tune on primary-tissue data? Where deep primary data exist, one should, and we report this as the oracle. The point of the method is the far larger set of contexts where only cell-line data, or only shallow primary data, exist. The relevant question is how much of the oracle's advantage the method recovers without that data, measured by sweeping the amount of held-out-lineage primary data from zero upward.
Why not just add a culture token to a pooled model? This is the real threat. A pooled model might learn to combine lineage and culture on its own. Simple aggregation is notoriously hard to beat, as Episodic Training for Domain Generalization concedes even while reporting a 3.3% gain over it on PACS. The sparse-autoencoder audit shows that pooled models absorb culture artifacts into late-layer features, but not that a culture token fails to route them. The $\lambda = 0$ ablation settles this directly. If it matches the adversarial model on held-out lineages, we will conclude that the adversary is unnecessary.
Why not just learn a translator from cell-line to tissue profiles? A translator fit on a handful of paired lineages may memorize lineage-specific corrections, such as HNF4A gain for liver, rather than the shared culture artifact. If so, it should fail on a held-out lineage. Leave-one-lineage-out evaluation tests exactly this. A translator that holds up there would be a simpler competitor, and we would report it as such.
Proposed Experiments
The first experiment reproduces the original setting: three lineage pairs, chromosome 8 and 9 windows, and gap closure defined as in the steering paper, compared against the reported 11.2%.
The second is leave-one-lineage-out over the expanded pair set. The metrics are correlation of substituted predictions with held-out primary accessibility and gap closure relative to the doing-nothing baseline.
The third moves to variants. We score fine-mapped GTEx eQTLs in liver and whole blood, using credible sets computed with BTS, which shrank coronary artery disease 90% credible sets from 6.5 to 2.44 variants. We ask whether in vivo-substituted variant scores separate high-probability causal variants from credible-set neighbors better than cell-line scores do. Enformer reports improving causal-variant prioritization in 47 of 48 GTEx tissues. Beyond that count, no reported result was found on Lacuna for a per-tissue metric value, so we will compute Enformer-style scores ourselves under the same protocol.
Two decisive checks could falsify the mechanism even if aggregate numbers improve. First, motif attribution on the culture part should be enriched for AP-1 and E2F, while the lineage part retains HNF4A in liver, matching the audit's findings. If proliferation motifs remain in the lineage part, the separation has failed. Second, decoding with the in vitro culture code should reproduce cell-line profiles. If it does not, the substitution is not acting as a controlled swap, and any gains would reflect regularization rather than removal of the culture artifact.
References
- What Does a Chromatin Foundation Model Know About a Petri Dish? Sparse Autoencoders Reveal In Vitro vs. In Vivo Context in EPIBERT
- Conditional Adversarial Domain Adaptation
- Multitissue H3K27ac profiling of GTEx samples links epigenomic variation to disease
- Adversarial Discriminative Domain Adaptation
- Adversarial Domain Adaptation for Classification of Prostate Histopathology Whole-Slide Images
- Annotating functional effects of non-coding variants in neuropsychiatric cell types by deep transfer learning
- Effective gene expression prediction from sequence by integrating long-range interactions
- Episodic Training for Domain Generalization
- BTS: a scalable Bayesian Tissue Score for prioritizing GWAS variants and their functional contexts across >1,000s of omics datasets