ELVIA analysis of: COSDA: Counterfactual-based Susceptibility Risk Framework for Open-Set Domain Adaptation
Original paper: Wenxu Wang; Rui Zhou; Jing Wang; Yun Zhou; Cheng Zhu; Ruichun Tang; Bo Han; Nevin Zhang. COSDA: Counterfactual-based Susceptibility Risk Framework for Open-Set Domain Adaptation. Proceedings of the 42nd International Conference on Machine Learning, vol. 267, 2025. https://proceedings.mlr.press/v267/wang25fd.html
Source version: Published ICML 2025 proceedings PDF (PMLR 267)
Source location: Pages3-4 equations8/10 Pages14-16 equations30-38
Pages4-5 equations13-14 Pages16-17 equations40-43
Page5 equations15-16 Pages13 and17 equations44-47
cosda-clip/train_b_ddp.py:157-185 and94-98 cosda-clip/dataset/dataset.py:135-147
config/model_config.py:130,220-223 dataset/dataset.py:88-107 train_b_noddp.py:78-91,169,207-209 model/COSDA.py:119-124,230-235
Page7 Table3 w/oLs OSstar average Page22 CtoA comparison prose
Question: What does the recorded analysis establish about “COSDA: Counterfactual-based Susceptibility Risk Framework for Open-Set Domain Adaptation”?
Bounded finding:
Archived assessment: Major. the risk identity and Theorem 2 are invalid; Corollary 1 is not a valid high-probability bound; the stated mutual-information equivalence and monotonicity enforcement do not follow.
Recorded check:
Existing findings, counterevidence and bounded classifications; no scientific reassessment performed during import.
Complete public transcription of the retained report, with internal workflow identifiers and host paths omitted.
Case-wide limitations:
- 0347-F1 — Counterevidence: The weaker inequality a/b<=exp(a-b) is valid for 0<a<=b<=1; Theorem1 support partition is valid for a consistently defined risk.
- 0347-F2 — Counterevidence: Dropping constants may define an optimization heuristic; it does not yield the claimed finite probability guarantee.
- 0347-F3 — Counterevidence: Actual cosine alignment may favor a non-permuted solution; it is not claimed to necessarily produce this counterexample.
- 0347-F4 — Counterevidence: README uses non-distributed adaptation; train_b_noddp.py:142 correctly resets source. Optional if_true_label defaults off and normal evaluation label access is not itself leakage.
- 0347-F5 — Counterevidence: Office count can be overridden; historical command/revision unavailable; implementation can legitimately use a surrogate if documented.
- 0347-F6 — Counterevidence: Table8 UNK40.5/HOS38.9 match prose; improvements are not reversed.
- Counterevidence: Weaker exponential surrogate upper bound exists; support partition valid when one risk consistently defined. Treating full open-set divergence as infinite gives a vacuous bound rather than rescuing useful finite guarantee.
- Counterevidence: A parameter-independent divergent prior term can be discarded for an optimization heuristic, not a finite PAC-Bayes guarantee. Risk sign mismatch does not affect zero-gap counterexample.
- Counterevidence: Cosine alignment may prefer a non-permuted solution; counterexample targets claimed equivalence, not assertion that implementation must learn permutation. Mean objective alone cannot enforce pointwise monotonicity.
- Counterevidence: README selects noddp, whose iterator reset is correct; if_true_label default0 confirmed config68. Unknown-index shape errors could stop some configurations; finding requires path reaching CE rather than claiming every distributed configuration leaks.
- Counterevidence: Defaults can differ from historical overrides; surrogate choices can be legitimate if documented. No derived quantitative effect or historical benchmark invalidity.
- The original report's complete scope, counterevidence and unresolved questions are retained below.
- This import checks publication format and identity; it does not repeat scientific review.
- Independent human scientific review is pending; author adoption has not been requested.
Review status: Independent review pending
Case: icml2025-0347-cosda-counterfactual-based-susceptibility-risk-framework-for-open
Revision: 1
Record created: 2026-10-26T04:21:21.357774+00:00
Permalink: https://elvia-atlas.org/atlas/cases/icml2025-0347-cosda-counterfactual-based-susceptibility-risk-framework-for-open.html
Versioned public record: https://elvia-atlas.org/atlas/evidence/icml2025-0347-cosda-counterfactual-based-susceptibility-risk-framework-for-open/records/icml2025-0347-cosda-counterfactual-based-susceptibility-risk-framework-for-open.r1.json
Canonical record SHA-256: 94f9a17e0524837260acf9ecf74db7eafe99a9732adb999d673fba00d186f13a
The page follows the latest revision; the versioned record identifies this snapshot.
Analysis citation:
Minhao Liu. ELVIA analysis of: COSDA: Counterfactual-based Susceptibility Risk Framework for Open-Set Domain Adaptation. ELVIA, 2026. https://elvia-atlas.org/atlas/cases/icml2025-0347-cosda-counterfactual-based-susceptibility-risk-framework-for-open.html
Case icml2025-0347-cosda-counterfactual-based-susceptibility-risk-framework-for-open; revision 1; Independent review pending. Assessment is limited to the inspected claims. Versioned record: https://elvia-atlas.org/atlas/evidence/icml2025-0347-cosda-counterfactual-based-susceptibility-risk-framework-for-open/records/icml2025-0347-cosda-counterfactual-based-susceptibility-risk-framework-for-open.r1.json
Recorded claims and inspection subjects:
Proposition1 risk identity and Theorem2 target upper bound
Corollary1 uniform high-probability variance-only generalization bound
MI equivalence establishes exogeneity and average objective establishes monotonicity
Released distributed training remains unsupervised on target labels
Released defaults/objective match documented benchmark splits and regularization
Table3 average and Table8 improvement prose
Recorded domain:
Completed report for I25-43716; exact inspected scope and limitations are retained in the report and coverage ledger.
Recorded assumptions:
Examples satisfy pointwise monotone correctness. Same-domain example needs no domain shift; binary representation can ignore nuisance state. Positive-unknown-mass extension recorded.
Gaussian feature distributions and fixed classifier are within stated every-parameter claim; monotonicity holds with equality. Counterexample unaffected by probability/error sign mismatch.
Explicit coupled source/target law, balanced independent domain; same-label pairing does not eliminate invertible permutation. Randomized treatment for monotonicity example.
Source loader shorter than target; run reaches branch and supervised loss. Outcome conditional, not executed.
Current default configuration and literal dictionary update semantics; no external override.
Arithmetic on displayed entries at their printed precision.
Recorded dependencies:
Actual review scope:
Completed report for I25-43716; exact inspected scope and limitations are retained in the report and coverage ledger.
Evidence and counterevidence:
retained-findings (support; Formatting-only transcription of the selected completed report.): Existing findings, counterevidence and bounded classifications; no scientific reassessment performed during import.
retained-report (support; LaTeX parsed as data; no author code or TeX execution.): Complete public transcription of the retained report, with internal workflow identifiers and host paths omitted.
scope-and-rebuttal (rebuttal; Public copy of the archived coverage ledger.): Existing inspection coverage, counterevidence, missing materials and unresolved scope remain as supplied.
editable-latex (support; Formatting conversion only; original archive bytes remain unchanged.): Public editable report generated from the same retained transcription.
Displayed problem statements:
Source finding p1: the risk identity and Theorem 2 are invalid
Proposition1 risk identity and Theorem2 target upper bound. Examples satisfy pointwise monotone correctness. Same-domain example needs no domain shift; binary representation can ignore nuisance state. Positive-unknown-mass extension recorded.
Source finding p2: Corollary 1 is not a valid high-probability bound
Corollary1 uniform high-probability variance-only generalization bound. Gaussian feature distributions and fixed classifier are within stated every-parameter claim; monotonicity holds with equality. Counterexample unaffected by probability/error sign mismatch.
Source finding p3: the stated mutual-information equivalence and monotonicity enforcement do not follow
MI equivalence establishes exogeneity and average objective establishes monotonicity. Explicit coupled source/target law, balanced independent domain; same-label pairing does not eliminate invertible permutation. Randomized treatment for monotonicity example.
Source finding p4: Released distributed training remains unsupervised on target labels
Released distributed training remains unsupervised on target labels. Source loader shorter than target; run reaches branch and supervised loss. Outcome conditional, not executed.
Source finding p5: Released defaults/objective match documented benchmark splits and regularization
Released defaults/objective match documented benchmark splits and regularization. Current default configuration and literal dictionary update semantics; no external override.
Source finding p6: Table3 average and Table8 improvement prose
The Table 3 average and Table 8 improvement description should follow from their displayed comparisons. Arithmetic on displayed entries at their printed precision.
Complete retained report:
Abstract: The proposed representation and prototype heuristics may be useful, but their principal causal and generalization guarantees do not follow. The probability-of-sufficiency risk is replaced by a different quantity; the target-risk bound fails by explicit finite counterexamples; the variance-only generalization bound can be negative when the generalization gap is zero; and mutual-information maximization does not imply the claimed exogeneity. These are Major theoretical findings. Separate, version-bounded source defects affect a distributed training path, benchmark defaults, and regularization accounting. They do not establish that the published experiments used these defects. All 22 physical PDF pages, all original figures, and the complete acquired Python release were read or viewed as appropriate. Only reviewer-written checks were run. Scientific adjudication remains pending.
Author: AI-assisted technical review
Title: Technical Verification of COSDA: Counterfactual-based Susceptibility Risk Framework for Open-Set Domain Adaptation
# Identity and scope
This report concerns Wenxu Wang et al., COSDA: Counterfactual-based Susceptibility Risk Framework for Open-Set Domain Adaptation, ICML 2025, I25-43716 (0347) [paper]. The source is the frozen PDF.
All 22 physical pages, including appendices A–D, were read. Page numbers below are physical PDF pages. All eleven original figures and five released t-SNE PDFs were actually viewed. All 28 acquired packet files passed their frozen hashes. The complete 13 Python files and accompanying documentation/configuration were statically read at repository commit `778de38c7ea938a82fd45e070006cbeda89a16aa`, dated 2 October 2026 [code]. This later snapshot is not presumed to reproduce the historical experimental version. No author code was imported or executed.
COSDA combines a learned feature intervention, Gaussian representations, target pseudo-labels from known and virtual unknown prototypes, and contrastive alignment. The support decomposition in Theorem 1 is a legitimate partition once its risk is defined consistently. The concerns below concern the stronger identification and upper-bound claims, rather than that partition or the existence of a useful empirical classifier.
# The causal risk and target bound
Problem 1 (Major: the risk identity and Theorem 2 are invalid). Proposition 1, equation (8), and Appendix B.1 replace a ratio by a difference. Theorem 2, equation (10), and Appendix B.3 then give an invalid upper bound even if that difference is adopted as a new surrogate risk.
Let \(p=P(Y=y\mid C=c)\), \(q=P(Y=y\mid C'=c')\), \(a=1-p\), and \(b=1-q\). Under the identification assumptions used by the paper, \(\mathrm{PS}=(p-q)/(1-q)\), so \[1-\mathrm{PS}=\frac{a}{b},\qquad\text{whereas equation (8) uses }D=a-b.\] For \(a=1/5,b=4/5\), these are \(1/4\) and \(-3/5\). Both probabilities are realizable by monotone potential outcomes: take independent uniform \(U\), let correctness under \(c\) be \(\mathbf1\{U<1-a\}\) and under \(c'\) be \(\mathbf1\{U<1-b\}\), and randomize the treatment independently of \(U\). Thus this is not a violation of exogeneity or monotonicity.
There is useful counterevidence to an overly broad objection. For \(0<a\le b\le1\), the weaker inequality \[a/b\le \exp(a-b)\] does hold, since \(\log a-\log b\le a-b\). It could justify a limited surrogate interpretation. However, Appendix B.1’s intermediate bound \(a/b<\exp(a-b-2)\) fails in the example above: \(0.25>0.07427\). More importantly, minimizing the difference need not minimize the true risk. The feasible pairs \((a,b)=(.01,.2)\) and \((.4,.9)\) have differences \(-.19,-.5\) but true risks \(.05,4/9\) respectively. The smaller difference chooses the larger true risk. A corrected statement must distinguish the risk from a surrogate and its possible upper bound.
## Subtracting upper bounds does not upper-bound their difference
Equations (36)–(38), pages 15–16, subtract two upper bounds on joint errors. From \(u\le U\) and \(v\le V\) one cannot infer \(u-v\le U-V\). The sign is central because the intervention error is deliberately subtracted.
For a binary counterexample, let the source have two nuisance states with masses \((1/2,1/2)\) and the target have masses \((.9,.1)\), all with the same known label. Let a deterministic classifier be correct on the observed representation and wrong on the intervened representation at both states. The representation can ignore the nuisance state, so its invariance and monotonic correctness are preserved. Then both disagreements vanish, \(e_S(c)=0\), \(e_S(c')=1\), and \(\beta_\infty=1.8\). Equation (10) claims \(-1\le-1.8\), which is false even after replacing its strict inequality by a weak one.
This is not solely a closed-set boundary issue. Add target-only unknown mass \(.2\) on a new support point, with equal errors before and after intervention; give the old target states masses \(.72,.08\). The unknown difference term is zero, \(\beta_\infty=1.44\), and the claimed inequality becomes \(-.8\le-1.44\). This extension uses the paper’s support-restricted density ratio. A convention making the divergence infinite for every open-set problem would instead render the advertised bound uninformative.
## The Gibbs decomposition is binary-specific
Equation (35) also applies \(R=\tfrac12d+e\) to a multiclass problem. When two voters predict distinct wrong classes, the two error indicators sum to 2, while disagreement plus twice joint error is 3.
The failure can reverse the final inequality without any domain shift. Set \(S=T\), fix true label 0, and choose four equiprobable voters with outputs \[(h_1(c),\ldots,h_4(c))=(0,1,1,1),\qquad
(h_1(c'),\ldots,h_4(c'))=(1,1,2,2).\] Every voter’s correctness is monotone under this intervention. Direct enumeration gives \[(R,d,e)_c=(3/4,3/8,9/16),\qquad
(R,d,e)_{c'}=(1,1/2,1).\] The true difference is \(-1/4\), but the right side of equation (10), with \(\beta_\infty=1\) and no unsupported mass, is \(-1/2\). Replicating this construction under cyclic class relabeling supplies all three true classes if desired. A new multiclass decomposition and a valid bound for a signed error difference are needed. The advertised source/target loss justification materially depends on both missing steps; the findings do not by themselves refute measured accuracy.
# The generalization bound and causal assumptions
Problem 2 (Major: Corollary 1 is not a valid high-probability bound). Equation (14), pages 4–5, asserts a uniform bound by \(-\log\sigma_C+\log\sigma_{C'}\). Appendix B.4 does not establish it.
Take Gaussian representations with standard deviations \(\sigma_C=2\), \(\sigma_{C'}=1\), one fixed true label, and a constant wrong classifier. Observed and intervened errors are both 1; correct-class probabilities are both 0. Consequently the difference risk in equation (8) and its empirical difference in equation (13) are both zero for every sample. Nevertheless the alleged bound is \(-\log2<0\). It fails with probability one, independently of sample size. Monotonicity holds with equality. This also avoids relying on the opposite sign conventions of equations (8) and (13), which must themselves be reconciled.
In the proof, upper bounds are again subtracted. Equation (42), page 17, then replaces \(-\mathrm{KL}(\rho\|\gamma_{C'})\) by \(+\mathrm{KL}(\gamma_{C'}\|\rho)\) as an equality. These are not equal: for \(\rho=N(0,1)\) and \(\gamma_{C'}=N(0,4)\), the forward and reverse KL divergences are approximately \(.318147\) and \(.806853\). Nor does taking the prior variance to infinity yield a finite PAC-Bayes bound: the KL diverges. Dropping a parameter-independent divergent term may motivate an optimization heuristic, but cannot preserve a finite probability guarantee. A repaired result needs a proper prior, correct signs, and sample-size/confidence dependence.
Problem 3 (Major: the stated mutual-information equivalence and monotonicity enforcement do not follow). Proposition 2, equation (16), and Appendix B.5 identify domain-invariant conditional labels with maximized cross-domain mutual information. Equation (15) is also presented as satisfaction of monotonicity. Neither implication is established.
Let \(Z\) be a fair binary label, and pair source and target features from that label as \(C_s=Z\) and \(C_t=1-Z\). Their mutual information is the maximum possible, one bit. In a pooled population with independent fair domain \(E\), let \(C=Z\mathbin{\mathrm{xor}}E\) and \(Y=Z\). Then \(C\perp E\), but \[I(Y;E\mid C)=1\text{ bit},\qquad
P(Y\mid C,E)\ne P(Y\mid C).\] Thus maximal shared information, even with domain-independent feature marginals and same-label pairing, does not ensure the required conditional invariance. Mutual information is unchanged by invertible domain-specific permutations. This does not show that COSDA’s particular cosine alignment necessarily selects such a permutation; it disproves the claimed equivalence used to justify it.
There is a further definitional issue: conditional on a fixed class and fixed training set, the source centroid \(C_s^k\) is constant, so its literal mutual information with a random target feature is zero. The variables and joint sampling law need to be specified before the displayed expectation of mutual information is meaningful. Equation (44) writes a single event’s log term in place of a full KL/conditional-MI sum, and equation (46)’s claimed “transmissibility” supplies no missing implication.
Likewise, a positive average correctness difference does not exclude individual defiers. A population with \(.6\) responders \((Y_c,Y_{c'})=(1,0)\), \(.1\) defiers \((0,1)\), and \(.3\) never-correct units has \(p-q=.5\), yet violates monotonicity on ten percent of units. With randomized intervention, true sufficiency is \((.6)/(.9)=2/3\), while the formula assuming monotonicity gives \((.6-.1)/(.9)=5/9\). An average objective is not an enforcement mechanism for the pointwise assumption. CFA and VMP can remain useful heuristics; claims that they establish causal identification require additional conditions or weaker wording.
# Static implementation findings and empirical checks
## A conditional target-label leak in the distributed path
In `cosda-clip/train_b_ddp.py`, lines 157–185, the loop runs for the maximum of source and target loader lengths. When the source iterator is exhausted, lines 163–165 reset it to the target loader. Its third output becomes `target_s` and enters source cross-entropy at line 185 and lines 94–98. The dataset returns the annotation-derived label at `dataset/dataset.py:135--147`, mapping unknown labels to the unknown index.
If the source loader is shorter and the run reaches that branch, target annotations therefore enter the supervised gradient. An independent three-step iterator example, with two source batches and three target batches, confirms the last supervised batch comes from target data. This is a Major protocol defect for an affected distributed experiment. It is conditional on this path and does not prove that any published result is affected. In particular, the README’s adaptation command uses `train_b_noddp.py`, whose line 142 correctly resets the source loader. The optional true-label contrastive branch defaults off; its existence is not evidence of label leakage in normal non-distributed adaptation. The repair is to reset the source iterator correctly and document the historical command and revision.
## Supporting checks
The current DomainNet configuration fixes 150 shared and 172 unknown classes at `config/model_config.py:220--223`, while Tables 4–5 specify 173/172. Dataset filtering thus retains target class IDs 0–321 rather than all 345 classes, omitting 322–344 and moving the known/unknown boundary. Office-31’s default 10 unknown classes at line 130, combined with the offset in `dataset/dataset.py:92`, selects 20–29 rather than the paper’s 20–30; an explicit override to 11 repairs that default. These are confirmed current-configuration differences, not evidence that the historical tables used the wrong split.
Both domains’ loss dictionaries use the same keys `loss_kl_nll` and `loss_kl_int_nll`. In the non-distributed loop, source update at line 169 is overwritten by target update at line 207, so the total at line 209 retains only target values, rather than both domains’ regularizers. Distinct keys or explicit summation are needed if Algorithm 1 is intended. Moreover, `model/COSDA.py:119--124,230--235` applies a positive-part entropy threshold to both representations, not equation (14)’s signed log-standard-deviation difference. The implemented cross-entropy surrogate is also not a literal estimator of the disagreement/joint-error expressions. These discrepancies need an explicit algorithm-to-code mapping; replacing the false theorem alone does not document the implemented objective.
## Minor arithmetic and limits of visual evidence
Table 3, page 7, reports an average OS* of 64.6 without \(L_s\), whereas its four entries \(72.9,71.1,51.5,49.8\) average to \(61.325\), or 61.3 at the displayed precision. In Table 8, page 22, the C\(\to\)A OS* improvement over ANNA is \(71.2-48.6=22.6\) percentage points, not the prose’s 20.6. The corresponding UNK and HOS differences, 40.5 and 38.9, agree. These corrections do not reverse those individual improvements.
Figures 1–11, including both Figure 5 sensitivity surfaces and the five released embeddings, were visually inspected. The t-SNE separation is descriptive evidence, not proof of exogeneity. The synthetic graph in Figure 8 is \(Y\to C\to S\); its distance-correlation measurements demonstrate retention of label-associated factors in that generative model, not identification of an intervention effect \(C\to Y\). This is a limit of the proposed causal validation, not an allegation that its plotted measurements are fabricated. The packet does not provide raw run-level uncertainty, a complete historical benchmark record, or synthetic-generation code sufficient to reproduce all these claims. Best-checkpoint selection and correspondence between current training paths and reported tables remain unresolved.
# Supporting checks
Major revision is warranted because the central target-risk, generalization, and causal-identification arguments require replacement. Empirical usefulness can survive these theoretical failures and must be evaluated on its own evidence. The distributed code defect needs correction before that path can support an unsupervised adaptation experiment. Version provenance is essential before attributing it to published results.
The reviewer-owned records exact Gibbs enumeration, density-ratio examples, Gaussian/KL arithmetic, binary conditional mutual information, monotonicity probabilities, a plain-iterator model, loss-dictionary accounting, and table arithmetic in . binds quoted source lines to their file hashes. No independent acceptance or human review is claimed.
9 W. Wang et al. COSDA: Counterfactual-based Susceptibility Risk Framework for Open-Set Domain Adaptation. ICML 2025. https://proceedings.mlr.press/v267/wang25fd.html. Author repository, https://github.com/ZHOURui6025/COSDA-master, frozen commit `778de38c7ea938a82fd45e070006cbeda89a16aa`.
Source PDF SHA-256: 2e00797e61fada7f6e710a5632cb8071aeadbe11758531ac882e4331a28a0dee
Repair verification: pending
Author adoption: not_requested