特別節目·中文精讀

萊斯莉·凱爾布林:強化學習、規劃與機器人

Leslie Kaelbling: Reinforcement Learning, Planning, and Robotics

強化學習研究者談機器人如何在不確定環境中規劃行動,以及學習與推理的結合。

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

你沒法提前規劃怎麼穿過機場

設想你剛下飛機,落在吉隆坡機場。有人問你:描述一下你接下來穿過機場的完整計劃。你答不上來。

你不知道飛機停在哪個登機口,不知道入境通道排多長,不知道前面會不會有人拖著行李箱突然停下。詳細規劃無從談起。但你還是買了這張機票。你對“穿過一個大型機場有多難”有一個粗糙但夠用的估計,並且相信到了那兒自然能應付。

MIT 教授萊斯莉·凱爾布林(Leslie Kaelbling)把這個現象當成機器人研究的核心難題之一。她的說法是你必須做一個“信仰之躍”,相信到了當地能現場解決。敢跳的前提,是你一輩子積累了一堆關於“某個目標有多難達成”的抽象模型。沒有這些模型,你連機票都不會買。

她在訪談裡說,自己現在最感興趣的問題之一,就是這種極端的泛化能力從哪來。給我一個估計:穿過吉隆坡機場要多久。這個估計不能離譜。你必須先有它,才談得上做計劃。

高中時被一本書擊中

凱爾布林進入 AI 的入口是一本書。高中時她讀了《哥德爾、艾舍爾、巴赫》(Gödel, Escher, Bach),這本書對她影響極大。它展示的東西很具體:原始元素如何組合出複雜結構,簡單零件如何拼出複雜事物,什麼樣的程式可能產生智慧行為。

她在斯坦福讀的本科是哲學。當時斯坦福沒有電腦科學的本科專業,但哲學系裡有個方向叫“符號系統”(Symbolic Systems),內容是邏輯、模型論、自然語言的形式語義學。她形容這個組合是“為做 AI 和電腦科學做的完美準備”。

這個細節可以多想一層。今天很多人把哲學和工程對立起來,覺得前者務虛、後者務實。凱爾布林的路徑恰好相反:她最常用的那批概念,信念、知識、指稱、不確定性,本來就是哲學系的日常詞彙,形式化程度很高,離電腦科學的日常工作只有一步之遙。

她提到畢業班的去向:不到一半繼續做電腦科學,不到一半去讀法學院,剩下一兩個留在哲學。這條路在當時並不稀奇,也沒人覺得一個想做智慧的人該去哪個系報到。

Shakey:一臺漏液壓油的機器人

碩士快讀完時,她被 SRI(斯坦福研究院)的 AI 實驗室招進去,任務是讓一臺機器人乾點事。那臺機器人是 Shakey 的後續機型。她到的時候,Shakey 本尊正躺在某個辦公室角落裡,往盆裡滴液壓油。

她強烈建議所有人去讀 Shakey 的技術報告。理由很硬:裡面塞滿了後來被反覆重新發明的東西。A* 搜尋、符號規劃、宏運算子的學習、基於構型空間的底層規劃、視覺、對意外物體的檢測、根據所見重新規劃,甚至推理“要不要轉頭拍照以獲取資訊”。一臺 1960 年代的移動機器人,已經把今天大量研究議題的骨架搭好了。

它在空間表示上用了多個抽象層級:底層大概是某種佔據柵格,高層是符號化的房間與連通關係。基地踢腳線被刷成黑色,用來輔助視覺定位。

這裡有個容易被忽略的點。今天人們討論端到端學習和手工建模的取捨時,往往以為多層抽象是深度學習之後才有的思路。Shakey 在半個世紀前就同時掛著柵格和房間圖這兩層表示,並且知道什麼時候該用哪一層。抽象層級這件事,跟神經網路的興起沒有因果關係。

邏輯留給工程師,不塞進機器人腦袋

她在 SRI 的導師是斯坦·羅森沙因(Stan Rosenschein),後來也成了她的博士導師。他推動的一個想法叫“情境自動機”(situated automata):邏輯推理這套工具很重要,它的使用者是設計系統的工程師,用來分析系統行為,未必要放進系統內部讓機器人自己推。

這個區分很關鍵。你可以用邏輯證明關於機器人行為的一個定理,而機器人腦子裡跑的根本不是邏輯。

她當時的處境是零基礎。沒學過控制,不瞭解感測器,一行人邊做邊把很多輪子重新發明了一遍。

問她這是優勢還是障礙,她的回答乾脆:她是“重新發明輪子”的堅定支持者。自己摸索一遍,才真正懂得好方案好在哪。她也補了一句,最後還是得拿到指路標,看清到底發生了什麼。先自己撞出一個爛方案,再看別人的好方案,理解深度完全不同。

順帶一個細節:她那時重新發明了強化學習,把“獎勵”叫作“pleasure”(愉悅)。她自己也覺得這名字更好玩。

AI 史的一條暗線:方法失效時,換的是問題

她講 AI 歷史時用的是“擺盪”這個詞。某個東西變時髦,過一陣涼了,另一個東西起來,再涼。

早期是控制論,是穩態調節,是那些會自己找插座充電、充完再滾出去幹活的機器人。後來人們覺得這不夠像“真正的智慧”,轉向專家系統。專家的做法是把領域知識寫進邏輯規則:我懂鍊鋼廠怎麼運轉,我講給你聽,你寫成規則,計算機就能幹這活。

然後這條路沒走通。

凱爾布林指出的現象比“沒走通”更微妙:一個方向失效的時候,社群改的不只是方法,還有問題本身。我們並沒有找到更好的辦法去做專家系統原來想做的事,我們基本放棄了那個問題,轉去做另一個問題,做上一陣子,把它做寬。

也有人會反駁說問題沒被放棄,只是做的人少了,暫時擱在架子上,二十年後再說。她認為這兩種說法都對,還有第三種可能:人們判定這個問題本身提得不對。比如“讓一個只會表層符號推理的東西表現得像醫生”這件事,在你有過當醫生的具身經驗之前根本做不成,那麼問題的形式就有毛病。

這段觀察對個人同樣適用。你以為自己在最佳化方法,其實經常在無聲地換掉問題,換成一個更好做的版本,然後告訴自己進展不錯。

專家系統的死穴:人說不清自己怎麼決策

她把 80、90 年代專家系統撞牆的原因歸到一點上:那批研究假設人類能有效地把自己的知識表述成邏輯語句。

這是能力問題,跟成本和工作量無關。

她舉的例子很有說服力。所有人都是視覺專家,但沒人能內省出自己是怎麼認出物體的。這一點當時的研究者其實都懂,沒人會要求你寫出“識別水瓶的規則”。所以他們退一步:那你就寫寫怎麼決定今天穿什麼、怎麼架麥克風,這類事總說得清吧。

結果發現,專家給出的解釋大多是事後的合理化,質量並不高,底下還壓著一堆他們自己也描述不清的知覺判斷。

專家能給你解釋,那些解釋是事後的合理化,未必反映他們真的怎麼做的。(萊斯莉·凱爾布林)

訪談裡採訪者追問:所以問題出在把知識編碼成機器能理解的形式這一步?她連著說了幾個“不不不”。難的地方在於從你腦子裡把它取出來。你能給我講一個你為什麼這麼做的故事,但我不確定那個故事就是實際發生的機制。

人類對自身決策過程的訪問許可權,比我們願意承認的低得多。這一條對今天做提示工程、做對齊、要求模型解釋自己的人同樣成立,只是換了個方向:我們要求機器給出解釋,而人類自己的解釋本來就不太靠得住。

抽象的用途:你不會用毫秒和畫素去規劃讀博

否定專家系統不等於否定符號推理。她把這兩件事分得很清。

她甚至不喜歡“符號”這個詞,覺得它在技術上和形式上都沒有清晰定義。她真正相信的是抽象。

論證很樸素:你不可能對生活裡每件事都做完全細粒度的推理。你沒法用影象和毫秒為單位去規劃怎麼讀完博士。要推理“讀博”或者“買菜做晚飯”這種量級的事,你必須縮小狀態空間,縮短推理視野。手段就是抽象:空間上的抽象,時間上的抽象。

所以你會說“我下午要做某件事”,不會說“我在兩點四十五分要做某件事”。你會說“我家的某個房間”,不會說“我這個姿勢下的肘部座標”。

這麼做有兩重原因。一是讓推理問題變小,二是你本來就沒有足夠資訊去做高保真推理。下午兩點三十五分你的肘部在哪,這件事你無從知曉,也沒必要知曉。

但在某些時刻,比如你正伸手去拿東西,你就得在連續的關節空間裡算一算肘部的位置。兩套表示,切換使用。

她反覆強調的立場是:教條不是重點。不該是“我支援符號推理、你支援神經網路”這種站隊。電腦科學本身會告訴我們這些問題的正確答案,前提是我們足夠聰明能找到它。

MDP 是你選擇的一個立場

訪談轉向馬爾可夫決策過程(MDP)。她的第一個回答是區分“立場”(stance)。

立場是研究者對問題採取的一個姿態。我可以決定用某套術語給身邊這個混亂的世界建模,把它當作某個形式化的問題來處理,然後套用相應的求解概念和演算法。

所以世界本身不是任何東西。它不是 MDP,也不是一個規劃問題,它到底是什麼她也說不清。但她可以把世界的某些側面建模成某種形式,而這個建模選擇決定了哪一批演算法可用。

MDP 這套模型說的是:我完全知道系統當前狀態,而“知道狀態”的含義是,此刻我掌握的資訊足以讓我對未來做出儘可能好的預測,再記住更多歷史也不會讓預測更準。同時我可以採取行動改變世界,改變的方式帶有機率性,並非確定性的。

她緊接著說,這個模型對大多數問題都不合適,因為大多數問題裡你根本不知道狀態,是部分可觀測的。

信念空間:把“我以為什麼”當成控制物件

POMDP(部分可觀測馬爾可夫決策過程)的做法是:仍然假定存在某個狀態,知道了它就能做好預測,但我不掌握它。我拿到的是觀測,可能是區域性的、帶噪聲的,不能告訴我全貌。於是我得根據自己採取過的動作序列和收到的觀測序列,推斷世界上大概在發生什麼,再在這個不確定判斷的基礎上決定動作。

接下來出現了一個概念上的轉身,我認為是整場訪談最值得琢磨的部分。

與其思考世界的狀態並試圖控制它,不如思考“關於世界的信念”構成的空間。把信念看作世界可能形態上的一個機率分佈,那麼機器人的控制問題就變成了控制自己的信念。

這樣一來,評估一個動作時不只看它對外部世界的影響,還要看它對自己認知狀態的影響。有些動作不改變世界,只改變你的判斷,比如問一個問題、往某個方向看一眼。有了信念空間,智慧體才會主動去收集資訊。

她舉的例子很日常。你開車時偶爾回頭看後面的車道,這個動作的價值在於它帶來的資訊,成本在於那段時間你看不見前方。要不要現在回頭,是一道權衡題。要能做這道題,就必須在信念空間裡推理。

還有一層:對自己的不確定性本身的推理。如果我相當清楚自己相對門框站在哪,穿過去沒有問題。如果我完全不確定門在哪,那還是別動比較安全。

不確定性在這裡的身份變了。它不再只是等待被消除的噪聲,它本身就是最佳化目標的一部分。

“我這套方法不可解”,這話聽著奇怪

訪談裡提到一個常見說法:我不用 POMDP,因為它不可解。

她的反應是覺得這話很好笑。你要解決的問題就是你要解決的問題。如果它不可解,那才是做 AI 的人存在的理由。

問題求解本身在根本上不可解,我們永遠不可能最終解決它。這一點我們早就知道,它也嚇不到我們。(萊斯莉·凱爾布林)

應對方式是層層近似:建模上近似,求解演算法上近似,一步一步降到在合理時間內算得出來的東西。

她提到一個更大的隱憂:目前缺少好的近似解概念。人們做了一堆經驗性的折騰,訓練這個、調那個、報出一堆數字,好不好、為什麼好,說不清。她希望有一種形式化的解概念,能讓你在跑演算法之前就說:這個演算法大概會給我什麼。

她自嘲說,自己感興趣的是把很大的問題做得很糟。這話背後是個真實的缺口:工程的進展遠遠跑在科學前面,我們能造出東西,但不完全知道它為什麼成立。橋可以靠試錯造,現在卻能事先預測;學習系統和機器人還做不到這一點。

從終點往回推的那個直覺

赫伯·西蒙(Herb Simon)早年大談手段-目的分析,從目標往回推理。這個直覺人人都有:從當前狀態往前推,可做的動作太多,分支爆炸;從目標往回推,好像分支會少一些。

凱爾布林承認這也是她的直覺。她誠實地補了一句:在規劃社群常做的那些問題類別和常用方法下,倒推並沒有被證明更好。她拿不出證明。

這種表達值得留意。一個做了幾十年規劃研究的教授,講到自己偏好的方法時會直說“我證明不了”。這比任何確定性斷言都更可信。

人生不能整體建模成規劃問題

訪談裡有個轉彎。問到能不能把人的一生形式化成規劃問題,她的回答是:那會是個錯誤。

理由跟難度無關,問題出在方向。人生不能整體建模成一個規劃問題,你需要把不同風格的推理、表示、學習拼在一起。大腦有部件、有子結構,不是單一機制。

所以沒有理由相信存在某個唯一的、真正的演算法能把所有事都辦了。只會有一堆零件,每個零件解決某一類特定問題。

她順手拆了一個常見的對立:基於模型和無模型。學一個策略是直接學行為;學一個價值函式是某種中間物;學一個轉移模型,再配一個規劃器,把這兩者框在一起,輸出仍然是一個策略,只是換了一種儲存方式。

她把這解讀成計算上的時空權衡。顯式的策略表示佔空間,但取動作快;緊湊的世界模型加規劃器,取動作慢。這場架沒必要吵,問題只是哪類子問題適合哪種計算形式。

她舉的對照很妙:學做代數變形,和騎獨輪車,需要的表示自然不一樣。至於談戀愛,她笑著說完全不知道怎麼建模,還是先去解決代數和物體操作吧。

感知比規劃難,難在一個說不清的地方

問感知和規劃哪個更難,她一秒回答:感知。

難在哪?她認為最大的問題在表示層面。我們不清楚感知應該輸出什麼。

感知近年進展很大,影象分類、某些遊戲、方向盤角度預測,都能做。問題在於,如果目標是造一個整合的智慧體,感知的輸出該長什麼樣,它怎麼接上後面那套東西,我們不知道。

任務目標明確時,比如輸出就是轉向角,感知該輸出什麼很清楚。可當你只是想造一個完整的智慧體,輸出的定義就模糊了。這是她判斷的關鍵:感知的下一步突破不在感知本身,在於搞清楚它該產出什麼。

她也順手拆了端到端這條路線。純端到端的巨型神經網路,所有結構都靠學,從樣本複雜度上很難站住腳:需要海量資料,還要弄壞很多臺機器人。機器學習理論告訴我們,降低樣本複雜度的唯一辦法是壓縮假設空間。壓縮假設空間的手段就是先驗偏置。

卷積就是一個偏置。一個很強的、很關鍵的偏置,對某類空間推理極其有效。她的主張是去找更多像卷積這樣的東西,去覆蓋別的推理維度。

她點名了幾個候選:一定分量的遞迴、抽象的概念,以及“物體是存在的”這個先驗。最後這條尤其重要,因為很多模型一開始就不給你這個。圖卷積和關係表示是同一個方向上的嘗試。

自我意識是個光譜,計數器也算一端

問她機器人要不要有自我意識、意識、對死亡的恐懼,她的回答很省事:她不太想意識這回事。大多數在意這個問題的哲學家也會承認,你完全可以造出行為與人無異的“殭屍”機器人,而它沒有意識。在當下,她對這種狀態已經足夠滿意。

但技術層面上的“自我意識”她認為必不可少:系統裡得有某個部分去觀察其他部分,判斷它們工作是否正常。

採訪者追問這算不算自我意識。她把問題拆開:看你怎麼定義。一段統計某個過程被呼叫多少次的程式碼,也算一種自我意識。這是個很大的光譜,你必須有其中一部分,離人類那一端還很遠,中間隔著很多維度。

問到還要多少年能造出人類水平的機器人,她直接拒絕參與這個對話。理由跟謙虛無關,是判斷:我們缺的是一些想法,而找到這些想法要多久,無從估計。

我們缺的是一些想法,找到它們要多久,我無從估計,所以這個話題我不參與。(萊斯莉·凱爾布林)

她也不喜歡花時間爭論“什麼才算智慧”這類問題,覺得那些時間不如直接去把機器人做得好一點。圖靈測試、各種 benchmark、DARPA 挑戰賽,她不認為對自己有激勵作用,但也不反對別人去做。競賽會讓一群聰明人拼命 hack,大多數產出是 hack,但偶爾會冒出真正好的想法,供之後的人咀嚼。

一年只花幾百美元的頂級期刊

訪談後半段轉到一個看起來和機器人無關的話題,她的處理方式一脈相承。

她創辦了《機器學習研究雜誌》(Journal of Machine Learning Research,JMLR)並擔任主編。起因很具體:當時有本叫《Machine Learning》的期刊,屬於 Kluwer 出版社,她在編委會里,每年開會都向出版社抱怨兩件事:圖書館訂閱太貴,作者發表不易。出版社每次都表示同情,然後什麼都不做。

於是編委會決定自己辦一本。參照物是 JAIR(Journal of AI Research),已經按同樣模式跑了五年左右,運轉良好。然後《Machine Learning》編委會大概 75% 的人辭職,去辦了這本新刊。

新刊完全開放獲取:不收版面費,也沒有訪問限制。她的一位博士後想把它命名為“Free for All”。

有人覺得這不可能,甚至懷疑是騙局。事實是,很長一段時間裡這本刊連銀行賬戶都沒有。她自掏腰包付了公司註冊的律師費和一個 IP 地址的費用,一年的運營成本就幾百美元。

為什麼能做到?她給的理由很實在:電腦科學家在基礎設施這件事上足夠能幹和自主。大家本來就自己排版論文,手下都有學生,一個下午能把網站搭起來。換成別的領域,這件事就難得多。

這本零成本、零訂閱費的刊物,後來成了機器學習領域最有聲望的期刊之一。聲望可以不需要付費牆來支撐,這一點在別的學科並不總能成立。

一個沒實現的審稿設想:萊斯莉的朋友們

她本來想在 JMLR 上做點完全不一樣的東西,最後沒做,因為覺得領域需要一個傳統的存檔期刊。

她真正想做的模式是這樣:找一群她信任其判斷、表達能力又強的人,不去發表論文,也不接受投稿,而是主動去找論文,寫評論,把評論公開。如果你的評論足夠受重視,將來別人的簡歷上會寫“萊斯莉的朋友們給了這篇論文五星”,這和“被某期刊接收”一樣有用。

為什麼需要這個?因為“發表”這個詞正在失去意義,把東西放到 arXiv 上就算公開了,障礙已經不存在。真正稀缺的是篩選和評價。她沒有時間讀完整個 arXiv。

有人說靠社交投票就夠了,讓 upvote 決定一切。她認為這不夠,因為看人們在 Twitter 和 Reddit 上投票、吵架時,你無法判斷他們是否真的懂。於是你面對一個二階問題:我該重視誰的意見。

她也點出現實約束:認真評審一篇論文是很大的投入,而論文的洪流已經失控。一年產出的機器學習論文數量,比一年產出的電影數量還多。電影有專業影評人,也有普通觀眾打分,兩條線是分開的,這個結構本身有借鑑價值。

研究者的時間視野被壓短了

她自嘲說接下來這段是“老年人發言”,內容很紮實。

她擔心研究者的時間視野變得極短。學生想多發論文,多發有獎勵,會被摸頭表揚,其中一部分是好事。代價是:那些願意花兩年只琢磨一個問題的人,正在被這套機制擠出去。

她回憶自己那代人的做法:讀博期間不發論文,花好幾年挑一個難問題,反覆咀嚼,走彎路,浪費時間,等到做得差不多了才寫論文。

她不認為所有人都得這麼幹。她堅持的一點是:有些問題難到必須配一個更長的研究週期,而目前的激勵結構完全不獎勵這種耐心。

冬天會來,但每次爬得更高

經歷過幾輪 AI 寒冬,她認為週期不可避免,每一輪的制高點都在上升。她用的比喻是帶噪聲的最佳化器在某個地形上攀爬。

深度學習帶來了深刻而重要的進步,水位線確實抬高了,這一點沒有疑問。她也直說,現在有人在過度推銷,投資人遲早會環顧四周問:你說的那些宏大承諾,好像沒兌現。她預期會有一輪迴落,然後事情繼續。她無法想象從這裡到人類水平 AI 是一條單調上升的曲線。

樂高 Mindstorms 式的誤解

訪談裡有一段特別好。她跟幾位軍事倫理學家聊自主武器,對方是聰明、受過良好教育的人,但對 AI 和機器學習瞭解不多。

他們問的第一個問題是:你的機器人有沒有做過你預料之外的事?

她當場笑出來。任何碰過機器人的人都知道,機器人天天在幹你預料之外的事。

笑完她意識到問題出在哪:對方腦子裡那套“程式設計”的模型完全錯了。他們以為程式設計就是樂高 Mindstorms 那樣:前進一米,左轉,拍張照,做這做那。如果程式設計真是這樣,機器人幹出意外的事確實很詭異。

實際情況是,我們至少在比這高一層或很多層的抽象上工作。我們給出一個假設空間,可能是一組計劃,也可能是一組分類器,再給一個目標函式,然後跑一個最佳化方法,在那個空間裡找解。至於最後會找出什麼解,我們並不知道。

她把這件事當成自己的新教育使命。跟非專家解釋 AI,第一課講清楚一件事:我們不直接寫行為。

最佳化的人都懂:小心你許的願

她由此談到價值對齊。不必被機器人末日嚇到,也能承認這件事重要。所有做過最佳化的人都明白一個道理:有時候你真拿到了最優解,然後發現目標函式寫錯了。

她預期行業會發生一個身份轉變:從工程演算法的人,變成工程目標函式的人。這會改變整個方法論。

而設計目標函式的人必須同時戴兩頂帽子。一頂問:我到底想要什麼。另一頂問:我知道我的最佳化器能幹出什麼事,所以得把這個考慮進去。做機器學習的人對此應該很熟悉,這是每天都在做的權衡。

至於機器人搶工作這件事,她承認重要,但很坦率地說這不在自己的能力範圍裡:不懂社會學,不懂經濟學,希望有別人去想。

中間路線:手工搭一半,剩下的交給學

問到最有希望的方向,她把選項擺成兩個極端。

一端是內省:坐下來想清楚,把程式寫出來。這條路已經證明效果很差。

另一端是一大坨神經網路軟泥,丟進去訓練,指望它自己長出一切。她認為這條路也走不通。

剩下的是中間地帶,而這個中間地帶不帶任何神學色彩,是個工程問題:究竟怎麼組合才最有效。她的判斷是,答案是學習與非學習的組合,而且組合方式有很多種。哪些東西該手工搭進去,哪些該留給學,這才是最值得研究的問題。

最後問她最喜歡哪部科幻作品裡的機器人。她說沒有。她愛的是過程本身。

我做研究是因為好玩,不是因為我在意最終產出什麼東西。(萊斯莉·凱爾布林)

這個回答跟前面那些判斷是一條線。她關心的是怎麼把問題想清楚,能不能端出一個成品是次要的。所以她會說“我們缺的是一些想法”,會說“我不知道要多久”。這兩句話在她嘴裡來自同一種態度:問題是真的難,而難的東西不因為你著急就變簡單。

回頭看,她這幾十年的判斷有一條很穩的線。邏輯要用來分析系統,未必塞進系統腦子裡。世界不能直接等同於 MDP,它只是你選擇的一個建模立場。感知的瓶頸不在感知本身,在於你說不清它該輸出什麼。人生沒法整體形式化成規劃問題,它是一堆不同風格零件的拼裝。

每一條都在做同一件事:把“我們該用什麼方法”這個問題,換成“這個問題的形式選對了嗎”。

這個轉向對今天的從業者有直接用處。大多數人卡住的時候,第一反應是換工具:這個模型不行換那個,這個庫慢換另一個。凱爾布林的做法是先退一步問:我把問題擺成了什麼形狀,這個形狀本身是不是已經錯了。專家系統撞牆,根源在於“人能說清自己怎麼決策”這個假設從一開始就不成立,規則寫得再多也補不上。

她能坦然說“我證明不了”“我不知道”“那不在我的能力範圍”,恰恰因為她對什麼算真正解決了問題有很硬的標準。做得很糟的大問題,比做得很好的小問題更值得投入。這話聽著像雞湯,落到她身上很具體:她寧願要一個能覆蓋連續空間、連續觀測、複雜到算不動的 POMDP 形式,也不要一個能跑出漂亮數字卻說不清在解什麼的模型。

訪談裡最動人的細節反而最不起眼。她說自己重新發明強化學習的時候,把獎勵叫“pleasure”。一個零基礎闖進機器人領域、邊做邊把輪子重造一遍的人,給一個技術概念起了個帶體溫的名字。她後來說自己愛的是過程,不在意產出什麼。

這兩件事是一件事。

可以立刻用起來的幾條

  • 卡住的時候先別換工具。寫下你當前把問題擺成了什麼形式,逐個檢查那些預設前提:你假設了狀態可知嗎?假設了人能說清自己的判斷依據嗎?假設了感知的輸出已經定義清楚嗎?錯的形式配上再好的演算法也救不回來。
  • 給自己正在做的系統找“像卷積一樣的偏置”。卷積之所以有效,是因為它把一類正確的空間結構直接寫進了模型。問自己:這個領域裡有哪些結構是確定成立的,卻還沒有被固化成先驗?物體是存在的、關係是有圖的、動作是有時間層級的,都算候選。
  • 把“不可解”當成起點,別當終點。問題本身極難的時候,正確做法是建模上近似、求解上近似,一層層降到能算的程度。換一個可解但已經變形的問題去做,看著有進展,實際是偷偷換了目標。
  • 設計任何目標函式之前,先戴兩頂帽子。第一頂問:我到底想要什麼。第二頂問:我的最佳化器會怎樣鑽這個目標的空子。幾乎所有對齊事故都發生在第二頂帽子沒戴的時候。
  • 刻意保留至少一個長週期問題。不需要所有工作都長,但要有一個你願意兩年不出論文、只為把它想明白的問題,否則你的研究方向會被短期指標悄悄改寫,等你回頭已經找不回當初想做的事了。
  • 向外行解釋 AI 時,第一句話別講演算法,先講清楚我們不直接寫行為。給他一個假設空間加一個目標函式,告訴他我們不知道最終會找出什麼解。這個認知差是很多恐慌和很多過度承諾的共同來源,值得花十分鐘講透。
  • 做感知模組之前,先把輸出契約寫下來。它交給下游的是什麼,座標、物體、關係、還是某種信念分佈。定義不清就往下堆模型,後面一定要返工,而且返工的時候你會發現重構成本遠高於當初多寫一頁文件。
  • 建模的時候問一句:我是在描述世界,還是在給世界套一個我方便求解的形式。凱爾布林那句“世界不是 MDP,你只是選擇了一個立場”,本質上是在提醒你,模型的邊界是你的選擇,不是世界的屬性。搞清楚這一點,你會更早發現模型失配,也更敢在必要時換掉整個框架。
文稿由本站用語音識別模型(基於官方釋出音訊)機器轉寫,可能有識別錯誤,人名與數字請以音訊為準。
[00:00:00] The following is a conversation with Leslie Kaling, she's a roboticist and professor at MIT. She's recognized for her work and reinforcement learning, planning, robot navigation and several other topics and A.I. She won the Educate Computers and Thought Award and was the editor in chief of the prestigious journal Machine Learning Research. This conversation is part of the artificial intelligence podcast at MIT and beyond, if you enjoy it, subscribe on YouTube, iTunes or simply connect with me on Twitter at Lex Friedman spelled F.R. I.D.. [00:00:36] And now here's my conversation with Leslie Cabling. What made me get excited about I can say that is I read Girdle Esher when I was in high school. That was pretty formative for me. Because it exposed. The interestingness of primitives in combination and how you can make complex things out of simple parts and ideas of A.I. and what kinds of programs might generate intelligent behavior. [00:01:24] So so you first fell in love with A.I. reasoning, logic versus robots? [00:01:30] Yeah, the robots came because my first job. So I finished my undergraduate degree in philosophy at Stanford and was about to finish my master's in computer science. And I got hired at Ezri in their AI lab and they were building a robot. It was a kind of a follow on to Shaki, but all the shaky people were not there anymore. And so my job was to try to get this robot to do stuff. And that's really kind of what got me interested in robots. [00:01:57] So maybe taking a small step back, your bachelor's and Stanford philosophy did Nasserism in computer science, but the master's in philosophy. So what was that journey like? What elements of philosophy do you think you bring to your work in computer science? [00:02:12] So it's surprisingly relevant. So the part of the reason that I didn't do a computer science undergraduate degree was that there wasn't one at Stanford at the time, but that was part of philosophy. And in fact, Stanford has a special sub majoring in something called Now Symbolic Systems, which is logic, model theory, formal semantics of natural language. And so that's actually a perfect preparation for working A.I. and computer science. That that's kind of interesting. [00:02:38] So if you were interested in artificial intelligence, what what kind of majors were people even thinking about taking? [00:02:47] What is in neuroscience was so besides philosophies, what were we supposed to do if you were fascinated by the idea of creating intelligence? [00:02:55] There weren't enough people who did that for that even to be a conversation. [00:02:59] I mean, I think probably probably for philosophy. I mean, it's interesting in my class, my graduating class of undergraduate philosophers, probably maybe slightly less than half went on in computer science, slightly less than half went on in law. And like one or two went on in philosophy. So it was a common kind of connection. [00:03:23] Do you think A.I. researchers have a role, be part time philosophers, or should they stick to the solid science and engineering without sort of taking the philosophising tangents? I mean, you work with robots. You think about what it takes to create intelligent beings. Aren't you the perfect person to think about the big picture philosophy of it all, the parts of philosophy that are closest to A.I., I think, or at least the closest to that. [00:03:46] I think about our stuff like belief and knowledge and denotation and that kind of stuff. And that's, you know, it's quite formal and it's like just one step away from the kinds of computer science work that we do kind of routinely. I think that there are important questions still about. What you can do with a machine and what you can't and so on, although at least my personal view is that I'm completely a materialist, and I don't think that there's any reason why we can't make a robot be behaviorally indistinguishable from a human. [00:04:22] And the question of whether it's distinguishable internally, whether it's a zombie or not, in philosophy terms, I actually don't. I don't know and I don't know if I care too much about that, but there is a philosophical notions there, mathematical and philosophical, because we don't know so much of how difficult that is, how difficult the perception problem, how difficult is the planning problem, how difficult is it to operate in this world successfully because our robots are not currently as successful as human beings in many tasks. [00:04:55] The question about the gap between current robots and human beings borders a little bit on philosophy. You know, the the expanse of knowledge that's required to operate in this world and the ability to form common sense knowledge, the ability to reason about uncertainty. Much of the work you've been doing there is there's open questions there that I don't know require to activate a certain big picture of you. [00:05:25] To me, that doesn't seem like a philosophical gap at all. To me, it's there is a big technical gap. Yes, huge technical gap. But I don't see any reason why it's more than a technical gap. Perfect. [00:05:37] So when you mention I mentioned NECI and maybe can you describe to me when you first fell in love with robotics, with robots or inspired, which so you should mention flaky or shaky, shaky, flaky. [00:05:55] And what was the robot that first captured your imagination? What's possible? [00:06:00] Right. Well, so the first robot I worked with was like Shaki was a robot that the right people had built. But by the time I think when I arrived, it was sitting in a corner of somebody's office dripping hydraulic fluid into a pan. But it's iconic. And really everybody should read the shaky tech report because it has so many good ideas in it. I mean, they invented a star search and symbolic planning and learning macro operators. They had low level kind of configurations based planning for the robot. [00:06:33] They had vision. They had all the basic ideas of a ton of things. [00:06:38] Estaba shaky have arms. That was the job would go. [00:06:42] Genki was a mobile robot, but it could push objects and so it would move things around with which actuators itself with its base. [00:06:51] OK, so it could but and they had painted the baseboards black. So it used it used vision to localize itself in a map. It detected objects, it could detect objects that were surprising to it. It would plan and replan based on what it saw. It reasoned about whether to look and take pictures. I mean, it really had the basics of so many of the things that we think about now. [00:07:20] How did it represent the space around it? [00:07:23] So it had representations that a bunch of different levels of abstraction. So it had, I think, a kind of an occupancy grid of some sort at the lowest level. At the high level, it was abstract, symbolic kind of rooms and connectivity. So where does flaky come in? [00:07:39] Yeah, OK, so I showed up, but Azariah and the we were building a brand new robot. As I said, none of the people from the previous project were kind of there involved anymore. So we were kind of starting from scratch. And my advisor was Stan Rosenstein. He ended up being my thesis advisor and he was motivated by this idea of situated computation or situated automata. And the idea was. That the tools of logical reasoning were important, but possibly only for the engineers or designers to use in the analysis of the system, but not necessarily to be manipulated in the head of the system itself. [00:08:23] Right. So I might use logic to prove a theory about the behavior of my robot, even if the robot's not using logic and its head to prove there. So that was kind of the distinction. And so the idea was to kind of use those principles, to make robots do stuff. But a lot of the basic things we had to kind of learn for ourselves because I had zero background in robotics, I didn't know anything about control. I didn't know anything about sensors. [00:08:50] So we reinvented a lot of wheels on the way to getting that robot to do stuff. [00:08:54] Do you think that was an advantage or hindrance? Oh, no. It's I mean, I'm big in favor of wheel reinvention, actually. I mean, I think you learn a lot by doing it. Yes. It's important, though, to eventually have the pointers to so that you can see what's really going on. But I think you can appreciate much better the the good solutions once you've messed around a little bit on your own and found a bad one. [00:09:17] Yeah, I think you mentioned reinventing reinforcement learning and referring to rewards as pleasures. I pleasure. [00:09:25] Yeah, I think yeah. Which I think is a nice name for it seems to me it's more, it's more fun almost. [00:09:32] Do you think you could tell the history of AI machine learning, reinforcement learning how you think about it from the 50s to now. [00:09:40] One thing is that it's oscillates, right? So things become fashionable and then they go out and then something else becomes cool and that goes out and so on. And I think there's so there's some interesting sociological process that actually drives a lot of what's going on. Early days was kind of cybernetics and control. Right. And the idea that of homeostasis, people have made these robots that could, I don't know, try to plug into the wall when they needed power and then come loose and roll around and do stuff. [00:10:12] And then I think over time, the thought, well, that was inspiring. But people said, no, no, we want to get maybe closer to what feels like real intelligence or human intelligence. And then maybe the expert systems people tried to do that. But maybe a little too superficially, right, so, oh, we get the surface understanding of what intelligence is like because I understand how a steel mill works and I can try to explain it to you and you can write it down in logic and then we can make a computer and for that. [00:10:46] And then that didn't work out. But what's interesting, I think, is when a thing starts to not be working very well, it's not only do we change methods, we change problems. Right. So it's not like we have better ways of doing the problem of the expert systems people are trying to do. We have no ways of trying to do that problem. [00:11:07] Oh, yeah, I know. I think maybe a few, but we kind of give up on that problem and we switch to a different problem. And we we work that for a while and we make it as a broad community, as a community. [00:11:20] And there's a lot of people who would argue you don't give up on the problem. It's just the decrease the number of people work and you almost kind of like put it on the shelf. So we'll come back to this 20 years later. [00:11:31] Yeah, I think that's right. Or you might decide that it's malformed, like you might say. It's wrong to just try to make something that does superficial, symbolic reasoning behave like a doctor, you can't do that until you've had the sensory motor experience of being a doctor or something. So there's arguments that say that that's a problem, is not well formed, or it could be that it is well well-formed. But but we just weren't approaching it well. [00:12:00] You mentioned that your favorite part of logic and symbolic systems is that they give short names for large sets. So there is some use to this. They use a symbolic reasoning. So looking at expert systems and symbolic computing, what do you think are the roadblocks that were hit in the 80s and 90s? [00:12:20] OK, so right. So the fact that I'm not a fan of expert systems doesn't mean that I'm not a fan of some kinds of symbolic reasoning, so. [00:12:30] Let's see roadblocks. Well, the main road block, I think, was that the idea that humans could articulate their knowledge effectively into into, you know, some kind of logical statements. [00:12:43] So it's not just the cost, the effort, but really just the capability of doing it right. [00:12:49] Because we're all experts in vision. Right. But totally don't have introspective access into how we do that. Right. And it's true that. I mean, I think the idea was, well, of course, even people then would know, of course, I wouldn't ask you to please write down the rules that you use for recognizing a water bottle. That's crazy. And everyone understood that. But we might ask you to please write down the rules you use for deciding. [00:13:16] I don't know what time to put on or how to set up a microphone or something like that. But even those things, I think people maybe I think what they found I'm not sure about this, but I think what they found was that the so-called experts could give explanations that sort of post hoc explanations for how and why they did things, but they weren't necessarily very good. And then they they depended on. Maybe some kinds of perceptual things, which, again, they couldn't really define very well, so I think I think fundamentally I think that the underlying problem with that was the assumption that people could articulate how and why they make their decisions. [00:14:00] And so it's almost an encoding the knowledge for converting from expert to something that a machine can understand and reason with. No, no, no, no. [00:14:09] Not even just encoding, but getting it out of you. Just not not not writing it. I mean, yes, hard also to write it down for the computer. Yeah. But I don't think that people can produce it. You can tell me a story about why you do stuff, but I'm not so sure that's the way. [00:14:28] Great. So there are still on the hierarchical planning side places where symbolic reasoning is very useful. So as you've talked about. [00:14:42] So where so don't was the gap. [00:14:47] Yeah. OK, good. So saying that humans can't provide a description of their reasoning processes, that's OK. Fine, but that doesn't mean that it's not good to do reasoning of various styles inside a computer. Those are just two orthogonal points. So then the question is what kind of reasoning should you do inside a computer? Right. And the answer is, I think you need to do all different kinds of reasoning inside a computer, depending on what kinds of problems you face. [00:15:17] I guess the question is, what kind of things can you encode, symbolic and reasonable? [00:15:25] I think the idea about and and even symbolic, I don't even like that terminology because I don't know what it means technically and formally. I do believe in abstractions. So abstractions are critical, right. You cannot reason completely fine grained about everything in your life. Right. You can't make a plan at the level of images and talks for getting a Ph.D.. Right. So you have to reduce the size of the state's base and you have to reduce the horizon if you're going to reason about getting a Ph.D. or even buying the ingredients to make dinner. [00:16:02] And so. So how can you reduce the spaces and the horizon of the reasoning you have to do? And the answer is abstraction, spatial abstraction, temporal abstraction. I think abstraction along the lines of goals is also interesting, like you might or, well, abstraction. The decomposition goals is maybe more of a decomposition thing. So I think that's where these kinds of if you want to call it symbolic or discrete models come in. You you talk about a room of your house instead of your Poes. [00:16:32] You talk about, you know, doing something during the afternoon instead of it 254. And you do that because it makes your reasoning problem easier and also because you have you don't have enough information to reason in high fidelity about your pose of your elbow at two thirty five this afternoon anyway. [00:16:54] Right. When you're trying to get a Ph.D. that you're doing anything for at that moment, at that moment, you do have to reason about the puzzle, your elbow maybe, but then you maybe you do that in some continuous joint space kind of model. [00:17:07] And so again, I. My biggest point about all of this is that there should be the dogma is not the thing, right? We shouldn't it shouldn't be that I am in favor or against symbolic reasoning. And you're in favor against neural networks. It should be that just just computer science tells us what the right answer to all these questions is if we're smart enough to figure it out. Well, yeah. [00:17:30] When you try to actually solve the problem with computers, the right answer comes out. You mentioned abstractions. I mean, your networks form abstractions or rather there's there's automated ways to form structures and there's expert driven ways to form factions and exploit human driven ways. And humans just seem to be way better at forming abstractions currently and certain problems. [00:17:55] So when you're referring to two forty five R.P.M. versus afternoon, how do we construct that taxonomy? Is there any room for automated construction of such abstractions? [00:18:09] Oh I think eventually, yeah. I mean I think when we get to be better and machine learning, engineers will build algorithms that build awesome abstractions that are useful in this kind of way that you're describing. Yeah. So let's then step from the the abstraction discussion and let's talk about Palm. I'm DP's. [00:18:33] Partially observable Markov decision processes, so uncertainty. So first, what are Markov decision processes? [00:18:39] What about maybe how much of our world could be models and how much when you wake up in the morning in making breakfast, how do you think of yourself as an MDP? So how do you think about MDP and how they relate to our world? [00:18:55] Well, so there's a stance question, right? So a stance is a position that I take with respect to a problem. So I as a researcher or person who designed systems, can decide to make a model of the world around me in some terms. And so I take this messy world and I say I'm going to treat it as if it were a problem of this formal kind. And then I can apply solution concepts or algorithms or whatever to solve that formal thing. [00:19:24] Right. So of course, the world is not anything. It's not a MDP or a problem. I don't know what it is, but I can model aspects of it in some way or some other way. And when I model some aspect of it in a certain way, that gives me some set of algorithms I can use. [00:19:38] You can model the world in all kinds of ways. Some have some are more accepting of uncertainty, more easily modeling uncertainty of the world. [00:19:49] Some really force the world to be deterministic. And so certainly ADP's model, the uncertainty of the world. [00:19:58] Yes. Model, some uncertainty, the model not present state uncertainty, but they model uncertainty in the way the future will unfold. [00:20:07] So what are murkoff decision process? [00:20:11] So market decision process is a model. It's a kind of model that you could make that says I know completely the current state of my system and what it means to be a state is that I that all the I have all the information right now that will let me make predictions about the future as well as I can so that remembering anything about my history would make my predictions any better. [00:20:35] And but but then it also says that then I can take some actions that might change the state of the world and that I don't have a deterministic model of those changes. [00:20:44] I have a probabilistic model of how the world might change. [00:20:48] It's a it's a useful model for some kinds of systems. I think it's a I mean, it's certainly not a good model for. Most problems, I think, because for most problems, you don't actually know the state for most problems, you it's partially observed. So that's now a different problem class. [00:21:08] So that's where the poverty is a part of the decision process step. [00:21:14] And so how do they address the fact that you can't observe most incomplete information about most of the world around you? Right. [00:21:23] So now the idea is we still kind of postulate that there exists a state. We think that there is some information about the world out there such that if we knew that we could make good predictions, but we don't know the state. And so then we have to think about how. But we do get observations. Maybe I get images right here, things or I feel things, and those might be local or noisy. And so therefore they don't tell me everything about what's going on. [00:21:48] And then I have to reason about, given the history of actions I've taken and observations I've gotten, what do I think is going on in the world? And then given my own kind of uncertainty about what's going on in the world, I can decide what actions to take and saw difficulties. [00:22:03] This problem of planning under uncertainty, in your view and your long experience of modeling the world, trying to deal with this uncertainty in especially in real world systems, optimal planning for even discrete bomb dips can be undecidable depending on how you set it up. [00:22:23] And for so. Lots of people say I don't use palm leaves because they are intractable, and I think that that's a kind of a very funny thing to say because. The problem you have to solve is the problem you have to solve. So if the problem you have to solve is intractable, that's what makes us ehi people, right. So we saw we understand that the problem solving is is wildly intractable, that we can't we will never be able to solve it ultimately. [00:22:51] At least I don't. [00:22:53] Yeah, right. So later we can come back to an idea about bounded optimality something. But anyway, we can't come up with optimal solutions to these problems. So we have to make approximations, approximations in modeling, approximations in solution algorithms and so on. And so I don't have a problem with saying, yeah, my problem actually it is Parmly be in continuous space with continuous observations and it's so computationally complex I can't even think about it's, you know, big or whatever, but that doesn't prevent me from it helps me, gives me some clarity to think about it that way and to then take steps to make approximation after approximation to get down to something that's like computable in some reasonable time. [00:23:39] When you think about optimality, you know, the community broadly is shifted. And that I think a little bit in how much they value the idea of optimality of chasing as an optimal solution. How is of use of chasing an optimal solution changed over the years? [00:23:57] And when you work with robots, that's interesting. I think we have a little bit of a math for the logical crisis, actually, from the theoretical side. I mean, I do think that theory is important in that right now we're not doing much of it. So there's lots of empirical hacking around and training this and doing that and reporting numbers, but is it good? Is it bad? We don't know. It's very hard to say things. And if you look at like computer science theory, so people talked for a while, everyone was about solving problems optimally or completely, and and then there were interesting relaxations. [00:24:39] So people look at, oh, can I are there regrette browns or can I do some kind of, you know, approximation? Can I prove something that I can approximately solve this problem or that I get closer to the solution as I spend more time and so on? [00:24:53] What's interesting, I think, is that we don't have good approximate solution concepts for. Very difficult problems, right? I like to you know, I like to say that I I'm interested in doing a very bad job of very big problems as well. [00:25:14] Right. [00:25:15] So very are very big problems. I like to do that. But I would I wish I could say something. I wish I had a, I don't know, some kind of a of a formal solution concept that I could use to say, oh, this this algorithm actually it gives me something like, I know what I'm going to get. [00:25:34] I can do something other than just run it and get out so that that notion is still somewhere deeply compelling to you. The notion that you can say you can drop thing on the table says this. You can expect this is all going to give me some good results. [00:25:50] I hope there's I hope science will. I mean, there's engineering and there's science. I think that they're not exactly the same. And I think right now we're making huge engineering like leaps and bounds. So the engineering is running away ahead of the science, which is cool and often how it goes. [00:26:09] Right. So we're making things and nobody knows how and why they work roughly, but. We need to turn that into science in some form, it's that there's some room for formalizing. [00:26:22] We need to know what the principles are. Why does this work? Why does that not work? I mean, for a while, people build bridges by trying, but now we can often predict whether it's going to work or not without building it. Can we do that for learning systems or for robots? [00:26:35] So your hope is from a materialistic perspective that intelligence, artificial intelligence systems, robots are just more fancier bridges. Believe space. What's the difference between belief, space and state space? You mentioned DP's found DP's reasoning about you since the world. There's a state was this belief space idea? [00:27:00] Yeah, I did get to believe space. [00:27:03] That is instead of thinking about what's the state of the world and trying to control that as a robot, I think about what is the space of beliefs that I can have about the world. If I think of a belief as a probability distribution over ways the world could be a belief state is a distribution. And then my control problem, if I'm reasoning about how to move through a world I'm uncertain about. My control problem is actually the problem, controlling my beliefs, so I think about taking actions, not just what effect they'll have on the world outside, but what effect they'll have on my own understanding of the world outside. [00:27:42] And so that might compel me to ask a question or look somewhere to gather information which may not really change the world state, but it changes my own belief about the world. [00:27:54] That's a powerful way to have to empower the agent to reason about the world, to explore the world. To what kind of problems does allow you to solve to to consider believe space vs. just state space? [00:28:09] Well, any problem that requires deliberate information gathering. Right. So if in some problems. Like chess, there's no uncertainty or maybe there's uncertainty about the opponent, there's no uncertainty about the state and some problems, there's uncertainty, but you gather information as you go, right? You might say, oh, I'm driving my autonomous car down the road and it doesn't know perfectly where it is, but the light are all going all the time. So I don't have to think about whether to gather information. [00:28:41] But if you're a human driving down the road, you sometimes look over your shoulder to see what's going on behind you in the lane, and you have to decide whether you should do that now. And you have to trade off the fact that you're not seeing in front of you when you're looking behind you. And how valuable is that information and so on. And so to make choices about information gathering, you have to reasonably space. Also also, I mean, also to just. [00:29:11] Take into account your own uncertainty before trying to do things so you might say, if I understand where I'm standing relative to the doorjamb pretty accurately, then it's OK for me to go through the door. But if I'm really not sure where the door is, then it might be better to not do that. [00:29:29] Right now, the degree of uncertainty about the world is actually part of the thing you're trying to optimize. And for me. That's right. That's right. [00:29:38] So this idea of a long horizon of planning for a party or just even how to get out of the house or how to make breakfast, you show this presentation of the WTF was the fork of a robot looking at the sink. [00:29:53] And can you describe how we plan in this world of this idea of hierarchical planning? [00:30:00] We've mentioned this is. [00:30:03] Yeah, how can a robot hope to plan about something of this with such a long array where the goal is quite far away? [00:30:11] People, since probably reasoning began, have thought about hierarchical reasoning, the temporal hierarchy and their spatial hierarchy. But let's talk about temporal hierarchy. So you might say, oh, I have this long execution I have to do, but I can divide it into some segments abstractly. Right. So maybe you have to get out of the house. I have to get in the car. I have to drive and so on. And so. [00:30:38] You can plan if you can build abstractions, so this we started out by talking about abstractions that we're back to that now if you can build abstractions in your states face. And abstractions, sort of temporal abstractions, then you can make plans at a high level and you can say, I'm going to go to town and then I'll have to get gas and then I can go here and I can do this other thing. And you can reason about the dependencies and constraints among these actions. [00:31:05] Again, without thinking about the complete details, what we do in our hierarchical planning work is then say, all right, I make a plan at a high level of abstraction. I have to have some reason to think that it's feasible without working it out in complete detail. And that's actually the interesting step. I always like to talk about walking through an airport. Like you can plan to go to New York and arrive at the airport and then find yourself an office building later. [00:31:35] You can't even tell me in advance what your plan is for walking through the airport, partly because you're too lazy to think about it. Maybe, but partly also because you just don't have the information. [00:31:44] You don't know what get your landing in or what people are going to be in front of you or anything. So there is no point in planning in detail, but you have to have you have to make a leap of faith that you can figure it out once you get there. And it's really interesting to me how you arrive at that. [00:32:06] How do you so you have learned over your lifetime to be able to make some kinds of predictions about how hard it is to achieve some kinds of goals. And that's critical. Like you would never plan to fly somewhere if you couldn't didn't have a model of how hard it was to do some of the intermediate steps. So one of the things we're thinking about now is how do you do this kind of very aggressive generalization? To situations that you haven't been in, and I want to predict how long will it take to walk through the Kuala Lumpur airport like you give me an estimate and it wouldn't be crazy and you have to have an estimate of that in order to make plans that involve walking through the Kuala Lumpur airport, even if you don't need to know it in detail. [00:32:48] So I'm really interested in these kinds of abstract models and how do we acquire them. But once we have them, we can use them to do hierarchical reasoning, which I think is very important. [00:32:57] Yeah, there's this notion of go regression and premix back changing this idea of starting at the goal and just form these big clouds of states. [00:33:10] I mean, it's almost like saying to the airport, you know, you know, once you show up to the airport that you're like a few steps away from the goal. So, like, think of it this way is kind of interesting. [00:33:25] I don't know if you have sort of further comments on that sort of starting to go with. [00:33:32] Yeah. I mean, it's interesting that Simon Herb Simon, back in the early days way, I did talked a lot about means and the reasoning and reasoning back from the goal. There's a kind of an intuition that people have that. The number of the states space is big, the number of actions you could take is really big. So if you say here I sit and I want to surge forward from where I am, what are all the things I could do that's just overwhelming? [00:33:58] If you say if you can reason at this other level and say, here's what I'm hoping to achieve, what can I do to make that true, that somehow the branching is smaller? Now, what's interesting is that, like in the planning community, that hasn't worked out in the class of problems that they look at in the methods that they tend to use, it hasn't turned out that it's better to go backward. Um, it's still kind of my intuition that it is. [00:34:22] But I can't prove that to you right now. [00:34:25] Right. And share your intuition, at least for us mere humans. Speaking of which, when you maybe know, take it and take a little step into that philosophy circle, how hard would it, when you think about human life, is you give those examples often, how hard do you think it is to formulate human life as a planning problem or aspects of human life? [00:34:50] So when you look at robots, you're often trying to think about object manipulation tasks, about moving a thing. [00:34:57] When you take a slight step outside the room, let the robot leave and go get lunch or maybe try to pursue more fuzzy goals. [00:35:10] How hard do you think is that problem? If you were to try to maybe put another way, try to form a human life as as a planning problem? Well, that would be a mistake. [00:35:20] I mean, it's not all a planning problem, right? I think it's really, really important that we understand that you have to put together pieces and parts that have different styles of reasoning and representation and learning, I think. I think it's it's probably clear to anybody that that it can't all be this or all be that brains aren't all like this are all like that. Right. They have different pieces and parts and substructure and so on. [00:35:47] So I don't think that there's any good reason to think that there's going to be like one true algorithmic thing that's going to do the whole job, just a bunch of pieces together designed to solve a bunch of specific problems, one specific or maybe styles of problems. [00:36:05] I mean, there's probably some reasoning that needs to go on in image space, I think, again. There's this model based versus model free idea. It's own reinforcement learning people talk about, oh, should I learn? I could learn a policy just straight up a way of behaving. I could learn it's popular on a value function. That's some kind of weird intermediate ground. Or I could learn a transition model which tells me something about the dynamics of the world. [00:36:35] If I could imagine that I learn a transition model and I couple it with a planner and I draw a box around that, I have a policy again, it's just stored a different way. Right, right, it's and but it's just as much of a policy as the other policy, it's just I've made I think the way I see it is it's a time space trade off in computation right up, more overt policy representation. Maybe it takes more space, but maybe I can compute quickly what action I should take. [00:37:05] On the other hand, maybe a very compact model of the world dynamics. Plus a planner lets me compute what action to take to just more slowly. There's no I mean, I don't think there's no argument to be had. [00:37:16] It's just like a question of what form of computation is best for us, for the various sub problems. [00:37:25] Right. So and so like learning to do algebra manipulations for some reason is I mean, that's probably going to want naturally a sort of a different representation than riding a unicycle at the time. Constraints on the unicycle or serious spaces, maybe smaller, I don't know. [00:37:42] But so I and I could be the more human size of falling in love, having a relationship that might be another, uh. Yeah, another. No idea how to model that. [00:37:53] Yeah. That's that's first solve the algebra and object manipulation. [00:37:59] So what do you think is harder perception or planning. [00:38:04] Perception. [00:38:05] That's my understanding, that's why. So what do you think is so hard about perception by understanding the world around you? [00:38:12] Well, I mean, I think the big question. Is the representational a hugely the question as representation so. [00:38:24] Perception has made great strides lately, right, and we can classify images and we can play certain kinds of games and predict how to steer the car and all that sort of stuff. [00:38:37] I don't think we have a very good idea of. What perception should deliver, right? So if you if you believe in modularity, OK, there's there's a very strong view which says. We shouldn't build in any modularity, we should make a giant I can't take neural network, train it into and to do the thing and that's the best way for it. And it's hard to argue with that except on a sample complexity basis. Right. So you might say, oh, well, if I wanted to do end to end, first of all, learning on this giant giant neural network, it's going to take a lot of data and a lot of like broken robots. [00:39:18] So. Then the only answer is to say, OK, we have to build something in building some structure or some bias, we know from theory of machine learning the only way to cut down the sample complexity is to kind of cut down somehow cut down the hypothesis space. [00:39:37] You can do that by building in bias. There's all kinds of reason to think that nature built bias into humans. Convolution is a bias, right? It's a very strong bias and it's a very critical bias. So my own view is that we should look for more things that are like convolution, but that address other aspects of reasoning. Right? So convolution helps us a lot with a certain kind of spatial reasoning. That's quite close to the imaging, I think. [00:40:07] There's other ideas like that. Maybe some amount of research, maybe some notions of abstraction, maybe the notion that objects exist, actually, I think that's pretty important and a lot of people won't give you that to start with. Right. [00:40:23] So almost like a convolution in the in the object semantic object space of some kind, some some kind of idea there. [00:40:32] That's right. And people like the graph graph convolutions are an idea that are related to relational representations. And so so I think there are so you I've come far afield from perception, but I think I think the thing that's going to make perception that kind of the next step is actually understanding better what it should produce. Right. What are we going to do with the output of it? Right. It's fine when what we're going to do with the output is stear. [00:40:59] It's less clear when we're just trying to make a one integrated, intelligent agent. What's the output of perception? B, We have no idea. And how should that hook up to the other stuff? We don't know. So I think the pressing question is what kinds of structure can we build in there, like the moral equivalent of convolution that will make a really awesome superstructure that then learning can kind of progress on efficiently? [00:41:27] I agree a very compelling description of actually where we stand with the perception of them. You're teaching a course on a body intelligence. What do you think it takes to build a robot with human level intelligence? I don't know if we knew we would do it if you were to. [00:41:46] I mean, OK, so do you think a robot needs to have, uh, self-awareness, uh, consciousness, the fear of mortality? Or is it is it simpler than that? Or is consciousness a simple thing? [00:42:01] Like do you think about these notions? [00:42:04] I don't think much about consciousness. Even most philosophers who care about it will give you that. You could have robots that are zombies. Right, that behave like humans but are not conscious. And I at this moment would be happy enough with that. So I'm not really worried one way or the other. [00:42:20] To the technical side, you're not thinking of the use of self-awareness. [00:42:24] Well, but I mean, OK, but then what is self-awareness mean? I mean that you need to have some part of the system that can observe other parts of the system and tell whether they're working well or not. That seems critical. So does that count? Does I mean, does that kind of self-awareness or not? Well, it depends on whether you think that there's somebody at home who can articulate whether they're self aware. But clearly, if I have, like, you know, some piece of code that's counting how many times this procedure gets executed, that's a kind of self-awareness. [00:42:58] Right. So there's a big spectrum. It's clear you have to have some of it. Right. [00:43:02] You know, quite far away. I many dimensions. [00:43:04] But is the direction of research that's most compelling to you for, you know, trying to achieve human level intelligence in robots? [00:43:13] Well, to me, I guess the thing that seems most compelling to me at the moment is this question of what to build in. I want to learn. I think. We're we don't we're missing a bunch of ideas and and we, you know, people, you know, don't you dare ask me how many years it's going to be until that happens, because I won't even participate in the conversation, because I think we're missing ideas and I don't know how long it's going to take to find them. [00:43:42] So I want to ask you how many years, but maybe I'll ask you. What it when you will be sufficiently impressed that we've achieved it, so what's what's a good test of intelligence? Do you like the Turing test, the natural language and the robotic space? Is there something where you would sit back and think, oh, that's that's pretty impressive as a test, as a benchmark? Do you think about these kinds of problems? [00:44:10] No, I resist. I mean, I think all the time that we spend arguing about those kinds of things could be better spent just making the robots work better so you don't value competition. [00:44:21] So I mean, the nature of benchmark AI benchmarks and data sets or Turing test challenges where everybody kind of gets together and tries to build a better robot because they want to outcompete each other like the diaper challenge of the autonomous vehicles. Do you see the value of that? I can get in the way I think you can in the way I mean, some people many people find it motivating and so that's good. I find it a.. Motivating, absolutely. [00:44:48] Yeah. Uh, but I think what I mean, I think you get an interesting cycle where for a contest, a bunch of smart people get super motivated and they hacked their brains out. And much of what gets done is just hacks. But sometimes really cool ideas emerge and then that gives us something to chew on after that. So it's not a thing for me, but I don't I don't regret that other people do it. [00:45:13] Yeah, it's like you said, with everything else in the mix is good. So jumping topics a little bit. [00:45:18] You started the journal Machine Learning Research and served as its editor in chief. [00:45:25] How did the publication come about and what do you think about the current publishing model? Space and machine learning, artificial intelligence distinction? [00:45:35] OK, good. So it came about because there was a journal called Machine Learning, which still exists, which was owned by Kluwer. And there was I was on the editorial board and we used to have these meetings annually where we would complain to Clowery that it was too expensive for the libraries and that people couldn't publish. [00:45:53] And we would really like to have some kind of relief on those fronts. And they would always sympathize but not do anything. So we just decided to make a new journal. And there was the Journal of AI Research, which has was on the same model which had been in existence for maybe five years or so, and it was going on pretty well. So, uh, we just made in a journal. It wasn't I mean, I don't know, I guess it was work, but it wasn't that hard. [00:46:23] So basically, the editorial board, probably 75 percent of the editorial board of the Machine Learning resigned. And we found it then this new journal. [00:46:34] But it was sort of was more open. Yeah, right. [00:46:39] So it's completely open. It's open access, actually. Uh, I had a postdoc, George, candidates who wanted to call these journals free for all. [00:46:49] Uh, because there were I mean, it both has no page charges and has no, uh, access restrictions. [00:46:59] And the reason and so lots of people I mean, there were there were people who are mad about the existence of this journal who thought it was a fraud or something. It would be impossible, they said, to run a journal like this with basically I mean, for a long time, I didn't even have a bank account. I paid for the lawyer to incorporate and the IP address and just did it cost a couple hundred dollars a year to run? [00:47:25] It's a little bit more now, but not that much more. But that's because I think computer scientists are competent and autonomous in a way that many scientists in other fields aren't. I mean, doing these kinds of things, we already typeset around papers. We all have students and people who can hack a website together in afternoon. So the infrastructure for us was like not a problem, but for other people in other fields, it's a harder thing to do in this kind of open access journals. [00:47:55] And there's nevertheless one of the most prestigious journals. So it's not like prestige and it can be achieved without any paper is not required for prestige. [00:48:06] It's out. Yeah. So on the review process side of actually a long time ago, I don't remember when I reviewed a paper where you were also a reviewer and I remember reading your view of being influenced by it and it was really well written. It influenced how I write teacher reviews. [00:48:22] You disagreed with me actually, and you made it my review, but much better so. [00:48:30] But nevertheless, the review process, you know, has its flaws. And how do you think what do you think works? Well, how can it be improved? [00:48:40] So actually, when I started, Jameelah, I wanted to do something completely different. And I didn't because it felt like we needed a traditional journal of record, and so we just made Jama'a be almost like a normal journal except for the open access parts of it. [00:48:57] Basically, increasingly, of course, publication is not even a sensible word. You can publish something by putting it in archives so I can publish everything tomorrow. [00:49:08] So making stuff public is there's no barrier. We still need curation and evaluation. I don't have time to read all of archive. [00:49:24] And you could argue that. Kind of social thumbs up being of articles suffices, right, you might say, oh, heck with this, we don't need journals at all. We'll put everything on archives and people will upvote and downvote the articles. And then your CV will say, oh, man, he got a lot of upvotes. So that's good. [00:49:50] Um, but I think there's still. Value in careful reading and commentary of things, and it's hard to tell when people are up voting and down voting or arguing about your paper on Twitter and Reddit, whether they know what they're talking about. Right. So then I have the second order problem of trying to decide whose opinions I should value and such. So I don't know what I if I had infinite time, which I don't and I'm not going to do this because I really want to make robots work. [00:50:25] But if I felt inclined to do something more in a publication direction, I would do this other thing which I thought about doing the first time, which is to get together some set of people whose opinions I value and who are pretty articulate. And I guess we would be public, although we could be private, I'm not sure. And we would review papers, we wouldn't publish them and you wouldn't submit them. We would just find papers and we would write reviews and we would make those reviews public. [00:50:52] And maybe if you you know, so we're Leslie's friends who review papers and maybe eventually if if we our opinion was sufficiently valued, like the opinion of Jameelah is valued, then you'd say in your CV that Leslie's friends gave my paper a five star rating and that would be just as good as saying I got it, you know, accepted into this journal. So I think I think we should have good public commentary and organize it in some way, but I don't really know how to do it. [00:51:22] It's interesting times. [00:51:23] The way the way you describe it actually is really interesting. I mean, we do have movies and TV that there's experts, critics come in, they write reviews, but there's also regular. Yeah, non critics. You must write reviews and they're separated. I like open review. [00:51:39] The, the, the I, I clear process. I think it's interesting. [00:51:46] It's a step in the right direction, but it's still not as compelling as a reviewing movies or video games. I mean sometimes almost it might be silly as this from my perspective to say, but it boils down to the user interface, how fun and easy it is to actually perform the reviews, how efficient, how much you as a reviewer get street cred for being a good reviewer. [00:52:11] Those are those human elements come into play. [00:52:14] Now, it's a big investment to do a good review of a paper and the flood of papers is out of control. Right. So, you know, there aren't three thousand I don't know how many movies are there in a year? I don't know. But that's going to be less than how many machine learning papers are in a year now. [00:52:30] And I'm worried, you know, I. I am I right. So I'm like an old person. So of course I'm going to say, rah rah rah rah rah. Things are moving too fast. [00:52:42] I'm a stick in the mud so I can say that my particular flavor of that is I think the horizon for researchers has gotten very short, that students want to publish a lot of papers and there's a huge there's value, it's exciting and there's value in that. And you get patted on the head for it and so on. But and some of that is fine. But I'm worried that we're driving out. People who would spend two years thinking about something I'm back in my day when we worked on our theses, we did not publish papers. [00:53:24] You did your thesis for years. You picked the hard problem and then you worked and chewed on it and did stuff and waste of time and for a long time. And when it was roughly when it was done, you would write papers. And so I I don't know how to answer. And I don't think that everybody has to work in that mode. But I think there's some problems that are hard enough that it's important to have a longer research horizon. [00:53:47] And I'm worried that we don't incentivize that at all at this point in this current structure. [00:53:54] Right. So what do you see as what are your hopes and fears about the future of A.I. and continue on this theme? [00:54:03] So I had gone through a few winters and ups and downs, D.C., another winter of I coming. And are you more hopeful about making robots work, as you said? [00:54:17] I think the cycles are inevitable, but I think each time we we get higher. Right. I mean, you know, it's like climbing some kind of landscape with a noisy optimizer. Yeah. So it's clear that the the you know, the deep learning stuff has made deep and important improvements. [00:54:40] And so the high watermark is now higher, there's no question. But of course, I think people are overselling and eventually investors like us and other people will look around and say, well, you're not quite delivering on this grand claim. [00:54:58] And that wild hypothesis is that probably it's going to crash some amount and then it's OK. I mean, but I don't I can't imagine that there's like some awesome monotonic improvement from here to human level AI. [00:55:14] So in you know, I have to ask this question. I probably anticipate answers the answers. [00:55:20] But do you have a worry short term or long term about the existential threats of AI and maybe short term, less existential by more robots taking away jobs? [00:55:36] Hmm. [00:55:37] Well, actually, let me talk a little bit about utility. Actually, I had an interesting conversation with some military ethicists who wanted to talk to me about autonomous weapons and there they were, interesting, smart, well educated guys who didn't know too much about AI or machine learning. And the first question they asked me was, has your robot ever done something you didn't expect? And I, like, burst out laughing because anybody who's ever done something with the robot. [00:56:07] Right. Knows that they don't do it. And what I realized was that their model of how we program a robot was completely wrong. Their model of how we can program a robot was like Lego Mindstorms like, oh, go for it, a meter turn left, take a picture, do this, do that. And so if you have that model of programming, then it's true. It's kind of weird that your robot would do something that you didn't anticipate. [00:56:31] But the fact is actually so now this is my new educational mission. If I have to talk to nonexperts, I try to teach them the idea that we don't operate. [00:56:41] We operate at least one or maybe many levels of abstraction above that. And we say, oh, here's a hypothesis class. Maybe it's a space of plans or maybe it's a space of classifiers or whatever, but there's some set of answers and an objective function. [00:56:55] And then we work on some optimization method that tries to optimize a solution, a solution in that class. And we don't know what solution is going to come out right, so I think it's important to communicate that. So, of course, probably people who are listening to this, they they know that lesson. But I think it's really critical to communicate that lesson. And then lots of people are now talking about, you know, the value alignment problem. [00:57:19] So you want to be sure as robots or software systems get more competent, that their objectives are aligned with your objectives or that our objectives are compatible in some way or we have a good way of mediating when they have different objectives. And so I think it is important to start thinking in terms like you don't have to be freaked out by the robot apocalypse to accept that it's important to think about it. Doctor functions of value alignment. Yes. And that you have to really everyone who's done optimization knows that you have to be careful what you wish for, that, you know, sometimes you get the optimal solution and you realize that was that objective was wrong. [00:58:00] So pragmatically, in the short term, it seems to me that that those are really interesting and critical questions. And the idea that we're going to go from being people who engineer algorithms to being people who engineer objective functions, I think that's that's definitely going to happen. And that's going to change our thinking and methodology. [00:58:20] And so we're going to. You started a Stanford philosophy. That's where I will go back to philosophy maybe. Well, I mean, they're mixed together because because as we also know, as machine learning people. Right. When you're designing in fact, this is the lecture I gave in class today. When you design an objective function, you have to wear both hats. There's the hat that says, what do I want? And there's the hat that says, but I know what my optimizer can do to some degree and I have to take that into account. [00:58:50] So it's it's always a trade off and we have to kind of be mindful of that. [00:58:54] The part about taking people's jobs. I understand that that's important. I don't understand. Sociology or economics or people very well, so I don't know how to think about that, so that's yeah. So there might be a sociological aspect there, the economic aspect that's very difficult to think about. [00:59:14] I mean, I think other people should be thinking about it, but I'm just that's not my strength. [00:59:17] So what do you think is the most exciting area of research in the short term for the community and for you? For yourself? [00:59:24] Well, so, I mean, there's the story I've been telling you about. How to engineer intelligent robots. So that's what we want to do. We all kind of want to do well. I mean, some of us want to do this. And the question is, what's the most effective strategy? And we've tried and there's a bunch of different things you could do at the extremes. Right. One super extreme is we do introspection and we write a program, OK, that has not worked out very well. [00:59:50] Another extreme is we take a giant bunch of neural goo and we try to train it up to do something. I don't think that's going to work either. So the question is, what's the middle ground? And and again, this isn't a theological question or anything like that. It's just like going how do you just how do we what's the best way to make this work out? And I think it's clear it's a combination of learning. To me, it's clear it's a combination of learning and not learning and lots of that combination. [01:00:21] B and what's the stuff we're building? So to me, that's the most compelling question. [01:00:25] And when you say engineer robots, you mean engineering systems that work in the real world. [01:00:31] Is that that's the emphasis. Last question, which robots or robot is your favorite from science fiction? So you can go with Star Wars, R, R D2, or you can go with more modern, uh, maybe how? [01:00:51] I don't think I have a favorite robot from science fiction. This is this is back to you like to make robots work in the real world here. Not, not. [01:01:02] And I mean, I love the process. I care more about the process. [01:01:07] The process. Yeah. I mean, I do research because it's fun, not because I care about what we produce. [01:01:14] Well, that's that's a beautiful night, actually. And Leslie, thank you so much for talking today. Sure. It's been fun.

本集資源與出處