{"notes":[{"id":"face-antispoofing/la-softmoe","category":"face-antispoofing","legacyPath":"face-antispoofing/2408-la-softmoe","legacySlug":"2408-la-softmoe","legacyPaths":[],"title":"La-SoftMoE","subtitle":"Sparse Cracks","author":"Z. Yuan","paperDate":"2024-08-23","publishedOn":"2025-06-05","paperTitle":"La-SoftMoE CLIP for Unified Physical-Digital Face Attack Detection","paperUrl":"https://ieeexplore.ieee.org/document/10744523/","bibliography":{"title":"La-SoftMoE CLIP for Unified Physical-Digital Face Attack Detection","authors":["Hang Zou","Chenxi Du","Hui Zhang","Yuan Zhang","Ajian Liu","Jun Wan","Zhen Lei"],"url":"https://ieeexplore.ieee.org/document/10744523/","pdfUrl":"https://arxiv.org/pdf/2408.12793v1","codeUrl":null,"preprint":{"id":"2408.12793","submittedOn":"2024-08-23","url":"https://arxiv.org/abs/2408.12793"},"publication":{"venue":"IJCB","year":2024,"kind":"conference","url":"https://ieeexplore.ieee.org/document/10744523/"},"citation":"@misc{faceantispoofinglasoftmoe2024,\n  title = {{La-SoftMoE CLIP for Unified Physical-Digital Face Attack Detection}},\n  author = {Hang Zou and Chenxi Du and Hui Zhang and Yuan Zhang and Ajian Liu and Jun Wan and Zhen Lei},\n  year = {2024},\n  eprint = {2408.12793},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2408.12793}\n}\n","citationPath":"/content/papers/citations/face-antispoofing/la-softmoe.b7bb83a867c2.bib"},"thumbnail":{"src":"/content/papers/assets/fa15672037bb88bafa6c667327861cab99ddb388d3446d1d992f653f052f3d3c.jpg","width":1224,"height":572},"locale":"en","path":"/content/papers/en/face-antispoofing/la-softmoe.fb6c5fc25f99.md","headings":[{"id":"problem-definition","text":"Problem Definition","depth":2},{"id":"solution","text":"Solution","depth":2},{"id":"softmoe-module-design","text":"SoftMoE Module Design","depth":3},{"id":"la-softmoe","text":"La-SoftMoE","depth":3},{"id":"implementation-details","text":"Implementation Details","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"experimental-results-analysis-uniattackdata","text":"Experimental Results Analysis (UniAttackData)","depth":3},{"id":"mixed-dataset-test-jfsfdb","text":"Mixed-Dataset Test (JFSFDB)","depth":3},{"id":"prompt-robustness-test","text":"Prompt Robustness Test","depth":3},{"id":"ablation-study","text":"Ablation Study","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{"defining-the-problem":"problem-definition","solving-the-problem":"solution","softmoe-into-slots-and-back-to-tokens":"softmoe-module-design","la-softmoe-changing-the-return-path":"la-softmoe","what-was-tested-and-where":"implementation-details","discussing-the-experiments":"discussion","uniattackdata-lower-error-but-not-the-highest-auc":"experimental-results-analysis-uniattackdata","cross-dataset-generalization-test-jfsfdb":"mixed-dataset-test-jfsfdb","jfsfdb-a-separate-joint-training-experiment":"mixed-dataset-test-jfsfdb","prompts-eight-ways-to-ask-different-winners":"prompt-robustness-test","ablation-what-changed-and-what-did-not":"ablation-study"},"guide":null,"tags":["face-antispoofing","multimodality","face-forgery-detection","mixture-of-experts","china-telecom","cas"],"relatedReading":[{"id":"face-antispoofing/fas-challenge","relation":"comparison","topic":"Detecting physical and digital face attacks together"},{"id":"face-antispoofing/pd-fas","relation":"comparison","topic":"Detecting physical and digital face attacks together"},{"id":"face-antispoofing/shield","relation":"comparison","topic":"Detecting physical and digital face attacks together"}]},{"id":"face-antispoofing/fas-challenge","category":"face-antispoofing","legacyPath":"face-antispoofing/2404-fas-challenge","legacySlug":"2404-fas-challenge","legacyPaths":[],"title":"FAS-Challenge","subtitle":"Arsenal","author":"Z. Yuan","paperDate":"2024-04-09","publishedOn":"2025-06-02","paperTitle":"Unified Physical-Digital Attack Detection Challenge","paperUrl":"https://arxiv.org/abs/2404.06211","bibliography":{"title":"Unified Physical-Digital Attack Detection Challenge","authors":["Haocheng Yuan","Ajian Liu","Junze Zheng","Jun Wan","Jiankang Deng","Sergio Escalera","Hugo Jair Escalante","Isabelle Guyon","Zhen Lei"],"url":"https://arxiv.org/abs/2404.06211","pdfUrl":"https://openaccess.thecvf.com/content/CVPR2024W/FAS2024/papers/Yuan_Unified_Physical-Digital_Attack_Detection_Challenge_CVPRW_2024_paper.pdf","codeUrl":null,"preprint":{"id":"2404.06211","submittedOn":"2024-04-09","url":"https://arxiv.org/abs/2404.06211"},"publication":{"venue":"CVPR Workshops","year":2024,"kind":"conference","url":"https://openaccess.thecvf.com/content/CVPR2024W/FAS2024/html/Yuan_Unified_Physical-Digital_Attack_Detection_Challenge_CVPRW_2024_paper.html"},"citation":"@misc{faceantispoofingfaschallenge2024,\n  title = {{Unified Physical-Digital Attack Detection Challenge}},\n  author = {Haocheng Yuan and Ajian Liu and Junze Zheng and Jun Wan and Jiankang Deng and Sergio Escalera and Hugo Jair Escalante and Isabelle Guyon and Zhen Lei},\n  year = {2024},\n  eprint = {2404.06211},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2404.06211}\n}\n","citationPath":"/content/papers/citations/face-antispoofing/fas-challenge.eddf4ef3db76.bib"},"thumbnail":{"src":"/content/papers/assets/464c459e92910d60b294a2bf19148fa790db0c5b203d5359f65ef70b8b183a47.jpg","width":1224,"height":664},"locale":"en","path":"/content/papers/en/face-antispoofing/fas-challenge.ae1a89f7245d.md","headings":[{"id":"problem-definition","text":"Problem Definition","depth":2},{"id":"unified-dataset-uniattackdata","text":"Unified Dataset: UniAttackData","depth":2},{"id":"evaluation-protocols-and-generalization-design","text":"Evaluation Protocols and Generalization Design","depth":3},{"id":"competition-process-and-rules","text":"Competition Process and Rules","depth":3},{"id":"evaluation-metrics","text":"Evaluation Metrics","depth":3},{"id":"arsenal","text":"Arsenal","depth":2},{"id":"1-mtface","text":"1. MTFace","depth":3},{"id":"2-searecluse","text":"2. SeaRecluse","depth":3},{"id":"3-duileduile","text":"3. duileduile","depth":3},{"id":"4-bsp-idiap","text":"4. BSP-Idiap","depth":3},{"id":"5-vai-face","text":"5. VAI-Face","depth":3},{"id":"6-llw","text":"6. L&L&W","depth":3},{"id":"7-sarm","text":"7. SARM","depth":3},{"id":"8-m2-purdue","text":"8. M2-Purdue","depth":3},{"id":"9-cloud-recesses","text":"9. Cloud Recesses","depth":3},{"id":"10-image-lab","text":"10. Image Lab","depth":3},{"id":"11-bovifocr-ufpr","text":"11. BOVIFOCR-UFPR","depth":3},{"id":"12-inria-cenatav-tec","text":"12. Inria-CENATAV-Tec","depth":3},{"id":"13-vicognit","text":"13. Vicognit","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{"defining-the-problem":"problem-definition","solving-the-problem":"unified-dataset-uniattackdata","the-data-and-three-test-routes":"evaluation-protocols-and-generalization-design","how-to-read-the-scores":"evaluation-metrics","thirteen-teams-thirteen-arsenals":"arsenal","discussing-the-results":"discussion"},"guide":null,"tags":["face-antispoofing","face-forgery-detection","model-evaluation","datasets","cas"],"relatedReading":[{"id":"face-antispoofing/pd-fas","relation":"comparison","topic":"Detecting physical and digital face attacks together"},{"id":"face-antispoofing/la-softmoe","relation":"comparison","topic":"Detecting physical and digital face attacks together"},{"id":"face-antispoofing/shield","relation":"comparison","topic":"Detecting physical and digital face attacks together"}]},{"id":"face-antispoofing/pd-fas","category":"face-antispoofing","legacyPath":"face-antispoofing/2404-pd-fas","legacySlug":"2404-pd-fas","legacyPaths":[],"title":"PD-FAS","subtitle":"The Illusionary Arena","author":"Z. Yuan","paperDate":"2024-04-12","publishedOn":"2025-05-31","paperTitle":"Joint Physical-Digital Facial Attack Detection Via Simulating Spoofing Clues","paperUrl":"https://openaccess.thecvf.com/content/CVPR2024W/FAS2024/html/He_Joint_Physical-Digital_Facial_Attack_Detection_Via_Simulating_Spoofing_Clues_CVPRW_2024_paper.html","bibliography":{"title":"Joint Physical-Digital Facial Attack Detection Via Simulating Spoofing Clues","authors":["Xianhua He","Dashuang Liang","Song Yang","Zhanlong Hao","Hui Ma","Binjie Mao","Xi Li","Yao Wang","Pengfei Yan","Ajian Liu"],"url":"https://openaccess.thecvf.com/content/CVPR2024W/FAS2024/html/He_Joint_Physical-Digital_Facial_Attack_Detection_Via_Simulating_Spoofing_Clues_CVPRW_2024_paper.html","pdfUrl":"https://openaccess.thecvf.com/content/CVPR2024W/FAS2024/papers/He_Joint_Physical-Digital_Facial_Attack_Detection_Via_Simulating_Spoofing_Clues_CVPRW_2024_paper.pdf","codeUrl":"https://github.com/Xianhua-He/cvpr2024-face-anti-spoofing-challenge","preprint":{"id":"2404.08450","submittedOn":"2024-04-12","url":"https://arxiv.org/abs/2404.08450"},"publication":{"venue":"CVPR Workshops","year":2024,"kind":"workshop","url":"https://openaccess.thecvf.com/content/CVPR2024W/FAS2024/html/He_Joint_Physical-Digital_Facial_Attack_Detection_Via_Simulating_Spoofing_Clues_CVPRW_2024_paper.html"},"citation":"@misc{faceantispoofingpdfas2024,\n  title = {{Joint Physical-Digital Facial Attack Detection Via Simulating Spoofing Clues}},\n  author = {Xianhua He and Dashuang Liang and Song Yang and Zhanlong Hao and Hui Ma and Binjie Mao and Xi Li and Yao Wang and Pengfei Yan and Ajian Liu},\n  year = {2024},\n  eprint = {2404.08450},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2404.08450}\n}\n","citationPath":"/content/papers/citations/face-antispoofing/pd-fas.5e99845a7b35.bib"},"thumbnail":{"src":"/content/papers/assets/8dc381495a96275b801a46e04453cd17b3f9e57bd88fb93f6c757d74d930300f.jpg","width":1224,"height":516},"locale":"en","path":"/content/papers/en/face-antispoofing/pd-fas.298e60a369b3.md","headings":[{"id":"problem-definition","text":"Problem Definition","depth":2},{"id":"solution","text":"Solution","depth":2},{"id":"simulated-physical-spoofing-clues","text":"Simulated Physical Spoofing Clues","depth":3},{"id":"simulated-digital-spoofing-clues","text":"Simulated Digital Spoofing Clues","depth":3},{"id":"dataset-setup-uniattackdata","text":"Dataset Setup: UniAttackData","depth":3},{"id":"evaluation-metrics-apcer--bpcer--acer","text":"Evaluation Metrics: APCER / BPCER / ACER","depth":3},{"id":"experimental-setup-and-training-details","text":"Experimental Setup and Training Details","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"comparison-with-sota-methods","text":"Comparison with SOTA Methods","depth":3},{"id":"performance-across-three-protocols","text":"Performance Across Three Protocols","depth":3},{"id":"module-contribution-analysis","text":"Module Contribution Analysis","depth":3},{"id":"backbone-network-tests","text":"Backbone Network Tests","depth":3},{"id":"visualization-analysis","text":"Visualization Analysis","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{"defining-the-problem":"problem-definition","solving-the-problem":"solution","dataset-uniattackdata":"dataset-setup-uniattackdata","metrics-and-training-conditions":"evaluation-metrics-apcer--bpcer--acer","experimental-results-and-discussion":"discussion","challenge-result":"comparison-with-sota-methods","the-three-protocols":"performance-across-three-protocols","what-does-each-augmentation-add":"module-contribution-analysis","testing-other-backbones":"backbone-network-tests","visualizing-attention":"visualization-analysis"},"guide":null,"tags":["face-antispoofing","face-forgery-detection","training-data","meituan","cas"],"relatedReading":[{"id":"face-antispoofing/fas-challenge","relation":"comparison","topic":"Detecting physical and digital face attacks together"},{"id":"face-antispoofing/la-softmoe","relation":"comparison","topic":"Detecting physical and digital face attacks together"},{"id":"face-antispoofing/shield","relation":"comparison","topic":"Detecting physical and digital face attacks together"}]},{"id":"face-antispoofing/shield","category":"face-antispoofing","legacyPath":"face-antispoofing/2402-shield","legacySlug":"2402-shield","legacyPaths":[],"title":"SHIELD","subtitle":"Tell me, why?","author":"Z. Yuan","paperDate":"2024-02-06","publishedOn":"2025-04-14","paperTitle":"SHIELD: An Evaluation Benchmark for Face Spoofing and Forgery Detection with Multimodal Large Language Models","paperUrl":"https://arxiv.org/abs/2402.04178","bibliography":{"title":"SHIELD: An Evaluation Benchmark for Face Spoofing and Forgery Detection with Multimodal Large Language Models","authors":["Yichen Shi","Yuhao Gao","Yingxin Lai","Hongyang Wang","Jun Feng","Lei He","Jun Wan","Changsheng Chen","Zitong Yu","Xiaochun Cao"],"url":"https://arxiv.org/abs/2402.04178","pdfUrl":"https://arxiv.org/pdf/2402.04178","codeUrl":"https://github.com/laiyingxin2/SHIELD","preprint":{"id":"2402.04178","submittedOn":"2024-02-06","url":"https://arxiv.org/abs/2402.04178"},"publication":{"venue":"Visual Intelligence","year":2025,"kind":"journal","url":"https://link.springer.com/article/10.1007/s44267-025-00079-w"},"citation":"@misc{faceantispoofingshield2024,\n  title = {{SHIELD: An Evaluation Benchmark for Face Spoofing and Forgery Detection with Multimodal Large Language Models}},\n  author = {Yichen Shi and Yuhao Gao and Yingxin Lai and Hongyang Wang and Jun Feng and Lei He and Jun Wan and Changsheng Chen and Zitong Yu and Xiaochun Cao},\n  year = {2024},\n  eprint = {2402.04178},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2402.04178}\n}\n","citationPath":"/content/papers/citations/face-antispoofing/shield.ebbdc10267ba.bib"},"thumbnail":{"src":"/content/papers/assets/5d3709702bad757e66d898b25d1a408af7c67dc9e6aa265f6bd2f7578cd62395.jpg","width":1224,"height":884},"locale":"en","path":"/content/papers/en/face-antispoofing/shield.02a3faf0a793.md","headings":[{"id":"defining-the-problem","text":"Defining the Problem","depth":2},{"id":"solving-the-problem","text":"Solving the Problem","depth":2},{"id":"discussion","text":"Discussion","depth":2},{"id":"fas-test-results","text":"FAS Test Results","depth":3},{"id":"ffd-test-results","text":"FFD Test Results","depth":3},{"id":"unified-task-test-results","text":"Unified Task Test Results","depth":2},{"id":"ma-cot-experimental-results","text":"MA-COT Experimental Results","depth":2},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{"problem-definition":"defining-the-problem","solution":"solving-the-problem","experimental-results-and-discussion":"discussion","fas-both-short-questions-and-choices-can-be-steered-by-wording":"fas-test-results","ffd-digital-forgery-is-more-than-one-fake-face":"ffd-test-results","unified-task-physical-and-digital-attacks-on-the-same-exam":"unified-task-test-results","ma-cot-ask-for-the-reasons-piece-by-piece":"ma-cot-experimental-results"},"guide":null,"tags":["face-antispoofing","multimodality","face-forgery-detection","datasets","interpretability","sjtu","sysu"],"relatedReading":[{"id":"face-antispoofing/fas-challenge","relation":"comparison","topic":"Detecting physical and digital face attacks together"},{"id":"face-antispoofing/pd-fas","relation":"comparison","topic":"Detecting physical and digital face attacks together"},{"id":"face-antispoofing/la-softmoe","relation":"comparison","topic":"Detecting physical and digital face attacks together"}]}],"text":"Physical attacks (PAs) range from color photos spit out by printers to deep eye sockets beneath lifelike masks.\n\nDigital attacks (DAs) range from phantoms generated by algorithms to direct manipulation of the image record itself.\n\nThe boundary of facial recognition systems has never been so blurred.\n\n## Problem Definition\n\nIn past research, these were treated as separate tasks:\n\n- **PAD (Physical Attack Detection):**\n\n  Focused on multimodal sensing and physiological feature extraction, emphasizing measurable aspects of the physical world;\n\n- **DAD (Digital Attack Detection):**\n\n  Concentrated on detailed feature-level analysis, frequency domain anomalies, and visual deception patterns.\n\nAlthough each has made progress, this separation has led to repeated model deployments and difficulty in cross-task transfer.\n\nIn practical scenarios, no system encounters only one attack type, making **Unified Attack Detection (UAD)** an urgent and natural research direction.\n\nUnifying the inputs still leaves the problem of feature fusion.\n\nLooking at the feature distributions shown by UniAttackData, the two attack types distribute very differently in embedding space, especially under ID-consistency settings. Even attack samples from the same face demonstrate isolated clustering tendencies.\n\nThis \"**sparse and split feature space**\" is a blind spot for existing methods.\n\nWhile some researchers have tried multi-branch designs (e.g., CA-MoEiT), multi-task learning, or introducing physiological information to handle the two attack types, these methods often introduce new challenges:\n\n- Increased architectural complexity, leading to higher computational resource consumption and deployment latency;\n- Lack of ID-consistent datasets causing models to learn background and non-semantic cues;\n- In large-scale general models (such as CLIP), feature sparsity among dimensions further weakens the stability of classification logic.\n\nIn such contexts, even vision-language models like CLIP struggle to recognize a unified syntax for \"fake faces\" within a sparse feature space.\n\nPeople start to realize: **this might not be merely a lack of data, but rather that semantic feature distributions are overly fragmented**. The real problem may not lie in model capacity but in the absence of clear methods for the model to utilize its own capabilities.\n\nPerhaps it is time for the model to learn self-scheduling and self-collaboration.\n\nThis is exactly where the design logic of Mixture-of-Experts (MoE) originates.\n\n\n> [!TIP]\n> \n> For readers unfamiliar with the MoE concept, you may refer to another paper we previously studied:\n> \n> - [**[21.01] Switch Transformer: Let the Experts Speak**](/blog/papers/transformers/switch-transformer)\n\n\n## Solution\n\nTo address the above issues, the authors propose an architecture that combines the Mixture-of-Experts (MoE) design philosophy with a linear attention mechanism, named **La-SoftMoE CLIP**.\n\nThis method modifies the original CLIP architecture, specifically enhancing its classification capability under sparse semantic distributions.\n\n### SoftMoE Module Design\n\n\n\n![model_arch](/content/papers/assets/fa15672037bb88bafa6c667327861cab99ddb388d3446d1d992f653f052f3d3c.jpg)\n\n\n\nTo strengthen CLIP’s recognition ability in sparse semantic space, the authors introduce the **Soft Mixture-of-Experts (SoftMoE)** module, embedded within the residual blocks of each ViT layer as shown above.\n\nCompared to traditional MoE architectures, SoftMoE has the following advantages:\n\n- **Soft Dispatch:** Uses softmax weights to map all input tokens to slots, reducing the token-dropping risk of top-$k$ hard assignments; this paper does not separately measure expert load balance.\n- **Differentiable Design:** The entire operation is fully differentiable, enabling stable joint training with the backbone network.\n- **Scalability potential:** No sorting or top-$k$ expert selection is required. The authors see room to scale the number of experts, but do not test thousands of them here.\n\nThe specific computational process is as follows:\n\n1. **Dispatch Weights**\n\n   In Soft-MoE, the traditional top-$k$ dispatch strategy is abandoned and replaced by:\n\n   - **Soft dispatch mechanism**\n\n   The core idea is to introduce a set of intermediate representations called **slots**, which serve to aggregate the semantic weighted average of input tokens. Each slot does not correspond to a single token but is generated as a weighted sum of tokens, effectively representing a **semantic subspace aggregation vector**.\n\n   Each expert handles several slots, allowing the model to perform differentiated expert computations based on data characteristics.\n\n   The dispatch process is as follows: Given the input token matrix $X$, a learnable parameter set $\\Phi$ projects $X$ into dispatch logits, and a column-wise softmax is applied over each slot ($m = e \\cdot s$ slots):\n\n   $$\n   D_{ij}= \\frac{\\exp\\bigl[(X\\Phi)_{ij}\\bigr]}\n           {\\sum_{i'=1}^{n}\\exp\\bigl[(X\\Phi)_{i'j}\\bigr]}\n   ,\\qquad\n   \\tilde X = D^{\\!\\top}X\n   $$\n\n   - $D \\in \\mathbb{R}^{n \\times m}$ is the dispatch weight matrix, representing the contribution of token $i$ to slot $j$.\n   - $\\tilde X$ is the input representation matrix for all slots, where the $j$-th row represents the weighted semantic vector aggregated by slot $j$.\n\n   This design integrates information from all tokens into each slot, weighted by different attention intensities. The model thus transforms discrete token-level features into higher-level, shareable slot-level representations.\n\n   This soft dispatch reduces the token-dropping risk of traditional hard routing, laying a differentiable feature foundation for subsequent expert processing and combination weights.\n\n---\n\n2. **Expert Processing and Combine Weights**\n\n   $\\tilde X$ is grouped by slots and sent into $e$ Experts (each expert processes $s$ slots) to produce **slot outputs** $\\tilde Y$.\n\n   Then, **Combine Weights** $\\mathbf{C}$ are computed. This time a row-wise softmax is applied **per token** to decide “how to gather information back from each slot”:\n\n   $$\n   C_{ij}= \\frac{\\exp\\bigl[(X\\Phi)_{ij}\\bigr]}\n               {\\displaystyle \\sum_{j'=1}^{e\\cdot s}\\exp\\bigl[(X\\Phi)_{ij'}\\bigr]}\n   ,\\qquad\n   Y = C\\,\\tilde Y\\;\n   $$\n\n   - $Y$ is the output token list of Soft-MoE. In this paper, the module sits after ViT attention and in parallel with the MLP.\n\n### La-SoftMoE\n\nAlthough Soft-MoE features differentiable dispatch and recombination mechanisms, its combination phase still has a potential limitation:\n\nIn the original design, each output token’s weighting over all slots comes from a row-wise softmax of the same logits used for dispatch. Different slots still receive different weights. The authors argue that this fixed form of weighting may not account sufficiently for differences among expert outputs.\n\nTo solve this, the authors propose an improved version: **La-SoftMoE**, implementing two key modifications:\n\n\n\n![la-softmoe](/content/papers/assets/14fd848acfc73869bc529250ba07399ff710aa6d9898b88833903267bfef7e31.jpg)\n\n\n\n1. **Replace row-wise softmax with a Linear Attention mechanism**\n\n   The authors instead use a feature map $\\phi(\\cdot)$ to compute attention so that the combine weights can take slot representations into account. This kind of linear attention aims to reduce the cost of attention as sequence length grows; the paper does not report deployment measurements across sequence lengths.\n\n2. **Add Instance Normalization in weight calculation**\n\n   La-SoftMoE applies Instance Normalization after the Linear Attention output and before the combine weights are used. The paper does not ablate this step alone, so the experiments cannot isolate its contribution to stability or generalization.\n\n### Implementation Details\n\n- **Embedding position:** La-SoftMoE modules are embedded in the 12 residual blocks of the ViT, arranged in parallel with the original Feed-Forward MLP submodules.\n- **Expert configuration:** Each layer has $e=4$ experts, each handling $s=49$ slots, totaling $m=196$ slots; larger configurations require separate memory and latency measurements.\n- **Overhead evaluation:** The paper compares detection metrics, but does not report inference latency relative to the original ViT or an F1-score gain.\n- **Implementation notes:** The pseudocode uses `einsum` for the token/slot matrix operations and applies Instance Normalization after Linear Attention.\n\n---\n\nThrough the above architectural adjustments and module integration, La-SoftMoE CLIP lets different experts participate in modeling PA and DA features. The paper does not quantify the additional parameter count or total inference cost.\n\nOn the two tested benchmarks, the method improves ACER over the original CLIP. Generalization to an unseen target domain would require a separate leave-out-domain protocol.\n\n## Discussion\n\nThe experiments are primarily based on **UniAttackData**, the first benchmark for Unified Attack Detection with ID consistency, which includes:\n\n- 1800 subjects covering 2 types of physical attacks (PAs) and 12 types of digital attacks (DAs)\n- The first evaluation protocol uses complete live/fake paired samples for training and testing\n\nSupplementary experiments use **JFSFDB**, which integrates 9 FAS sub-datasets, including traditional PAD and deepfake DAD examples.\n\nThe main protocol employed is Joint Training across the constituent datasets; it is not a test on a held-out target dataset.\n\nThe model backbone is ViT-B/16 with embedded La-SoftMoE modules (4 experts per layer, 49 slots), trained on an A100 GPU using Adam optimizer with a learning rate of $10^{-6}$.\n\n### Experimental Results Analysis (UniAttackData)\n\n\n\n![UniAttackData](/content/papers/assets/cb1bdcbe4989961b9304e3630b0ad407ef7616dbae7ff5430844f004cf58860d.jpg)\n\n\n\nThe table above compares La-SoftMoE CLIP with existing methods, showing state-of-the-art performance on key metrics:\n\n- **ACER: 0.32%** (previous best 0.52%)\n- **Accuracy: 99.54%** (previous best 99.45%)\n- AUC and EER slightly lower than the top model but still very high (99.72% / 0.56%)\n\nThis indicates a lower detection error rate on this dataset. Whether the feature space itself is more compact calls for the visualization below.\n\n### Mixed-Dataset Test (JFSFDB)\n\n\n\n![JFSFDB](/content/papers/assets/329093e7bf0cef3e2cf0cc31a689d1be47c122210d18b7fe60e38b5a625e9429.jpg)\n\n\n\nTo examine performance on another benchmark mixing physical and digital attacks, the authors also test JFSFDB under its joint-training protocol. This does not hold out a dataset as an unseen target domain. Its numbers cannot be compared directly with UniAttackData under identical conditions; La-SoftMoE CLIP achieves:\n\n- **ACER: 4.21%**\n- **Accuracy: 95.85%**\n- **AUC: 99.11%**\n- **EER: 4.19%**\n\nThe authors also visualized feature distributions of both datasets with t-SNE (see below):\n\n\n\n![vis](/content/papers/assets/48d90b2f1f9186b1609da671ca06b21bc06fff1b82748c5b7a684348493931bb.jpg)\n\n\n\nThe UniAttackData points appear more concentrated and connected along curves, whereas the JFSFDB points are more dispersed. The authors suggest ID consistency may be one reason.\n\n### Prompt Robustness Test\n\nGiven that CLIP-like models are sensitive to language prompts, the authors designed 8 semantically equivalent but structurally different prompts (T-1 to T-8, see table below) to evaluate La-SoftMoE CLIP’s stability and semantic adaptability.\n\n\n\n![prompt robustness](/content/papers/assets/bf435a74bd8e4f8f04d35f70514b8a018f0e3abedbbfe90418ca69c3fa2eb8fa.jpg)\n\n\n\nResults show:\n\n- **T-8 (\"This is an image of a \\<fake/live> face\")** has the lowest ACER and ties T-3 for the highest Accuracy\n- **T-3 (\"A photo of a \\<fake/live> face\")** yields highest AUC and lowest EER\n\nThe figure below compares performance differences across prompts:\n\n\n\n![prompt compare](/content/papers/assets/c8df7a60a3388959079a509f0944280fe70fd02ca12cf5f9f793db6e81270360.jpg)\n\n\n\nAcross the eight prompts, ACER ranges from 0.32% to 0.63%, a visible difference. This test shows the model works with these different wordings.\n\n### Ablation Study\n\n\n\n![ablation](/content/papers/assets/9e77c0286f3cb5bde200a599256343cd3a55041c847422a341905bb8200d7e25.jpg)\n\n\n\nTable 6 sequentially compares:\n\n- **Vanilla CLIP**\n- **CLIP + SoftMoE**\n- **CLIP + La-SoftMoE**\n\nIn this test, SoftMoE and then La-SoftMoE successively lower ACER and EER and raise Accuracy. Both have lower AUC than vanilla CLIP’s 99.76%, however. The table changes both Linear Attention and Instance Normalization, so the gain cannot be attributed to the former alone.\n\nFinally, feature distributions of four models are shown:\n\n\n\n![feature map](/content/papers/assets/71423a444966aa06c5edaf519fd962996d7678f6e6ef763a40a02f823c1efc89.jpg)\n\n\n\n- ResNet-50 (top left)\n- CLIP (top right)\n- CLIP + SoftMoE (bottom left)\n- CLIP + La-SoftMoE (bottom right)\n\nIn this t-SNE view, some CLIP live and fake points mingle. With SoftMoE, the selected samples appear more separated; in the La-SoftMoE view, the two groups also appear broadly apart.\n\nTogether, the reported results show better detection metrics on two mixed-attack benchmarks. The feature structure and computational cost still need more direct measurement.\n\n## Conclusion\n\nIn this paper, the authors introduce Soft Mixture-of-Experts (SoftMoE) into the CLIP image encoder and further refine its weighting strategy using linear attention and normalization mechanisms. This lets the model handle heterogeneous features of physical and digital attacks; the computational overhead is not quantified here.\n\nThe key insight is: **when semantic distributions are intrinsically fragmented, rather than forcibly unifying them, it is better to let the model learn to allocate experts and share responsibilities, reorganizing the feature space structurally.**\n\nFuture directions include exploring semantic-driven routing mechanisms, prompt-conditioned generation, and token-slot alignment methods with cross-modal generalization capabilities to further expand structured designs’ potential in multimodal recognition tasks.\n","imageSizes":{"/content/papers/assets/fa15672037bb88bafa6c667327861cab99ddb388d3446d1d992f653f052f3d3c.jpg":{"width":1224,"height":572},"/content/papers/assets/14fd848acfc73869bc529250ba07399ff710aa6d9898b88833903267bfef7e31.jpg":{"width":1224,"height":492},"/content/papers/assets/cb1bdcbe4989961b9304e3630b0ad407ef7616dbae7ff5430844f004cf58860d.jpg":{"width":1224,"height":372},"/content/papers/assets/329093e7bf0cef3e2cf0cc31a689d1be47c122210d18b7fe60e38b5a625e9429.jpg":{"width":1224,"height":372},"/content/papers/assets/48d90b2f1f9186b1609da671ca06b21bc06fff1b82748c5b7a684348493931bb.jpg":{"width":1224,"height":404},"/content/papers/assets/bf435a74bd8e4f8f04d35f70514b8a018f0e3abedbbfe90418ca69c3fa2eb8fa.jpg":{"width":1224,"height":600},"/content/papers/assets/c8df7a60a3388959079a509f0944280fe70fd02ca12cf5f9f793db6e81270360.jpg":{"width":1224,"height":464},"/content/papers/assets/9e77c0286f3cb5bde200a599256343cd3a55041c847422a341905bb8200d7e25.jpg":{"width":1226,"height":208},"/content/papers/assets/71423a444966aa06c5edaf519fd962996d7678f6e6ef763a40a02f823c1efc89.jpg":{"width":1224,"height":808}}}
