{"notes":[{"id":"face-antispoofing/sa-fas","category":"face-antispoofing","legacyPath":"face-antispoofing/2303-sa-fas","legacySlug":"2303-sa-fas","legacyPaths":[],"title":"SA-FAS","subtitle":"The Law of the Hyperplane","author":"Z. Yuan","paperDate":"2023-03-23","publishedOn":"2025-04-18","paperTitle":"Rethinking Domain Generalization for Face Anti-spoofing: Separability and Alignment","paperUrl":"https://arxiv.org/abs/2303.13662","bibliography":{"title":"Rethinking Domain Generalization for Face Anti-spoofing: Separability and Alignment","authors":["Yiyou Sun","Yaojie Liu","Xiaoming Liu","Yixuan Li","Wen-Sheng Chu"],"url":"https://arxiv.org/abs/2303.13662","pdfUrl":"https://arxiv.org/pdf/2303.13662","codeUrl":null,"preprint":{"id":"2303.13662","submittedOn":"2023-03-23","url":"https://arxiv.org/abs/2303.13662"},"publication":{"venue":"CVPR","year":2023,"kind":"conference","url":"https://arxiv.org/abs/2303.13662"},"citation":"@misc{faceantispoofingsafas2023,\n  title = {{Rethinking Domain Generalization for Face Anti-spoofing: Separability and Alignment}},\n  author = {Yiyou Sun and Yaojie Liu and Xiaoming Liu and Yixuan Li and Wen-Sheng Chu},\n  year = {2023},\n  eprint = {2303.13662},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2303.13662}\n}\n","citationPath":"/content/papers/citations/face-antispoofing/sa-fas.a0e5f70569ad.bib"},"thumbnail":{"src":"/content/papers/assets/c5d5b32f66a70c73d21f58ebcfc0fdc186c0dac32b554fd61aa098f945fa6536.jpg","width":1518,"height":394},"locale":"en","path":"/content/papers/en/face-antispoofing/sa-fas.77a3a739b355.md","headings":[{"id":"defining-the-problem","text":"Defining the Problem","depth":2},{"id":"solving-the-problem","text":"Solving the Problem","depth":2},{"id":"separability","text":"Separability","depth":3},{"id":"alignment","text":"Alignment","depth":3},{"id":"projected-gradient-irm-pg-irm","text":"Projected Gradient IRM (PG-IRM)","depth":3},{"id":"α-adjacency-is-the-key","text":"α-adjacency is the Key","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"comparison-with-other-methods","text":"Comparison with Other Methods","depth":3},{"id":"evaluation-metric-analysis","text":"Evaluation Metric Analysis","depth":3},{"id":"feature-distribution","text":"Feature Distribution","depth":3},{"id":"comparison-with-dann-and-ssdg","text":"Comparison with DANN and SSDG","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"tags":["face-antispoofing","contrastive-learning","distribution-shift","uw-madison","google-research"],"relatedReading":[{"id":"face-antispoofing/ssdg","relation":"comparison","topic":"Domain generalization for face anti-spoofing"},{"id":"face-antispoofing/ssan","relation":"comparison","topic":"Domain generalization for face anti-spoofing"},{"id":"face-antispoofing/iadg","relation":"comparison","topic":"Domain generalization for face anti-spoofing"}]},{"id":"face-antispoofing/ssdg","category":"face-antispoofing","legacyPath":"face-antispoofing/2004-ssdg","legacySlug":"2004-ssdg","legacyPaths":[],"title":"SSDG","subtitle":"Stable Realness","author":"Z. Yuan","paperDate":"2020-04-29","publishedOn":"2025-04-18","paperTitle":"Single-Side Domain Generalization for Face Anti-Spoofing","paperUrl":"https://arxiv.org/abs/2004.14043","bibliography":{"title":"Single-Side Domain Generalization for Face Anti-Spoofing","authors":["Yunpei Jia","Jie Zhang","Shiguang Shan","Xilin Chen"],"url":"https://arxiv.org/abs/2004.14043","pdfUrl":"https://arxiv.org/pdf/2004.14043","codeUrl":null,"preprint":{"id":"2004.14043","submittedOn":"2020-04-29","url":"https://arxiv.org/abs/2004.14043"},"publication":{"venue":"CVPR","year":2020,"kind":"conference","url":"https://doi.org/10.1109/cvpr42600.2020.00851"},"citation":"@misc{faceantispoofingssdg2020,\n  title = {{Single-Side Domain Generalization for Face Anti-Spoofing}},\n  author = {Yunpei Jia and Jie Zhang and Shiguang Shan and Xilin Chen},\n  year = {2020},\n  eprint = {2004.14043},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2004.14043}\n}\n","citationPath":"/content/papers/citations/face-antispoofing/ssdg.18ad604217a9.bib"},"thumbnail":{"src":"/content/papers/assets/3ec4bd961265b910a76f4573bbeb850168d7c706501e6f4a51e8c02a71c72b26.jpg","width":1490,"height":756},"locale":"en","path":"/content/papers/en/face-antispoofing/ssdg.03326184e995.md","headings":[{"id":"problem-definition","text":"Problem Definition","depth":2},{"id":"solution","text":"Solution","depth":2},{"id":"single-side-adversarial-learning","text":"Single-Side Adversarial Learning","depth":3},{"id":"asymmetric-triplet-loss","text":"Asymmetric Triplet Loss","depth":3},{"id":"feature-and-weight-normalization","text":"Feature and Weight Normalization","depth":3},{"id":"additional-supplement","text":"Additional Supplement","depth":2},{"id":"discussion","text":"Discussion","depth":2},{"id":"dataset-testing-setup","text":"Dataset Testing Setup","depth":3},{"id":"comparison-with-other-methods","text":"Comparison with Other Methods","depth":3},{"id":"ablation-experiment","text":"Ablation Experiment","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"tags":["face-antispoofing","loss-functions","distribution-shift","cas"],"relatedReading":[{"id":"face-antispoofing/ssan","relation":"comparison","topic":"Domain generalization for face anti-spoofing"},{"id":"face-antispoofing/sa-fas","relation":"comparison","topic":"Domain generalization for face anti-spoofing"},{"id":"face-antispoofing/iadg","relation":"comparison","topic":"Domain generalization for face anti-spoofing"}]},{"id":"face-antispoofing/ssan","category":"face-antispoofing","legacyPath":"face-antispoofing/2203-ssan","legacySlug":"2203-ssan","legacyPaths":[],"title":"SSAN","subtitle":"The Shadow of Style","author":"Z. Yuan","paperDate":"2022-03-10","publishedOn":"2025-04-30","paperTitle":"Domain Generalization via Shuffled Style Assembly for Face Anti-Spoofing","paperUrl":"https://arxiv.org/abs/2203.05340","bibliography":{"title":"Domain Generalization via Shuffled Style Assembly for Face Anti-Spoofing","authors":["Zhuo Wang","Zezheng Wang","Zitong Yu","Weihong Deng","Jiahong Li","Tingting Gao","Zhongyuan Wang"],"url":"https://arxiv.org/abs/2203.05340","pdfUrl":"https://arxiv.org/pdf/2203.05340","codeUrl":null,"preprint":{"id":"2203.05340","submittedOn":"2022-03-10","url":"https://arxiv.org/abs/2203.05340"},"publication":{"venue":"CVPR","year":2022,"kind":"conference","url":"https://arxiv.org/abs/2203.05340"},"citation":"@misc{faceantispoofingssan2022,\n  title = {{Domain Generalization via Shuffled Style Assembly for Face Anti-Spoofing}},\n  author = {Zhuo Wang and Zezheng Wang and Zitong Yu and Weihong Deng and Jiahong Li and Tingting Gao and Zhongyuan Wang},\n  year = {2022},\n  eprint = {2203.05340},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2203.05340}\n}\n","citationPath":"/content/papers/citations/face-antispoofing/ssan.65b52ab509cf.bib"},"thumbnail":{"src":"/content/papers/assets/31e7f21274d546d558932f8110ce87e7599aa0e046f3fecdea4927eab53dc1cb.jpg","width":1372,"height":786},"locale":"en","path":"/content/papers/en/face-antispoofing/ssan.2e557af140cf.md","headings":[{"id":"defining-the-problem","text":"Defining the Problem","depth":2},{"id":"solving-the-problem","text":"Solving the Problem","depth":2},{"id":"dual-stream-disentangling-of-content-and-style","text":"Dual-Stream Disentangling of Content and Style","depth":3},{"id":"style-reassembly-and-shuffling","text":"Style Reassembly and Shuffling","depth":3},{"id":"contrastive-learning-in-style","text":"Contrastive Learning in Style","depth":3},{"id":"overall-loss","text":"Overall Loss","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"comparison-with-other-methods","text":"Comparison with Other Methods","depth":3},{"id":"large-scale-testing","text":"Large-Scale Testing","depth":3},{"id":"feature-visualization","text":"Feature Visualization","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"tags":["face-antispoofing","contrastive-learning","feature-disentanglement","distribution-shift","bupt","kuaishou"],"relatedReading":[{"id":"face-antispoofing/ssdg","relation":"comparison","topic":"Domain generalization for face anti-spoofing"},{"id":"face-antispoofing/sa-fas","relation":"comparison","topic":"Domain generalization for face anti-spoofing"},{"id":"face-antispoofing/iadg","relation":"comparison","topic":"Domain generalization for face anti-spoofing"}]},{"id":"face-antispoofing/iadg","category":"face-antispoofing","legacyPath":"face-antispoofing/2304-iadg","legacySlug":"2304-iadg","legacyPaths":[],"title":"IADG","subtitle":"A Monologue of Styles","author":"Z. Yuan","paperDate":"2023-04-12","publishedOn":"2025-05-06","paperTitle":"Instance-Aware Domain Generalization for Face Anti-Spoofing","paperUrl":"https://arxiv.org/abs/2304.05640","bibliography":{"title":"Instance-Aware Domain Generalization for Face Anti-Spoofing","authors":["Qianyu Zhou","Ke-Yue Zhang","Taiping Yao","Xuequan Lu","Ran Yi","Shouhong Ding","Lizhuang Ma"],"url":"https://arxiv.org/abs/2304.05640","pdfUrl":"https://arxiv.org/pdf/2304.05640","codeUrl":null,"preprint":{"id":"2304.05640","submittedOn":"2023-04-12","url":"https://arxiv.org/abs/2304.05640"},"publication":{"venue":"CVPR","year":2023,"kind":"conference","url":"https://arxiv.org/abs/2304.05640"},"citation":"@misc{faceantispoofingiadg2023,\n  title = {{Instance-Aware Domain Generalization for Face Anti-Spoofing}},\n  author = {Qianyu Zhou and Ke-Yue Zhang and Taiping Yao and Xuequan Lu and Ran Yi and Shouhong Ding and Lizhuang Ma},\n  year = {2023},\n  eprint = {2304.05640},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2304.05640}\n}\n","citationPath":"/content/papers/citations/face-antispoofing/iadg.b4743b4893ce.bib"},"thumbnail":{"src":"/content/papers/assets/502e6feaa5147fdd4a87418e8d09a327b4d060b7d3e2881dba2bca5e518d4857.jpg","width":1778,"height":580},"locale":"en","path":"/content/papers/en/face-antispoofing/iadg.64fb7646eb41.md","headings":[{"id":"defining-the-problem","text":"Defining the Problem","depth":2},{"id":"solving-the-problem","text":"Solving the Problem","depth":2},{"id":"dynamic-kernel-generator","text":"Dynamic Kernel Generator","depth":3},{"id":"categorical-style-assembly","text":"Categorical Style Assembly","depth":3},{"id":"asymmetric-instance-adaptive-whitening","text":"Asymmetric Instance Adaptive Whitening","depth":3},{"id":"overall-training-and-optimization","text":"Overall Training and Optimization","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"comparison-with-existing-methods","text":"Comparison with Existing Methods","depth":3},{"id":"ablation-experiments","text":"Ablation Experiments","depth":3},{"id":"visualization-analysis","text":"Visualization Analysis","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"tags":["face-antispoofing","feature-disentanglement","distribution-shift","sjtu"],"relatedReading":[{"id":"face-antispoofing/ssdg","relation":"comparison","topic":"Domain generalization for face anti-spoofing"},{"id":"face-antispoofing/ssan","relation":"comparison","topic":"Domain generalization for face anti-spoofing"},{"id":"face-antispoofing/sa-fas","relation":"comparison","topic":"Domain generalization for face anti-spoofing"}]}],"text":"For the topic of Face Anti-Spoofing (FAS), we first explored solutions based on Domain Generalization (DG) such as SSDG, and then adaptive DG solutions like D²AM.\n\nSo, is DG truly the correct direction?\n\n\n> [!TIP]\n> \n> For readers who have not seen the previous papers, you can refer to our previous notes:\n> \n> - [**[20.04] SSDG: Stable Realness**](/blog/papers/face-antispoofing/ssdg)\n> - [**[21.05] D²AM: Thousand-Domain Soul Forging**](/blog/papers/face-antispoofing/d2am)\n\n\n## Defining the Problem\n\nDG indeed works well, but it has its limitations.\n\nFirst, most of these past methods are built on an idealized premise:\n\n> **We can learn a feature space that is \"domain-invariant.\"**\n\nThis sounds beautiful, but in practice, it often cannot hold up.\n\nLimited source domains and variation can lead to overfitting. Changes in devices, resolution, or lighting may then cause misclassification; this is a classification failure, not generative-model hallucination.\n\nThe situation can get worse:\nWhen data from different domains is forced into the same feature space, the originally well-separated live and spoof data get mixed up.\n\nSo, how would the model judge this?\nSimple—it would learn some irrelevant \"false correlations,\" such as:\n\n> **\"Low resolution means an attack, high resolution means a real person.\"**\n\nBut when the domain changes, this correlation doesn’t exist anymore, and the result is disastrous.\n\nSince the domain-invariant path seems unfeasible, let's think of a different direction:\n\n> **Rather than eliminating domain signals, let's \"preserve them\" and redesign the feature space.**\n\n## Solving the Problem\n\nThe starting point of SA-FAS is actually quite simple:\n\nWe no longer try to eliminate the influence of domains, but instead **acknowledge and make good use of these differences**, and redesign the feature space.\n\nThis space needs to have two core properties:\n\n1. **Separability**: The live/spoof distinction should be clear, and different domains should retain their structure.\n2. **Alignment**: For the print and replay attacks studied here, the transition from live to spoof should point in the same direction across domains.\n\nThis might seem contradictory: we want separation but also consistency?\n\nIn fact, these two are complementary: **Separation** ensures we are not confused by the domain, and **Alignment** allows us to classify using a single decision boundary.\n\n### Separability\n\nTo ensure that data from the same category and domain can \"cluster together,\" SA-FAS employs **Supervised Contrastive Learning (SupCon)**. Each training sample produces two augmented views before the $L_2$-normalized features are extracted.\n\nThe loss function is defined as:\n\n$$\n\\mathcal{L}_{\\text{sep}} = \\sum_{i=1}^{2b} -\\frac{1}{|S(i)|} \\sum_{j \\in S(i)} \\log \\frac{\\exp(z_i \\cdot z_j / \\tau)}{\\sum_{t=1, t \\ne i}^{2b} \\exp(z_i \\cdot z_t / \\tau)}\n$$\n\nIn simple terms:\n\n- Each of $b$ images yields two augmented views, giving $2b$ L2-normalized embeddings. $S(i)$ contains other indices with the anchor’s label and domain and excludes $i$ itself; the other augmented view supplies a positive.\n- Bring these positive samples closer together, and push negative samples farther apart.\n- Use the temperature coefficient $\\tau$ to control the degree of contrast.\n\nIf you've read about contrastive learning, this should seem familiar: Yes, this is essentially the **Supervised version of InfoNCE**, also known as **Multi-positive InfoNCE**.\n\n\n> [!TIP]\n> \n> For a detailed definition of SupCon loss, refer to:\n> \n> - [**[20.04] Supervised Contrastive Learning**](https://arxiv.org/abs/2004.11362)\n\n\nLet’s look at a diagram to get a sense of how these three methods impact the feature space:\n\n![separability](/content/papers/assets/c5d5b32f66a70c73d21f58ebcfc0fdc186c0dac32b554fd61aa098f945fa6536.jpg)\n\n- **(a) ERM**: The schematic allows low source-domain classification loss, while the global boundary may rely on correlations that fail in a new domain. It does not say ERM cannot classify its training data.\n- **(b) ERM + SupCon**: The data has clustered, but the boundary directions for each domain are still messy.\n- **(c) SA-FAS**: Not only is the data separable, but the transformation directions are consistent, and the classification is stable.\n\n### Alignment\n\nHaving clustering alone is not enough; if each domain has its own boundary direction, it becomes impossible to generalize.\n\nTo address this issue, SA-FAS introduces the concept of **Invariant Risk Minimization (IRM)**.\n\nThe ideal of IRM is:\n\n> **There exists a classifier $\\beta^*$ that works for all domains.**\n\nThe formula is as follows:\n\n$$\n\\min_{\\phi, \\beta^*} \\frac{1}{|E|} \\sum_{e \\in E} \\mathcal{R}_e(\\phi, \\beta^*) \\tag{IRM}\n$$\n\n$$\n\\text{s.t. } \\beta^* \\in \\arg\\min_{\\beta} \\mathcal{R}_e(\\phi, \\beta), \\quad \\forall e \\in E\n$$\n\nFor a fixed intermediate representation, optimal classifiers across domains may have no common intersection. Jointly changing representation and classifier also creates a difficult bilevel optimization problem.\n\n### Projected Gradient IRM (PG-IRM)\n\nTherefore, the authors propose an improved version: **PG-IRM**.\n\nThe core logic is:\n\n> **Each domain first finds the best boundary $\\beta_e$ for itself, and then gradually pulls everyone in the same direction.**\n\nThis turns the problem into:\n\n$$\n\\min_{\\phi, \\{\\beta_e\\}} \\frac{1}{|E|} \\sum_{e \\in E} \\mathcal{R}_e(\\phi, \\beta_e) \\tag{PG-IRM}\n$$\n\nAnd an additional \"nearness condition\" is added to ensure that each $\\beta_e$ cannot be too far from the others:\n\n$$\n\\forall e, \\ \\beta_e \\in \\Omega_e(\\phi) \\cap \\Upsilon_\\alpha(\\beta_e)\n$$\n\nWhere:\n\n- $\\Omega_e(\\phi)$ is the set of minimum loss solutions for that domain.\n- $\\Upsilon_\\alpha(\\beta_e)$ is an α-neighborhood set: the projected classifier's greatest distance to another domain's optimum is at most $\\alpha$ times the corresponding distance before projection.\n\n$$\n\\Upsilon_\\alpha(\\beta_e) = \\left\\{ \\upsilon \\mid \\max_{e' \\ne e} \\min_{\\beta_{e'} \\in \\Omega_{e'}(\\phi)} \\|\\upsilon - \\beta_{e'}\\|_2 \\le \\alpha \\cdot \\max_{e' \\ne e} \\min_{\\beta_{e'} \\in \\Omega_{e'}(\\phi)} \\|\\beta_e - \\beta_{e'}\\|_2 \\right\\}\n$$\n\n---\n\nThe entire alignment process can be imagined as follows:\n\n![alignment](/content/papers/assets/7b1b820773d92bf62cc06fa430c2fdebf3b91772870c8530182de68ca0df37fe.jpg)\n\n- **(a)** The original IRM tries to directly find $\\beta^*$, but may have no solution.\n- **(b)** PG-IRM allows each domain to find its own best $\\beta_e$.\n- **(c)** After a gradient update, $\\beta_e$ is interpolated toward the \"farthest\" classifier while the feature extractor is also updated.\n- **(d)** In the diagram, the domain hyperplanes nearly coincide after convergence.\n\n### α-adjacency is the Key\n\nWhy does PG-IRM work, while IRM often fails?\n\nPG-IRM moves domain classifiers closer during optimization, but the paper’s ideal objective remains equivalent to IRM. For $0<\\alpha<1$, substituting $\\beta_e$ itself into the adjacency constraint gives a nonnegative distance $d\\le\\alpha d$, requiring $d=0$ at an ideal feasible solution. It is not merely a fixed nonzero tolerance at convergence.\n\nThis \"closeness\" concept is called α-adjacency, as shown in the diagram below:\n\n\n\n![alpha-adjacency](/content/papers/assets/321602124751c1b7db909d3b16c78c82d91269a67b128b4133fd3dd39a8e45bb.jpg)\n\n\n\nThe gray region is the α-adjacency set; the black point is the classifier projected toward the farthest one. Here α is a relative distance-contraction factor, not an absolute distance threshold.\n\nThe paper describes this as a projected-gradient update. Separate its ideal optimal-set formulation from finite-step SGD in practice:\n\n- The experiment warms up for 20 epochs and then interpolates with α=0.995; this is the explicit implementation rule.\n- Nonempty adjacency sets for arbitrary optimal-set arrangements and arbitrary α, or global convergence of a deep model, do not follow automatically. Classifier alignment is examined empirically.\n\n---\n\nFinally, we combine these two loss functions to form the total loss of SA-FAS:\n\n$$\n\\mathcal{L}_{\\text{all}} = \\mathcal{L}_{\\text{align}} + \\lambda \\mathcal{L}_{\\text{sep}}\n$$\n\nInference averages source-domain classifiers, equivalently averaging their linear scores. The expression is a score, not a calibrated probability; binary decisions still require a threshold:\n\n$$\nf(x) = \\mathbb{E}_{e \\in E}[\\beta_e^T \\phi(x)]\n$$\n\nIn the four cross-dataset tests, the model trained this way performs well. The appendix's classifier cosine-similarity results also show the domain classifiers moving closer together.\n\n## Discussion\n\nThe most common cross-domain evaluation setting is used here:\nTraining on three datasets from four options (CASIA, Idiap Replay, MSU, Oulu) and leaving the one that wasn’t seen during training for testing. For example:\n\n- **OCI → M**: Train on Oulu, CASIA, Idiap, test on MSU\n- **OMI → C**: Train on Oulu, MSU, Idiap, test on CASIA\n- And so on, resulting in four possible directions.\n\nThis is essentially a FAS exam, testing who can avoid failure when tested on a set that was never seen during training.\n\n### Comparison with Other Methods\n\n\n\n![compare](/content/papers/assets/8f38467762de20a340874f12ef463fe0db67571e3ae4f51e18464955409269de.jpg)\n\n\n\nHere, the authors compare SA-FAS with other methods to see which performs best.\n\nIn Table 1, SA-FAS has the lowest listed HTER in all four directions. OCM→I improves from SSAN-R’s 8.88% to 6.58%, a 2.30-percentage-point or approximately 25.9% relative reduction. Its AUC is nevertheless lower than SSAN-R’s on OCI→M and OMI→C.\n\nThis is a historical comparison from the paper, useful for understanding strengths and protocol limits rather than a current leaderboard.\n\n\n> [!NOTE]\n> \n> The authors state that Table 1 follows the related work’s best-snapshot convention, reporting the checkpoint with the lowest test error. Selecting with test labels introduces optimistic selection bias and is not a model-selection procedure available in deployment.\n> \n> This setup is indeed \"model-friendly,\" but it also hides some risks:\n> \n> - Without labeled target-test data, that selection cannot be reproduced; a formal evaluation should specify its stopping and model-selection rule in advance.\n> - Some models will quickly overfit in the later stages of training, resulting in nice numbers but poor generalization.\n> \n> Table 2 in the main paper reports the mean and standard deviation over the final 10 epochs before stopping; Appendix B explains the motivation. Training stops when binary classification loss stays below $10^{-3}$ for 10 consecutive epochs or the maximum epoch count is reached, whichever comes first. The results show:\n> \n> > **Most methods see a significant drop, indicating that generalization is still a tough challenge.**\n> \n> SA-FAS leads the listed mean HTER and AUC and has the smallest standard deviation for both measures in all four settings, though not for TPR in every column. These deviations describe fluctuations across final epochs, not confidence intervals from independent training runs.\n\n\n### Evaluation Metric Analysis\n\n\n\n![correlation](/content/papers/assets/601844007f01d724d8a0f8318694fe9146be8f7c574cf47955356c22fce3eba2.jpg)\n\n\n\nThe authors define two custom metrics:\n\n- **$S_{sep}$**: $1-\\cos(\\mathbb{E}_{spoof}[z],\\mathbb{E}_{live}[z])$, the angular separation of the two test-domain class centers, not ordinary Euclidean distance.\n- **$S_{align}$**: Mean cosine similarity between source classifier normals and test-domain $\\mathbb{E}_{spoof}[z]-\\mathbb{E}_{live}[z]$. The equation points from live to spoof; the paper’s adjacent prose reverses this description, so we follow the formula.\n\nEach point represents a training snapshot, with the X-axis showing the metric and the Y-axis showing the AUC score.\n\nAcross the four settings, the chart reports correlation coefficients of **0.68 for $S_{align}$** and **0.46 for $S_{sep}$**. Both are positively associated with AUC, though to different degrees.\n\n- With PG-IRM → $S_{align}$ ↑ → AUC ↑\n- With SupCon → $S_{sep}$ ↑ → AUC ↑\n\nThese correlations and ablations support the geometric interpretation without proving causation. Both metrics use test-domain live/spoof labels, so they are retrospective diagnostics, not label-free model-selection criteria for deployment in an unknown domain.\n\n### Feature Distribution\n\n![feature](/content/papers/assets/496a2fbecf652d6ad05395d2f8d920abeb7f1f912065a4c3787a35d5722487c2.jpg)\n\nThe OMI → C visualization uses UMAP as a qualitative view of feature distributions. Lines in a nonlinear projection should not be treated as exact images of the original high-dimensional decision boundaries:\n\n- Each point is a live/spoof sample.\n- The color represents the domain, and the dashed line is the classifier boundary.\n\nObservations show:\n\n- The boundary roughly separates live/spoof on the unseen domain (CASIA) in this projection.\n- Domains with different resolutions exhibit different distributions, but the classification direction remains consistent.\n\nThis illustrates how retaining domain structure can coexist with classification. Original-space test metrics remain necessary to assess unseen-domain error.\n\n### Comparison with DANN and SSDG\n\n\n\n![dann-ssdg](/content/papers/assets/faacab5e1f1dcf6d661c3f75ae7330865a908f5b9d7326302bffff8028414d52.jpg)\n\n\n\nIn this visualization, DANN still shows a domain gap, especially between the unseen domain and the training domains.\n\nWith SSDG, the spoof transition directions are closer, but the training domains' live samples still show gaps. The authors use this example to motivate classifier-direction constraints, not to prove that SSDG cannot handle any domain gap.\n\n## Conclusion\n\nIn the past, we always tried to eliminate the influence of domains, like combating some kind of noise.\n\nBut SA-FAS offers a more pragmatic direction:\n\n> **Rather than pretending domains don’t exist, design a feature space that allows them to exist reasonably.**\n\nFrom generalization capability and stability to interpretability, SA-FAS provides strong and convincing answers.\n","imageSizes":{"/content/papers/assets/c5d5b32f66a70c73d21f58ebcfc0fdc186c0dac32b554fd61aa098f945fa6536.jpg":{"width":1518,"height":394},"/content/papers/assets/7b1b820773d92bf62cc06fa430c2fdebf3b91772870c8530182de68ca0df37fe.jpg":{"width":1956,"height":422},"/content/papers/assets/321602124751c1b7db909d3b16c78c82d91269a67b128b4133fd3dd39a8e45bb.jpg":{"width":836,"height":460},"/content/papers/assets/8f38467762de20a340874f12ef463fe0db67571e3ae4f51e18464955409269de.jpg":{"width":1224,"height":604},"/content/papers/assets/601844007f01d724d8a0f8318694fe9146be8f7c574cf47955356c22fce3eba2.jpg":{"width":908,"height":536},"/content/papers/assets/496a2fbecf652d6ad05395d2f8d920abeb7f1f912065a4c3787a35d5722487c2.jpg":{"width":1562,"height":440},"/content/papers/assets/faacab5e1f1dcf6d661c3f75ae7330865a908f5b9d7326302bffff8028414d52.jpg":{"width":892,"height":384}}}
