{"notes":[{"id":"face-antispoofing/ma-vit","category":"face-antispoofing","legacyPath":"face-antispoofing/2304-ma-vit","legacySlug":"2304-ma-vit","legacyPaths":[],"title":"MA-ViT","subtitle":"凡所有相，皆是虛妄","author":"Z. Yuan","paperDate":"2023-04-15","publishedOn":"2025-04-22","paperTitle":"MA-ViT: Modality-Agnostic Vision Transformers for Face Anti-Spoofing","paperUrl":"https://arxiv.org/abs/2304.07549","bibliography":{"title":"MA-ViT: Modality-Agnostic Vision Transformers for Face Anti-Spoofing","authors":["Ajian Liu","Yanyan Liang"],"url":"https://arxiv.org/abs/2304.07549","pdfUrl":"https://arxiv.org/pdf/2304.07549","codeUrl":null,"preprint":{"id":"2304.07549","submittedOn":"2023-04-15","url":"https://arxiv.org/abs/2304.07549"},"publication":{"venue":"IJCAI","year":2022,"kind":"conference","url":"https://doi.org/10.24963/ijcai.2022/165"},"citation":"@misc{faceantispoofingmavit2023,\n  title = {{MA-ViT: Modality-Agnostic Vision Transformers for Face Anti-Spoofing}},\n  author = {Ajian Liu and Yanyan Liang},\n  year = {2023},\n  eprint = {2304.07549},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2304.07549}\n}\n","citationPath":"/content/papers/citations/face-antispoofing/ma-vit.711c8467c8cf.bib"},"thumbnail":{"src":"/content/papers/assets/fa2c4fe1cdf1e8f7327fee30b6b425b11a82d76e65a57747acd14f16a9d3bead.jpg","width":1758,"height":460},"locale":"zh-hant","path":"/content/papers/zh-hant/face-antispoofing/ma-vit.239dbee3250f.md","headings":[{"id":"定義問題","text":"定義問題","depth":2},{"id":"解決問題","text":"解決問題","depth":2},{"id":"模型架構","text":"模型架構","depth":3},{"id":"損失設計","text":"損失設計","depth":3},{"id":"討論","text":"討論","depth":2},{"id":"固定模態場景","text":"固定模態場景","depth":3},{"id":"跨資料集泛化能力","text":"跨資料集泛化能力","depth":3},{"id":"彈性模態場景","text":"彈性模態場景","depth":3},{"id":"結論","text":"結論","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"face-antispoofing/wmca","relation":"comparison","topic":"人臉防偽的多模態融合"},{"id":"face-antispoofing/cefa","relation":"comparison","topic":"人臉防偽的多模態融合"},{"id":"face-antispoofing/m2a2e","relation":"comparison","topic":"人臉防偽的多模態融合"}]},{"id":"face-antispoofing/wmca","category":"face-antispoofing","legacyPath":"face-antispoofing/1909-wmca","legacySlug":"1909-wmca","legacyPaths":[],"title":"WMCA","subtitle":"看不見的臉","author":"Z. Yuan","paperDate":"2019-09-19","publishedOn":"2025-04-06","paperTitle":"Biometric Face Presentation Attack Detection with Multi-Channel Convolutional Neural Network","paperUrl":"https://arxiv.org/abs/1909.08848","bibliography":{"title":"Biometric Face Presentation Attack Detection with Multi-Channel Convolutional Neural Network","authors":["Anjith George","Zohreh Mostaani","David Geissenbuhler","Olegs Nikisins","Andre Anjos","Sebastien Marcel"],"url":"https://arxiv.org/abs/1909.08848","pdfUrl":"https://arxiv.org/pdf/1909.08848","codeUrl":null,"preprint":{"id":"1909.08848","submittedOn":"2019-09-19","url":"https://arxiv.org/abs/1909.08848"},"publication":{"venue":"IEEE Transactions on Information Forensics and Security","shortVenue":"IEEE TIFS","year":2020,"kind":"journal","url":"https://doi.org/10.1109/tifs.2019.2916652"},"citation":"@misc{faceantispoofingwmca2019,\n  title = {{Biometric Face Presentation Attack Detection with Multi-Channel Convolutional Neural Network}},\n  author = {Anjith George and Zohreh Mostaani and David Geissenbuhler and Olegs Nikisins and Andre Anjos and Sebastien Marcel},\n  year = {2019},\n  eprint = {1909.08848},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/1909.08848}\n}\n","citationPath":"/content/papers/citations/face-antispoofing/wmca.2be5e48c6045.bib"},"thumbnail":{"src":"/content/papers/assets/6a22d2732a0bf90de9c8e061ea41bd85cca8ae536dc0d4469ffc4195721595ac.jpg","width":1546,"height":520},"locale":"zh-hant","path":"/content/papers/zh-hant/face-antispoofing/wmca.c126ab560577.md","headings":[{"id":"定義問題","text":"定義問題","depth":2},{"id":"解決問題","text":"解決問題","depth":2},{"id":"模型架構","text":"模型架構","depth":3},{"id":"wmca-資料集","text":"WMCA 資料集","depth":3},{"id":"七種攻擊類型","text":"七種攻擊類型","depth":3},{"id":"評估協定與實驗設定","text":"評估協定與實驗設定","depth":3},{"id":"評估指標","text":"評估指標","depth":3},{"id":"討論","text":"討論","depth":2},{"id":"baseline-系統在-grandtest-表現","text":"Baseline 系統在 grandtest 表現","depth":3},{"id":"mc-cnn-vs-最佳-baselinegrandtest","text":"MC-CNN vs 最佳 baseline（grandtest）","depth":3},{"id":"unseen-攻擊場景下的辨識表現","text":"Unseen 攻擊場景下的辨識表現","depth":3},{"id":"結論","text":"結論","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"face-antispoofing/cefa","relation":"comparison","topic":"人臉防偽的多模態融合"},{"id":"face-antispoofing/m2a2e","relation":"comparison","topic":"人臉防偽的多模態融合"},{"id":"face-antispoofing/ma-vit","relation":"comparison","topic":"人臉防偽的多模態融合"}]},{"id":"face-antispoofing/cefa","category":"face-antispoofing","legacyPath":"face-antispoofing/2003-cefa","legacySlug":"2003-cefa","legacyPaths":[],"title":"CeFA","subtitle":"模型的歧視","author":"Z. Yuan","paperDate":"2020-03-11","publishedOn":"2025-04-10","paperTitle":"CASIA-SURF CeFA: A Benchmark for Multi-modal Cross-ethnicity Face Anti-spoofing","paperUrl":"https://arxiv.org/abs/2003.05136","bibliography":{"title":"CASIA-SURF CeFA: A Benchmark for Multi-modal Cross-ethnicity Face Anti-spoofing","authors":["Ajian Li","Zichang Tan","Xuan Li","Jun Wan","Sergio Escalera","Guodong Guo","Stan Z. Li"],"url":"https://arxiv.org/abs/2003.05136","pdfUrl":"https://arxiv.org/pdf/2003.05136","codeUrl":null,"preprint":{"id":"2003.05136","submittedOn":"2020-03-11","url":"https://arxiv.org/abs/2003.05136"},"publication":{"venue":"WACV","year":2021,"kind":"conference","url":"https://doi.org/10.1109/wacv48630.2021.00122"},"citation":"@misc{faceantispoofingcefa2020,\n  title = {{CASIA-SURF CeFA: A Benchmark for Multi-modal Cross-ethnicity Face Anti-spoofing}},\n  author = {Ajian Li and Zichang Tan and Xuan Li and Jun Wan and Sergio Escalera and Guodong Guo and Stan Z. Li},\n  year = {2020},\n  eprint = {2003.05136},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2003.05136}\n}\n","citationPath":"/content/papers/citations/face-antispoofing/cefa.c9752b9da1c4.bib"},"thumbnail":{"src":"/content/papers/assets/eca0e1257dd94e04e17927066ccfe614257c81c922291a1caf4b16af71b00674.jpg","width":1610,"height":518},"locale":"zh-hant","path":"/content/papers/zh-hant/face-antispoofing/cefa.b44c80f4b9ab.md","headings":[{"id":"定義問題","text":"定義問題","depth":2},{"id":"解決問題","text":"解決問題","depth":2},{"id":"cefa-資料集","text":"CeFA 資料集","depth":3},{"id":"評估協定","text":"評估協定","depth":2},{"id":"模型架構","text":"模型架構","depth":2},{"id":"sd-net","text":"SD-Net","depth":3},{"id":"psmm-net","text":"PSMM-Net","depth":3},{"id":"討論","text":"討論","depth":2},{"id":"族群多樣性下的模型偏差分析","text":"族群多樣性下的模型偏差分析","depth":3},{"id":"基線模型評估結果","text":"基線模型評估結果","depth":3},{"id":"結論","text":"結論","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"face-antispoofing/wmca","relation":"comparison","topic":"人臉防偽的多模態融合"},{"id":"face-antispoofing/m2a2e","relation":"comparison","topic":"人臉防偽的多模態融合"},{"id":"face-antispoofing/ma-vit","relation":"comparison","topic":"人臉防偽的多模態融合"}]},{"id":"face-antispoofing/m2a2e","category":"face-antispoofing","legacyPath":"face-antispoofing/2302-m2a2e","legacySlug":"2302-m2a2e","legacyPaths":[],"title":"M²A²E","subtitle":"舉一反三","author":"Z. Yuan","paperDate":"2023-02-11","publishedOn":"2025-04-21","paperTitle":"Rethinking Vision Transformer and Masked Autoencoder in Multimodal Face Anti-Spoofing","paperUrl":"https://arxiv.org/abs/2302.05744","bibliography":{"title":"Rethinking Vision Transformer and Masked Autoencoder in Multimodal Face Anti-Spoofing","authors":["Zitong Yu","Rizhao Cai","Yawen Cui","Xin Liu","Yongjian Hu","Alex Kot"],"url":"https://arxiv.org/abs/2302.05744","pdfUrl":"https://arxiv.org/pdf/2302.05744","codeUrl":null,"preprint":{"id":"2302.05744","submittedOn":"2023-02-11","url":"https://arxiv.org/abs/2302.05744"},"publication":{"venue":"International Journal of Computer Vision","shortVenue":"IJCV","year":2024,"kind":"journal","url":"https://doi.org/10.1007/s11263-024-02055-1"},"citation":"@misc{faceantispoofingm2a2e2023,\n  title = {{Rethinking Vision Transformer and Masked Autoencoder in Multimodal Face Anti-Spoofing}},\n  author = {Zitong Yu and Rizhao Cai and Yawen Cui and Xin Liu and Yongjian Hu and Alex Kot},\n  year = {2023},\n  eprint = {2302.05744},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2302.05744}\n}\n","citationPath":"/content/papers/citations/face-antispoofing/m2a2e.115f4e5c32cb.bib"},"thumbnail":{"src":"/content/papers/assets/9619d6d3a5bb29167c9c71454936585be4ea12d8a015d05bb251f8c48bbb1c80.jpg","width":1356,"height":618},"locale":"zh-hant","path":"/content/papers/zh-hant/face-antispoofing/m2a2e.0f7b27efca1a.md","headings":[{"id":"定義問題","text":"定義問題","depth":2},{"id":"解決問題","text":"解決問題","depth":2},{"id":"輸入資料","text":"輸入資料","depth":3},{"id":"模型架構","text":"模型架構","depth":3},{"id":"預訓練方法","text":"預訓練方法","depth":3},{"id":"討論","text":"討論","depth":2},{"id":"實驗結果","text":"實驗結果","depth":3},{"id":"local-descriptors-是否有用","text":"Local Descriptors 是否有用？","depth":3},{"id":"ama-是不是只是參數多","text":"AMA 是不是只是參數多？","depth":3},{"id":"結論","text":"結論","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"face-antispoofing/wmca","relation":"comparison","topic":"人臉防偽的多模態融合"},{"id":"face-antispoofing/cefa","relation":"comparison","topic":"人臉防偽的多模態融合"},{"id":"face-antispoofing/ma-vit","relation":"comparison","topic":"人臉防偽的多模態融合"}]}],"text":"Face Anti-Spoofing（FAS）技術的初衷，是為了防堵那些以照片、影片或立體面具欺騙臉部辨識系統的攻擊手法。\n\n這些攻擊被稱為 Presentation Attacks（PAs），隨著臉部辨識在金融支付、手機解鎖、自助通關等應用中普及，其安全性也成為現代生物辨識系統繞不開的考驗。\n\n## 定義問題\n\n最早的 FAS 方法，大多僅依賴 RGB 視覺資訊來偵測異常。\n\n然而攻防博弈從未停歇，攻擊手段越來越真實，感測設備也日益多樣。我們開始引入紅外、深度、熱感等模態，企圖拼湊出一個「多光譜的真相」。\n\n而模型架構也隨之演化：從 halfway fusion 的中層特徵拼接，到 late fusion 的決策階段融合，每種策略都試圖更穩固地重建「真假之界」。\n\n問題卻也悄然浮現。\n\nHalfway fusion 雖能強化不同模態特徵的交互學習，但其模型設計往往假設訓練與測試階段擁有一致的輸入模態，一旦某個感測器缺席，整體預測就可能崩潰。\n\nLate fusion 雖保留各模態的獨立通道，使得在模態缺失時仍可執行推論，但其代價是參數倍增與推論延遲，不利於移動端或邊緣設備的部署。\n\n更根本的瓶頸是：這些多模態方法，其實從未解決一個關鍵命題：\n\n> **我們是否真的理解「什麼是跨模態共通的活體特徵」？**\n\n或者說，模型是否真的在學習「臉的真偽」，而非僅僅記住了「模態的差異」？\n\n於是，一個更激進的問題浮現：如果我們可以在訓練時使用多模態的知識，卻在測試時只需要任一模態的輸入，是否能打造出一個真正具備「模態無關性」的 FAS 系統？而這樣的系統，是否能在保持輕量、快速與靈活性的同時，仍保有對偽裝攻擊的敏銳判斷力？\n\n這篇論文的作者對此提出了思考，並嘗試解決這些問題。\n\n這次不是再一次將模態接上，而是先將它們拆開。\n\n## 解決問題\n\n由於傳統的 halfway 與 late fusion 方法不僅容易被模態缺失打斷，還引入過多運算負擔與模型複雜性。因此，作者希望在這裡可以設計出一種「模態不可知」的模型：\n\n- 在訓練階段吸收多模態知識\n- 在測試階段僅憑任一模態也能獨立完成預測\n\n### 模型架構\n\n\n\n![model_arch](/content/papers/assets/fa2c4fe1cdf1e8f7327fee30b6b425b11a82d76e65a57747acd14f16a9d3bead.jpg)\n\n\n\n整體架構如上圖所示，MA-ViT 是建立在單一 ViT 主幹的設計之上，包含三個關鍵模組：\n\n1. **Multi-Modal Tokenization Module**（圖中左側）\n2. **Transformer Encoder**（中央黃色與黑色箭頭所示）\n3. **Modal Shared Classification Heads**（右側分類器）\n\n不同於傳統多分支融合設計，MA-ViT 的關鍵創新在於讓不同模態共用同一組 ViT 參數，透過一系列標準 Transformer Block（論文中簡稱 STB）和新增的「模態不可知」的 Transformer Block（Modality-Agnostic Transformer Block, MATB）交錯堆疊，共同提煉模態不可知的表徵。\n\n上圖中黃色箭頭表示各模態獨立通過 STB 的路徑，黑灰色箭頭為其後續進入 MATB（MDA）的處理流程。\n\n---\n\n在 MA-ViT 的輸入端，無論是 RGB 或 Depth 的影像，都會先經過 **Multi-Modal Tokenization Module**。\n\n如圖中左側所示，輸入影像被劃分為 patch，再轉換為向量 token（$x_\\text{pat}$）。這些 patch token 會與兩個特殊 token 結合：\n\n- **$x_\\text{cls}$**：分類 token，最終承載真假預測任務。\n- **$x_\\text{mod}$**：模態 token，用來引導模型理解輸入的光譜性質。\n\n整體序列經由位置嵌入（$x_\\text{pos}$）與光譜嵌入（$x^i_\\text{spe}$）加權後，組成初始輸入向量：\n\n$$\nz^i_0 = [x_\\text{cls} \\| x^i_\\text{mod} \\| x^i_\\text{pat}] + (x_\\text{pos} + x^i_\\text{spe})\n$$\n\n這些 token 將進入後續的 Transformer Encoder 流程。\n\n---\n\nTransformer Encoder 每層由兩部分構成：\n\n1.  **STB（Standard Transformer Block）**\n    各模態獨立處理，如圖中黃色與黑灰箭頭所示，處理單一模態內部的局部特徵與上下文。\n\n2.  **MATB（Modality-Agnostic Transformer Block）**\n    接續 STB，每層 MATB 又細分為兩個注意力模組，具體實作細節可參考下圖：\n\n\n\n     ![matb](/content/papers/assets/3c23176ba355ef733db08c1b1fa26f8ab2a0e269c250907c5b2a22c8d62b4c9f.jpg)\n\n\n\n    - **MDA：為了從模態中逃脫**\n\n      **Modal-Disentangle Attention（MDA）** 的任務，是讓模型學會忽略那些過度依賴模態特徵的 patch，只專注於模態無關、但與真假辨識強相關的線索。\n\n      如上圖左側所示，MDA 首先透過模態 token（MOD）與每個 patch token 的 dot product 計算模態關聯度：\n\n      $$\n      \\text{map}_\\text{mod} = \\frac{q_\\text{mod} (k^\\text{pat}_\\text{mod})^T}{\\sqrt{D/h}}\n      $$\n\n      接著透過門檻函數 $\\Gamma_\\lambda(\\cdot)$ 產生一個遮罩矩陣 $M$，標記出模態相關性過強的 token。接下來，在 CLS token 的注意力運算中，將這些 token 的關聯值設為極小，達到「斷開聯繫」的效果：\n\n      $$\n      \\text{map}_\\text{cls}' = \\Gamma^0_M\\left(\\frac{q_\\text{cls} (k^\\text{pat}_\\text{cls})^T}{\\sqrt{D/h}}\\right)\n      $$\n\n      最終的注意力結果僅關注模態無關的 patch：\n\n      $$\n      \\text{MDA}(z^i) = \\text{softmax}(\\text{map}_\\text{cls}') \\cdot v^\\text{pat}_\\text{cls}\n      $$\n\n      這是一個「選擇性遺忘」的過程，不是讓模型記得一切，而是只記得它應該記住的部分。\n\n      ***\n\n    - **CMA：為了讓模態之間彼此照亮**\n\n      **Cross-Modal Attention（CMA）** 的任務，是在多模態樣本可用時透過交叉注意力產生跨模態序列，並以同一真假標籤監督；它的注意力投影參數與單模態路徑的自注意力共用。\n\n      如上圖右側所示，以 RGB（$z^r$）與 Depth（$z^d$）為例，CMA 讓 $z^r$ 的查詢向量（$q_r$）對應 $z^d$ 的鍵值對進行注意力操作：\n\n      $$\n      A_{rd} = \\text{softmax}\\left( \\frac{q_r k_d^T}{\\sqrt{D/h}} \\right), \\quad \\text{CMA}(z_r) = A_{rd} \\cdot v_d\n      $$\n\n      反向也同理。這個步驟讓訓練中的兩個模態能「借視角看世界」；單模態測試時不會另外取得缺席模態的特徵來執行 CMA。\n\n### 損失設計\n\n為了實現「測試時僅用任一模態也能判斷」的設計，MA-ViT 採用模態共享的分類器，CLS token 預測真假，MOD token 預測模態，兩者損失共同優化：\n\n$$\n\\begin{aligned}\nL^i_\\text{cls} &= \\text{BCE}(\\text{MLP}_\\text{cls}(\\text{LN}(z^i_{K, \\text{cls}})), y_\\text{cls}) \\\\\nL^i_\\text{mod} &= \\text{BCE}(\\text{MLP}_\\text{mod}(\\text{LN}(z^i_{K, \\text{mod}})), y_\\text{mod}) \\\\\nL^i_\\text{total} &= L^i_\\text{cls} + L^{rd}_\\text{cls} + L^i_\\text{mod}\n\\end{aligned}\n$$\n\n這樣設計的分類器，使測試時可只啟用輸入模態對應的路徑，不必取得訓練時使用的所有模態。\n\n## 討論\n\n為了驗證 MA-ViT 框架的有效性，作者設計了兩類評估場景：\n\n1. **固定模態測試**：測試模態與訓練模態一致。\n2. **彈性模態測試**：任一模態都可獨立推論。\n\n此外，還包含跨資料集測試與消融實驗，逐步檢驗 MA-ViT 對模態資訊的拆解與轉譯能力。\n\n### 固定模態場景\n\n在傳統設定中，模型需在固定模態條件下完成推論，這也是過去方法的主要比較場景。\n\n以 MmFA 為例，對比 baseline（無 MATB 的 ViT）與 SEF/MS-SEF 等多模態方法：\n\n\n\n![mmfa](/content/papers/assets/03e1358a4d85adea407bfc8e31c09641ed9bbe1bd315b78e0f0db6874e728b13.jpg)\n\n\n\n- ViT（無融合）表現不如傳統方法 SEF，顯示 Transformer 在無模態引導下難以判斷真偽。\n- 引入 MATB 後，TPR（FPR=$10^{-4}$）由 44.33% 提升至 82.83%，ACER 由 6.51% 降至 0.80%；與 MS-SEF 相比，TPR 與 ACER 較佳，但 BPCER 由 0.30% 升至 0.83%。\n\n這組比較支持 MATB 在此設定下改善 ViT 的辨識結果。\n\n接著從 CeFA Protocol 的實驗來看：\n\n\n\n![cefa](/content/papers/assets/0aa066da1bc1551ba21eb90f1bdba7a613b6458193867109fa187d2c7d1183df.jpg)\n\n\n\n在 Protocol 1、2 和 4 的實驗中，MA-ViT 分別將 ACER 降至 1.10%、0.10%、1.64%；前兩組為表中最低，Protocol 4 則優於 Hulking、Super，但不及 BOBO 的 1.02%。\n\nCeFA 涵蓋不同模態與族群；這些協定的結果顯示 MA-ViT 在其中兩組取得最低 ACER，Protocol 4 則仍有其他方法領先。\n\n最後檢視 WMCA 的表現：\n\n![wmca](/content/papers/assets/098ae2df6a8f57b414c48a7566f87f5510d61f58604f15326c8e7489ce6f3818.jpg)\n\n在 WMCA 中，MA-ViT 的 seen ACER 為 1.45%，unseen 各攻擊平均 ACER 為 3.81%，均低於 CMFL 的 1.70% 與 7.60%。可彎曲面具與眼鏡兩組的 ACER 分別為 9.76% 與 14.00%，印刷與紙面具兩組則為 0.00%；作者認為這類攻擊的偽造線索較局部，但表格本身不能辨別增益來自哪一種注意力機制。\n\n### 跨資料集泛化能力\n\n\n\n![cross_dataset](/content/papers/assets/2b25f232385b9e365921876249f3f8053a866630c34ff7d8681c9b7dff51a87e.jpg)\n\n\n\n在 MmFA 訓練、WMCA 測試時，**MA-ViT 的 HTER 為 20.63%，低於 Aux.(Depth) 的 24.54%**；反向測試也由 12.35% 降至 10.41%。同表的單模組比較中，MDA-ViT 在兩個方向都優於 CMA-ViT（24.84% 對 27.97%、13.30% 對 16.97%），顯示 **MDA 在這兩組跨資料集測試中貢獻較大。**\n\n這一點也呼應了模型設計初衷：**與其追求模態融合，不如先處理模態偏見。**\n\n### 彈性模態場景\n\n\n\n![flexible](/content/papers/assets/98cc4e66f4443a2073a60883cc40c44fdef95c6d8525496ad81ff6b17d58cf73.jpg)\n\n\n\n這是 MA-ViT 最具實用價值的部分。\n\n在不重新訓練模型的前提下，MA-ViT 對每一模態的推論結果如下：\n\n- **RGB**：11.43%（相較 MS-SEF 低 9.57 個百分點）\n- **Depth**：0.80%（相較 MS-SEF 低 2.80 個百分點）\n- **IR**：1.50%（相較 MS-SEF 低 17.90 個百分點）\n\n這些 MmFA 數值顯示，同一個以 RGB、Depth、IR 訓練的 MA-ViT 模型，可以分別接收單一模態樣本推論；單模態測試不需重新訓練，也不會在當下取用其他模態的輸入。\n\n## 結論\n\n本研究提出的 MA-ViT，是一個純 Transformer 架構的臉部防偽辨識系統。它不僅能處理任一模態的輸入，更能在模態不完整的條件下，依然穩定推論真假。\n\n這項能力的關鍵，在於我們重新定義了模態的角色，透過 MATB 模組中兩個核心注意力機制：\n\n- **MDA**：排除模態偏見，保留具鑑別性的活體特徵；\n- **CMA**：跨模態互補，強化局部弱特徵的判斷力。\n\n它的貢獻，不只是一個模型架構的改良，更是一種設計理念的轉向：\n\n> **「與其記住模態，不如看見本質。」**\n\n真正的模型，不應該依賴你給它什麼，而應該具備在「給什麼都能看懂什麼」的能力。\n","imageSizes":{"/content/papers/assets/fa2c4fe1cdf1e8f7327fee30b6b425b11a82d76e65a57747acd14f16a9d3bead.jpg":{"width":1758,"height":460},"/content/papers/assets/3c23176ba355ef733db08c1b1fa26f8ab2a0e269c250907c5b2a22c8d62b4c9f.jpg":{"width":908,"height":564},"/content/papers/assets/03e1358a4d85adea407bfc8e31c09641ed9bbe1bd315b78e0f0db6874e728b13.jpg":{"width":1216,"height":312},"/content/papers/assets/0aa066da1bc1551ba21eb90f1bdba7a613b6458193867109fa187d2c7d1183df.jpg":{"width":1208,"height":684},"/content/papers/assets/098ae2df6a8f57b414c48a7566f87f5510d61f58604f15326c8e7489ce6f3818.jpg":{"width":1224,"height":200},"/content/papers/assets/2b25f232385b9e365921876249f3f8053a866630c34ff7d8681c9b7dff51a87e.jpg":{"width":1200,"height":288},"/content/papers/assets/98cc4e66f4443a2073a60883cc40c44fdef95c6d8525496ad81ff6b17d58cf73.jpg":{"width":1224,"height":496}}}
