特別節目·中文精讀

皮特·阿比耳:深度強化學習

Pieter Abbeel: Deep Reinforcement Learning

深度強化學習研究者講解機器人學習、模擬到現實遷移與樣本效率的難題。

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

OpenAI 有一隻單腿機器人,學會了後空翻。整個過程裡沒有人給它寫過“後空翻”這條獎勵函式,也沒有人告訴它目標是什麼。它只收到一類訊號:人看完它剛才那段動作,說這次比上次好,或者說這次不如上次。

幾十次比較之後,它翻出一個乾淨的後空翻。皮特·阿比耳(Pieter Abbeel)講這件事時,把它當成強化學習最迷人的地方:人的心裡裝著一個目標,機器人對那個目標一無所知,兩邊靠“更好”和“更差”這兩類偏好訊號,最後收斂到了同一個動作上。阿比耳是伯克利機器人學習實驗室的主任,深度強化學習這條線上最核心的研究者之一,也是讓機器人學會抓取、飛行、操作的代表人物。

這件事的另一面,是強化學習今天最大的瓶頸。絕對分數難拿,相對偏好好拿。讓人給一段動作打 1 到 10 分,他會猶豫半天;讓他比較兩段影片哪段順眼,他脫口而出。OpenAI 的保羅·克里斯蒂亞諾(Paul Christiano)和同事做出的結果證明的就是:把打分換成比較,樣本效率能好一大截。

讓人形機器人打贏費德勒,卡在硬體還是軟體

訪談從一個玩笑開始:什麼時候能有機器人自主打贏費德勒?阿比耳把這問題拆成兩半。在 AI 的很多難題裡,缺的只有軟體,可這件事上硬體同樣差得遠。波士頓動力的機器人開始接近了,但離“繞著球場跑動再揮拍”還早。他的估計是硬體還要 10 到 15 年。他特意提到場地:紅土要滑步,可能比草地更難。

如果不強求人形,允許輪式底盤和特殊設計,時間會提前。揮拍這件事他反而樂觀。球機在一側發球,機械臂在另一側揮拍,用強化學習加上一點模擬裡的預訓練,他覺得可行,只是不知道能做到多高的精度。人類選手能把球打在邊線上,還帶旋轉。強化學習能不能學會給球加旋轉,他說這問題把他問出興趣來了。

“你把我問有興趣了。”(皮特·阿比耳)

明知道里面沒有學習,人還是會喜歡它

物理世界裡最震撼阿比耳的,還是波士頓動力那些影片:跑上樓梯、做 parkour。他說不知道底下有多少是硬編碼的,但光是身體層面的運動能力就已經很驚人。他在傑夫·貝索斯(Jeff Bezos)組織的 Mars 活動上見過 SpotMini,它在場上到處溜達,貝索斯一離開房間,它還得跟著走。今年早些時候他和 Spot 一對一待過一段時間。明知道里面沒有多少學習,明知道原理,心理上還是會產生某種連線。

更極端的例子是 Pepper。在一場 Fidelity 組織的活動上,Pepper 被指令碼化去主持幾個環節,還被指令碼化出一點小孩的性格,會突然插話,也像人一樣搶著參與。阿比耳說那百分之百是寫死的指令碼,他還是很難不把它當成一個“人”。

實驗室裡還有 BRETT,全稱是 Berkeley Robot for the Elimination of Tedious Tasks。所有人一律叫“他”,不叫“它”。一個性別代詞,就讓它在心理上更像人。

那這種心理能不能寫進獎勵函式?阿比耳說,如果能把“讓人喜歡和它相處”形式化成一個目標,強化學習沒有理由學不會,也沒有理由不會自己變得越來越像人,或者像寵物。難點在於怎麼拿到那個訊號。數字形式的評分很難,比較形式的好惡卻很容易:一個人說“你剛才那五分鐘比前五分鐘舒服多了”,這句話就已經是一個可用的獎勵。

一百步動作換來的 3 分,能說明什麼

阿比耳提到自己剛翻開薩頓(Sutton)和巴託(Barto)那本強化學習教材時的感受:這看起來像魔法,像是智慧本身的定義。

稀疏獎勵下的學習為什麼可能?他先講了反面。正因為訊號這麼弱,強化學習才需要海量樣本。設想連續做一百個動作,第一次拿到 3 分,第二次拿到 2 分。單看這兩個數字毫無意義,但兩條軌跡之間有了相對關係:第二次那一百個動作整體上不如第一次。兩條軌跡裡都混著好動作和壞動作,分不出來是哪個起了作用。所以只能靠大量經歷,把“一貫和好結果同時出現的動作”和偶然的噪聲分開。

然後策略梯度做的是一件很簡單的事:讓高獎勵時經常出現的動作更可能發生,讓低獎勵時經常出現的動作更不可能發生。聽起來過於樸素,但它在實際任務裡學到的東西,比紙面推演能解釋的要多。

ReLU 網路是一片逐步鋪開的線性控制器

伯克利做深度強化學習大約起步於 2011 到 2013 年,閆端(Yan Duan)最早在推動。當時他們腦子裡的圖景是這樣的:ReLU 這類整流網路給出的東西,本質上是分段的線性反饋控制。

線性反饋控制在控制文獻裡極其成功。阿比耳舉過直升機的例子:懸停狀態下,直升機是一個動力學非常複雜的系統,可一個相對簡單的線性控制器就能把它穩住。被控物件複雜,控制結構卻可以很簡單,這在工程裡反覆被驗證過。

網路的額外好處是拼接。以前這塊工作要靠人手工做:這裡放一個線性控制器,那裡放一個,中間用有限狀態機切換。網路學的是自己決定什麼時候用哪一塊。兩層網路裡,隱層某個單元從啟用切到失活,相當於沿著某個方向切一刀,這個方向不一定和座標軸對齊。空間就這樣被一刀一刀慢慢鋪滿,而且相鄰的那些線性控制器共享大量引數,也就是共享了大量已經學到的經驗。

阿比耳說,這是他當年敢於期待深度強化學習能成的核心直覺:它吃著線性反饋控制極其好用的紅利,同時用鋪磚的方式補上了線性控制做不到的部分。

肌肉收縮是高頻的,讀博的決定是低頻的

這套直覺搬進真實世界,就會撞上時間尺度的問題。

人影響世界的方式,說到底是一串高頻的肌肉纖維收縮和放鬆。但“決定讀一個博士”這種決策,跟肌肉動作之間隔了不知道多少層抽象。做出決定到看到結果要十年,中間還有無數分叉。現有演算法根本沒有能力把最終的結果歸因到當初那個決定上。

這就是信用分配(credit assignment)的死結。阿比耳認為,要解開它,需要目前完全不存在的層級推理能力。調參補不上這個缺口,缺的是一個還沒有被髮明出來的機制。

二三十年前的推理系統能想很遠,只是沒接地

層級推理這四個字,容易讓人以為是個新問題。阿比耳提醒,二三十年前就有能在很長時間跨度上做推理的系統,問題是它們不接地。世界的邏輯描述、動力學描述,全部由人手工設計,接不到感知上,接不到真實物體上。這套系統在紙面上想得很遠,落到現實裡立刻失焦。

深度學習補上的正好是這一環。它讓機器能從感測器資料裡看懂世界裡有什麼。所以現在是把兩邊接起來的時機,他給出了兩條路線。

第一條是把深度學習嵌進傳統方法,端到端訓練,讓深度網路的輸出變成一種表徵,再餵給傳統的動力學系統去做規劃。值迭代網路(Value Iteration Networks,阿維夫·塔瑪 Aviv Tamar 等人的工作)是這條線上的代表。

第二條是資訊理論的思路。所謂採取一個高層動作,就是選一個隱變數,這個隱變數在相當程度上決定了未來一段時間裡會發生什麼。決定去加油站加油,五分鐘後人到沒到,從當初那個高層動作大致就能判斷出來。這條路線他們做了很久,進展很小。

撞牆之後,阿比耳回頭問了一個更樸素的問題:要層級到底是為了什麼?答案落在兩件事上,更好的信用分配,和更快的學習。

“我們不知道層級該怎麼設計,但我們知道想從它身上得到什麼。那就直接把它當最佳化目標,看它會不會自己長出來。”(皮特·阿比耳)

這就是 RL²(由閆端領銜)的做法。在迷宮導航任務裡,確實長出了東西:走廊裡穩定地直著走,這本身就是一個“選項”;到了岔路口才決定轉不轉;甚至出現了“別去走過的地方”這種傾向。阿比耳說這算有生命跡象,只是還沒能擴充套件到真實世界的複雜度上。

他同時承認,自己更希望這類問題能用數學解決。一個能形式化的結論可以跳過大量實驗,而研究過程本身就像強化學習,要試很多次才撞到一次成功。可惜這些年大多數進展還是一步一步試出來的,那種能一眼看穿兩年實驗量的方程,還沒有出現。

AlexNet 真正的價值在於學到的東西能複用

遷移學習是阿比耳眼裡最難也最重要的問題之一。他在這件事上的態度有點分裂。

一邊是已經足夠驚人的成績。2012 年 AlexNet 在影象識別上變好,只是個開頭。緊接著大家發現,在 ImageNet 上學到的東西可以微調去解新任務。這一點在當時反而是更大的事情:以前的機器學習通常是一次性的,為一個場景學一個模型,學完就完了。“學到的東西能複用”這件事,是遷移學習到今天為止影響範圍最大的一次成功。

後來規模變大,又把這件事放大了一輪。語言模型先做預測任務,再把學到的東西複用到別的任務上。UNREAL 那類工作一邊做強化學習一邊掛上輔助目標,在迷宮導航裡學到的不只是走法。阿比耳說這些結果已經很說明問題。

另一邊是他的困惑。什麼算泛化?泛化有幾個層級?這條線該畫在哪裡?他說自己在這上面很分裂。看得見的進步是真的,概念上的模糊也是真的。

能預測行星軌道的模型,遇到闖入的恆星就廢了

他有一個區分“學會精通”和“學會泛化”的例子。

當前的深度學習拿來預測太陽系行星的相對運動,能預測得不錯。可如果突然有一顆大質量天體闖進太陽系,它就不會知道接下來會發生什麼。物理學家做的事情不一樣:他們要找到能解釋這一切的最簡解釋,不斷追問還能不能更簡單。整個宇宙動力學的終極方程,是這種追問的極限形態。深度學習沒有往這個方向推。

統計學家弗拉基米爾·瓦普尼克(Vladimir Vapnik)夢想找到學習的 E=mc²,一門關於學習的通用理論。阿比耳覺得這個追求有意思,但他心裡的版本更像是模組化原則。有證據表明大腦相當模組化,先天失明的人會把通常處理視覺的腦區挪作他用,說明一部分腦區可以被重新徵用。新皮質佔了很大一塊,看起來也相當模組化。如果誰能設計出同樣模組化的東西,讓它自己成長、自己變得更能幹,這個方向不算不現實。

自我對弈漂亮在哪:一局裡總有一方贏

自我對弈(self-play)之所以美,在於它順手解決了強化學習最頭疼的訊號問題。

普通強化學習裡,如果你從來沒成功過,就一點訊號都拿不到。自我對弈裡你在兩邊,一局裡總有一方贏、一方輸,對比天然存在:一個版本的“我”比另一個版本的“我”強。每下一局都有訊號。所以只要一個問題能被改寫成自我對弈,學習速度就遠好於普通環境。

可惜目前自我對弈主要還用在有天然對手的遊戲裡。如果機器人搭建一間小屋這種事也能寫成自我對弈,會快得多,但沒人知道怎麼寫。寫不成就只能設計細粒度獎勵,不只獎勵達成目標,還要獎勵中間取得的進展。這樣做很耗人力。

既然獎勵要花這麼大力氣設計,為什麼不乾脆演示一遍?阿比耳順勢把話頭引到了模仿學習上。

十分鐘教一個技能,和讓機器人看懂你的手

最直接的一種演示是遙操作。人在這邊操控,機器人在那邊真實地經歷整個過程。訊雜比很高。阿比耳說十分鐘就能教會一個基本技能,比如抓起瓶子放到指定位置,不管瓶子從哪個位置開始都能放過去。

更有意思的是第三人稱。機器人不動手,只看著你做,然後自己完成那一步翻譯:把“你的手在做什麼”對映成“我的手該做什麼”。你不能用它控制你的手,你只能看。阿比耳把 2018 年的一次重要突破歸在這條線上,由切爾西·芬恩(Chelsea Finn)領銜,他形容這幾乎是給示範做了一次機器翻譯:人的示範被翻譯成機器人該執行的動作,背後是元學習,從很少的示範裡學到這種翻譯關係。這開啟了很多加速學習的口子。

自動駕駛不太需要區分第一人稱和第三人稱

萊克斯自己研究自動駕駛,問這套第三人稱的辦法能不能用過去。阿比耳說,開車這件事上,第一人稱和第三人稱的區分並不重要。

原因在於難的地方已經很清楚了:從當前位置到前方几米的一個點,這件事被研究得很透,動力學也好理解。區別只在誰在打方向盤。機器人操作就完全不同,接觸力非常複雜,視角的區分在那裡才有意義。

至於駕駛該用模仿還是強化學習,模仿給出的訊號更足,短板也明顯:標準形態的模仿學習裡沒有目標概念。純粹反應式的行為克隆,泛化能力有限,遇到訓練分佈之外的場景就沒轍。逆強化學習這類帶目標推斷的版本會好不少。阿比耳的意思很清楚:一個沒有目標概念的策略,很難泛化到你真正需要的那種程度。

與其造一個完美模擬器,不如造一群不太完美的

模擬和模仿、強化學習的關係,阿比耳給了一個角度。

一條路是把模擬器做得越來越準。另一條路是造一批模擬器,每一個都不夠準,單獨在裡面訓練都遷移不到真機,但同時在全部模擬器裡訓練,就會出現一個在所有模擬器裡都表現好的策略。真機無非是又一個略有偏差的模擬器。

“說不定我們本來就活在一個模擬裡,那真機也就是其中之一。”(皮特·阿比耳)

駕照只考繞街區一圈,我們卻不敢這麼信自動駕駛車

說到安全,阿比耳先談最實際的一層。機器人物理上很強壯,一次失誤就可能造成傷害,車可以看成會跑的機器人,風險同理。這一層是很工程的問題:這個機器人犯錯,後果是什麼。“機器比人聰明之後怎麼辦”那類長期擔憂,是另一個層面的事。模擬在這裡派上很大用場。

他拿駕照考試做了個對比。加州郊區的路考,繞街區開一圈,路邊停車,過一個停車標誌,基本就結束了。人類駕駛這麼複雜的能力,被這麼短的測試代表了,我們接受了這種代表性。換成一輛自動駕駛車做完這套流程,沒人會信它能上路。所以真正缺的是面向機器人的單元測試,這一類測試目前還沒有。

問題在軟體更新時更尖銳。自駕駛系統升級了一版,怎麼確認新版本在所有維度上都更強,沒有把壞行為悄悄帶進來?阿比耳說這個問題目前還沒有真正的解法,是值得專門研究的方向。

善良是被預置的,還是能被最佳化出來

訪談末尾聊到善良。

阿比耳提到吳恩達(Andrew Ng)讓他看到善良的價值。人的偏好裡有一部分是進化預置的:痛、餓、渴,我們天生就知道要躲開,這不是被教出來的。進化把這些寫進身體裡,正是因為把它們寫進去,學習才變得容易。同時人類又非常部落化,對自己人很寬厚,對外人要專門去學。

史蒂芬·平克(Steven Pinker)在《人性中的善良天使》裡描述了暴力長期下降的趨勢。無論人們怎麼分陣營,長期看人類是越來越能相處。這是一種跨越很多代的緩慢最佳化。

那能不能把善良教給機器人?阿比耳用狗來回答。狗有推理能力,水平也不低,但遠不到人類水平,可是很多人從狗身上得到的幸福感很高。回家時狗撲上來,那天就順了;狗被帶走幾天,回家的那一刻就沒那麼高興。建立強烈的感情聯結,不需要人類級別的推理。至於這種聯結對人是不是好事,那是另一個問題。

馬斯克說過愛是答案。萊克斯順著提了個改法:愛是目標函式,強化學習是答案。阿比耳的回答是,也許吧。

把整場對話串起來看,阿比耳的判斷其實相當剋制。機器人打贏費德勒還要等硬體,層級推理還沒有發明出來,安全測試還沒有解法,遷移學習到底算不算泛化也說不清。他反覆回到同一個位置:如果一件事能被形式化成目標,學習就沒理由做不到。剩下的工作,是把目標寫對,以及找到足夠便宜的訊號來源。

  • 獎勵訊號能用比較就別用打分。絕對評分採整合本高、噪聲大,“這一段比上一段好”這種相對判斷幾乎零成本,文中獨腿機器人學會後空翻就是靠這個。設計人類反饋流程時,先把評分表換成二選一。
  • 先問一個問題能不能改寫成自我對弈。只要能拆出兩個互相競爭的自己,每局都有勝負,訊號就不再稀缺。遊戲之外的場景值得花時間試一次這種改寫,收益遠大於調超參。
  • 獎勵塑形做不動時,改成演示。與其設計逐步進展的獎勵,不如花十分鐘遙操作示範一次,訊雜比高得多。有條件的團隊可以再往第三人稱示範上走一步,讓機器只觀察、不經歷。
  • 模擬別追求單個完美,追求一組有偏差的。同時在一批都不夠準的模擬器裡訓練,逼策略學出對全部偏差都成立的行為,真機就是其中一個略有不同的樣本。
  • 給模型建迴歸測試集,尤其在更新之後。人類靠一圈路考代表駕駛能力,機器需要更嚴格的東西。每次上線前確認新版本在所有維度上都不弱於舊版本,別讓壞行為悄悄混進來。
  • 把“層級”當最佳化目標而不是手工架構。既然說不清層級該長什麼樣,就先定義想從它身上獲得的東西,比如更快的收斂,然後讓結構自己湧現,再從結果裡反推它學到了什麼。
  • 先在大規模預測任務上預訓練,再遷移。從 ImageNet 微調到語言模型,這條路的收益被反覆驗證過。手上的任務規模不夠時,先把資料用在通用表徵上。
  • 給形式化推導留出時間。實驗本身就像強化學習,要試很多次才成功一次。一個能寫下來的定理或界,可以跳過兩年的試錯,這筆賬值得算。
文稿由本站用語音識別模型(基於官方釋出音訊)機器轉寫,可能有識別錯誤,人名與數字請以音訊為準。
[00:00:00] The following is a conversation with Peter Abele. He's a professor at UC Berkeley and the director of the Berkeley Robotics Learning Lab. He's one of the top researchers in the world working on how to make robots understand and interact with the world around them, especially using imitation and deep reinforcement learning. This conversation is part of the, of course, and artificial general intelligence and the artificial intelligence podcast. If you enjoy it, please subscribe on YouTube, iTunes or your podcast provider of choice, or simply connect with me on Twitter at Lex Friedman spelled F our ID. [00:00:36] And now here's my conversation with Peter Abele. [00:00:58] You've mentioned that if there was one person you could meet, it would be Roger Federer. Let me ask, when do you think we'll have a robot that fully autonomously can beat Roger Federer at tennis? Roger Federer, level player tennis? [00:01:14] Well, first, if he can make it happen for me to meet Roger, let me know. Know of getting a robot to beat him at tennis is kind of an interesting question because. For a lot of the challenges we think about in AI, the software is really the missing piece, but for something like this, the hardware is nowhere near either like to really have a robot that can physically run around the Boston Dynamics. Robots are starting to get there, but still not really human level ability to run around and then swing a racket. [00:01:53] So you think that's a hardware problem? I don't think it's a hardware problem only. I think it's a hardware and software problem. I think it's both. And I think they'll they'll have independent progress. I'd say the hardware maybe in 10, 15 years. And this is not grass, I mean, grass sliding. Yeah, I'll the plague, I'm not sure what's Carter grass or clay. The clay involves sliding, which might be harder to master actually here. [00:02:22] But you're not limited to by people, I mean, I'm sure they're going can build a machine. It's a whole different question. Of course, if you can if you can say, OK, this robot can be on wheels, it can move around on wheels and can be designed differently, then I think. That can be done sooner, probably than a full humanoid type of setup. What do you think? Swing Iraq? So you've worked at basic manipulation. [00:02:48] How hard do you think is the task of swinging Iraq? It would be able to hit a nice backhand or a forehand. Let's say let's say we just set up stationary and a nice robot arm, let's say, you know, standard industrial arm and you can watch the ball come in and swing the racket. It's a good question, I'm not sure it would be. Super hard to do, I mean, I'm sure it would require a lot if we do it with reinforced money, would require a lot of trial and error, it's not going to swing it right the first time around, but. [00:03:21] Yeah, I don't I don't see why I couldn't see things the right way. I think it's learnable. I think if you set up a ball machine, let's say, on one side and then a robot with a tennis racket on the other side, I think it's learnable and maybe a little bit of pre training and simulation. Yeah, I think that's I think that's feasible. I think I think the swing the racket is feasible. Would be very interesting to see how much precision it can get. [00:03:48] Because, I mean, that's. That's where I mean, some of the human players can hit it on the lines, which is very high precision with spin, the spin is an interesting weather. RL can learn to put a spin on the ball. Well, you got me interested. Maybe someday we'll set. Sure. But the answer is basically OK for this problem. [00:04:10] It sounds fascinating, but for the general problem of a tennis player who might be a little bit farther away, what's the most impressive thing you've seen a robot do in the physical world? [00:04:20] So physically, for me, it's. The Boston Dynamics videos always just bring home, and I'm just super impressed. Recently, the robot running up the stairs during the parkour type thing, I mean, yes, we don't know what's underneath. They don't really ride a lot of detail. But even if it's hardcoded underneath, which you might or might not be, just the physical abilities of doing that parkour, that's a very impressive. [00:04:49] So have you met sport many or any of those robots in person sport? Many. Last hearing in April at the Mars event that Jeff Bezos organizes, they brought it out there and it was nicely falling around. Jeff, when Jeff left the room, they had to follow him along, which is pretty impressive. [00:05:08] So I think there's some confidence to know that there's no learning going on on those robots, the psychology of it. So while knowing that while knowing there's not if there's any learning going on, it's very limited. I met so many earlier this year. [00:05:23] And knowing everything that's going on, having one on one interactions, I got to spend some time alone and there's immediately a deep connection on the psychological level, even though you know the fundamentals, how it works, there's something magical. So do you think about the psychology of interacting with robots in the physical world? Even you just showed me the part to the robot and there was a little bit something like a face had a little bit something like a face or something that immediately draws you to it. [00:05:57] Do you think about that aspect of of the robotics problem? Well, it's very hard with Brett here. Give him a name. Berkely robot for the elimination of tedious task is very hard to not think of. [00:06:11] The robot as a person, and it seems like everybody calls him a he for whatever reason, but that also makes it more a person than if it was an it. And it's it seems pretty natural to think of it that way, this past weekend really struck me. I've seen Pepper many times on. On videos, but then I was at an event organized by this was by Fidelity, and they had scripted Peper to help moderate some sessions and scripted Peper to have the personality of a child a little bit. [00:06:43] And it was very hard to not think of it as its own person in some sense, because it was just going to jump and it would just jump into conversation like in there and try to moderate with the same people would just jump in. Hold on. How about me? Can I participate in this doing it? Just like I said, this is like like a person and that was 100 percent scripted. And even then it was hard not to have that sense of somehow there is something there. [00:07:07] So as we have robots interact in this physical world, is that a signal that could be used in reinforcement learning? You've you've worked a little bit in this direction, but do you think that that psychology can be somehow pulled in now? [00:07:21] That's a question I would say a lot. A lot of people ask, and I think part of why they ask it is they're thinking about. How unique are we really still as people like after they see some results, they see a computer go to, say, a computer to this, that they're like, OK, but can it really have emotion? Can it really interact with us in that way? And then once you're around robots, you already start feeling it. [00:07:46] And I think the kind of maybe mythologically, the way I think of it is. If you run something like reinforcement learning about optimizing some objective and. There was no reason that the. Objective couldn't be tied into how much does a person like interacting with this system and why could not the reinforcement learning system optimized for the robot being fun to be around? And why wouldn't it then naturally become more and more interactive and more and more maybe like a person or like a pet? [00:08:20] I don't know what exactly, but more and more have those features and acquire them automatically. [00:08:25] As long as you can formalize an objective of what it means to like something, what how you exhibit, what's the ground truth? How do you how do you get the reward from human? Because you have to somehow collect that information or a human. But you're saying if you can formulate as an objective, it can be learned. [00:08:44] There is no reason it cannot emerge through learning. And maybe one way to formulate as an objective, you wouldn't have to necessarily score it explicitly. So standard rewards are numbers and numbers are hard to come by. This is a one point five or ten point seven on some scale. It's very hard to do for a person, but much easier is for a person to say, OK, well, you did. The last five minutes was much nicer than we did the previous five minutes. [00:09:07] And that now gives a comparison. And in fact, there has been some results in that. For example, Paul Cristiana and collaborators at opening, I had the Hopper, Musyoka, Hopper, one legged robot, the back flips purely from feedback. I like this better than that. That's kind of equally good. And after a bunch of interactions, it figured out what it was the person was asking for, namely a back flip. And so I think the same thing. [00:09:32] I really wasn't trying to do a back flip. [00:09:35] It was just getting a score from the comparison score from the person based on the person having in mind in their own mind what I wanted to do a backflip. But the robot didn't know what it was supposed to be doing. It just knew that sometimes the person said, this is better, this is worse. And then the robot figure it out. What the person was actually after was a backflip. And I imagine the same would be true for things like more interactive robots that the robot would figure out over time. [00:10:01] Oh, this kind of thing apparently is appreciated more than this other kind of thing. [00:10:07] So when I first picked up Suttons Richardson's reinforcement learning book. Before sort of this deep learning, before the reemergence of neural networks as a powerful mechanism for machine learning, RL seemed to me like magic. It was as beautiful. So that seemed like what intelligence is R-AL reinforcement learning. [00:10:32] So how do you think we can possibly learn anything about the world when the reward for the actions is delayed? So sparse. Like where is why do you think RL works? Why do you think you can learn anything under such sparse awards, whether it's regular reinforcement learning, a deep reinforcement, learning, it's your intuition. The counterpart of that is why, Admiral, why does it need so many samples, so many experiences to learn from? Because really what's happening is when you have a sparse reward, you do something maybe for like, I don't know, you take 100 actions and then you get a reward or maybe a bit like a score of three. [00:11:16] And I'm like, OK, three. Not sure what that means. You go again and I get two. And now you know that that sequence of hundred actions that you did the second time around somehow was worse than the sequence of actions you did the first time around. But that's enough to I know which one of those are better or worse. Some might have been good and bad in either one. And so that's why I need so many experience. [00:11:36] But once you have enough experience effectively RW using that apart, it's time to say, OK, when what is consistently there, when you get a higher reward and less consistently there, we can get a lower reward. And then kind of the magic of something as the policy grant update is to say. Now let's update the neural network to make the actions that we're kind of present when things are good more likely, and make the actions that are present when things are not as good, less likely. [00:12:01] So that's that is the counterpoint. But it seems like you would need to run it a lot more than you do, even though right now people could say that RL is very inefficient, but it seems to be way more efficient than one would imagine on paper that the simple updates to the policy, the policy grading that somehow you can learn is exactly as just said, what are the common actions that seem to produce some good results that that somehow can learn anything? [00:12:29] It seems counterintuitive, at least. Is there some intuition behind it? So I think. There's a few ways to think about this, the way I tend to think about it mostly originally when so when we started working on deep reinforcement learning here at Berkeley, which is maybe 2011, 12, 13, around that time, Transhuman was a student initially kind of driving it forward here. [00:12:56] And. The way we thought about it at the time was if you think about rectified linear units or kind of rectifier type networks, um, what do you get? You get something that's piecewise linear feedback control. And if you look at the literature, linear feedback control is extremely successful, can solve many, many problems surprisingly well. I remember, for example, when we did helicopter flight, if you're in a stationary flight regime, not a. Now, sticking with a stationary flight resume like hover, you can use linear feedback control to stabilize the helicopter, very complex dynamical system, but the controller is relatively simple. [00:13:35] And so I think that's a big part of is that if you do feedback control, even though the system you control can be very, very complex, often relatively simple, control architectures can already do a lot. But then also just Lenar is not good enough. And so one way you can think of these networks is that in some detail, the space which people were already trying to do more by hand or with finite state machines, say this linear controller here, this linear controller here, the whole network learns to tell the linear controller here, another linear controller here. [00:14:05] But it's more subtle than that. Yeah. And so it's benefiting from this linear control aspect. It's benefiting from the tiling, but it's somehow telling it one dimension at a time, because if let's say you have a two layer network, even the hidden layer, you make a transition from active to inactive or the other way around. That is essentially one axis, but not axis aligned, but one direction that you change. And so you have this kind of very gradual tiling of the space. [00:14:32] We have a lot of sharing between the linear controllers that tile the space. And that was always my intuition as why to expect that this might work pretty well. It's essentially leveraging the fact that linear feedback control is so good, but of course, not enough. And this is a gradual tiling of the space with linear feedback controls that share a lot of expertise across them. [00:14:53] So that that's that's really nice intuition. But do you think that scales to the more and more general problems of when you start going up, that the number of control dimensions when you start going? Down in terms of how often you get a clean reward signal, does that intuition carry forward to those crazy or weird of worlds that we think of as the real world? [00:15:20] So. I think where things get really tricky in the real world compared to the things we've looked at so far with great success and reinforcement learning is. The time scales, which takes us to an extreme, so. When you think about the real world, I mean, I don't know, maybe some student decided to do a PhD here, right. OK, that's that's a decision. That's a very high level decision. But if you think about their lives, I mean, any person's life, it's a sequence of muscle fiber contractions and relaxations. [00:15:55] And that's how you interact with the world. And that's a very high frequency control thing. But it's ultimately what you do and how you affect the world until I guess we have brain readings and you can maybe do it differently. But typically, that's how you affect the world. And the decision of doing a Ph.D. is like so abstract relative to what you're actually doing in the world. And I think that's where credit assignment becomes just completely beyond what any current algorithm can do. [00:16:23] And we need hierarchical reasoning at a level that is just not available at all yet. [00:16:29] Where do you think we can pick up hierarchical reasoning? By which mechanisms? Yeah, so maybe let me highlight what I think the limitations are of what already was done. Twenty, thirty years ago, in fact, you'll find reasoning systems that reason over relatively long horizons, but the problem is that they were not grounded in the real world. So people would have to hand design some kind of logical dynamical descriptions of the world. And that didn't tie in to perception. [00:17:03] And so they didn't tie in to real objects and so forth. And so that that was a big gap. Now with deep learning, we start having the ability to. Really see with sensors process that and understand what's in the world, and so it's a good time to try to bring these things together when I see a few ways of getting there. One way to get there would be to say deep learning can get bolted on somehow to some of these more traditional approaches. [00:17:29] Now bolted on would probably mean you need to do some kind of end to end training where you say my deep learning processing somehow leads to a representation that Interm uses some kind of traditional underlying dynamical systems that can be used for planning. And that's, for example, the direction of Tammar and then architecture have been pushing with Kosal and Forgan and of course, other people to that. That's one way. Can we somehow force it into the form factor that. [00:17:59] Is amenable to reasoning. Another direction we've been thinking about for a long time and they didn't make any progress on was more information theoretic approaches. So the idea there was that what it means to take high level action is to take in choose a latent variable. Now, that tells you a lot about what's going to be the case in the future, because that's what it means to to take a high level action. I say, OK, what I decide I'm going to navigate to the gas station because I need to get gas for my car. [00:18:32] Well, that'll now take five minutes to get there. But the fact that I get there, I could already tell that from the high level action I took much earlier that we had a very hard time getting success with not saying it's a dead end necessarily, but we had a lot of trouble getting that to work. And then we start revisiting the notion of what are we really trying to achieve. What we're trying to achieve is not honestly higher, he said. [00:18:57] We could think about what is hierarchic, give us what it's we hope it would give us better credit assignment. Um, kind of what is better criticism is given. It's giving us it gives us faster learning. Right. And so faster learning is ultimately maybe what we're after. And so that's what we ended up with the R-squared paper on learning to reinforcement learning. Which at a time, Rockit one led, and that's exactly the meadow learning approach. We say, OK, we don't know how to design hierarchy. [00:19:31] We know what we want to get from it. Let's just end to an optimized for want to get from it and see if it might emerge. And we saw things emerge. The maze navigation had consistent motion down hallways. Which is what you want to call control, should say, I want to go down this hallway and then when there is an option to take a turn, I can decide whether to take a turn or not and repeat even had the notion of where have you been before or not, do not revisit places you've been before. [00:19:56] It still didn't scale yet to the real world kind of scenarios I think you had in mind. [00:20:02] But it was some sign of life that maybe you can better learn these horrible concepts. I mean, it seems like through these metal learning concepts, get at the what I think is one of the hardest and most important problems of AI, which is transfer learning. So generalization how far along this journey towards building general systems are we being able to do transfer learning? Well, so there's some signs that you can generalize a little bit, but do you think we're on the right path or totally different breakthroughs are needed to be able to transfer knowledge between different learning models. [00:20:47] Yeah, I'm pretty torn on this, and then I think there are some very well, there's just some very impressive results already, right? Yes, I would say when even with the initial kind of big breakthrough in 2012 with Alex, not the initial the initial thing is, OK, great. This does better on image and hence image recognition, but then immediately thereafter, there was, of course, the notion that, wow, what was learned on Image Net and you now want to solve a new task. [00:21:21] You can fine tune Alex Net for new tasks. And that was often found to be the even bigger deal that you learn, something that was reusable, which was not often the case before. Usually machine learning. You learn something for one scenario and that was it. [00:21:36] And that's really exciting. I mean, that's just a huge application. That's probably the biggest success of transfer learning to date in terms of scope and impact. [00:21:44] That was a huge breakthrough. And then recently I feel like similar. Kind of by scaling things up, it seems like this has been expanded upon, like people trying even bigger networks, they might transfer even better. If you looked at, for example, some of the opening results on language models and some of the recent Google results on language models. There learn for just prediction, and then they get reused for other tasks, and so I think there is something there where somehow if you train a big enough model and enough things, it seems to transfer some deep mine results that I thought were very impressive, the unreal results where it was learning to navigate mazes in ways where it wasn't just doing reinforcement learning, but it had other objectives was optimizing for. [00:22:33] So I think there's a lot of interesting results already. [00:22:36] I think maybe where it's hard to wrap my head around this. To which extent or when do we call something generalisation. Right. Or the levels of generalization involved in these different tasks. Right. [00:22:51] So you draw this, by the way, just to frame things I've heard you say somewhere, it's the difference between learning to master versus learning to generalize that it's a nice line to think about. And I guess you're saying that's a gray area of what learning to master and learning to generalize where one starts thinking, might have heard this, I might have heard it somewhere else. [00:23:14] And I think it might have been one to one of your interviews that maybe the one with your short, but I'm not hundred percent sure, but I like the example and I'm going to I'm not sure who it was. But the example was essentially, if you use current deep learning techniques, what we're doing to predict, let's say, the relative motion of, um, of our planets, it would do pretty well. But there now is a massive new mass enters our solar system. [00:23:45] It would not predict what will happen. Right. And that's a different kind of channelization. That's a generalization that relies on the ultimate simplest, simplest explanation that we have available today to explain the motion of planets. I just pattern recognition could predict our current solar system motion pretty well. No problem. And so I think that's an example of a kind of generalization that. It's a little different from what we've achieved so far, and it's not clear if just, you know, regularising more and forcing it to come up with a simpler, simpler, simple, I can say, look, this is not simple, but that's what physics researchers do. [00:24:22] Right to say, can I make this even simpler? How simple can I get? This was a simplistic question that can explain everything, right? Yeah. The master equation for the entire dynamics of the universe, we haven't really pushed that direction as hard and in deep learning. I would say. I'm not sure if it should be pushed, but it seems a kind of general you get from that that you don't get in our current methods so far. [00:24:44] So I just talked to Vladimir APNIC, for example, who was a statistician, statistical learning, and he kind of dreams of creating these are the equals equals EMC squared for learning the general theory of learning. Do you think that's a fruitless pursuit? In the near term, in within the next several decades, I think that's a really interesting pursuit and in the following sense, in that there is a lot of evidence that. The brain is pretty modular, and so I wouldn't think of it as a theory, maybe the underlying theory, but more kind of the principle. [00:25:27] Where there have been findings were. People who are blind will use the part of the brain usually used for vision for other functions. And even after some kind of people get rewired in some way, they might able to reuse parts of their brain for other functions. And so what that suggests is some kind of modularity. And I think it is a pretty natural thing to strive for, to see. Can we find that modularity? Can we find this thing? [00:25:59] Of course it's not. Every part of the brain is not exactly the same. Not everything can be rewired arbitrarily. But if you think of things like the neocortex, which is a pretty big part of the brain, that seems fairly modular from what the findings so far, can you design something equally modular? And if you can just grow and become some more capable? Probably I think that would be the kind of interesting underlying principle to shoot for that is not unrealistic. [00:26:26] Do you think you prefer math or empirical trial and error for the discovery of the essence of what it means to do something intelligent? So reinforcement learning embodies both groups, right? To prove that something converges, prove the bounds, and then at the same time, a lot of those successes are. Well, let's try this and see if it works. So which do you gravitate towards? How do you think of those two parts of your brain? So. [00:26:56] Maybe I would prefer we can make the progress with mathematics and the reason maybe I would prefer that is because often if you have something you can mathematically formalize, you can leapfrog a lot of experimentation and experimentation takes a long time to get through and a lot of trial and error kind of reinforcement learning your research process. But you need to do a lot of trial and error before you get to success. So if we can leapfrog that, to my mind, that's what the math is about. [00:27:27] And hopefully once you do a bunch of experiments, you start seeing a pattern and you can do some derivations that leapfrog some experiments. But I agree with you. I mean, in practice, a lot of the progress has been such that we have not been able to find the math that allows us to leapfrog ahead. And we are. Kind of making gradual progress one step at a time. A new experiment here, a new experiment there that gives us new insights and gradually building up, but not getting to something yet where we're just OK. [00:27:53] Here is an equation that now explains how, you know, that would be to have been two years of experimentation to get there. But this tells us what the results are going to be. Unfortunately, not so much as not so much yet, but your hope is there in trying to teach robots or systems to do everyday tasks or even in simulation. What do you think you're more excited about? Imitation learning or self play, so letting robots learn from humans or letting robots plan their own to try to figure out their own way and eventually play in, eventually interact with humans or whatever problem is, what's the more exciting to you? [00:28:38] What's more promising you think is a research direction? So. When we look at. Self play, what's so beautiful about it is because back to kind of the challenges and reinforcement learning, so the challenge of reinforcement is getting signal. And if you don't never succeed, you don't get any signal in self play. You're on both sides, so one of you succeeds and the beauty is also one of you fails. And so you see the contrast, you see the one version of me that is better than the other version. [00:29:10] And so every time you play yourself, you get a signal. And so whenever you can turn something into self play, you're in a beautiful situation where you can naturally learn much more quickly than in most other reinforce learning environments. So I think I think if somehow we can turn more reinforcement learning problems into self play formulations, that would go really, really far. So far, South Play has been largely around. Games where the natural opponents but if we could do self play for other things and let's say a robot learns to build a house, I mean, that's a pretty advanced thing to try to do for a robot, but maybe try to build a hut or something. [00:29:48] If that can be done through self play, it would learn a lot more quickly if somebody can figure that out. And I think that would be something where it goes closer to kind of the mathematical leapfrogging, where somebody figures out a formalism to say, OK, any RL problem by playing this in this idea, you can turn it into a self play problem where you get signal a lot more easily. Reality is many problems, we don't know how to turn to self. [00:30:12] And so either we need to provide detailed reward that doesn't just reward for achieving a goal, but rewards for making progress. And that becomes time consuming. And once you're starting to do that, let's say you want a robot to do something, you need to give all this detailed reward. Well, why not just give a demonstration? Because why not just show the robot? And now the question is, how do you show the robot? One way to show is to tell the operator robot. [00:30:35] And then the robot really experiences things. And that's nice because that's really high signal to noise ratio there that we've done a lot of that. And you teach a robot skills in just 10 minutes, you can teach a robot a new basic skill like, OK, pick up the bottle, placed it somewhere else. That's a skill. No matter where the bottle starts, maybe it always goes onto a target or something. That's fairly easy to teach you about with Talia. [00:30:56] Now, what's even more interesting, if you can now teach a robot through third person learning where the robot watches you do something and doesn't experience it, but just watches it and says, OK, well, if you're showing me that, that means I should be doing this and I'm not going to be using your hand because I don't get to control your hand, but I'm going to use my hand. I do that mapping. And so that's where I think one of the big breakthroughs has happened this year. [00:31:20] This was led by Chelsea Finn here. It's almost like learning a machine translation for demonstrations where you have a human demonstration and the robot Lunesta translated into what it means for the robot to do it. And that was a meta learning from listen, learn from one to get the other. And that, I think, opens up a lot of opportunities to learn a lot more quickly. [00:31:41] So my focus is on autonomous vehicles. Do you think this approach of third person watching is the autonomous driving is amenable to this kind of approach? [00:31:50] So for autonomous driving, I would say it's. That person is slightly easier, and the reason I'm going to say is slightly easier to do a third person is because the hard dynamics are very well understood. So the easier than first person you mean or easier. [00:32:12] So I think the distinction between third person and first person is not a very important distinction for autonomous driving. They're very similar because the distinction is really about who turns the steering wheel and or maybe, let me put it differently, how to get from a point where you are now to a point, let's say, a couple meters in front of you. And that's a problem that's very well understood. And that's the only distinction being third in first person there. [00:32:38] Whereas with the robot manipulation interaction, forces are very complex and it's still a very different thing for autonomous driving. I think there is still the question imitation versus RL. So imitation gives you a lot more signal. I think where imitation is lacking and needs some extra machinery is it doesn't in its normal format, doesn't think about goals or objectives. And of course there are versions of imitation learning, inverse reinforcing any type of imitation which also thinks about goals. [00:33:11] I think then we're getting much closer, but I think it's very hard to think of a fully reactive HA generalising well, if it really doesn't have a notion of objectives to generalize well to the kind of general that you would want, you'd want more than just that reactivity that you get from just behavioral cloning's supervised learning. So a lot of the work, whether itself play or even imitation learning, would benefit significantly from simulation, from effective simulation, and you're doing a lot of stuff in the physical world and in simulation. [00:33:46] Do you have hope for greater and greater power of simulation being boundless eventually to where most of what we need to operate in the physical world would could be simulated to a degree that's directly transferable to the physical world? Are we still very far away from that? So. I think. We could even rephrase that question in some sense, please. And so so the power of simulation, right. Our similarities get better and better, of course, becomes stronger and we can learn more assimilation, but there's also another version, which is where you said assimilated doesn't even have to be that precise as long as it's somewhat representative. [00:34:35] And instead of trying to get one simulator that is sufficiently precise to learn in and transfer really well to the real world, I'm going to build many simulators, ensemble of simulators, ensemble of simulators. Not any single one of them is sufficiently representative of the real world such that it would work if you trained in there. But if you train in all of them. Then there is something that's good in all of them, the real world will just be, you know, another one of them that's, you know, not identical to any one of them, but just another one of them. [00:35:07] Now, this sample from the distribution of simulator's, we do live in a simulation. So this is just one one other one. I'm not sure about that, but it's definitely a very advanced simulator of it is. Yeah, it's pretty good. [00:35:22] I've talked to Russell, something you think about a little bit, too. Of course, you're like really trying to build these systems. But do you think about the future of AI? [00:35:30] A lot of people have concerned about safety. How do you think about A.I. safety as you build robots that are operating in the physical world? What is. Yeah, how do you approach this problem in an engineering kind of way? In a systematic way? So. When a robot is doing things, you can have a few notions of safety to worry about. One is that the robot is physically strong and of course, could do a lot of damage. [00:35:59] Same for cars, which we can think of as robots doing way. And this could be completely unintentional, so it could be not the kind of long term safety concerns, OK, I smarter than us and now what do we do? But it could be just very practical. OK, this robot, if it makes a mistake, what are the results going to be? Of course, simulation comes in a lot there, too, to test in simulation. [00:36:23] It's a difficult question and I'm always wondering, like I always wonder, let's say you look at let's go back to driving because a lot of people know driving. Well, of course. What do we do to test somebody for driving, right, to get a driver's license? What do they really do? I mean, you fill out some test and then you drive. And I mean, for a few suburban California, the driving test is just you drive around the block, pull over. [00:36:51] You need to do a stop sign successfully and then, you know, you pull over again and you're pretty much done and you're like, OK, if a self-driving car did that, would you trust it that it can drive and be like, no, that's not enough for me to trust. But somehow for humans, we've figured out that somebody being able to do that is representative of them being able to do a lot of other things. And so I think somehow for humans, we figured out representative tests of what it means. [00:37:20] If you can do this, where you can really do, of course, testing, you must you must want to be tested at all times. Self-driving cars or robots can be tested more often. Probably you can have replicas that get tested or known to be identical to use the same neural net and so forth. But still, I feel like we don't have this kind of unit tests or proper tests for for robots. And I think there's something very interesting to be thought about there, especially as you update things, your software improves. [00:37:46] You have a better self-driving car suite, you update it. How do you know it's indeed more capable on everything than what you had before, that you didn't have any bad things creep into it. So I think that's a very interesting direction of research, that there is no real solution yet except that somehow for humans we do because we say, OK, you have a driving test, you passed. You can go on the road now and you must have accidents every like a million or ten million miles, something pretty phenomenal compared to that short test. [00:38:16] Yeah, that is being done. [00:38:18] So let me ask you've mentioned you've mentioned that Andrew NG by example showed you the value of kindness and to do you think the space of. [00:38:30] Policies, good policies for humans and for A.I. is populated by policies that. With kindness or ones that are the opposite exploitation, even evil, so if you just look at the sea of policies we operate under as human beings or if A.I. system had to operate in this real world, do you think it's really easy to find policies that are full of kindness that we naturally fall into them? Or is it like a very hard optimization problem? I mean, there is kind of two optimisations happening for human rights, for humans, just kind of the very long term optimization which evolution has done for us. [00:39:13] And we're kind of predisposed to like certain things. And that's in some sense what makes our learning easier, because, I mean, we know things like pain and hunger and thirst. And the fact that we know about those is not something that we were taught that's kind of innate. When we're hungry, we're unhappy when we're thirsty, were unhappy, won't have pain, we're unhappy. And ultimately, evolution built that into us to think about those things. [00:39:39] So I think there is a notion that it seems somehow humans evolved in general to. Prefer to get along in some ways, but at the same time also to be very territorial and kind of centric to their own tribe. It seems like that's the kind of space we converge down to. I mean, I'm not an expert in anthropology, but it seems like we're very kind of good within our own tribe, but need to be taught to be nice to other tribes. [00:40:11] Well, if you look at Steven Pinker, he highlights this pretty nicely and, uh, but better angels of our nature, where he talks about violence decreasing over time consistently. So whatever tension, whatever teams we pick, it seems that the long arc of history goes towards us getting along more and more so. [00:40:33] So do you think that. Do you think it's possible to cheat, teach RL based robots this kind of kindness, this kind of ability to interact with humans, this kind of policy, even to let me ask let me ask a follow on. Do you think it's possible to teach our Elbaz robot to love a human being and to inspire that human to love the robot back so to like a RL based algorithm that leads to a happy marriage? [00:41:04] That's interesting question, maybe I'll I'll answer it with with another question, right? Because, I mean, it's but I'll come back to it's another question. Can have a OK. I mean, how close to some people's happiness get from interacting with just a really nice. Dog like I mean, dogs, you come home, that's what dogs that they greet you, they're excited, makes you happy. When you come home to your dog, you're just like, OK, this is exciting. [00:41:33] They're always happy when I'm here. And if they don't greet you because maybe whatever your partner took them on a trip or something, you might not be nearly as happy when you get home. Right. And so the kind of. It seems like the level of reasoning, a doghouses is pretty sophisticated, but then is still not yet at the level of human reasoning. And so it seems like we don't even need to achieve human level reason to get like very strong affection with humans. [00:41:58] And so my thinking is, why not? Why couldn't with an eye, couldn't we achieve the kind of level of affection that humans feel among each other or with. Friendly animals and so forth. It's a question. Is it a good thing for us or not that that's another thing? Right, because I mean. But I don't see why not, why not? So Elon Musk says love is the answer. Maybe he should say love is the objective function and then RL is the answer. [00:42:32] Oh, maybe. Peter, thank you so much. I don't want to take up more of your time. Thank you so much for talking today. Well, thanks for coming by. Great to have you visit.

本集資源與出處