第 206 期·中文精讀

伊尚·米斯拉:計算機視覺中的自監督深度學習

Ishan Misra: Self-Supervised Deep Learning in Computer Vision

計算機視覺研究員講述自監督學習如何利用無標註資料訓練模型,以及對比學習與表徵學習的最新進展。

官方音訊00:00 / --:--
中文精讀由 AI 基於原始訪談改寫,非官方翻譯,可能存在偏差或錯誤;表述以原音訊與官方文稿為準。說明

1966年,MIT 的 Seymour Papert 提交過一份提案,名字叫“暑期視覺專案”(Summer Vision Project)。計劃很簡單:找十個學生,用一個夏天,把計算機視覺解決掉。

五十五年過去了,人們還在解決它。

Jitendra Malik 是伯克利教授,也是計算機視覺領域從深度學習革命之前到之後都站在中心的人物。他把這種反覆出現的低估歸結成一個詞:成功第一步的謬誤(fallacy of the successful first step)。

視覺裡有很多問題,拿到 50% 的解法只需要一分鐘,從 50% 到 90% 可能要一天,從 90% 到 99% 可能要五年,從 99% 到 99.99%,也許你這輩子都見不到。(Jitendra Malik)

這個比例不可能對每個問題都成立,但它解釋了為什麼過去半個世紀裡,計算機視覺的從業者自己也一再覺得“快做完了”,然後發現真正的困難才剛剛開始。

為什麼我們會覺得看圖很簡單

視覺看起來簡單,因為它的絕大部分工作發生在意識之外。

人看東西的時候,不覺得自己在做運算。挑一句話說出來,腦子裡會有一種“我在組織語言”的感覺,解一道題、下一盤棋也一樣,那種吃力是能被感知到的。但看這件事,從光訊號進入視網膜,到在大腦裡構建出“桌上有一個杯子”,全過程無聲完成,中間不需要主觀參與。

Malik 提到了一個讓人沒法反駁的事實:很大一部分大腦皮層專門用於視覺處理,在其它靈長類身上也是如此。

如果一塊器官要佔用相當於幾個足球場面積的皮層去承擔,它就不可能是小問題。感覺不到困難,是因為提供這份計算力的部分沒把人叫醒。

這裡有一個副作用。做語言、下棋、推理的人,因為能感覺到吃力,反而會謹慎。做視覺的人,因為感覺不到吃力,容易輕視。這個不對稱,使計算機視覺領域在幾十年裡反覆自我欺騙。

自動駕駛和那個滑板者

把“視覺被低估”這句話放到具體場景裡,最容易看的就是自動駕駛。

特斯拉的 Autopilot 主要靠八個攝像頭,核心是一個多工神經網路,共享主體表徵,分出多個任務頭。有人叫它 HydraNet。這套架構的思路是純視覺、端到端學習。

Malik 的態度是分層的。他對近期實現完全自動駕駛是悲觀的。硬體和演算法架構都不是瓶頸所在,瓶頸在邊緣情況。他說,會有那麼 0.01% 的情況,需要相當複雜的認知推理才能處理。

他舉了一個自己開特斯拉遇到的例子。路上有一個滑板者,系統反應錯了。

它沒能預測這個滑板者接下來要幹什麼。這需要更高層次的認知理解:滑板者通常會怎麼做,普通行人的常規行為在這裡不夠用。(Jitendra Malik)

人工駕駛的時候,一個司機看到滑板者,會下意識地做出一點行為上的調整。滑板者可能會突然變向,可能會嘗試一個動作,也可能會跳下來。這種調整不在駕考教科書裡,是從無數次觀察到的人的行為中建立起來的。對行人適用的駕駛策略,放在滑板者身上會失效。

Malik 由此把感知重新定義了一遍。他不認為感知只負責“看到現在”,感知必須預測下一步會發生什麼。

感知要交代的重點在於接下來會發生什麼。此刻的狀態已經完成,已經過去了。人關心未來,因為人要在未來採取行動。(Jitendra Malik)

如果把人類駕駛員拆開來看,會發現更有意思的事。一個普通的十六歲高中生,上駕校第一天,他不會重新學習視覺。他從 0 歲到 16 歲,已經把三維世界、遮擋、物體在不同視角下的樣子、直觀物理、人類的常規行為模式,全部建立起來了。Malik 說,這些能力的大部分在兩歲前就掌握了。

那麼駕校在教什麼?

他們不需要從頭重新認識視覺世界,那套東西早就在了。他們學的是控制,是怎麼把轉向和剎車做得平順,是交通場景中的常規感。(Jitendra Malik)

一名十六歲的學員是帶著“視覺天才”的底子上路的。這套底子讓他即使從沒在路上遇到過某個特定情況,比如前面的卡車突然開啟後擋板掉下來一堆雜物,也不會徹底蒙掉,因為他擁有大量通用的視覺知識可以遷移。

今天用幾十億張圖訓練出來的自動駕駛系統,缺的正是這份已經內建好的底子。

“白板學習”這個詞,值得單獨拎出來

Malik 用了一個拉丁詞來描述當下的主流正規化:tabula rasa,白板。

今天的深度學習系統,絕大多數是白板式的有監督學習。系統被丟進一堆經驗裡,從零開始學一種輸入到輸出的對映。假設這個對映是物體分類,那就是幾十萬張圖片配標籤,學完輸出一個分類器。

人類學習根本不是這樣。

一個嬰兒在兩歲前就建立起關於這個世界的龐大先驗:世界是三維的、物體會被別的物體遮住、人會有意圖、球放手會掉下去。這些先驗沒有哪個大人系統教過,是他在和世界互動的過程中自己搭出來的。等到了學開車的年紀,他已經在這些先驗上又累積了十幾年的經驗。

白板學習的極限在哪裡,Malik 沒有直接說。但他指出了方向:需要新的學習機制,靠堆更多資料、換更大模型解決不了根本問題。

這一點值得停下來想一想。很多人的直覺是,只要資料足夠多、算力足夠大,視覺問題總有一天會被懟出來。這種直覺有個前提假設很難成立:一個從零開始、只靠標註資料訓練的系統,很難自發長出人類幼兒在兩年裡建立的那種關於世界的結構性先驗。

兒童身上有六件事可以學

Malik 引用了一篇論文,Smith 和 Gasser 寫的,文章裡總結了兒童學習的六個特點:多模態、漸進、身體參與、探索、社交、使用語言。他說這些其實在兒童發展心理學裡是常識,只不過在計算機視覺和 AI 圈裡不算常識,他的角色是搭橋。

六個裡面最根本的,他覺得是多模態。他舉的例子非常具體。

一個孩子拿起一個球,在手裡玩。這一刻他同時獲得兩路訊號:一是觸覺,來自指尖、拇指、手掌上的受體,稀疏地勾勒出這個球的三維形狀;二是視覺,看到整個球的樣子。這兩路訊號落在完全不同的空間裡,一個是皮膚接觸的空間,一個是畫素空間。但孩子知道它們指向同一個物體。

這就產生了一個非常強的交叉校準訊號。而且它是自監督的,不需要媽媽在旁邊指著球說“這叫球”,孩子自己就能建立這兩路訊號之間的對應。

另一個 Malik 同樣看重的多模態,是視覺和聽覺。

桌上的玻璃碗掉下來碎了,我聽到碎裂聲,看到玻璃碎片。好,我把兩者之間的關係建立起來了。(Jitendra Malik)

這一類研究在最近幾年變成了熱點,比如視覺輔助的雞尾酒會效應問題:把多個說話人分開,這在純音訊裡是經典難題,一旦引入視覺資訊,難度就大幅下降。

多模態的關鍵在時間這個維度上。在某一刻 T1,聽覺域有訊號,視覺域有訊號,既然它們同時發生,就很可能有因果關係。時間是免費的監督訊號,不需要人來打標籤。

視覺是語言的長輩

談到語言和視覺的關係,Malik 的回答乾脆利落。

非常清楚,視覺是長輩。視覺是更根本的能力,它在語言之前出現。(Jitendra Malik)

他的論證分兩條線走。

一條是系統發生(phylogeny),也就是進化時間。大約五億年前,第一批多細胞動物出現,它們已經能夠移動,也具備某種形式的“看”。視覺和運動在最早的階段就是互相配合的:移動能把生物帶到別處去找食物,但得知往哪走,需要視覺。所以感知和行動從第一天起就綁在一起。

再往後,大約七百萬年前,人類這一支從其它靈長類裡分出來。這條線上出現了直立行走,雙手被解放,可以做更精細的操作、造工具。這個階段大腦容量也大幅增長。Malik 說,這個時期的人類祖先已經有相當細緻的視覺智慧了:知道世界由物體構成、物體之間有特定關係、觀察到過物體間的因果互動、能理解空間和時間。這些全部是視覺和感知的產物。

語言出現的時間不好定,但幾乎肯定在這之後。沒有任何其它猿類具備人類的語言能力,這一點 Chomsky 說得沒錯,它是人類獨有的。但這個獨有能力,是在一個已經擁有空間、時間、物體、因果關係這些概念的底座上,才長出來的。

另一條線是個體發生(ontogeny),也就是一個人的成長。嬰兒先有對世界的視覺理解,才有語言。所有人類語言裡的構造,都依賴空間和時間這些概念。而空間和時間從哪裡來?Malik 說,只能從我們所在世界裡的感知和行動來。

圖靈測試這條路,走偏了

圖靈在 1950 年那篇《計算機器與智慧》裡提出用對話來判斷機器智慧。Malik 認為這在當時是合理的,但今天不該繼續沿著這條路走。

圖靈測試已經不適合用來引導 AI 研究了。它會把研究引向一條路:造一個能騙你幾分鐘的聊天機器人。(Jitendra Malik)

他的替代方案是列一張清單,十項各不相同的任務。造工具、在空間裡導航、理解視覺場景、讀小說、根據小說裡的內容回答任意問題。

其中他最看重的一項,是給盲人做助手。

真正好的測試,是做盲人的助手。假設有一個盲人,我需要去幫助他。(Jitendra Malik)

這個測試的精妙之處在於,它把視覺和行動強制耦合在一起。一個好的視覺助手不能只說“前面有一個桌子”,它得判斷盲人此刻要幹嘛,得描述有用的資訊,得在危險逼近時及時提醒。這種任務看上去樸素,但難度非常高。它要求系統理解場景、理解意圖、理解時間上的緊迫性。

從能力清單的角度,Malik 認為最難的仍然是語言。

他說視覺是父母、語言是孩子,但他也說過語言是最硬的那塊骨頭。這句話初看有點矛盾,視覺是長輩,怎麼晚輩反而更難?

理解這一點,要回到“難”這個詞的定義。視覺雖然佔用了大量皮層,但它的迴路、任務邊界、物理先驗都相對明確。語言不一樣。語言理解需要大量常識、意圖推斷、世界知識、語境把握,這些能力中有些可能連人類研究者都說不清楚底層機制是什麼。Malik 把語言理解歸到“已知的未知加未知的未知”這一類裡,難度不在一個量級上。

計算機視覺的希爾伯特問題

1900 年,希爾伯特提出 23 個數學問題,其中最著名的黎曼猜想至今未解。Malik 在 2015 年做過一個報告,題目大意就是“計算機視覺的希爾伯特問題”。讓他今天再點一遍,他挑了兩個。

第一個是長時段影片理解。給一段影片,理解裡面正在發生什麼,不只識別動作,還要理解參與者的目標、意圖、可能的下一步。

短時長的動作分類,比如你是坐著、站著還是在接球,這些現在能做了。哪怕不夠準,50% 的準確率,明年能做到 65%。但長時段的影片理解,今天我做不到。(Jitendra Malik)

難點在於它必須和認知能力接上。追蹤多個主體、理解主體各自的目標、預測這些主體之間接下來會發生什麼,已經超出感知系統的邊界。

他舉了一個經典例子:去餐館。

走進去、有人帶位、服務員過來、遞選單、點菜、菜上來、最後賬單送過來。這個過程有隱性劇本。上世紀 70 年代的 AI 圈對此有專門的術語,叫 frame、script、schema。當時的做法是手工寫規則:餐館場景有幾個角色、有哪幾個階段、每個階段會發生什麼。有了這套指令碼,只看一段描述就能做出大量推斷。

Malik 認為這套知識今天依然必不可少,只是不能再手工編碼。手工編碼太脆弱,換個場景就崩。

學習版的指令碼存在嗎?他相信存在,因為孩子就是這樣學會的。沒有哪個媽媽會系統性地教孩子“餐館的流程分幾個階段、角色有哪幾類”。孩子跟著家裡去餐館十次,自然就有了餐館的 schema。

第二個希爾伯特問題是三維理解。表面上看這個問題像是三十年前就解決了,因為多視幾何早就能做三維重建。但 Malik 說今天的系統還不夠。

目前有兩類技術,彼此割裂。一類是多視幾何,用多張圖片做立體視覺或從運動中恢復結構。這類技術在只有一張照片時完全失效,因為它依賴多個視角。另一類是單視角的三維估計,用有監督學習,訓練時有物體的 CAD 模型作為標籤。

問題在於,CAD 模型從來不是人類學習三維的方式。人的大腦裡沒被注入過 CAD 模型。人類學三維的方式,是拿著一個物體翻來覆去地看,從不同角度看,然後內化出一個可以用來預測新視角的內部表徵。下次只看到一張照片,照片裡甚至不是同一把椅子,也能大致猜出它的三維形狀。

這就是他想要的東西:邊移動邊學習三維,把重建能力藏在表徵裡,不以 CAD 模型的形式存在,而以“能預測新視角”的能力存在。你給它一個位置,它能告訴你從那個位置會看到什麼。

黑箱這件事,人類自己也是

聊到這種表徵無法解釋、無法視覺化、無法互動的時候,Malik 的反應出人意料地平靜。

我覺得這沒關係。首先,人類本身就是不可解釋的。一個人對另一個人,從來不是完全可解釋的。(Jitendra Malik)

但他沒有一刀切。他給可解釋性劃出了一個明確的適用邊界:醫療診斷這類涉及切身後果的場景。

假設一個程式給出診斷,按這個診斷,病人應該選治療方案 A 還是 B。這時候病人有權知道,這個預測是基於什麼資料得出的。如果訓練資料全部來自三四十歲的美國男性,把它用在一個完全不同的族群身上,誤差範圍有多大?這個預測該打幾分折扣?

Malik 把可解釋性的訴求,重新定義成了一件更樸素的事:給出誤差範圍,給出對決策質量的感覺。系統需要老實交代自己有多可靠。把內部機制翻譯成人話,他沒把這件事當成目標。

而在另一類場景裡,他願意犧牲可解釋性。他相信會出現效能極強、內部完全是黑箱的系統。這已經是正在發生的事。

他順著這個話題開了個玩笑,但這個玩笑裡有一點真東西。人和人之間也是黑箱。那些有魅力的人,並不會真的把腦內機制開啟給對面看,他們只是講了一個足夠有說服力的故事,讓對方相信“我知道自己在幹什麼”。

照這個邏輯推下去,神經網路也不用真的解釋自己的內部。它只需要生成一個說得通的故事。

人類級別的智慧,什麼時候能到

Malik 把這個問題拆成兩半。

原則上能不能做到?答案是能。

未來二十年內能不能做到?答案是不能。

他借用了 Rumsfeld 那句話,已知的未知和未知的未知。在他看來,視覺和機器人領域的大部分問題屬於前者:他知道難點在哪,知道大概要往哪走,只是還沒走到。而自然語言理解和高階認知屬於後者:不只不知道答案,連問題本身的結構都還沒摸清。

既然問題都還沒定義清楚,給出任何時間表都是幻想。

他對“十年內出現 AGI”這類恐懼的判斷很直接:這些恐懼建立在對技術進展速度完全不現實的模型上。

但有件事他願意承認。他自己也被深度學習的效果驚到過。2010 年的時候,他絕不會相信這套東西能這麼有效。當時的數學理論告訴他,凸最佳化可靠,有唯一全域性最優的時候,梯度下降能收斂。而深度學習面對的是非凸、變數數巨大、嚴重過引數化的系統,按理說不該穩定工作。可它就是穩定地工作了,從各種各樣的初始化出發,在一大類問題上都管用。

這個正向的意外讓他對未知的未知保留了一點樂觀:也許哪天會冒出一個根本性的突破,把所有事情變簡單。

但他也提醒了另一面:AI 的歷史大部分時間,是進展比預期更慢,而非更快。所以賭“會有驚喜”可以,但不能把驚喜當成計劃的前提。

該擔心的年份在日曆上找不到

關於 AI 風險,Malik 的立場很清楚:

今天就需要擔心 AI,不必等到 AGI 出現的那一天。AI 已經被部署在很多系統裡了。(Jitendra Malik)

偏見、不公平的決策、自動駕駛撞到行人,這些都是已經在發生的事。他提到亞利桑那那起 Uber 事故,說那不是 AGI 乾的,那是一個還很笨的智慧,但它確實殺了人。

他把這看成一件連續的事,就像所有工程和科學進步一樣:能力越大,責任越大。它需要長期持續盯著,不會某一天突然降臨。

說到今天的實際風險,話題滑到了推薦系統。

Twitter、Facebook、YouTube 背後都是推薦演算法,它們在決定你看到什麼資訊、接觸到什麼觀點。人們的生活已經被這些演算法深度塑造。而隨著演算法越來越聰明,它們對大量人群的影響力會進一步增強。

這個視角值得多想一層。很多人焦慮的“超級智慧”,形態可能不是科幻電影裡那種。它可能是一個推薦演算法,每天在幾十億人面前做幾十億次微小決策,每一次都在影響一個人接下來幾十分鐘的注意力、情緒和判斷。這個系統已經在執行,已經具備相當大的影響力,而人們對它的理解非常有限。

Malik 的另一個觀察更細:YouTube 正在用計算機視覺做一件很難的事,理解影片內容,把影片和最能從中受益的人連起來。這件事本身是中性甚至正向的,但它發展的方向有很多種可能,其中一些可能有害。

什麼叫好問題

Malik 在伯克利做了三十四年教授。他被引用超過十八萬次,帶出了許多計算機視覺、電腦科學和 AI 領域的重要研究者。

問他怎麼做到的,他先謙讓了一下。他說在頂尖大學任教有一種“福氣”帶來的成分:非常聰明、非常勤奮、非常有創造力的學生主動來敲門,這份功勞不能全算在自己頭上。

那他到底加了什麼?

他說自己一直在教學生怎麼挑問題。

在科學裡,短期的成功總是取決於技術能力。但長期的進展,真正取決於你問的問題對不對,關注的題目對不對。(Jitendra Malik)

這種“品味”沒法量化。他引了英國科學家 Peter Medawar 的說法,那位拿過諾貝爾獎的學者有本書專門講這個:研究是一門關於“可解性”的藝術。

問題還沒被解決,但要夠得著。它得有一塊柔軟的下腹部,有一個地方你可以下刀。缺了這個直覺,你可能對著一個鐵板問題撞一輩子,什麼也沒撞出來。

這種判斷力的價值不止在學生時代。Malik 說他最自豪的一點,是學生在他這裡畢業二十年之後,依然在做很好的研究。原因就在於那種“這個問題還沒解決,但它可解”的嗅覺,被學生帶走了。

他還說自己能提供的第二樣東西是知識面的寬度。他花了不少時間研究心理學、神經科學、相關的應用數學。這樣他能幫學生看到一些看似不相干的東西之間的聯絡。聰明學生往往非常深,能沿著一條路徑鑽得很深,但看得窄。他提供的是那點淺而廣的東西,配合學生的深而窄,有點價值。

這話聽上去謙虛,但分量不輕。計算機視覺領域很多重要的轉向,比如把感知和行動重新繫結、從兒童發展心理學裡借來學習正規化,正是這種跨領域寬度帶來的。他自己在這期對話裡的狀態也是這樣,從心理學跳到神經科學再跳回電腦科學,來回自如,不顯得刻意。

感知存在的理由,就是指導行動

如果非要給計算機視覺找一個“總問題”,Malik 的答案不是某個具體任務。

他把視線拉回五億年前的寒武紀。第一批多細胞動物出現,它們能移動,也能以某種方式看到東西。這兩件事互相成全:移動把它們帶到有食物的地方,但要往哪裡走,得靠看。

感知和行動,從那一天起就一起進化。

感知存在的理由是指導行動。生物系統裡,感知如果不配合行動,就沒有任何用處。(Jitendra Malik)

今天人類的視覺系統已經高度進化,可以做很多和行動無關的事,比如判斷一幅畫的美學價值。Malik 半開玩笑地說,這勉強也算在指導行動:指導你在這場拍賣裡出多少錢。但底層邏輯仍然沒變,這套系統最初的用途就是行動。

從這裡出發,他對當下分門別類的做法提出了批評。分割、三維重建、物體檢測,這些任務在會議論文和資料集上是分開的,每個都有自己的 benchmark。但這些劃分是科學家強加的結構,不是系統內部真實的樣子。真實發生的事是所有這些過程同時在跑,而且是一起跑,因為它們最初服務於同一個目的:幫你行動。

他說自己從 2010 年前後開始推這個觀點。當時的計算機視覺圈把每個問題當成孤立問題,配一個資料集,各自刷分。他不喜歡這種做法,因為他想看到這些任務之間的連線。心理學把視覺拆成感覺、知覺、認知三層,對應低階、中階、高階處理,但這個劃分和人們真正關心的任務對不上。所以他用力推廣一個框架,按資訊流把識別、重建、重組串起來,讓從業者意識到它們本來就連在一起。

後來的發展有點意外。深度學習革命之後,這個架構變得極其自然:共享主體表徵,多個任務頭同時輸出。他不用再宣講了,它已經成了預設的做法。

影片落後物體識別大約十年

靜態影象在計算機視覺史上佔了絕對主導,這件事有它的歷史原因。

Malik 把這段歷史講得很實在。七八十年代算力、記憶體、儲存全都不夠,很多技術選擇的背後是硬體限制,與理論偏好無關。當時一個常見的做法是先做邊緣檢測,然後把原圖扔掉。一張 256×256 的灰度圖,與其存著每個畫素的亮度值,不如只保留亮度劇變的位置。這是一種極大的壓縮,賭的是“人類能看懂線稿,那機器也行”,這樣就能省下大量計算。

今天沒人這麼幹了。ConvNet 直接處理畫素,因為已經沒有那個限制。

但影片仍然被研究得不夠。原因還是算力。Malik 說,如果是谷歌、Facebook、亞馬遜這種規模的公司,做全量影片處理依然極其困難,YouTube 全量內容上的操作,基本還得依賴九十年代的那些基礎技術。但作為一個研究者,你有更多空間,可以訓練大網路、用相對大的影片資料集。

他給了一個可以量化的判斷:

在我看來,影片識別大概落後物體識別十年。你可以對比資料:現在有挑戰性的影片資料集上,動作分類準確率大概 30%,這差不多是 2009 年物體檢測的水平。(Jitendra Malik)

這個對比很直觀。2009 年的物體檢測是什麼狀態?那時候深度學習還沒全面接管,整個領域還在摸路。今天影片理解就站在那個位置。至於追趕是不是也要十年,他說不好說,希望不用那麼久。

早期視覺:壓縮率為王

回到最底層。從影象的統計特性裡,能得到什麼?

Malik 說,人們已經知道影象裡有大量冗餘,因此可以做大幅壓縮。這件事在生物系統裡是剛需:人眼大約有 10 的 8 次方個感光細胞,而視神經只有大約 10 的 6 次方根纖維,壓縮比接近 100 比 1。不壓縮,訊號根本傳不出去。

人工神經網路的前幾層,做的正是類似的壓縮。有幾家公司在用神經網路做影象和影片壓縮,其中一家是他以前的學生創辦的,效果相當有意思。這些成功的背後,本質是影象和影片的統計規律。

但 Malik 補了一句關鍵的區分:這種壓縮是低層的。當一個人看到一張貓的圖片,只需要說一句“這是貓”,那是語義層面的壓縮,和前面說的統計壓縮完全不在一個層次上。前者在畫素層面去掉冗餘,後者在意義層面做概括。今天的系統把這兩件事分得很開,低層的做得不錯,高層的還在摸索。

自下而上和自上而下,兩條腿現在只邁了一條

這就引到了 Malik 對當下視覺系統最實質的批評之一。

現在的網路,執行時是純自下而上的。從原始畫素出發,一層層前饋,最後輸出“貓”或“非貓”。也就是說,推理那一刻,資訊只往一個方向流。

但訓練的時候,又是極度自上而下的。要給物體分割,就得準備好每個物體的邊界:這是貓的輪廓、這是椅子的輪廓、這是馬的輪廓。這些標註裡塞進了太多先驗知識。

這兩件事他都覺得不理想。

生物系統的做法不一樣。大腦裡從視網膜到 IT 區,可能只有七層左右,比 ResNet-50 的五十層淺得多。但大腦有反饋連線,資訊可以往回傳。Malik 說,這套反饋機制可能就是人類處理模糊刺激的方式:不確定的時候,用高層預期去修正低層判斷。

有人會說,前饋深層網路和帶反饋的淺層網路在功能上等價:反饋跑三輪,展開就變成三倍深度的前饋網路。道理沒錯,Malik 也承認這一點,但他覺得這個主題值得更深入地研究。功能等價不代表性質相同,用哪種方式實現,會影響學習效率、資料需求、泛化能力。

在訓練端,他的不滿更直接。人類分割物體用不著那麼多標註。人類看影片,看到馬在動,就能判斷“這些畫素屬於同一個東西”。格式塔心理學家早就給這個原理起了名字:共同命運原則(common fate)。同一個運動模式下的畫素,屬於同一個實體。

這是一條自下而上的線索,天然存在,不需要人標註。而今天的分割系統,幾乎完全靠自上而下的監督訊號。

在我看來,機器視覺裡這種自上而下和自下而上的互動,算是解決了,但我不覺得這個解法讓人滿意。我希望兩個階段都各帶一點對方的東西。(Jitendra Malik)

他還給了一個很實際的論證,用來回應那些不在乎“像不像人”的工程師:如果他的路線能走通,你要的訓練資料會少得多。這是一筆明確的成本賬,不需要講哲學。

分割的真正價值,不在畫輪廓

在外行看來,分割就是給物體畫輪廓,像個力氣活。Malik 認為它的意義要深得多。

分割能支撐這樣一個判斷:這一堆畫素是一個物體,甚至不需要知道這個物體叫什麼,也不需要知道它有什麼屬性。(Jitendra Malik)

他給這件事起了個名字:實體化(entification)。把一個東西從背景裡剝出來,變成一個實體。這個能力一旦有了,學詞就容易了。孩子已經能把世界切成一個個實體,媽媽說“把瓶子拿過來”,或者“貓今天怪怪的”,“瓶子”和“貓”這兩個詞就能對應到孩子已經建立好的實體上。媽媽不需要專門指著一個一個物體教名字。

弱監督之所以能起作用,前提是你已經能把世界拆成實體。

這只是哲學層面的意義。實際應用上,分割同樣關鍵。Malik 的團隊做過腦外傷的 CT 影像分析,放射科醫生需要精確勾畫出可能有出血的位置。這種場景裡,粗略的框選沒用,必須到畫素級。

不過他也強調,分割會牽涉認知,會隨著經驗修正。最麻煩的是非剛性物體,比如人和動物。人的各個部位可以獨立運動,人還穿衣服,顏色一塊一塊地變。要把這些畫素判斷成同一個實體,難度比分割一張桌子高得多。早期計算機視覺犯過一個錯,把分割當成純自下而上的感知任務,這低估了它的複雜性。

三個 R 是怎麼咬合在一起的

Malik 用一個三角框架來組織整個視覺問題。識別(recognition)、重建(reconstruction)、重組(reorganization)。

識別是最容易理解的一個,也是外界通常認為的“計算機視覺在做的事”:給影象打標籤。是貓還是狗?是哪一種狗的哪個品種?或者更抽象一點,是動物嗎?

重建是反向圖形學。圖形學是給定三維場景的計算機表示,渲染成一張圖。重建是把方向反過去:給一張圖,推斷它來自什麼場景、什麼物體、什麼視角、什麼材質。用 Malik 的話說,這一步是在腦子裡建造外部世界的模型。

重組,或者叫知覺組織,是最容易被忽略的一環。它處理的是“找出這些實體”。影象在內部會先被組織成一個個實體,以及實體之間的關係,而不會停留在“一堆畫素網格”的層次上。

這三者構成一個互相咬合的三角,流水線式的序列關係不足以描述它們。分割只解決其中一小部分,但它是讓另外兩個轉起來的起點。實體被切出來了,識別才有物件可標;實體被切出來了,重建才知道要給哪些東西建模。

Malik 說,這個框架推了十年,今天已經不需要推了。深度學習時代的多頭架構、共享表徵,天然就是這個樣子。他要做的事從“佈道”變成了“解釋這件事為什麼本來就是這樣”。

大腦和晶片,兩筆不同的賬

關於算力,Malik 有一個講了二十年的觀點。

早年他的說法是:我們的計算機算力還不夠,比不上人腦。這個判斷有一層很具體的物理基礎。神經元很慢,比電晶體慢得多,但神經元數量巨大、連線極其密集。矽片上的電晶體納秒級切換,快得離譜,但連線數通常少得多。兩邊在做一筆完全不同的交易:一邊用海量低速單元換連線密度,一邊用極速單元換速度。

到了 2020 年前後,這個判斷需要更新了。按 Hans Moravec 在九十年代做的估算,今天最先進的 GPU 叢集,算力可能已經和大腦處於可比量級。但 Malik 加了一個限定:不是同一種風格。

最關鍵的差異在能效。GPU 的計算方式比人腦、比其他生物系統耗能高得多。這個差距不是小事。要構建真正大規模、能在現實世界裡持續執行的系統,能效必須解決。這既是環保問題,也是可行性問題:一臺耗電到一個城市級別的機器,沒法塞進一個身體裡到處跑。

模擬這條路,他願意下注

如果要用“像孩子一樣學習”的路線,有個繞不過去的條件:孩子能主動玩資料。他能拿起一個物體翻來覆去地看,能自己選擇看什麼,能設計小實驗。這在機器學習裡叫主動學習。

Malik 認為這條路要兩條腿走。

一條是真實的機器人。有質量的、有轉動慣量的、有摩擦的物理身體,在真實世界裡做動作。機器人透過一連串動作,學會自己身體的性質。

另一條是模擬。他所在的 Facebook AI Research 團隊做過一個叫 Habitat 的環境,是一個視覺上相當逼真的室內和城市場景模擬器。你在裡面走動,就能得到和真實場景接近的畫面。他預期下一代模擬器會在力、質量、觸覺互動上也做到逼真。到那時候,就有了一個可以隨便折騰的沙盒。

為什麼“能行動”這麼重要?Malik 給了一個非常明確的技術理由:這是打破相關性與因果性壁壘的一條路。

因果推斷裡最可靠的手段是隨機對照試驗,醫學界就是這麼幹的:選一批情況,對其中一部分施加干預,對另一部分不施加,然後比對結果。而孩子每天都在做小規模的隨機對照試驗。他把東西扔下去,看它掉;他推一下,看它滾。每一次都在修正自己對世界的因果模型。

他提到同事 Alison Gopnik 有本書叫《搖籃裡的科學家》(The Scientist in the Crib)。書名裡的類比他很喜歡:科學家想建立因果模型,科學家做對照實驗,孩子在做同樣的事。

關於 Judea Pearl 那句“深度學習不過是曲線擬合”,Malik 不完全同意。他的態度是:因果性重要,但它不是一個銀彈,不是一條單一原則,裡面有很多不同的側面。用行動去做干預實驗,是其中很實在的一面。

他對模擬沒有根本性的懷疑。計算機圖形學已經證明了這條路能走多遠:八十年代只能做視覺上的真實,頭髮和毛皮都做不了,後來做出來了;再往後物理互動也做不了,一碗玻璃掉下來碎裂,後來也做出來了。圖形學的人在正向渲染上,從光學互動做到物理互動,一路推進。反過來做模擬器,沒理由做不到,只是有些部分非常吃算力,但辦法會一點點找出來。

這裡有個容易被忽略的推論。如果模擬真的能做到物理層面逼真,那麼“資料不夠”這個困擾視覺領域多年的問題,會變成“模擬夠不夠真”的問題。前者靠收集,成本隨時間線性增長;後者靠建模,一旦對了,邊際成本趨近於零。這也是為什麼 Malik 願意在模擬上下注,它是有槓桿的那一端。

從“沒用的小圈子”到“成熟但沒做完”

訪談裡有一個問題,問的是如果能讓 Malik 重活人生中的某個瞬間,他會選哪一個。

他沒挑某個具體時刻,把視線放到了很長的時間裡。他說自己運氣很好,因為科學研究裡很大一部分是“在對的時間出現在對的地方”。你可以選一個太早的問題,撞得頭破血流,因為成功的前提條件根本不存在。也可以選一個已經徹底成熟的領域,只能在瑣碎的邊角上做文章,一層套一層的花邊。

他說自己趕上了一個特別的時間窗。入行的時候,計算機視覺就是個“瘋狂、絕對沒用、什麼都做不了”的小圈子。三十四年教授生涯裡,他一路看著這個領域變成能真正解決實際問題、能給生物學和天文學提供工具的東西。

有人開玩笑說,五百年後的人大概會笑話他把今天這個領域稱為“成熟”。他說這很有可能。

這個自我定位裡有種罕見的誠實。他既不為自己的領域辯護,也不唱衰它,就是把它放在一個合適的位置上:比昨天成熟得多,比明天原始得多。Mature but not done,成熟了,但沒做完。

順著這個態度往下想,會發現它其實回答了前面所有問題。為什麼他要回到兒童發展心理學?因為一個沒做完的領域需要新的燃料,而現有燃料(標註資料、更大模型、更長訓練)正在變得越來越貴。為什麼他要強調感知和行動的繫結?因為行動是唯一能提供因果訊號的東西,而因果訊號是現有資料給不了的。為什麼他對近期完全自動駕駛悲觀?因為最後那 0.01% 恰恰需要他最看重的那類能力。

這些觀點不是散落的,它們指向同一個方向:視覺的下一個臺階,在資料規模和模型規模之外。

滑板者那個例子,值得再想一遍

整期對話裡,滑板者這個細節資訊密度最高。

一個系統在標準資料集上的分數再高,遇到路上一個不按常規走位的滑板者依然會錯。這種錯誤沒法靠更多標註資料直接修掉,因為標註資料解決的是“這是什麼”,而這個錯誤出在“他接下來會做什麼”。後者需要一整套關於人的行為的先驗,而這類先驗在資料標註裡是缺席的。

Malik 說,原則上只要資料夠多,這個問題可以解決。見過足夠多的滑板者,就能學到滑板者的行為模式。但他立刻加了一句:現在的視覺系統要達到人類同等的能力,需要的資料量遠遠超過人類。一個十六歲的孩子沒在路上見過幾次滑板者,就能做出合理預判;一個系統可能要看成千上萬次。

這個差距用資料量填不平,只能靠學習機制的改變來填。這也是他反覆講“白板學習”的原因:白板學習在處理邊緣情況時效率極低,而邊緣情況恰恰是安全的全部內容。

成功第一步的謬誤,在這一層上體現得最清楚。高速直線行駛的自動駕駛,九十年代就演示過了;城市道路的常規工況,最近這些年也做得不錯。剩下那點尾巴,看上去只是 1%,實際上是另一個量級的工程和科學問題。

把這些問題帶回今天的工作裡

Malik 反覆回到同一件事:人對難度的判斷,系統性地偏低。

1966 年那十個學生不算狂妄,他們只是不知道視覺的大部分工作發生在意識之下。成功第一步的謬誤,讓每一代人都以為再往前一步就到底了,結果每次都是一分鐘拿到 50%,五年拿到 99%,剩下的那點尾巴看不到頭。

他從這個觀察裡得出的建議相當樸素:承認自己站在半山腰,承認前面的路看不清,承認下一代人會覺得今天的一切都很原始。然後挑一個還沒解決但夠得著的問題,找到它柔軟的下腹部,下刀。

訪談裡還有一個細節值得一提。Malik 說,短期的成功取決於技術能力,長期的進展取決於問題選得對不對。這句話在當下這個節奏裡格外有用。AI 領域的技術迭代速度極快,任何人只要肯花時間,都能把當紅的工具用熟。真正拉開差距的,是在一堆熱門問題裡判斷出哪個還沒有被解決、但已經接近可解。這種判斷力沒有速成法,只能靠跨領域的閱讀和長期的觀察慢慢養出來。

他自己就是這種判斷力的產物。從心理學借來感知與行動的框架,從兒童發展借來學習正規化,從圖形學借來模擬的可能性,這些跨界的動作在單看時都顯得偶然,連起來才發現是一條線。

如果要把這期內容轉成自己能用的東西,可以從下面這些開始:

  • 遇到一個進展飛快的新任務,先判斷自己處在“成功第一步”的哪個位置。50% 到 90% 花一天,90% 到 99% 花五年,這個比例感能幫你決定什麼時候該加投入,什麼時候該換方向。
  • 評估一個視覺或感知系統時,別隻看標準資料集上的分數,先看它在訓練分佈之外的邊緣案例上會怎麼錯。滑板者、突然開啟的卡車後擋板,這類場景才是真實的失敗點。
  • 做多模態專案時,把時間對齊當成免費的監督訊號。視覺和聽覺在同一時刻發生的事,大機率有因果關係,這個標籤不需要人來打。
  • 模型嚴重依賴人工標註時,先問一句:人類做這個任務真的需要這麼多標註嗎?共同命運、運動一致性、跨模態校準,這些自下而上的線索往往被白白浪費。
  • 做長影片理解,把“隱式劇本”當成設計目標。餐館、地鐵、超市,每個場景都有一套預設流程,系統需要能學到這套流程,只在幾秒鐘的片段上做動作分類遠遠不夠。
  • 做三維任務時,警惕對 CAD 模型的依賴。人類靠移動和觀察內化三維結構,訓練資料的形態如果離這個過程太遠,泛化能力會受限。
  • 需要可解釋性的場景,把目標定在“給出誤差範圍和決策質量”,而非強求把內部機制翻譯成人話。人類專家同樣是黑箱,但他們能交代自己有多確定。
  • 討論 AI 風險時,把注意力從二三十年後的 AGI 挪到今天已經在執行的系統上。推薦演算法、醫療診斷、自動駕駛,這些已經在做出影響真實生活的決策。
  • 挑研究題目,用“可解性”當標準,而非“重要性”或“熱度”。問題要還沒被解決,但要有一塊柔軟的下腹部,能讓你下刀。
  • 給自己留一塊跨領域的閱讀時間。心理學、神經科學、圖形學裡那些看起來和日常工作無關的東西,往往是判斷“哪個問題值得做”時的資訊來源。
文稿來自公開 Kaggle 資料集(rajneesh231/lex-fridman-podcast-transcript),為早期自動轉錄存檔,可能存在識別錯誤。
The following is a conversation with Jitendra Malik, a professor at Berkeley and one of the seminal figures in the field of computer vision, the kind before the deep learning revolution and the kind after. He has been cited over 180,000 times and has mentored many world class researchers in computer science. Quick summary of the ads. Two sponsors, one new one which is BetterHelp and an old goodie ExpressVPN. Please consider supporting this podcast by going to betterhelp.com slash lex and signing up at expressvpn.com slash lexpod. Click the links, buy the stuff, it really is the best way to support this podcast and the journey I'm on. If you enjoy this thing, subscribe on YouTube, review it with 5 stars on Apple Podcast, support it on Patreon, or connect with me on Twitter at Lex Friedman, however the heck you spell that. As usual, I'll do a few minutes of ads now and never any ads in the middle that can break the flow of the conversation. This show is sponsored by BetterHelp, spelled H E L P help. Check it out at betterhelp.com slash lex. They figure out what you need and match you with a licensed professional therapist in under 48 hours. It's not a crisis line, it's not self help, it's professional counseling done securely online. I'm a bit from the David Goggins line of creatures, as you may know, and so have some demons to contend with, usually on long runs or all nights working, forever and possibly full of self doubt. It may be because I'm Russian, but I think suffering is essential for creation. But I also think you can suffer beautifully, in a way that doesn't destroy you. For most people, I think a good therapist can help in this, so it's at least worth a try. Check out their reviews, they're good, it's easy, private, affordable, available worldwide. You can communicate by text, any time, and schedule weekly audio and video sessions. I highly recommend that you check them out at betterhelp.com slash lex. This show is also sponsored by ExpressVPN. Get it at expressvpn.com slash lexpod to support this podcast and to get an extra three months free on a one year package. I've been using ExpressVPN for many years, I love it. I think ExpressVPN is the best VPN out there. They told me to say it, but it happens to be true. It doesn't log your data, it's crazy fast, and is easy to use, literally just one big, sexy power on button. Again, for obvious reasons, it's really important that they don't log your data. It works on Linux and everywhere else too, but really, why use anything else? Shout out to my favorite flavor of Linux, Ubuntu Mate 2004. Once again, get it at expressvpn.com slash lexpod to support this podcast and to get an extra three months free on a one year package. And now, here's my conversation with Jitendra Malik. In 1966, Seymour Papert at MIT wrote up a proposal called the Summer Vision Project to be given, as far as we know, to 10 students to work on and solve that summer. So that proposal outlined many of the computer vision tasks we still work on today. Why do you think we underestimate, and perhaps we did underestimate and perhaps still underestimate how hard computer vision is? Because most of what we do in vision, we do unconsciously or subconsciously. In human vision. In human vision. So that gives us this, that effortlessness gives us the sense that, oh, this must be very easy to implement on a computer. Now, this is why the early researchers in AI got it so wrong. However, if you go into neuroscience or psychology of human vision, then the complexity becomes very clear. The fact is that a very large part of the cerebral cortex is devoted to visual processing. And this is true in other primates as well. So once we looked at it from a neuroscience or psychology perspective, it becomes quite clear that the problem is very challenging and it will take some time. You said the higher level parts are the harder parts? I think vision appears to be easy because most of what visual processing is subconscious or unconscious. So we underestimate the difficulty, whereas when you are like proving a mathematical theorem or playing chess, the difficulty is much more evident. So because it is your conscious brain, which is processing various aspects of the problem solving behavior, whereas in vision, all this is happening, but it's not in your awareness, it's in your, it's operating below that. But it's, it still seems strange. Yes, that's true, but it seems strange that as computer vision researchers, for example, the community broadly is time and time again makes the mistake of thinking the problem is easier than it is, or maybe it's not a mistake. We'll talk a little bit about autonomous driving, for example, how hard of a vision task that is, it, do you think, I mean, what, is it just human nature or is there something fundamental to the vision problem that we, we underestimate? We're still not able to be cognizant of how hard the problem is. Yeah, I think in the early days it could have been excused because in the early days, all aspects of AI were regarded as too easy. But I think today it is much less excusable. And I think why people fall for this is because of what I call the fallacy of the successful first step. There are many problems in vision where getting 50% of the solution you can get in one minute, getting to 90% can take you a day, getting to 99% may take you five years, and 99.99% may be not in your lifetime. I wonder if that's a unique division. It seems that language, people are not so confident about, so natural language processing, people are a little bit more cautious about our ability to, to solve that problem. I think for language, people intuit that we have to be able to do natural language understanding. For vision, it seems that we're not cognizant or we don't think about how much understanding is required. It's probably still an open problem. But in your sense, how much understanding is required to solve vision? Like this, put another way, how much something called common sense reasoning is required to really be able to interpret even static scenes? Yeah. So vision operates at all levels and there are parts which can be solved with what we could call maybe peripheral processing. So in the human vision literature, there used to be these terms, sensation, perception and cognition, which roughly speaking referred to like the front end of processing, middle stages of processing and higher level of processing. And I think they made a big deal out of, out of this and they wanted to study only perception and then dismiss certain, certain problems as being quote cognitive. But really I think these are artificial divides. The problem is continuous at all levels and there are challenges at all levels. The techniques that we have today, they work better at the lower and mid levels of the problem. I think the higher levels of the problem, quote the cognitive levels of the problem are there and we, in many real applications, we have to confront them. Now how much that is necessary will depend on the application. For some problems it doesn't matter, for some problems it matters a lot. So I am, for example, a pessimist on fully autonomous driving in the near future. And the reason is because I think there will be that 0.01% of the cases where quite sophisticated cognitive reasoning is called for. However, there are tasks where you can, first of all, they are much more, they are robust. So in the sense that error rates, error is not so much of a problem. For example, let's say we are, you're doing image search, you're trying to get images based on some, some, some description, some visual description. We are very tolerant of errors there, right? I mean, when Google image search gives you some images back and a few of them are wrong, it's okay. It doesn't hurt anybody. There is no, there's not a matter of life and death. But making mistakes when you are driving at 60 miles per hour and you could potentially kill somebody is much more important. So just for the, for the fun of it, since you mentioned, let's go there briefly about autonomous vehicles. So one of the companies in the space, Tesla, is with Andre Karpathy and Elon Musk are working on a system called Autopilot, which is primarily a vision based system with eight cameras and basically a single neural network, a multitask neural network. They call it HydroNet, multiple heads, so it does multiple tasks, but is forming the same representation at the core. Do you think driving can be converted in this way to purely a vision problem and then solved with learning or even more specifically in the current approach, what do you think about what Tesla Autopilot team is doing? So the way I think about it is that there are certainly subsets of the visual based driving problem, which are quite solvable. So for example, driving in freeway conditions is quite a solvable problem. I think there were demonstrations of that going back to the 1980s by someone called Ernst Tickmans in Munich. In the 90s, there were approaches from Carnegie Mellon, there were approaches from our team at Berkeley. In the 2000s, there were approaches from Stanford and so on. So autonomous driving in certain settings is very doable. The challenge is to have an autopilot work under all kinds of driving conditions. At that point, it's not just a question of vision or perception, but really also of control and dealing with all the edge cases. So where do you think most of the difficult cases, to me, even the highway driving is an open problem because it applies the same 50, 90, 95, 99 rule where the first step, the fallacy of the first step, I forget how you put it, we fall victim to. I think even highway driving has a lot of elements because to solve autonomous driving, you have to completely relinquish the help of a human being. You're always in control so that you're really going to feel the edge cases. So I think even highway driving is really difficult. But in terms of the general driving task, do you think vision is the fundamental problem or is it also your action, the interaction with the environment, the ability to... And then the middle ground, I don't know if you put that under vision, which is trying to predict the behavior of others, which is a little bit in the world of understanding the scene, but it's also trying to form a model of the actors in the scene and predict their behavior. Yeah. I include that in vision because to me, perception blends into cognition and building predictive models of other agents in the world, which could be other agents, could be people, other agents could be other cars. That is part of the task of perception because perception always has to not tell us what is now, but what will happen because what's now is boring. It's done. It's over with. Okay? Yeah. We care about the future because we act in the future. And we care about the past in as much as it informs what's going to happen in the future. So I think we have to build predictive models of behaviors of people and those can get quite complicated. So I mean, I've seen examples of this in actually, I mean, I own a Tesla and it has various safety features built in. And what I see are these examples where let's say there is some a skateboarder, I mean, and I don't want to be too critical because obviously these systems are always being improved and any specific criticism I have, maybe the system six months from now will not have that particular failure mode. So it had the wrong response and it's because it couldn't predict what this skateboarder was going to do. Okay? And because it really required that higher level cognitive understanding of what skateboarders typically do as opposed to a normal pedestrian. So what might have been the correct behavior for a pedestrian, a typical behavior for pedestrian was not the typical behavior for a skateboarder, right? Yeah. And so therefore to do a good job there, you need to have enough data where you have pedestrians, you also have skateboarders, you've seen enough skateboarders to see what kinds of patterns of behavior they have. So it is in principle with enough data, that problem could be solved. But I think our current systems, computer vision systems, they need far, far more data than humans do for learning those same capabilities. So say that there is going to be a system that solves autonomous driving. Do you think it will look similar to what we have today, but have a lot more data, perhaps more compute, but the fundamental architecture is involved, like neural, well, in the case of Tesla autopilot is neural networks. Do you think it will look similar in that regard and we'll just have more data? That's a scientific hypothesis as to which way is it going to go. I will tell you what I would bet on. So and this is my general philosophical position on how these learning systems have been. What we have found currently very effective in computer vision in the deep learning paradigm is sort of tabula rasa learning and tabula rasa learning in a supervised way with lots and lots of... What's tabula rasa learning? Tabula rasa in the sense that blank slate, we just have the system, which is given a series of experiences in this setting and then it learns there. Now if let's think about human driving, it is not tabula rasa learning. So at the age of 16 in high school, a teenager goes into driver ed class, right? And now at that point they learn, but at the age of 16, they are already visual geniuses because from zero to 16, they have built a certain repertoire of vision. In fact, most of it has probably been achieved by age two, right? In this period of age up to age two, they know that the world is three dimensional. They know how objects look like from different perspectives. They know about occlusion. They know about common dynamics of humans and other bodies. They have some notion of intuitive physics. So they built that up from their observations and interactions in early childhood and of course reinforced through their growing up to age 16. So then at age 16, when they go into driver ed, what are they learning? They're not learning afresh the visual world. They have a mastery of the visual world. What they are learning is control, okay? They're learning how to be smooth about control, about steering and brakes and so forth. They're learning a sense of typical traffic situations. Now that education process can be quite short because they are coming in as visual geniuses. And of course in their future, they're going to encounter situations which are very novel, right? So during my driver ed class, I may not have had to deal with a skateboarder. I may not have had to deal with a truck driving in front of me where the back opens up and some junk gets dropped from the truck and I have to deal with it, right? But I can deal with this as a driver even though I did not encounter this in my driver ed class. And the reason I can deal with it is because I have all this general visual knowledge and expertise. And do you think the learning mechanisms we have today can do that kind of long term accumulation of knowledge? Or do we have to do some kind of, you know, the work that led up to expert systems with knowledge representation, you know, the broader field of artificial intelligence worked on this kind of accumulation of knowledge. Do you think neural networks can do the same? I think I don't see any in principle problem with neural networks doing it, but I think the learning techniques would need to evolve significantly. So the current learning techniques that we have are supervised learning. You're given lots of examples, x, y, y pairs and you learn the functional mapping between them. I think that human learning is far richer than that. It includes many different components. There is a child explores the world and sees, for example, a child takes an object and manipulates So the segmentation is the small part of that. So segmentation gets us going towards that. Yeah. And you kind of have this triangle where they all interact together. Yes. So how do you see that interaction in sort of reorganization is yes, finding the entities in the world. The recognition is labeling those entities and then reconstruction is what filling in the gaps. Well, for example, see, impute some 3D objects corresponding to each of these entities. That would be part of it. So adding more information that's not there in the raw data. Correct. I mean, I started pushing this kind of a view in the, around 2010 or something like that. Because at that time in computer vision, the distinction that people were just working on many different problems, but they treated each of them as a separate isolated problem with each with its own data set. And then you try to solve that and get good numbers on it. So I wasn't, I didn't like that approach because I wanted to see the connection between these. And if people divided up vision into, into various modules, the way they would do it is as low level, mid level and high level vision corresponding roughly to the psychologist's notion of sensation, perception and cognition. And I didn't, that didn't map to tasks that people cared about. Okay. So therefore I tried to promote this particular framework as a way of considering the problems that people in computer vision were actually working on and trying to be more explicit about the fact that they actually are connected to each other. And I was at that time just doing this on the basis of information flow. Now it turns out in the last five years or so in the post, the deep learning revolution that this, this architecture has turned out to be very conducive to that. Because basically in these neural networks, we are trying to build multiple representations. They can be multiple output heads sharing common representations. So in a certain sense today, given the reality of what solutions people have to this, I do not need to preach this anymore. It is, it is just there. It's part of the sedation space. So speaking of neural networks, how much of this problem of computer vision of reorganization recognition can be reconstruction? How much of it can be learned end to end, do you think? Sort of set it and forget it. Just plug and play, have a giant data set, multiple, perhaps multimodal, and then just learn the entirety of it. Well, so I think that currently what that end to end learning means nowadays is end to end supervised learning. And that I would argue is too narrow a view of the problem. I like this child development view, this lifelong learning view, one where there are certain capabilities that are built up and then there are certain capabilities which are built up on top of that. So that's what I believe in. So I think end to end learning in the supervised setting for a very precise task to me is kind of is sort of a limited view of the learning process. Got it. So if we think about beyond purely supervised, looking back to children, you mentioned six lessons that we can learn from children of be multimodal, be incremental, be physical, explore, be social, use language. Can you speak to these, perhaps picking one that you find most fundamental to our time today? Yeah. So I mean, I should say to give a due credit, this is from a paper by Smith and Gasser. And it reflects essentially, I would say common wisdom among child development people. It's just that this is not common wisdom among people in computer vision and AI and machine learning. So I view my role as trying to bridge the two worlds. So let's take an example of a multimodal. I like that. So multimodal, a canonical example is a child interacting with an object. So then the child holds a ball and plays with it. So at that point, it's getting a touch signal. So the touch signal is getting the notion of 3D shape, but it is sparse. And then the child is also seeing a visual signal. And these two, so imagine these are two in totally different spaces. So one is the space of receptors on the skin of the fingers and the thumb and the palm. And then these map onto these neuronal fibers are getting activated somewhere. These lead to some activation in somatosensory cortex. I mean, a similar thing will happen if we have a robot hand. And then we have the pixels corresponding to the visual view, but we know that they correspond to the same object. So that's a very, very strong cross calibration signal. And it is self supervisory, which is beautiful. There's nobody assigning a label. The mother doesn't have to come and assign a label. The child doesn't even have to know that this object is called a ball. That the child is learning something about the three dimensional world from this signal. I think tactile and visual, there is some work on, there is a lot of work currently on audio and visual. And audio visual, so there is some event that happens in the world and that event has a visual signature and it has a auditory signature. So there is this glass bowl on the table and it falls and breaks and I hear the smashing sound and I see the pieces of glass. Okay, I've built that connection between the two, right? We have people, I mean, this has become a hot topic in computer vision in the last couple of years. There are problems like separating out multiple speakers, right? Which was a classic problem in auditions. They call this the problem of source separation or the cocktail party effect and so on. But just try to do it visually when you also have, it becomes so much easier and so much more useful. So the multimodal, I mean, there's so much more signal with multimodal and you can use that for some kind of weak supervision as well. Yes, because they are occurring at the same time in time. So you have time which links the two, right? So at a certain moment, T1, you've got a certain signal in the auditory domain and a certain signal in the visual domain, but they must be causally related. Yeah, that's an exciting area. Not well studied yet. Yeah, I mean, we have a little bit of work at this, but so much more needs to be done. So this is a good example. Be physical, that's to do with like the one thing we talked about earlier that there's a embodied world. To mention language, use language. So Noam Chomsky believes that language may be at the core of cognition, at the core of everything in the human mind. What is the connection between language and vision to you? What's more fundamental? Are they neighbors? Is one the parent and the child, the chicken and the egg? Oh, it's very clear. It is vision, which is the parent. Which is the fundamental ability, okay. It comes before you think vision is more fundamental than language. Correct. And you can think of it either in phylogeny or in ontogeny. So phylogeny means if you look at evolutionary time, right? So we have vision that developed 500 million years ago, okay. Then something like when we get to maybe like five million years ago, you have the first bipedal primate. So when we started to walk, then the hands became free. And so then manipulation, the ability to manipulate objects and build tools and so on and so forth. So you said 500,000 years ago? No, sorry. The first multicellular animals, which you can say had some intelligence arose 500 million years ago. Million. Okay. And now let's fast forward to say the last seven million years, which is the development of the hominid line, right, where from the other primates, we have the branch which leads on to modern humans. Now there are many of these hominids, but the ones which, you know, people talk about Lucy because that's like a skeleton from three million years ago. And we know that Lucy walked, okay. So at this stage you have that the hand is free for manipulating objects and then the ability to manipulate objects, build tools and the brain size grew in this era. So okay, so now you have manipulation. Now we don't know exactly when language arose. But after that. Because no apes have, I mean, so I mean Chomsky is correct in that, that it is a uniquely human capability and we primates, other primates don't have that. But so it developed somewhere in this era, but it developed, I would, I mean, argue that it probably developed after we had this stage of humans, I mean, the human species already able to manipulate and hands free much bigger brain size. And for that, there's a lot of vision has already had, had to have developed. So the sensation and the perception may be some of the cognition. Yeah. So we, we, we, so those, so, so that vision, so the world, so there, so, so these ancestors of ours, you know, three, four million years ago, they had, they had special intelligence. So they knew that the world consists of objects. They knew that the objects were in certain relationships to each other. They had observed causal interactions among objects. They could move in space. So they had space and time and all of that. So language builds on that substrate. So language has a lot of, I mean, I mean, the none, all human languages have constructs which depend on a notion of space and time. Where did that notion of space and time come from? It had to come from perception and action in the world we live in. Yeah. Well, you've referred to the spatial intelligence. Yeah. Yeah. So to linger a little bit, we'll mention Turing and his mention of, we should learn from children. Nevertheless, language is the fundamental piece of the test of intelligence that Turing proposed. Yes. What do you think is a good test of intelligence? Are you, what would impress the heck out of you? Is it fundamentally natural language or is there something in vision? I think, I wouldn't, I don't think we should have created a single test of intelligence. So just like I don't believe in IQ as a single number, I think generally there can be many capabilities which are correlated perhaps. So I think that there will be, there will be accomplishments which are visual accomplishments, accomplishments which are accomplishments in manipulation or robotics, and then accomplishments in language. But I do believe that language will be the hardest nut to crack. Really? Yeah. So what's harder, to pass the spirit of the Turing test or like whatever formulation will make it natural language, convincingly a natural language, like somebody you would want to have a beer with, hang out and have a chat with, or the general natural scene understanding? You think language is the tougher problem? I think, I'm not a fan of the, I think, I think Turing test, that Turing as he proposed the test in 1950 was trying to solve a certain problem. Yeah, imitation. Yeah. And, and I think it made a lot of sense then. Where we are today, 70 years later, I think, I think we should not worry about that. I think the Turing test is no longer the right way to channel research in AI, because that, it takes us down this path of this chat bot, which can fool us for five minutes or whatever. Okay. I think I would rather have a list of 10 different tasks. I mean, I think there are tasks which, there are tasks in the manipulation domain, tasks in navigation, tasks in visual scene understanding, tasks in reading a story and answering questions based on that. I mean, so my favorite language understanding task would be, you know, reading a novel and being able to answer arbitrary questions from it. Okay. Right. I think that to me, and this is not an exhaustive list by any means. So I would, I think that that's what we, where we need to be going to. And each of these, on each of these axes, there's a fair amount of work to be done. So on the visual understanding side, in this intelligence Olympics that we've set up, what's a good test for one of many of visual scene understanding? Do you think such benchmarks exist? Sorry to interrupt. No, there aren't any. I think, I think essentially to me, a really good aid to the blind. So suppose there was a blind person and I needed to assist the blind person. So ultimately, like we said, vision that aids in the action in a survival in this world, maybe in the simulated world. Maybe easier to measure performance in a simulated world, what we are ultimately after is performance in the real world. So David Hilbert in 1900 proposed 23 open problems in mathematics, some of which are still unsolved, most important, famous of which is probably the Riemann hypothesis. You've thought about and presented about the Hilbert problems of computer vision. So let me ask, what do you today, I don't know when the last year you presented that in 2015, but versions of it, you're kind of the face and the spokesperson for computer vision. It's your job to state what the open problems are for the field. So what today are the Hilbert problems of computer vision, do you think? Let me pick one which I regard as clearly unsolved, which is what I would call long form video understanding. So we have a video clip and we want to understand the behavior in there in terms of agents, their goals, intentionality and make predictions about what might happen. So that kind of understanding which goes away from atomic visual action. So in the short range, the question is, are you sitting, are you standing, are you catching a ball? That we can do now, or even if we can't do it fully accurately, if we can do it at 50%, maybe next year we'll do it at 65% and so forth. But I think the long range video understanding, I don't think we can do today. And it blends into cognition, that's the reason why it's challenging. So you have to track, you have to understand the entities, you have to understand the entities, you have to track them and you have to have some kind of model of their behavior. Correct. And their behavior might be, these are agents, so they are not just like passive objects, but they're agents, so therefore they would exhibit goal directed behavior. Okay, so this is one area. Then I will talk about understanding the world in 3D. This may seem paradoxical because in a way we have been able to do 3D understanding even like 30 years ago, right? But I don't think we currently have the richness of 3D understanding in our computer vision system that we would like. So let me elaborate on that a bit. So currently we have two kinds of techniques which are not fully unified. So they are the kinds of techniques from multi view geometry that you have multiple pictures of a scene and you do a reconstruction using stereoscopic vision or structure from motion. But these techniques do not, they totally fail if you just have a single view because they are relying on this multiple view geometry. Okay, then we have some techniques that we have developed in the computer vision community which try to guess 3D from single views. And these techniques are based on supervised learning and they are based on having a training time 3D models of objects available. And this is completely unnatural supervision, right? That's not, CAD models are not injected into your brain. Okay, so what would I like? What I would like would be a kind of learning as you move around the world notion of 3D. So we have our succession of visual experiences and from those we, so as part of that I might see a chair from different viewpoints or a table from different viewpoints and so on. Now as part that enables me to build some internal representation. And then next time I just see a single photograph and it may not even be of that chair, it's of some other chair. And I have a guess of what it's 3D shape is like. So you're almost learning the CAD model, kind of. Yeah, implicitly. Implicitly. I mean, the CAD model need not be in the same form as used by computer graphics programs. Hidden in the representation. It's hidden in the representation, the ability to predict new views. And what I would see if I went to such and such position. By the way, on a small tangent on that, are you okay or comfortable with neural networks that do achieve visual understanding that do, for example, achieve this kind of 3D understanding and you don't know how they, you're not able to interest, you're not able to visualize or understand or interact with the representation. So the fact that they're not or may not be explainable. Yeah, I think that's fine. To me that is, so let me put some caveats on that. So it depends on the setting. So first of all, I think the humans are not explainable. So that's a really good point. So we, one human to another human is not fully explainable. I think there are settings where explainability matters and these might be, for example, questions on medical diagnosis. So I'm in a setting where maybe the doctor, maybe a computer program has made a certain diagnosis and then depending on the diagnosis, perhaps I should have treatment A or treatment B, right? So now is the computer program's diagnosis based on data, which was data collected off for American males who are in their 30s and 40s and maybe not so relevant to me. Maybe it is relevant, you know, et cetera, et cetera. I mean, in medical diagnosis, we have major issues to do with the reference class. So we may have acquired statistics from one group of people and applying it to a different group of people who may not share all the same characteristics. The data might have, there might be error bars in the prediction. So that prediction should really be taken with a huge grain of salt. But this has an impact on what treatments should be picked, right? So there are settings where I want to know more than just, this is the answer. But what I acknowledge is that, so in that sense, explainability and interpretability may matter. It's about giving error bounds and a better sense of the quality of the decision. Where I'm willing to sacrifice interpretability is that I believe that there can be systems which can be highly performant, but which are internally black boxes. And that seems to be where it's headed. Some of the best performing systems are essentially black boxes, fundamentally by their construction. You and I are black boxes to each other. Yeah. So the nice thing about the black boxes we are is, so we ourselves are black boxes, but we're also, those of us who are charming are able to convince others, like explain the black, what's going on inside the black box with narratives of stories. So in some sense, neural networks don't have to actually explain what's going on inside. They just have to come up with stories, real or fake that convince you that they know what's going on. And I'm sure we can do that. We can create those stories, neural networks can create those stories. Yeah. And the transformer will be involved. Do you think we will ever build a system of human level or superhuman level intelligence? We've kind of defined what it takes to try to approach that, but do you think that's within our reach? The thing that we thought we could do, what Turing thought actually we could do by year 2000, right? What do you think we'll ever be able to do? So I think there are two answers here. One question, one answer is in principle, can we do this at some time? And my answer is yes. The second answer is a pragmatic one. Do you think we will be able to do it in the next 20 years or whatever? And to that my answer is no. So of course that's a wild guess. I think that, you know, Donald Rumsfeld is not a favorite person of mine, but one of his lines was very good, which is about known unknowns and unknown unknowns. So in the business we are in, there are known unknowns and we have unknown unknowns. So I think with respect to a lot of what's the case in vision and robotics, I feel like we have known unknowns. So I have a sense of where we need to go and what the problems that need to be solved are. I feel with respect to natural language, understanding and high level cognition, it's not just known unknowns, but also unknown unknowns. So it is very difficult to put any kind of a timeframe to that. Do you think some of the unknown unknowns might be positive in that they'll surprise us and make the job much easier? So fundamental breakthroughs? I think that is possible because certainly I have been very positively surprised by how effective these deep learning systems have been because I certainly would not have believed that in 2010. I think what we knew from the mathematical theory was that convex optimization works. When there's a single global optima, then these gradient descent techniques would work. Now these are nonlinear systems with non convex systems. Huge number of variables, so over parametrized. And the people who used to play with them a lot, the ones who are totally immersed in the lore and the black magic, they knew that they worked well, even though they were... Really? I thought like everybody... No, the claim that I hear from my friends like Yann LeCun and so forth is that they feel that they were comfortable with them. But the community as a whole was certainly not. And I think to me that was the surprise that they actually worked robustly for a wide range of problems from a wide range of initializations and so on. And so that was certainly more rapid progress than we expected. But then there are certainly lots of times, in fact, most of the history of AI is when we have made less progress at a slower rate than we expected. So we just keep going. I think what I regard as really unwarranted are these fears of AGI in 10 years and 20 years and that kind of stuff, because that's based on completely unrealistic models of how rapidly we will make progress in this field. So I agree with you, but I've also gotten the chance to interact with very smart people who really worry about existential threats of AI. And I, as an open minded person, am sort of taking it in. Do you think if AI systems in some way, the unknown unknowns, not super intelligent AI, but in ways we don't quite understand the nature of super intelligence, will have a detrimental effect on society? Do you think this is something we should be worried about or we need to first allow the unknown unknowns to become known unknowns? I think we need to be worried about AI today. I think that it is not just a worry we need to have when we get that AGI. I think that AI is being used in many systems today. And there might be settings, for example, when it causes biases or decisions which could be harmful. I mean, decisions which could be unfair to some people or it could be a self driving cars which kills a pedestrian. So AI systems are being deployed today, right? And they're being deployed in many different settings, maybe in medical diagnosis, maybe in a self driving car, maybe in selecting applicants for an interview. So I would argue that when these systems make mistakes, there are consequences. And we are in a certain sense responsible for those consequences. So I would argue that this is a continuous effort. It is we and this is something that in a way is not so surprising. It's about all engineering and scientific progress which great power comes great responsibility. So as these systems are deployed, we have to worry about them and it's a continuous problem. I don't think of it as something which will suddenly happen on some day in 2079 for which I need to design some clever trick. I'm saying that these problems exist today and we need to be continuously on the lookout for worrying about safety, biases, risks, right? I mean, the self driving car kills a pedestrian and they have, right? I mean, this Uber incident in Arizona, right? It has happened, right? This is not about AGI. In fact, it's about a very dumb intelligence which is still killing people. The worry people have with AGI is the scale. But I think you're 100% right is like the thing that worries me about AI today and it's happening in a huge scale is recommender systems, recommendation systems. So if you look at Twitter or Facebook or YouTube, they're controlling the ideas that we have access to, the news and so on. And that's a fundamental machine learning algorithm behind each of these recommendations. And they, I mean, my life would not be the same without these sources of information. I'm a totally new human being and the ideas that I know are very much because of the internet, because of the algorithm that recommend those ideas. And so as they get smarter and smarter, I mean, that is the AGI is that's the algorithm that's recommending the next YouTube video you should watch has control of millions of billions of people that that algorithm is already super intelligent and has complete control of the population, not a complete, but very strong control. For now we can turn off YouTube, we can just go have a normal life outside of that. But the more and more that gets into our life, it's that algorithm we start depending on it in the different companies that are working on the algorithm. So I think it's, you're right, it's already there. And YouTube in particular is using computer vision, doing their hardest to try to understand the content of videos so they could be able to connect videos with the people who would benefit from those videos the most. And so that development could go in a bunch of different directions, some of which might be harmful. So yeah, you're right, the threats of AI are here already and we should be thinking about them. On a philosophical notion, if you could, personal perhaps, if you could relive a moment in your life outside of family because it made you truly happy or it was a profound moment that impacted the direction of your life, what moment would you go to? I don't think of single moments, but I look over the long haul. I feel that I've been very lucky because I feel that, I think that in scientific research, a lot of it is about being at the right place at the right time. And you can work on problems at a time when they're just too premature. You butt your head against them and nothing happens because the prerequisites for success are not there. And then there are times when you are in a field which is all pretty mature and you can only solve curlicues upon curlicues. I've been lucky to have been in this field which for 34 years, well actually 34 years as a professor at Berkeley, so longer than that, which when I started in it was just like some little crazy, absolutely useless field which couldn't really do anything to a time when it's really, really solving a lot of practical problems, has offered a lot of tools for scientific research because computer vision is impactful for images in biology or astronomy and so on and so forth. And we have, so we have made great scientific progress which has had real practical impact in the world. And I feel lucky that I got in at a time when the field was very young and at a time when it is, it's now mature but not fully mature. It's mature but not done. I mean, it's really still in a productive phase. Yeah, I think people 500 years from now would laugh at you calling this field mature. That is very possible. Yeah. So, but you're also, lest I forget to mention, you've also mentored some of the biggest names of computer vision, computer science and AI today. So many questions I could ask, but really is what, what is it, how did you do it? What does it take to be a good mentor? What does it take to be a good guide? Yeah, I think what I feel, I've been lucky to have had very, very smart and hardworking and creative students. I think some part of the credit just belongs to being at Berkeley. Those of us who are at top universities are blessed because we have very, very smart and capable students coming on, knocking on our door. So I have to be humble enough to acknowledge that. But what have I added? I think I have added something. What I have added is, I think what I've always tried to teach them is a sense of picking the right problems. So I think that in science, in the short run, success is always based on technical competence. You're, you know, you're quick with math or you are whatever. I mean, there's certain technical capabilities which make for short range progress. Long range progress is really determined by asking the right questions and focusing on the right problems. And I feel that what I've been able to bring to the table in terms of advising these students is some sense of taste of what are good problems, what are problems that are worth attacking now as opposed to waiting 10 years. What's a good problem? If you could summarize, is that possible to even summarize, like what's your sense of a good problem? I think, I think I have a sense of what is a good problem, which is there is a British scientist, in fact, he won a Nobel Prize, Peter Medover, who has a book on this. And basically he calls it, research is the art of the soluble. So we need to sort of find problems which are not yet solved, but which are approachable. And he sort of refers to this sense that there is this problem which isn't quite solved yet, but it has a soft underbelly. There is some place where you can, you know, spear the beast. And having that intuition that this problem is ripe is a good thing because otherwise you can just beat your head and not make progress. So I think that is important. So if I have that and if I can convey that to students, it's not just that they do great research while they're working with me, but that they continue to do great research. So in a sense, I'm proud of my students and their achievements and their great research even 20 years after they've ceased being my student. So it's in part developing, helping them develop that sense that a problem is not yet solved, but it's solvable. Correct. The other thing which I have, which I think I bring to the table, is a certain intellectual breadth. I've spent a fair amount of time studying psychology, neuroscience, relevant areas of applied math and so forth. So I can probably help them see some connections to disparate things, which they might not have otherwise. So the smart students coming into Berkeley can be very deep, they can think very deeply, meaning very hard down one particular path, but where I could help them is the shallow breadth, but they would have the narrow depth, but that's of some value. Well, it was beautifully refreshing just to hear you naturally jump to psychology back to computer science in this conversation back and forth. That's actually a rare quality and I think it's certainly for students empowering to think about problems in a new way. So for that and for many other reasons, I really enjoyed this conversation. Thank you so much. It was a huge honor. Thanks for talking to me. It's been my pleasure. Thanks for listening to this conversation with Jitendra Malik and thank you to our sponsors, BetterHelp and ExpressVPN. Please consider supporting this podcast by going to betterhelp.com slash Lex and signing up at expressvpn.com slash LexPod. Click the links, buy the stuff. That's how they know I sent you and it really is the best way to support this podcast and the journey I'm on. If you enjoy this thing, subscribe on YouTube, review it with five stars on Apple podcast, support it on Patreon or connect with me on Twitter at Lex Friedman. Don't ask me how to spell that. I don't remember it myself. And now let me leave you with some words from Prince Mishkin in The Idiot by Dostoevsky. Beauty will save the world. Thank you for listening and hope to see you next time. it in his hand and therefore gets to see the object from different points of view. And the child has commanded the movement. So that's a kind of learning data, but the learning data has been arranged by the child. And this is a very rich kind of data. The child can do various experiments with the world. So there are many aspects of sort of human learning, and these have been studied in child development by psychologists. And what they tell us is that supervised learning is a very small part of it. There are many different aspects of learning. And what we would need to do is to develop models of all of these and then train our systems with that kind of a protocol. So new methods of learning, some of which might imitate the human brain, but you also in your talks have mentioned sort of the compute side of things, in terms of the difference in the human brain or referencing Moravec, Hans Moravec. So do you think there's something interesting, valuable to consider about the difference in the computational power of the human brain versus the computers of today in terms of instructions per second? Yes, so if we go back, so this is a point I've been making for 20 years now. And I think once upon a time, the way I used to argue this was that we just didn't have the computing power of the human brain. Our computers were not quite there. And I mean, there is a well known trade off, which we know that neurons are slow compared to transistors, but we have a lot of them and they have a very high connectivity. Whereas in silicon, you have much faster devices, transistors switch at the order of nanoseconds, but the connectivity is usually smaller. At this point in time, I mean, we are now talking about 2020, we do have, if you consider the latest GPUs and so on, amazing computing power. And if we look back at Hans Moravec type of calculations, which he did in the 1990s, we may be there today in terms of computing power comparable to the brain, but it's not in the of the same style, it's of a very different style. So I mean, for example, the style of computing that we have in our GPUs is far, far more power hungry than the style of computing that is there in the human brain or other biological entities. Yeah. And that the efficiency part is, we're going to have to solve that in order to build actual real world systems of large scale. Let me ask sort of the high level question, taking a step back. How would you articulate the general problem of computer vision? Does such a thing exist? So if you look at the computer vision conferences and the work that's been going on, it's often separated into different little segments, breaking the problem of vision apart into whether segmentation, 3D reconstruction, object detection, I don't know, image capturing, whatever. There's benchmarks for each. But if you were to sort of philosophically say, what is the big problem of computer vision? Does such a thing exist? Yes, but it's not in isolation. So for all intelligence tasks, I always go back to sort of biology or humans. And if we think about vision or perception in that setting, we realize that perception is always to guide action. Action for a biological system does not give any benefits unless it is coupled with action. So we can go back and think about the first multicellular animals, which arose in the Cambrian era, you know, 500 million years ago. And these animals could move and they could see in some way. And the two activities helped each other. Because how does movement help? Movement helps that because you can get food in different places. But you need to know where to go. And that's really about perception or seeing, I mean, vision is perhaps the single most perception sense. But all the others are equally are also important. So perception and action kind of go together. So earlier, it was in these very simple feedback loops, which were about finding food or avoid avoiding becoming food if there's a predator running, trying to, you know, eat you up, and so forth. So we must, at the fundamental level, connect perception to action. Then as we evolved, perception became more and more sophisticated because it served many more purposes. And so today we have what seems like a fairly general purpose capability, which can look at the external world and build a model of the external world inside the head. We do have that capability. That model is not perfect. And psychologists have great fun in pointing out the ways in which the model in your head is not a perfect model of the external world. They create various illusions to show the ways in which it is imperfect. But it's amazing how far it has come from a very simple perception action loop that you exist in, you know, an animal 500 million years ago. Once we have this, these very sophisticated visual systems, we can then impose a structure on them. It's we as scientists who are imposing that structure, where we have chosen to characterize this part of the system as this quote, module of object detection or quote, this module of 3D reconstruction. What's going on is really all of these processes are running simultaneously and they are running simultaneously because originally their purpose was in fact to help guide action. So as a guiding general statement of a problem, do you think we can say that the general problem of computer vision, you said in humans, it was tied to action. Do you think we should also say that ultimately the goal, the problem of computer vision is to sense the world in a way that helps you act in the world? Yes. I think that's the most fundamental, that's the most fundamental purpose. We have by now hyper evolved. So we have this visual system which can be used for other things. For example, judging the aesthetic value of a painting. And this is not guiding action. Maybe it's guiding action in terms of how much money you will put in your auction bid, but that's a bit stretched. But the basics are in fact in terms of action, but we evolved really this hyper, we have hyper evolved our visual system. Actually just to, sorry to interrupt, but perhaps it is fundamentally about action. You kind of jokingly said about spending, but perhaps the capitalistic drive that drives a lot of the development in this world is about the exchange of money and the fundamental action is money. If you watch Netflix, if you enjoy watching movies, you're using your perception system to interpret the movie, ultimately your enjoyment of that movie means you'll subscribe to Netflix. So the action is this extra layer that we've developed in modern society perhaps is fundamentally tied to the action of spending money. Well certainly with respect to interactions with firms. So in this homo economicus role, when you're interacting with firms, it does become that. What else is there? And that was a rhetorical question. So to linger on the division between the static and the dynamic, so much of the work in computer vision, so many of the breakthroughs that you've been a part of have been in the static world and looking at static images. And then you've also worked on starting, but it's a much smaller degree, the community is looking at dynamic, at video, at dynamic scenes. And then there is robotic vision, which is dynamic, but also where you actually have a robot in the physical world interacting based on that vision. Which problem is harder? The trivial first answer is, well, of course one image is harder. But if you look at a deeper question there, are we, what's the term, cutting ourselves at the knees or like making the problem harder by focusing on images? That's a fair question. I think sometimes we can simplify a problem so much that we essentially lose part of the juice that could enable us to solve the problem. And one could reasonably argue that to some extent this happens when we go from video to single images. Now historically you have to consider the limits imposed by the computation capabilities we had. So many of the choices made in the computer vision community through the 70s, 80s, 90s can be understood as choices which were forced upon us by the fact that we just didn't have enough access to enough compute. Not enough memory, not enough hardware. Exactly. Not enough compute, not enough storage. So think of these choices. So one of the choices is focusing on single images rather than video. Okay. Clear question. Storage and compute. We had to focus on, we used to detect edges and throw away the image. Right? So we would have an image which I say 256 by 256 pixels and instead of keeping around the grayscale value, what we did was we detected edges, find the places where the brightness changes a lot and then throw away the rest. So this was a major compression device and the hope was that this makes it that you can still work with it and the logic was humans can interpret a line drawing. And yes, and this will save us computation. So many of the choices were dictated by that. I think today we are no longer detecting edges, right? We process images with ConvNets because we don't need to. We don't have those computer restrictions anymore. Now video is still understudied because video compute is still quite challenging if you are a university researcher. I think video computing is not so challenging if you are at Google or Facebook or Amazon. Still super challenging. I just spoke with the VP of engineering at Google, head of the YouTube search and discovery and they still struggle doing stuff on video. It's very difficult except using techniques that are essentially the techniques you used in the 90s. Some very basic computer vision techniques. No, that's when you want to do things at scale. So if you want to operate at the scale of all the content of YouTube, it's very challenging and there are similar issues with Facebook. But as a researcher, you have more opportunities. You can train large networks with relatively large video data sets. So I think that this is part of the reason why we have so emphasized static images. I think that this is changing and over the next few years, I see a lot more progress happening in video. So I have this generic statement that to me, video recognition feels like 10 years behind object recognition and you can quantify that because you can take some of the challenging video data sets and their performance on action classification is like say 30%, which is kind of what we used to have around 2009 in object detection. It's like about 10 years behind and whether it'll take 10 years to catch up is a different question. Hopefully, it will take less than that. Let me ask a similar question I've already asked, but once again, so for dynamic scenes, do you think some kind of injection of knowledge bases and reasoning is required to help improve like action recognition? Like if we saw the general action recognition problem, what do you think the solution would look like as another way to put it? So I completely agree that knowledge is called for and that knowledge can be quite sophisticated. So the way I would say it is that perception blends into cognition and cognition brings in issues of memory and this notion of a schema from psychology, which is, let me use the classic example, which is you go to a restaurant, right? Now there are things that happen in a certain order, you walk in, somebody takes you to a table, waiter comes, gives you a menu, takes the order, food arrives, eventually bill arrives, et cetera, et cetera. This is a classic example of AI from the 1970s. It was called, there was the term frames and scripts and schemas, these are all quite similar ideas. Okay, and in the 70s, the way the AI of the time dealt with it was by hand coding this. So they hand coded in this notion of a script and the various stages and the actors and so on and so forth, and use that to interpret, for example, language. I mean, if there's a description of a story involving some people eating at a restaurant, there are all these inferences you can make because you know what happens typically at a restaurant. So I think this kind of knowledge is absolutely essential. So I think that when we are going to do long form video understanding, we are going to need to do this. I think the kinds of technology that we have right now with 3D convolutions over a couple of seconds of clip or video, it's very much tailored towards short term video understanding, not that long term understanding. Long term understanding requires this notion of schemas that I talked about, perhaps some notions of goals, intentionality, functionality, and so on and so forth. Now, how will we bring that in? So we could either revert back to the 70s and say, OK, I'm going to hand code in a script or we might try to learn it. So I tend to believe that we have to find learning ways of doing this because I think learning ways land up being more robust. And there must be a learning version of the story because children acquire a lot of this knowledge by sort of just observation. So at no moment in a child's life does it's possible, but I think it's not so typical that somebody that a mother coaches a child through all the stages of what happens in a restaurant. They just go as a family, they go to the restaurant, they eat, come back, and the child goes through ten such experiences and the child has got a schema of what happens when you go to a restaurant. So we somehow need to provide that capability to our systems. You mentioned the following line from the end of the Alan Turing paper, Computing Machinery and Intelligence, that many people, like you said, many people know and very few have read where he proposes the Turing test. This is how you know because it's towards the end of the paper. Instead of trying to produce a program to simulate the adult mind, why not rather try to produce one which simulates the child's? So that's a really interesting point. If I think about the benchmarks we have before us, the tests of our computer vision systems, they're often kind of trying to get to the adult. So what kind of benchmarks should we have? What kind of tests for computer vision do you think we should have that mimic the child's in computer vision? I think we should have those and we don't have those today. And I think the part of the challenge is that we should really be collecting data of the type that the child experiences. So that gets into issues of privacy and so on and so forth. But there are attempts in this direction to sort of try to collect the kind of data that a child encounters growing up. So what's the child's linguistic environment? What's the child's visual environment? So if we could collect that kind of data and then develop learning schemes based on that data, that would be one way to do it. I think that's a very promising direction myself. There might be people who would argue that we could just short circuit this in some way and sometimes we have imitated, we have had success by not imitating nature in detail. So the usual example is airplanes, right? We don't build flapping wings. So yes, that's one of the points of debate. In my mind, I would bet on this learning like a child approach. So one of the fundamental aspects of learning like a child is the interactivity. So the child gets to play with the data set it's learning from. Yes. So it gets to select. I mean, you can call that active learning. In the machine learning world, you can call it a lot of terms. What are your thoughts about this whole space of being able to play with the data set or select what you're learning? Yeah. So I think that I believe in that and I think that we could achieve it in two ways and I think we should use both. So one is actually real robotics, right? So real physical embodiments of agents who are interacting with the world and they have a physical body with dynamics and mass and moment of inertia and friction and all the rest and you learn your body, the robot learns its body by doing a series of actions. The second is that simulation environments. So I think simulation environments are getting much, much better. In my life in Facebook AI research, our group has worked on something called Habitat, which is a simulation environment, which is a visually photorealistic environment of places like houses or interiors of various urban spaces and so forth. And as you move, you get a picture, which is a pretty accurate picture. So now you can imagine that subsequent generations of these simulators will be accurate, not just visually, but with respect to forces and masses and haptic interactions and so on. And then we have that environment to play with. I think, let me state one reason why I think being able to act in the world is important. I think that this is one way to break the correlation versus causation barrier. So this is something which is of a great deal of interest these days. I mean, people like Judea Pearl have talked a lot about that we are neglecting causality and he describes the entire set of successes of deep learning as just curve fitting, right? But I don't quite agree about it. He's a troublemaker. He is. But causality is important, but causality is not like a single silver bullet. It's not like one single principle. There are many different aspects here. And one of the ways in which, one of our most reliable ways of establishing causal links and this is the way, for example, the medical community does this is randomized control trials. So you have, you pick some situation and now in some situation you perform an action and for certain others you don't, right? So you have a controlled experiment. Well, the child is in fact performing controlled experiments all the time, right? Right. Okay. Small scale. In a small scale. But that is a way that the child gets to build and refine its causal models of the world. And my colleague Alison Gopnik has, together with a couple of authors, coauthors, has this book called The Scientist in the Crib, referring to the children. So I like, the part that I like about that is the scientist wants to do, wants to build causal models and the scientist does control experiments. And I think the child is doing that. So to enable that, we will need to have these active experiments. And I think this could be done, some in the real world and some in simulation. So you have hope for simulation. I have hope for simulation. That's an exciting possibility if we can get to not just photorealistic, but what's that called life realistic simulation. So you don't see any fundamental blocks to why we can't eventually simulate the principles of what it means to exist in the world as a physical scientist. I don't see any fundamental problems that, I mean, and look, the computer graphics community has come a long way. So in the early days, back going back to the eighties and nineties, they were focusing on visual realism, right? And then they could do the easy stuff, but they couldn't do stuff like hair or fur and so on. Okay, well, they managed to do that. Then they couldn't do physical actions, right? Like there's a bowl of glass and it falls down and it shatters, but then they could start to do pretty realistic models of that and so on and so forth. So the graphics people have shown that they can do this forward direction, not just for optical interactions, but also for physical interactions. So I think, of course, some of that is very compute intensive, but I think by and by we will find ways of making our models ever more realistic. You break vision apart into, in one of your presentations, early vision, static scene understanding, dynamic scene understanding, and raise a few interesting questions. I thought I could just throw some at you to see if you want to talk about them. So early vision, so it's, what is it that you said, sensation, perception and cognition. So is this a sensation? Yes. What can we learn from image statistics that we don't already know? So at the lowest level, what can we make from just the statistics, the basics, or the variations in the rock pixels, the textures and so on? Yeah. So what we seem to have learned is that there's a lot of redundancy in these images and as a result, we are able to do a lot of compression and this compression is very important in biological settings, right? So you might have 10 to the 8 photoreceptors and only 10 to the 6 fibers in the optic nerve. So you have to do this compression by a factor of 100 is to 1. And so there are analogs of that which are happening in our neural net, artificial neural network. That's the early layers. So you think there's a lot of compression that can be done in the beginning. Just the statistics. Yeah. So how successful is image compression? How much? Well, I mean, the way to think about it is just how successful is image compression, right? And that's been done with older technologies, but it can be done with, there are several companies which are trying to use sort of these more advanced neural network type techniques for compression, both for static images as well as for video. One of my former students has a company which is trying to do stuff like this. And I think that they are showing quite interesting results. And I think that that's all the success of, that's really about image statistics and video statistics. But that's still not doing compression of the kind, when I see a picture of a cat, all I have to say is it's a cat, that's another semantic kind of compression. Yeah. So this is at the lower level, right? So we are, as I said, yeah, that's focusing on low level statistics. So to linger on that for a little bit, you mentioned how far can bottom up image segmentation go. You know, what you mentioned that the central question for scene understanding is the interplay of bottom up and top down information. Maybe this is a good time to elaborate on that. Maybe define what is bottom up, what is top down in the context of computer vision. Right. So today what we have are very interesting systems because they work completely bottom up. What does bottom up mean, sorry? So bottom up means, in this case means a feed forward neural network. So starting from the raw pixels, yeah, they start from the raw pixels and they end up with some, something like cat or not a cat, right? So our systems are running totally feed forward. They're trained in a very top down way. So they're trained by saying, okay, this is a cat, there's a cat, there's a dog, there's a zebra, et cetera. And I'm not happy with either of these choices fully. We have gone into, because we have completely separated these processes, right? So there's a, so I would like the process, so what do we know compared to biology? So in biology, what we know is that the processes in at test time, at runtime, those processes are not purely feed forward, but they involve feedback. So and they involve much shallower neural networks. So the kinds of neural networks we are using in computer vision, say a ResNet 50 has 50 layers. Well in the brain, in the visual cortex going from the retina to IT, maybe we have like seven, right? So they're far shallower, but we have the possibility of feedback. So there are backward connections. And this might enable us to deal with the more ambiguous stimuli, for example. So the biological solution seems to involve feedback, the solution in artificial vision seems to be just feed forward, but with a much deeper network. And the two are functionally equivalent because if you have a feedback network, which just has like three rounds of feedback, you can just unroll it and make it three times the depth and create it in a totally feed forward way. So this is something which, I mean, we have written some papers on this theme, but I really feel that this should, this theme should be pursued further. Some kind of occurrence mechanism. Yeah. Okay. The other, so that's, so I want to have a little bit more top down in the, at test time. Okay. And then at training time, we make use of a lot of top down knowledge right now. So basically to learn to segment an object, we have to have all these examples of this is the boundary of a cat, and this is the boundary of a chair, and this is the boundary of a horse and so on. And this is too much top down knowledge. How do humans do this? We manage to, we manage with far less supervision and we do it in a sort of bottom up way because for example, we are looking at a video stream and the horse moves and that enables me to say that all these pixels are together. So the Gestalt psychologist used to call this the principle of common fate. So there was a bottom up process by which we were able to segment out these objects and we have totally focused on this top down training signal. So in my view, we have currently solved it in machine vision, this top down bottom up interaction, but I don't find the solution fully satisfactory and I would rather have a bit of both at both stages. For all computer vision problems, not just segmentation. And the question that you can ask is, so for me, I'm inspired a lot by human vision and I care about that. You could be just a hard boiled engineer and not give a damn. So to you, I would then argue that you would need far less training data if you could make my research agenda fruitful. Okay, so then maybe taking a step into segmentation, static scene understanding. What is the interaction between segmentation and recognition? You mentioned the movement of objects. So for people who don't know computer vision, segmentation is this weird activity that computer vision folks have all agreed is very important of drawing outlines around objects versus a bounding box and then classifying that object. What's the value of segmentation? What is it as a problem in computer vision? How is it fundamentally different from detection recognition and the other problems? Yeah, so I think, so segmentation enables us to say that some set of pixels are an object without necessarily even being able to name that object or knowing properties of that object. Oh, so you mean segmentation purely as the act of separating an object. From its background. It's a job that's united in some way from its background. Yeah, so entitification, if you will, making an entity out of it. Entitification, beautifully termed. So I think that we have that capability and that enables us to, as we are growing up, to acquire names of objects with very little supervision. So suppose the child, let's posit that the child has this ability to separate out objects in the world. Then when the mother says, pick up your bottle or the cat's behaving funny today, the word cat suggests some object and then the child sort of does the mapping, right? The mother doesn't have to teach specific object labels by pointing to them. Weak supervision works in the context that you have the ability to create objects. So I think that, so to me, that's a very fundamental capability. There are applications where this is very important, for example, medical diagnosis. So in medical diagnosis, you have some brain scan, I mean, this is some work that we did in my group where you have CT scans of people who have had traumatic brain injury and what the radiologist needs to do is to precisely delineate various places where there might be bleeds, for example, and there are clear needs like that. So there are certainly very practical applications of computer vision where segmentation is necessary, but philosophically segmentation enables the task of recognition to proceed with much weaker supervision than we require today. And you think of segmentation as this kind of task that takes on a visual scene and breaks it apart into interesting entities that might be useful for whatever the task is. Yeah. And it is not semantics free. So I think, I mean, it blends into, it involves perception and cognition. It is not, I think the mistake that we used to make in the early days of computer vision was to treat it as a purely bottom up perceptual task. It is not just that because we do revise our notion of segmentation with more experience, right? Because for example, there are objects which are nonrigid like animals or humans. And I think understanding that all the pixels of a human are one entity is actually quite a challenge because the parts of the human, they can move independently and the human wears clothes, so they might be differently colored. So it's all sort of a challenge. You mentioned the three R's of computer vision are recognition, reconstruction and reorganization. Can you describe these three R's and how they interact? Yeah. So recognition is the easiest one because that's what I think people generally think of as computer vision achieving these days, which is labels. So is this a cat? Is this a dog? Is this a chihuahua? I mean, you know, it could be very fine grained like, you know, specific breed of a dog or a specific species of bird, or it could be very abstract like animal. But given a part of an image or a whole image, say put a label on it. Yeah. That's recognition. Reconstruction is essentially, you can think of it as inverse graphics. I mean, that's one way to think about it. So graphics is you have some internal computer representation and you have a computer representation of some objects arranged in a scene. And what you do is you produce a picture, you produce the pixels corresponding to a rendering of that scene. So let's do the inverse of this. We are given an image and we try to, we say, oh, this image arises from some objects in a scene looked at with a camera from this viewpoint. And we might have more information about the objects like their shape, maybe their textures, maybe, you know, color, et cetera, et cetera. So that's the reconstruction problem. In a way, you are in your head creating a model of the external world. Right. Okay. Reorganization is to do with essentially finding these entities. So it's organization, the word organization implies structure. So that in perception, in psychology, we use the term perceptual organization. That the world is not just, an image is not just seen as, is not internally represented as just a collection of pixels, but we make these entities. We create these entities, objects, whatever you want to call it. And the relationship between the entities as well, or is it purely about the entities? It could be about the relationships, but mainly we focus on the fact that there are entities. Okay. So I'm trying to pinpoint what the organization means. So organization is that instead of like a uniform grid, we have this structure of objects.

本集資源與出處