電子元件規格中應用縮寫擴展的自動化腳位類型分類方法
Automatic Pin Type Classification Using Abbreviation Expansion in Electronic Component Specifications
摘要
隨著電子設計自動化(Electronic Design Automation, EDA)技術的迅速發展,提高設計效率與準確性在半導體產業中變得日益重要。其中一項長期存在的挑戰,是電子元件資料手冊中所使用的腳位名稱縮寫,常導致語意上的模糊與腳位類型分類上的不一致問題。
為了解決此問題,本研究提出一個整合檢索式增強生成(Retrieval-Augmented Generation, RAG)與大型語言模型(Large Language Models, LLMs)的端對端架構。首先,從資料手冊內容建構一個領域專屬的向量資料庫,並將每個縮寫的腳位名稱編碼為語意向量。接著,從資料庫中擷取與該腳位名稱語意上最相關的前k筆內容,與原始腳位名稱組合成一個動態提示詞(prompt),並輸入至大型語言模型以產生多個候選腳位描述。
為了選出最合適的描述,本研究進一步設計一套基於規則的選擇策略,用以判斷哪一個候選描述最能準確反映原始語意。雖然描述生成僅為中介步驟,但其對於後續腳位類型分類任務具有關鍵性的影響。
實驗結果顯示,與傳統基準方法相比,本研究方法在分類準確率與F1分數上均有顯著提升。整體而言,本文提出的方法有效地縮短了縮寫腳位名稱與精確類型分類之間的語意落差,並展示了結合領域專屬知識檢索與先進語言模型於產業應用上的潛力。
為了解決此問題,本研究提出一個整合檢索式增強生成(Retrieval-Augmented Generation, RAG)與大型語言模型(Large Language Models, LLMs)的端對端架構。首先,從資料手冊內容建構一個領域專屬的向量資料庫,並將每個縮寫的腳位名稱編碼為語意向量。接著,從資料庫中擷取與該腳位名稱語意上最相關的前k筆內容,與原始腳位名稱組合成一個動態提示詞(prompt),並輸入至大型語言模型以產生多個候選腳位描述。
為了選出最合適的描述,本研究進一步設計一套基於規則的選擇策略,用以判斷哪一個候選描述最能準確反映原始語意。雖然描述生成僅為中介步驟,但其對於後續腳位類型分類任務具有關鍵性的影響。
實驗結果顯示,與傳統基準方法相比,本研究方法在分類準確率與F1分數上均有顯著提升。整體而言,本文提出的方法有效地縮短了縮寫腳位名稱與精確類型分類之間的語意落差,並展示了結合領域專屬知識檢索與先進語言模型於產業應用上的潛力。
With the rapid advancement of Electronic Design Automation (EDA) technology, improving design efficiency and accuracy has become increasingly critical in the semiconductor industry. One persistent challenge arises from the use of abbreviated pin names in electronic component datasheets, which often leads to ambiguity and inconsistency in pin type classification.
To address this issue, we propose an end-to-end framework that integrates Retrieval-Augmented Generation (RAG) with Large Language Models (LLMs). We first construct a domain-specific vector database from datasheet content and encode each abbreviated pin name into a semantic vector. Top-k contextually relevant sentences are then retrieved and combined with the original pin name to form a dynamic prompt, which is passed to the LLM to generate multiple candidate pin descriptions.
To select the most appropriate description, we introduce a rule-based selection strategy to identify the candidate that best reflects the intended semantic meaning. Although description generation is an intermediate step, it plays a crucial role in enhancing the downstream task of pin type classification.
Experimental evaluations demonstrate that our method significantly improves classification accuracy and F1-score compared to baseline approaches. Overall, the proposed methodology bridges the gap between abbreviated pin names and precise pin type classification, and highlights the potential of integrating domain-specific retrieval with advanced language models for industrial applications.
To address this issue, we propose an end-to-end framework that integrates Retrieval-Augmented Generation (RAG) with Large Language Models (LLMs). We first construct a domain-specific vector database from datasheet content and encode each abbreviated pin name into a semantic vector. Top-k contextually relevant sentences are then retrieved and combined with the original pin name to form a dynamic prompt, which is passed to the LLM to generate multiple candidate pin descriptions.
To select the most appropriate description, we introduce a rule-based selection strategy to identify the candidate that best reflects the intended semantic meaning. Although description generation is an intermediate step, it plays a crucial role in enhancing the downstream task of pin type classification.
Experimental evaluations demonstrate that our method significantly improves classification accuracy and F1-score compared to baseline approaches. Overall, the proposed methodology bridges the gap between abbreviated pin names and precise pin type classification, and highlights the potential of integrating domain-specific retrieval with advanced language models for industrial applications.