當前,像是企業、醫院、學校內部的伺服器,個人電腦,甚至手機等裝置,都可以成為「邊緣節點」。當數據在這些邊緣節點進行運算,稱為邊緣運算;而在邊緣節點上運行 AI ,就被稱為邊緣 AI。簡單來說,就是將原本集中在遠端資料中心的運算能力,「搬家」到更靠近數據源頭的地方。
-----廣告,請繼續往下閱讀-----
那麼,為什麼需要這樣做?資料放在雲端,集中管理不是更方便嗎?對,就是不好。
當數據在這些邊緣節點進行運算,稱為邊緣運算;而在邊緣節點上運行 AI ,就被稱為邊緣 AI。/ 圖片來源:MotionArray
第一個不好是物理限制:「延遲」。 即使光速已經非常快,數據從你家旁邊的路口傳到幾千公里外的雲端機房,再把分析結果傳回來,中間還要經過各種網路節點轉來轉去…這樣一來一回,就算只是幾十毫秒的延遲,對於需要「即刻反應」的 AI 應用,比如說工廠裡要精密控制的機械手臂、或者自駕車要判斷路況時,每一毫秒都攸關安全與精度,這點延遲都是無法接受的!這是物理距離與網路架構先天上的限制,無法繞過去。
第三個挑戰:系統「可靠性」與「韌性」。 如果所有運算都仰賴遠端的雲端時,一旦網路不穩、甚至斷線,那怎麼辦?很多關鍵應用,像是公共安全監控或是重要設備的預警系統,可不能這樣「看天吃飯」啊!邊緣處理讓系統更獨立,就算暫時斷線,本地的 AI 還是能繼續運作與即時反應,這在工程上是非常重要的考量。 所以你看,邊緣運算不是科學家們沒事找事做,它是順應數據特性和實際應用需求,一個非常合理的科學與工程上的最佳化選擇,是我們想要抓住即時數據價值,非走不可的一條路!
邊緣 AI 的實戰魅力:從工廠到倉儲,再到你的工作桌
知道要把 AI 算力搬到邊緣了,接下來的問題就是─邊緣 AI 究竟強在哪裡呢?它強就強在能夠做到「深度感知(Deep Perception)」!
-----廣告,請繼續往下閱讀-----
所謂深度感知,並非僅僅是對數據進行簡單的加加減減,而是透過如深度神經網路這類複雜的 AI 模型,從原始數據裡面,去「理解」出更高層次、更具意義的資訊。
以研華科技為例,旗下已有多項邊緣 AI 的實戰應用。以工業瑕疵檢測為例,利用物件偵測模型,快速將工業產品中的瑕疵挑出來,而且由於 AI 模型可以使用同一套參數去檢測,因此品管上能達到一致性,減少人為疏漏。尤其在高產能工廠中,檢測速度必須快、狠、準。研華這套 AI 系統每分鐘最高可處理 8,000 件產品,替工廠節省大量人力,同時確保品質穩定。這樣的效能來自於一台僅有膠囊咖啡機大小的邊緣設備—IPC-240。
這樣的效能來自於一台僅有膠囊咖啡機大小的邊緣設備—IPC-240。/ 圖片提供:研華科技
此外,在智慧倉儲場域,研華與威剛合作,研華與威剛聯手合作,在 MIC-732AO 伺服器上搭載輝達的 Nova Orin 開發平台,打造倉儲系統的 AMR(Autonomous Mobile Robot) 自走車。這跟過去在倉儲系統中使用的自動導引車 AGV 技術不一樣,AMR 不需要事先規劃好路線,靠著感測器偵測,就能輕鬆避開障礙物,識別路線,並且將貨物載到指定地點存放。
當硬體資源有限,大模型卻越來越龐大,「幫模型減肥」就成了邊緣 AI 的重要課題。/ 圖片來源:MotionArray
模型剪枝(Model Pruning)—基於重要性的結構精簡
建立一個 AI 模型,其實就是在搭建一整套類神經網路系統,並訓練類神經元中彼此關聯的參數。然而,在這麼多參數中,總會有一些參數明明佔了一個位置,卻對整體模型沒有貢獻。既然如此,不如果斷將這些「冗餘」移除。
這就像種植作物的時候,總會雜草叢生,但這些雜草並不是我們想要的作物,這時候我們就會動手清理雜草。在語言模型中也會有這樣的雜草存在,而動手去清理這些不需要的連結參數或神經元的技術,就稱為 AI 模型的模型剪枝(Model Pruning)。
-----廣告,請繼續往下閱讀-----
模型剪枝的效果,大概能把100變成70這樣的程度,說多也不是太多。雖然這樣的縮減對於提升效率已具幫助,但若我們要的是一個更小幾個數量級的模型,僅靠剪枝仍不足以應對。最後還是需要從源頭著手,採取更治本的方法:一開始就打造一個很小的模型,並讓它去學習大模型的知識。這項技術被稱為「知識蒸餾」,是目前 AI 模型壓縮領域中最具潛力的方法之一。
知識蒸餾(Knowledge Distillation)—讓小模型學習大師的「精髓」
想像一下,一位經驗豐富、見多識廣的老師傅,就是那個龐大而強悍的 AI 模型。現在,他要培養一位年輕學徒—小型 AI 模型。與其只是告訴小型模型正確答案,老師傅 (大模型) 會更直接傳授他做判斷時的「思考過程」跟「眉角」,例如「為什麼我會這樣想?」、「其他選項的可能性有多少?」。這樣一來,小小的學徒模型,用它有限的「腦容量」,也能學到老師傅的「智慧精髓」,表現就能大幅提升!這是一種很高級的訓練技巧,跟遷移學習有關。
但是!即使模型經過了這些科學方法的優化,變得比較「苗條」了,要真正在邊緣環境中處理如潮水般湧現的資料,並且高速、即時、穩定地運作,仍然需要一個夠強的「引擎」來驅動它們。也就是說,要把這些經過科學千錘百鍊、但依然需要大量計算的 AI 模型,真正放到邊緣的現場去發揮作用,就需要一個強大的「硬體平台」來承載。
-----廣告,請繼續往下閱讀-----
邊緣 AI 的強心臟:SKY-602E3 的三大關鍵
像研華的 SKY-602E3 塔式 GPU 伺服器,就是扮演「邊緣 AI 引擎」的關鍵角色!那麼,它到底厲害在哪?
三、可靠性 SKY-602E3 用的是伺服器等級的主機板、ECC 糾錯記憶體、還有備援電源供應器等等。這些聽起來很硬的規格,背後代表的是嚴謹的工程可靠性設計。畢竟在邊緣現場,系統穩定壓倒一切!你總不希望 AI 分析跑到一半就掛掉吧?這些設計確保了部署在現場的 AI 系統,能夠長時間、穩定地運作,把實驗室裡的科學成果,可靠地轉化成實際的應用價值。
-----廣告,請繼續往下閱讀-----
研華的 SKY-602E3 塔式 GPU 伺服器,體積僅如後背包大小,卻能輕鬆支援語言模型的運作,實現高效又安全的 AI 解決方案。/ 圖片提供:研華科技
眼壓過高者:一篇研究將 17 位受試者分為兩組, A 組的 11 位受試者在開始服用葡萄糖胺前就有測量過眼壓; B 組的 6 位受試者則是在服用葡萄糖胺前沒有測量過眼壓。兩組中每位病患服用的葡萄糖胺劑量不同,但大部分患者每天是服用 1500 毫克。結果發現, A 組的受試者在開始服用葡萄糖胺之後,眼壓顯著提升,停止服用之後眼壓則顯著下降; B 組患者則是在停止服用葡萄糖胺後眼壓顯著下降,若將兩組合併作統計分析,同樣發現停止服用葡萄糖胺之後眼壓有顯著下降的情況( Ref 18 )。
Juan Salazar, Luis Bello, Mervin Chávez, Roberto Añez, Joselyn Rojas, and Valmore Bermúdez. Glucosamine for Osteoarthritis: Biological Effects, Clinical Efficacy, and Safety on Glucose Metabolism. Arthritis Volume 2014, Article ID 432463, 13 pages.
Marlene Fransen, Maria Agaliotis, Lillias Nairn, Milana Votrubec, Lisa Bridgett, Steve Su, Stephen Jan, Lyn March, John Edmonds, Robyn Norton, Mark Woodward, Richard Day. Ann Rheum Dis 2015;74:851–858.
Marc C. Hochberg, Roy D. Altman, Karine Toupin April, Maria Benkhalti, Gordon Guyatt, Jessie Mcgowan, Tanveer Towheed, Vivian Welch, George Wells, and Peter Tugwell. American College of Rheumatology 2012 Recommendations for the Use of Nonpharmacologic and Pharmacologic Therapies in Osteoarthritis of the Hand, Hip, and Knee. Arthritis Care & Research Vol. 64, No. 4, April 2012, pp 465–474.
Cibulka MT, White DM, Woehrle J, Harris-Hayes M, Enseki K, Fagerson TL, Slover J, Godges JJ. Hip pain and mobility deficits–hip osteoarthritis: clinical practice guidelines linked to the international classification of functioning, disability, and health from the orthopaedic section of the American Physical Therapy Association. J Orthop Sports Phys Ther. 2009 Apr;39(4):A1-25.
American Academy of Orthopaedic Surgeons. Treatment of Osteoarthritis of the Knee. 2nd ed Rosemont, IL: American Academy of Orthopaedic Surgeons; 2013.
The National Collaborating Centre for Chronic Conditions. Osteoarthritis: National Clinical guideline for Care and Management in Adults. London, UK: Royal College of Physicians; 2008.
W Zhang, M Doherty, B F Leeb, L Alekseeva, N K Arden, J W Bijlsma, F Dinc¸er, K Dziedzic, HJ H¨auselmann, G Herrero-Beaumont, P Kaklamanis, S Lohmander, E Maheu, E Martı´n-Mola, K Pavelka, L Punzi, S Reiter, J Sautner, J Smolen, G Verbruggen, I Zimmermann-Go´rska. EULAR evidence based recommendations for the management of hand osteoarthritis: Report of a Task Force of the EULAR Standing Committee for International Clinical Studies Including Therapeutics (ESCISIT). Ann Rheum Dis 2007;66:377–388.
W Zhang, M Doherty, N Arden, B Bannwarth, J Bijlsma, K-P Gunther, H J Hauselmann, G Herrero-Beaumont, K Jordan, P Kaklamanis, B Leeb, M Lequesne, S Lohmander, B Mazieres, E Martin-Mola, K Pavelka, A Pendleton, L Punzi, B Swoboda, R Varatojo, G Verbruggen, I Zimmermann-Gorska, M Dougados. EULAR evidence based recommendations for the management of hip osteoarthritis: report of a task force of the EULAR Standing Committee for International Clinical Studies Including Therapeutics (ESCISIT). Ann Rheum Dis 2005;64:669–681.
K M Jordan, N K Arden, M Doherty, B Bannwarth, J W J Bijlsma, P Dieppe, K Gunther, H Hauselmann, G Herrero-Beaumont, P Kaklamanis, S Lohmander, B Leeb, M Lequesne, B Mazieres, E Martin-Mola, K Pavelka, A Pendleton, L Punzi, U Serni, B Swoboda, G Verbruggen, I Zimmerman-Gorska, M Dougados. EULAR Recommendations 2003: an evidence based approach to the management of knee osteoarthritis: Report of a Task Force of the Standing Committee for International Clinical Studies Including Therapeutic Trials (ESCISIT) Ann Rheum Dis 2003;62:1145–1155.
W. Zhang Ph.D., R. W. Moskowitz M.D., G. Nuki M.B., F.R.C.P.*, S. Abramson M.D., R. D. Altman M.D., N. Arden M.D., S. Bierma-Zeinstra M.Sc., Ph.D., K. D. Brandt M.D., P. Croft M.D., M. Doherty M.D., M. Dougados M.D., M. Hochberg M.D., M.P.H., D. J. Hunter M.D., K. Kwoh M.D., L. S. Lohmander M.D. and P. Tugwell M.D. OARSI recommendations for the management of hip and knee osteoarthritis, Part II: OARSI evidence-based, expert consensus guidelines.
S. C. Vlad, M. P. LaValley, T. E. McAlindon, and D. T. Felson, “Glucosamine for pain in osteoarthritis: why do trial results differ?” Arthritis and Rheumatism, vol. 56, no. 7, pp. 2267–2277, 2007.
S. Persiani Ph.D., E. Roda M.D., L. C. Rovati M.D., M. Locatelli Ph.D., G. Giacovelli Ph.D. and A. Roda Ph.D. Glucosamine oral bioavailability and plasma pharmacokinetics after increasing doses of crystalline glucosamine sulfate in man. OsteoArthritis and Cartilage (2005) 13, 1041-1049.
Zohreh Mazloom, Mohammad Hossein Dabbaghmanesh, Mahsa Moazen, Sara Bagheri. Supplementation with Glucosamine Has no Adverse Effects on Glycemic Level and Insulin Resistance in Type 2 Diabetic Patients. J Health Sci Surveillance Sys October 2015; Vol 3; No 4.
The Effect of Glucosamine Chondroitin Supplementation on Glycosylated Hemoglobin Levels in Patients With Type 2 Diabetes Mellitus. Scroggie DA1, Albright A, Harris MD. Arch Intern Med. 2003 Jul 14;163(13):1587-90.
Yvonne M.M. Gommans, BSc,Jos Runhaar, PhD, Marloes L. Jacobs, MD, PhD, Sita M.A. Bierma-Zeinstra, PhD. The Effect of Prolonged Glucosamine Usage on HbA1c Levels and New-Onset Diabetes Mellitus in Overweight and Obese Middle-Aged Women. The American Journal of Medicine. December 2016.
Marc C Hochberg, Johanne Martel-Pelletier, Jordi Monfort, Ingrid Möller, Juan Ramón Castillo, Nigel Arden, Francis Berenbaum, Francisco J Blanco, Philip G Conaghan, Gema Doménech, Yves Henrotin, Thomas Pap, Pascal Richette, Allen Sawitzke, Patrick du Souich, Jean-Pierre Pelletier, on behalf of the MOVES Investigation Group. Combined chondroitin sulfate and glucosamine for painful knee osteoarthritis: a multicentre, randomised, double-blind, non-inferiority trial versus celecoxib. Ann Rheum Dis 2015;0:1–8. doi:10.1136/annrheumdis-2014-206792.
Jean-Louis Bresson, Albert Flynn, Marina Heinonen, Karin Hulshof, Hannu Korhonen, Pagona Lagiou, Martinus Løvik, Rosangela Marchelli, Ambroise Martin, Bevan Moseley, Hildegard Przyrembel, Seppo Salminen, John (Sean) J Strain, Stephan Strobel, Inge Tetens, Henk van den Berg, Hendrik van Loveren and Hans Verhagen. Opinion of the safety of glucosamine hydrochloride from Aspergillus niger as food ingredient. The EFSA Journal (2009) 1099, 1-19.
Ryan K.Murphy, DO, MA, Lecea Ketzler, DO, Robert D. E. Rice,MD, SandraM. Johnson, MD, Mona S. Doss, MA, Edward H. Jaccoma, MD. Oral Glucosamine Supplements as a Possible Ocular Hypertensive Agent. JAMA Ophthalmology July 2013 Volume 131, Number 7 P. 955.
Takeshi Katayoshi, Masakatsu Kageyama, Riyo Kobashi, Junko Minakuchi, Naoko Suzuki b, Tsuyoshi Takara, Tomofumi Negishi, Seika Kamohara, Kentaro Naito. Efficacy and safety of a compound supplement containing glucosamine, chondroitin, and five bioactive ingredients in volunteers with knee joint pain. Personalized Medicine Universe xxx (2016) 1-5.