<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Toby on Medium]]></title>
        <description><![CDATA[Stories by Toby on Medium]]></description>
        <link>https://medium.com/@atch84?source=rss-affbe2abd2e6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Toby on Medium</title>
            <link>https://medium.com/@atch84?source=rss-affbe2abd2e6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 09:47:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@atch84/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[回顧近年的AI瑕疵檢測論文]]></title>
            <link>https://medium.com/@atch84/%E5%9B%9E%E9%A1%A7%E8%BF%91%E5%B9%B4%E7%9A%84ai%E7%91%95%E7%96%B5%E6%AA%A2%E6%B8%AC%E8%AB%96%E6%96%87-7bcd6092d5f9?source=rss-affbe2abd2e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/7bcd6092d5f9</guid>
            <category><![CDATA[anomaly-detection]]></category>
            <category><![CDATA[ai-computer-vision]]></category>
            <category><![CDATA[paper-review]]></category>
            <dc:creator><![CDATA[Toby]]></dc:creator>
            <pubDate>Tue, 12 May 2026 01:57:50 GMT</pubDate>
            <atom:updated>2026-05-12T01:57:50.902Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6-nLaGGLvYq_jRk3qA3AMA.png" /><figcaption>Generated by Gemini</figcaption></figure><p>這篇文章將介紹三篇與AI瑕疵檢測有關的論文，並介紹他們的方法。文章的用意主要是紀錄自己對論文的理解，方便日後回顧。</p><h3>UniVAD: A Training-free Unified Model for Few-shot Visual Anomaly Detection (CVPR2025)</h3><p><a href="https://arxiv.org/abs/2412.03342">paper link</a></p><p>這篇論文主要提出了一個通用型的Visual Anomaly Detection(VAD)模型，可以在用只少數正常樣本且不用重新訓練的狀況下執行VAD。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j15jsN4uimbXXKTPjoLF3Q.png" /><figcaption>UniVAD模型架構圖</figcaption></figure><p>UniVAD主要是由三個模組組成: Contextual Component Clustering (C3), Component-Aware Patch Matching (CAPM), Graph-Enhanced Component Modeling (GECM)</p><h3>Contextual Component Clustering (C3)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*osiuXQ1U3YNWJK-PPVGfnQ.png" /><figcaption>Contextual Component Clustering (C3) Module</figcaption></figure><p>C3模組的用途主要是在針對輸入影像進行Component Segmentation。實作方法如下：</p><ol><li>使用Recognize Anything Model(RAM)和Grounded SAM產生出初始的Mask。RAM擅長識別物件，可以產生出影像中物件的tag。Grounded SAM再根據RAM所產生出的tag對影像產生相應的Mask。</li><li>根據Mask的數量與覆蓋的面積進行調整：</li></ol><ul><li>如果 Grounded SAM 只生成一個Mask，且該Mask覆蓋了整個影像的r%以上，可能代表影像是一個紋理表面（如木材），C3 模組會將整個影像視為一個單一組件，輸出一個覆蓋整個影像的Mask。</li><li>如果 Grounded SAM 只生成一個Mask，且該Mask覆蓋了整個影像的r%以下，可能代表影像中只有一個主要物體，則直接使用 SAM 生成的Mask。</li><li>如果 Grounded SAM 生成了多個Mask，則會使用下面的方法來優化生成的Mask。</li></ul><p>3. K-means Mask：利用pretrained image encoder(例如 CLIP-L/14@336px 或 DINOv2-G/14)對K張<strong>normal image</strong>產生出feature map(K*W*H*C)，再將這些feature透過K-means Clustering找出群心(N*C)，最後把<strong>normal image和query image</strong>的feature透過這些群心做分類得到N個Mask。這N個Mask會再透過檢查Mask四個角落的值是否為零篩選掉背景的Mask得到N’個Mask。</p><p>4. 整合SAM Mask與K-means Mask：將SAM生成的M個Mask分別跟N&#39;個K-means Mask算IoU，SAM的Mask會被標註為IoU最高的K-means Mask標籤j (1到N&#39;)。最後被標註為同一個標籤j的SAM Mask會被合併得到最後的Mask。</p><p><strong>Component-Aware Patch Matching (CAPM)</strong></p><p>CAPM的用途是透過在normal image和query image之間做patch feature的比對來判斷出structural anomalies。CAPM用了三種方式計算相似分數：Patch Matching Anomaly Score (Score_{pm})、Component-Aware Anomaly Score (Score_{aware})、Image-Text Anomaly Score (Score_{vl})。</p><p>首先我們可以透過pretrained image encoder將normal image和query image都做encode再interpolate得到他們的patch feature P_n和P_q。</p><ul><li>Patch Matching Anomaly Score (Score_{pm})是直接拿每一個query image的patch feature和所有的normal image patch feature去計算出最低的cosine distance當作Anomaly Score。Patch Matching Anomaly Score是全域的比對，類似於Patchcore。</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/411/1*VPDSf4LMoAgGb_Xuqt-qNw.png" /><figcaption>i:第i個component mask, q:query image, n:normal image</figcaption></figure><ul><li>Component-Aware Anomaly Score (Score_{aware})與Score_{pm}很像，不過他加入了C3模組所產生的Mask，每一個query image的patch feature只跟對應類別的Mask的normal image patch feature去計算cosine distance，最後也是拿最低的cosine distance當作Anomaly Score。Component-Aware Anomaly Score是只在相同tag的區域中(相同component)才比對相似度，可以避免掉在其他tag中有類似的pattern。</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*HxTqK3o4uusUMykCCCBOHg.png" /><figcaption>只跟相同的component mask的特徵計算distance</figcaption></figure><ul><li>Image-Text Anomaly Score (Score_{vl})使用CLIP model的text encoder來對一些預先設定好的normal prompt和abnormal prompt做encode，再將query image的patch feature與正常/不正常的text feature計算相似度(計算方法與實作細節如下)。Image-Text Anomaly Score運用了CLIP model透過文字與影像學習到的資訊來做判斷。</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*yYQSBUrOm33wGoaioFgFgQ.png" /></figure><pre>文字提示詞<br>    ↓<br>OpenCLIP Tokenizer<br>    ↓<br>CLIP Text Encoder (ViT-L-14-336)<br>    ↓<br>text_features [1024, 2] (normal和abnormal)<br>    ↓ @ (點積)<br>Patch Tokens (from CLIP visual encoder)<br>    ↓<br>Image-Text Anomaly Score</pre><pre># Code from UniVAD github + copilot<br># 初始化時<br>with torch.no_grad():<br>    self.text_prompts = encode_text_with_prompt_ensemble(<br>        self.clip_model, [&quot;object&quot;], self.tokenizer, self.device<br>    )<br><br># Forward時<br>text_features = self.text_prompts[&quot;object&quot;]  # shape: [1024, 2]<br><br>for layer in range(len(patch_tokens)):<br>    if layer != 6:<br>        continue<br>    <br>    # 投影patch tokens到CLIP的text embedding空間<br>    patch_tokens[layer] = patch_tokens[layer] @ self.clip_model.visual.proj<br>    patch_tokens[layer] = patch_tokens[layer] / patch_tokens[layer].norm(<br>        dim=-1, keepdim=True<br>    )<br>    <br>    # 計算patch tokens與text features的相似度 (點積)<br>    anomaly_map_vl = 100.0 * patch_tokens[layer] @ text_features<br>    # shape: [B, num_patches, 2] (2 = normal和abnormal)<br>    <br>    # 後續處理...<br>    anomaly_map_vl = torch.softmax(anomaly_map_vl, dim=1)  # 過softmax<br>    anomaly_map_vl = (<br>        anomaly_map_vl[:, 1, :, :] - anomaly_map_vl[:, 0, :, :] + 1<br>    ) / 2  # abnormal - normal<br>    anomaly_map_vls.append(anomaly_map_vl)</pre><p><strong>Graph-Enhanced Component Modeling (GECM)</strong></p><p>GECM的功用是在透過比對component之間的關係來判斷出logical anomalies。component feature有兩種: Embedding feature和Geometric feature。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uZl1hT2Q19fJ6LVL25kPDQ.png" /><figcaption>GECM流程圖(By Gemini參考就好, step3和step4輸入箭頭連接錯誤)</figcaption></figure><p><strong>Embedding feature: </strong>首先利用Component Feature Aggregator (CFA)為C3模組所產生的component mask與feature map製作adjacency matrix，adjacency matrix是由每個component與其他的component的相似度組成，adjacency matrix可視為每個component之間的互相關係矩陣。此外，CFA也使用了Graph Attention Operation來強化adjacency matrix。透過CFA我們就可以得到component feature embeddings E_n和E_q。</p><pre>E_n = CFA( GAP(normal_feat, normal_masks) )<br>E_q = CFA( GAP(query_feat, query_masks) )</pre><p>接著我們就可以計算Score_{deep}</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/1*adx1F6FxQkfhZf-irrjwsQ.png" /></figure><p>其中的i代表的是query image中的第i個component，值得注意的是每一個component都會跟normal image的所有component計算distance來增加robustness。</p><p><strong>Geometric feature:</strong> 對每個component mask計算area, color, position(計算方式如下)，把這三個數值串起來作為Geometric feature</p><pre>area 特徵：np.sum(mask!=0) / mask.size<br>color 特徵：基於 LAB 色彩空間計算<br>position 特徵：mask 的邊界框中心位置 (normalized)</pre><p>接著用一樣的方式計算Score_{geo}</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/429/1*Lk8Cg2gwcdkP7R2y6qmttQ.png" /></figure><p>最後把所有的anomaly score加起來得到最終的anomaly score map</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*QlBlTWZxEQTCglyxpTVl7w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/405/1*tZ6c5GETDree9uAUOUYZDg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/397/1*Mi-QZlN1YP98daTIp3cWaA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NVj_8ofF470H1EkQC8jbMQ.png" /><figcaption>Comparison between UniVAD and existing methods under the 1-normal-shot setting, where image-level AUC and pixel-level AUC are used to evaluate the performance of image-level anomaly detection and pixel-level anomaly localization, respectively.</figcaption></figure><p>總結：UniVAD提出了一個通用型的模型，可以快速地應用在不同的場景，也能透過GECM分析component之間的關係，判別出邏輯性的錯誤。然而因為這個方法仰賴pretrained的image encoder、RAM、Grounded SAM，在特定的場景中可能會表現受限。</p><h3>Towards Zero-Shot Anomaly Detection and Reasoning with Multimodal Large Language Models (<strong>CVPR 2025 Highlight)</strong></h3><p><a href="https://arxiv.org/abs/2502.07601">paper link</a></p><p>這篇論文提出了一個運用Multimodal Large Language Models(MLLM)來做到根據使用者的prompt來辨識瑕疵的方法，好處是可以更彈性的根據使用情境作調整，但壞處是漏檢率可能比較高。他們提出的方法修正了其他類似的方法中圖片精細度不夠與描述不足的問題。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fhux8SAGEfMBIdjNjnZ9UA.png" /><figcaption>Overview of the Anomaly-OV architecture</figcaption></figure><p>首先將輸入的影像I分割成多個小圖I_0, I_1, … , I_n-1，其中I_0是原影像的縮小版本。接著用pretrained的CLIP Visual encoder(ViT)來從四個layer中提取feature，提取的feature會再用一個可訓練的adapter來壓縮維度，壓縮後的feature以下面的方程式來表示</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/150/1*BCdHwUYFcUGVmvUIkD8_PA.png" /><figcaption>i代表第幾個layer的feature, j代表輸入影像分割的第幾個小圖(0是原影像的縮小版本)</figcaption></figure><p>接下來這些feature就會輸入Look-Twice Feature Matching (LTFM)與Visual Token (VT) Selector來取得比較重要/可能有問題的feature。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*uyUcboBc_MTJtTLe84RWrQ.png" /><figcaption>LTFM與VT selector的設計就像人類在判別異常時往往是先粗部的看整個影像(LTFM)，然後再細看其中可疑的細節(VT selector)</figcaption></figure><p><strong>Look-Twice Feature Matching (LTFM)</strong></p><p>LTFM主要是透過training得到的normal embedding和abnormal embedding與feature做比對來得到每個v^i_j的異常程度。比對細節如下：</p><p>LTFM先將v⁰_0(縮小的原圖,encoder最後的feature)透過可訓練的linear layer得到有用的濃縮feature後，分別接上兩個learnable embedding e^+(表示異常)和 e^-(表示正常)，再用兩個可訓練的MLP(G^+, G^-)產生d^+和d^-。這邊的d^+和d^-就可以用來與各個feature v^i_j比對來判斷他們的異常程度，比對方式如下</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*Pd6kCj7ga0vubfVFaCPAzg.png" /><figcaption>i代表第幾個layer的feature, j代表輸入影像分割的第幾個小圖, &lt;,&gt;代表cosine sim, τ代表temperature hyperparameter</figcaption></figure><p>最後再將4個layer的significance map平均得到最後的significance map</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/187/1*d7Mb-4qROqvGSOQEKgGGxg.png" /></figure><p><strong>Visual Token Selector (VT Selector)</strong></p><p>VT Selector的用處是透過LTFM產生出來的significance map來挑出最可疑的部份給MLLM做判讀。</p><p>VT Selector先將LTFM得到的significance map與原本的feature v⁰_j相乘，讓significance map中比較大的數值(重要)保留，比較小的數值(不重要)減小，接著再用spatial average pooling P來減少維度。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/222/1*OyC0wgaTn-3zurXxbw0dHg.png" /></figure><p>接下來，上面得到的q_j就會當作query與v⁰_j當作key跟value輸入到Q-former中得到包含可疑資訊的feature v^s_j</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/231/1*NMieVZ5jgQHAGAEUYQ_toA.png" /></figure><p>這邊Q-former的作用就是根據 q_j(這個query已經包含了被強調的異常資訊)來「回頭」從原始的 v⁰_j​ 中提取並聚合最相關的上下文資訊。這確保了雖然聚焦於異常，但 LLM 仍然可以訪問到原始的、豐富的視覺上下文。</p><p><strong>Anomaly Prediction</strong></p><p>為了得到整張影像的anomaly score，在得到可疑資訊的feature v^s_j後，先透過significance map與可疑feature v^s_j加權平均得到global anomaly vector r(I)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/362/1*GSDObiKxgpUOPjAYD-uEBQ.png" /><figcaption>v^s_j是作為加權平均的權重，P(m_j)是pooling後的significance map，k是vector中的第k個數值</figcaption></figure><p>再將global anomaly vector r(I)經過一個MLP G⁰()與sigmoid得到最終的global anomaly score score(I)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*Sn37uTmtvlWyhXoiomsKqA.png" /></figure><p><strong>Text Generation</strong></p><p>文字生成的部分是在前面的階段訓練完成後，再進行LLM的訓練。LLM的輸入是</p><p>User Prompt + v⁰_0 + v⁰_1 + …. + v⁰_(n-1) + “with &lt;adv&gt; suspicious feature:” + r(I) + v^s_0 + v^s_1 + …. + v^s_(n-1)</p><p>其中&lt;adv&gt;會根據r(I)與兩個threshold做調整，根據分數的高低會是highly, moderately, slightly。</p><p>訓練LLM的資料來自這篇論文提出的Anomaly-Instruct-125k資料集。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*brIyMpJHcW_dmcPXSLvjmw.png" /><figcaption>Quantitative comparison of Image-level AUROC on different Zero-Shot Anomaly Detection methods.<br>The best and the second-best results are bolded and underlined, respectively.</figcaption></figure><p>總結：這篇論文提出的方法可以在完全沒有normal sample的狀況下做辨別，也能透過LLM對瑕疵提出解釋性，透過LTFM與VT selector可以先從整張圖像中觀察可能有瑕疵的區域再放大來檢視，達到更高的準確度。但是準確度上還是相較於使用了1個normal sample的UniVAD差，論文中也沒有提到如何透過少量normal sample增加準確度的方法。</p><h3>AD-Copilot: A Vision-Language Assistant for Industrial Anomaly Detection via Visual In-context Comparison</h3><p><a href="https://arxiv.org/abs/2603.13779">paper link</a></p><p>相較於上面那篇是先把異常分數算好才丟給LLM做判讀產生相關文字，這篇論文更直接地透過LLM來判斷異常文字跟異常評論。他們提出了comparison encoder來透過比較的方式encode出feature，模型的架構如下圖。此外，他們也提出了Chat-AD dataset，提供query image與normal image之間差異的文字描述。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wUi6TvyfvdJbRtlPJ8yHXA.png" /><figcaption>模型架構圖</figcaption></figure><p><strong>Model backbone</strong></p><p>這篇論文中所使用的model是pretrain過的Qwen2.5-VL-7B-Instruct。上圖中的image encoder與position embedding都是來自於Qwen。這個position embedding的方法MRoPE ID可以理解成透過旋轉向量的方式將位置的資訊融入向量中。</p><p><strong>Comparison Encoder</strong></p><p>Comparison Encoder主要是參考了DETR中所用到的cross attention，把輸入影像(當作query image)的feature與前一張輸入影像(當作normal image)的feature透過cross attention來做交互的比對找到兩張影像之間的差別，再透過一個可學習的comparison queries做cross attention來得到精煉過的comparison tokens，這個comparison tokens就能給LLM更多比較的資訊。</p><p>實作細節是先將query feature當作K和V，normal feature當作Q去做cross attention，再將cross attention得到的結果加上原本的normal feature當作K和V，query feature當作Q再做一次cross attention，可參考下面這段作者放在hugging face的程式碼。</p><pre>  def _encoder_forward(self, current_features, previous_features, current_mask=None, previous_mask=None):<br>      &quot;&quot;&quot;<br>      Encoder: 双向图像特征交互<br>      Args:<br>          current_features: [batch_size, seq_len, hidden_size]<br>          previous_features: [batch_size, seq_len, hidden_size]<br>          current_mask: [batch_size, seq_len]<br>          previous_mask: [batch_size, seq_len]<br>      &quot;&quot;&quot;<br>      # 第一步：previous attend to current<br>      residual = previous_features<br>      <br>      # Layer norm<br>      previous_normed = self.encoder_norm1(previous_features)<br>      current_normed1 = self.encoder_norm1(current_features)<br>      <br>      # Cross attention: previous attend to current<br>      cross_attn_output1 = self.encoder_cross_attn1(<br>          query_states=previous_normed,<br>          key_value_states=current_normed1,<br>          attention_mask=current_mask.unsqueeze(1).unsqueeze(2) if current_mask is not None else None<br>      )<br>      <br>      # Residual connection<br>      previous_features = residual + cross_attn_output1<br>      <br>      # MLP for previous features<br>      residual = previous_features<br>      mlp_input1 = self.encoder_norm2(previous_features)<br>      mlp_output1 = self.encoder_mlp1(mlp_input1)<br>      previous_features = residual + mlp_output1<br>      <br>      # 第二步：current attend to previous (enhanced)<br>      residual = current_features<br>      <br>      # Layer norm<br>      current_normed2 = self.encoder_norm3(current_features)<br>      previous_normed2 = self.encoder_norm3(previous_features)<br>      <br>      # Cross attention: current attend to previous<br>      cross_attn_output2 = self.encoder_cross_attn2(<br>          query_states=current_normed2,<br>          key_value_states=previous_normed2,<br>          attention_mask=previous_mask.unsqueeze(1).unsqueeze(2) if previous_mask is not None else None<br>      )<br>      <br>      # Residual connection<br>      current_features = residual + cross_attn_output2<br>      <br>      # MLP for current features<br>      residual = current_features<br>      mlp_input2 = self.encoder_norm4(current_features)<br>      mlp_output2 = self.encoder_mlp2(mlp_input2)<br>      # current_features = residual + mlp_output2<br>      # 修改为减法<br>      current_features = residual - mlp_output2<br>      return current_features</pre><p>做了兩次的cross attention後的feature會再與可學習的comparison queries做第三次cross attention來得到精煉過的comparison tokens。最後就會將text tokens、image features、comparison tokens一起丟給LLM產生最後的判別結果。</p><p><strong>Training Recipe</strong></p><p>論文中提出的訓練方式分為了四個階段：Stage 0 Learning to Compare, Stage 1 Industrial Comparison, Stage 2 Multi-task Comparison, Stage 3 Comparison-aware Reasoning。</p><p>Stage 0 Learning to Compare：這個階段也能視為comparison encoder的pretrain，使用的資料是通用影像的雙影像比較任務的數據集。LLM和image encoder的參數不動，只訓練comparison encoder的參數。</p><p>Stage 1 Industrial Comparison：這個階段開始都使用LoRA finetuning來訓練，只訓練comparison encoder和LLM的參數，加入了工業影像的雙影像比較任務的數據集。使得模型將工業影像的認知與通用影像連結起來。</p><p>Stage 2 Multi-task Comparison：這個階段同時訓練了整個模型(image encoder + comparison encoder + LLM)，訓練時指令涵蓋了多種任務，例如異常判斷、缺陷分類、關於原因的溯因推理、缺陷定位、物體分析和產品計數。所有樣本都以多輪對話的形式呈現，以鼓勵更深入的分析推理，讓模型調整語料庫進行end-to-end的優化。</p><p>Stage 3 Comparison-aware Reasoning：這個階段用reinforcement learning的方式訓練LLM，鼓勵模型在 &lt;think&gt;&lt;/think&gt; 中輸出推理過程，並在 &lt;answer&gt;&lt;/answer&gt; 中給出答案。使得模型提高了準確性和可解釋性，且能夠產生明確的推理痕跡。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cq8IrVRqsugG2lfessitqQ.png" /><figcaption>各個階段使用的訓練資料集</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*waG1qlPSkaiO5m9EJjMUpg.png" /><figcaption>PERFORMANCE COMPARISON OF BOTH PROPRIETARY AND OPEN-SOURCE MLLMS IN MMAD WITH THE STANDARD 1-SHOT SETTING. † THINKING MODEL. ∗ MODELS TRAINED WITH MMAD DATA AND USED DOMAIN KNOWLEDGE.</figcaption></figure><p>總結：這篇論文雖然可以透過comparison encoder與MLLM在1-SHOT的使用情境中有辦法提供很好的瑕疵解釋性，但在瑕疵辨別的任務中卻表現得較差。不過一起將影像與文字與comparison tokens丟入MLLM的方式可能可以讓模型在辨別特定種類的瑕疵上更有優勢。</p><p>回顧了三篇近幾年的論文，發現相較於更早以前的論文比較侷限於辨別紋理上的瑕疵，近期的論文更能判別邏輯上的瑕疵還能提出瑕疵的解釋性。訓練方式的發展上也從fully supervised的方法往few-shot或是zero-shot的方向發展了。不過在實務上要採用哪一個方法還是要根據使用的場景不同以及可用的硬體設備來評估。</p><p>如果有寫錯的地方歡迎指正！</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7bcd6092d5f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>