特别节目·中文精读

吉尔伯特·斯特朗:线性代数、深度学习、教学与 MIT 公开课

Gilbert Strang: Linear Algebra, Deep Learning, Teaching, and MIT OpenCourseWare

MIT 线性代数教授谈数学教学的方法、深度学习背后的线性代数,以及公开课如何影响全球学生。

官方音频00:00 / --:--
中文精读由 AI 基于原始访谈改写,非官方翻译,可能存在偏差或错误;表述以原音频与官方文稿为准。说明

2019 年,一位 84 岁的老教授录了一段线性代数课。这门课后来被几百万人看过,其中包括当时还在读本科的 Lex Fridman。画面里没有动画,也没有交互式课件,只有一块黑板、一支粗粉笔,和一个把矩阵讲得像故事一样的人。

这位教授叫 Gilbert Strang(吉尔伯特·斯特朗),MIT 数学系教授。他在访谈里说了一句挺实在的话:视频能火,功劳大部分在线性代数这门学科本身,过去几十年它的重要性暴涨了。数据来了,而数据天生就是矩阵的形状。

那门课的开头,是一块黑板和一支粗粉笔

Strang 提到自己只用一种粉笔,就是那种特别粗的、写在黑板上会发出明显声音的粉笔。他说别人喜欢,他自己也喜欢,别的粉笔他不用了。

这个细节其实说明了一些事情。18.06 这门课的录像就是课堂实况,没有重录,没有剪辑,没有为镜头重新设计板书。他在 2000 年前后录的,因为这门课他教过很多遍,结构已经理得很顺,讲起来自己也享受。

MIT 公开课(MIT OpenCourseWare)这件事的起源,他讲得很轻松。当时校长韦斯特(Charles Vest)任命了一个委员会,本来的任务是研究怎么把 MIT 的课程像其他大学那样包装、营销出去。委员会讨论了一个周末没找到路子,回来跟校长说:要不我们干脆全部免费送出去?校长说,行。

如果把大学看成一个生产产品的机构,知识就是它的产品。把产品免费送人,听起来是疯了。(Gilbert Strang)

但这个决定后来证明是对的。Strang 的解释是,MIT 的名声建立在硬核技术上,而公开课是展示「MIT 到底是什么样」最直接的方式。它跳过了宣传册和排名的套路,直接把课堂摆到全世界面前。

这里还有一层值得留意的差别。宣传册讲的是结论,课堂展示的是过程。一个人坐在屏幕前看斯特朗推着粉笔一步一步把矩阵拆开,学到的东西远不止知识点,还包括一个做数学的人怎样思考、在哪里停顿、什么时候说「这里其实很简单」。讲授本身的节奏,也是教学内容的一部分。

四个子空间:他这辈子最得意的一个教学设计

问到他最喜欢的教学内容,他挑的东西一点都不高深:四个基本子空间。

他特意说明,这个概念在他命名之前早就存在了,他只是把它组织成了一个好讲的框架。矩阵就是一堆排成矩形的数字,有若干列,也有若干行。列和行用的是同一批数字,所以它们之间必然有关系。但这种关系不简单:列可能比行多,数字被打乱了次序。

第一个空间是列空间。把矩阵的每一列看成一个向量,也就是高维空间里的一个点。把所有列的所有线性组合放在一起,会得到一个平坦的曲面。在三维里它就是一张纸,在十维里它依然是一张「纸」,只是没法画出来。

第二个空间是行空间,来自同一批数字,但组合的是行。

另外两个空间和它们垂直。三维空间里有一张平面,垂直于它的是一条直线。对应到矩阵上,就是零空间和左零空间。

四个空间拼在一起,构成了一个矩阵的完整结构图。Strang 说这个想法本身好懂,在 18.06 里出现得很早,但他自己挺骄傲,因为这张图能把一个矩阵的行为解释清楚。

这里有个更值得琢磨的点。他在课上会直接跟学生说,他自己脑子里也没有十维向量的箭头图像,谁都画不出来。可你不需要图像也能做运算:两组十个数可以相加,一组十个数可以乘以 3。会做这两件事,你就在十维空间里做线性代数了。

我没法说自己脑子里有画面。但我还是会把课堂往那个方向推,让他们去想十维空间里的一张平面。(Gilbert Strang)

这句话背后有一个反常识的推论:数学直觉未必是视觉性的。人可以在完全没有图像的情况下熟练操作高维对象,靠的是对规则的手感。画不出十维空间的箭头,跟做不了十维线性代数,是两回事。

为什么线性代数比微积分简单,却排在它后面教

Strang 有个说得挺直白的观点:线性代数本该先教。

理由是这样的。微积分所有的复杂性都来自曲线,来自弯曲的曲面。线性代数里一切都是平的,没有任何弯的东西。平的东西不会让你出错,从二维推到十维、一百维,一路顺下去。

但教学顺序是反的。牛顿和莱布尼茨先搞出了微积分,所以高中开 AP 微积分,大学一年级还是微积分。线性代数被排到后面,甚至很多工科生到大二大三才第一次正经接触。

他在访谈里说得更重一点:本科数学教育里,微积分占的课时和关注度是「不成比例的」,代价是代数和概率统计被压缩了。

他把今天的本科数学分成三块:微积分、线性代数与矩阵、概率与统计。三块都该有重要位置,但微积分长期拿走了最大的那份。

这个判断放在 2019 年说,是有现实依据的。数据以矩阵形式出现,而处理数据的方法几乎全部长在线性代数上。石油工程的模型、气候模型、医学试验、推荐系统,输入都是矩形数字阵列。反倒是微分方程那套语言,在数据科学里用得少。

他也没有主张把微积分赶出去,只是希望份额调一调。一门学科的教学时间分配,往往滞后于这门学科的实际使用方式几十年,调整起来比想象中慢。

奇异值:给数据科学家的一条实用建议

问到他觉得最美的概念,他先提了特征值,然后马上转向奇异值(singular values)。

原因很实在:特征值只对方阵有效,而真实数据几乎都是长方形的矩阵。一百个病人乘五十种药,这个矩阵不是方的,特征值用不上。奇异值可以。

奇异值的核心是一个分解定理:任何矩阵,不管是方的还是长的,都能写成三个简单矩阵的乘积,即旋转、拉伸、再旋转。

旋转好想象。二维空间绕着中心转,三维空间里飞行员要记三个转向轴,十维空间有十种转法,但「转」这件事本身你能看见。拉伸也好想象,就是沿某些方向拉长或压扁,其余方向全为零。

一个塞满数字、看不出规律的矩阵,被拆成「转、拉、转」之后,就变成了人脑能处理的东西。这是 Strang 觉得漂亮的地方。

他给数据科学家的建议很直接:把矩阵分解成若干部分,第一部分是最重要的信息,第二部分是第二重要的,往后排。很多情况下,找到前一两项就可以停了,剩下的部分是实验误差或者浮点舍入的噪声。

如果数据科学家能找到第一项和第二项,就在那里停下。剩下的数据大概率是舍入误差,或者是实验误差。(Gilbert Strang)

他还顺带说了句对数学系同行的抱怨:赶紧教奇异值,别只教特征值。这句话听着像玩笑,但指向的问题是真的。很多课程花大半学期讲特征值和特征向量,只因为它们在理论上更整齐,学生毕业之后拿到一张长方形的数据表,手上一件称手的工具都没有。

神经网络在他看来,是一堆折起来的平面

谈到深度学习,他没有绕开,直接给了定义。

你有一百万组输入和对应的正确输出,任务是找一条规则,把训练输入映射到已知输出,然后用这条规则去预测没见过的新输入。神经网络就是构造这条规则的一种结构。

线性代数在这里面占大头,但只有线性代数不够。矩阵只会画直线和平面,而数据不长这样。所以必须引入一点非线性。

他讲的这个非线性函数极其朴素:一条直线,到某个点折一下,换成另一个斜率。就是一个折线,一个「弯折」(fold)。

它只是把一条直线折了一下,但当你把这个折痕重复上百万次,你就得到了一个足够复杂、足够贴近真实的函数。(Gilbert Strang)

这个类比他很喜欢用:一栋造型极其复杂的房子,屋顶每个局部都是平的,但整体弯弯曲曲。工程界早就在用这个思路,叫有限元方法(finite element method)。设计桥梁、设计飞机、设计建筑,用的都是「分片平坦」作为可计算的近似。

所以神经网络的表达能力为什么强?因为折的次数足够多。这也是他理解的极限所在:过去人们以为限制在算力,算力不够就做不了更复杂的曲面。但算力一直在涨,这条线一直在往外推。

顺着这个思路还能往下走一步。如果神经网络本质上是一种分段线性的逼近器,那它的长处就落在连续、光滑、有局部规律的映射上。图像、语音、传感器读数,都是这种类型。至于那些需要严格逻辑推理、需要长链条符号操作的任务,分片平坦的近似能不能撑住,就是另一个问题了。这个判断在 2019 年说出来还是开放的,今天回头看,正好点在了要害上。

关于「能不能学到东西」这个前提

访谈里有一段讨论,值得单独拎出来。

Lex 问的是:这个世界在多大程度上可以被这种方式表达?

Strang 的回答把深度学习放回了科学史里。如果数据完全是随机数生成的,那就没有规则可学,因为压根没有规则。深度学习的成立前提是:数据里存在信号。

他把这件事和一个更古老的图景放在一起看。牛顿找到了力学定律,爱因斯坦往前走了一步,石油工程师知道油会怎样停留在地下盆地。这些人是在推导规则。而人工智能换了个做法:不去推导,让机器去搜索规则。

新的想法是让计算机自己去搜索规则,从前那套请牛顿、请爱因斯坦把规则想出来的路子,被绕过去了。这是又往前走了一步。(Gilbert Strang)

他的态度是谨慎乐观。随机性里面也有用处,随机初始化、随机梯度下降都用得上,但数据里得有基本的结构,得有信号。全是噪声,什么也学不出来。

这个判断听起来平常,但从一个教了一辈子线性代数的人嘴里说出来,分量不太一样。他见过太多矩阵,知道什么样的矩阵里有结构,什么样的没有。现代深度学习的成功,被他归到「碰巧撞上了有信号的数据」这个前提上,而非归到算法本身有多神奇。

他最喜欢的矩阵,和二阶导数有关

问他最喜欢的矩阵是哪个,他给出的答案是:对角线上全是 2,紧挨着上下两条对角线上全是 −1,其余位置全是 0。

这个矩阵看起来平平无奇,就是三条非零对角线。但它出现的地方出奇地多,工程里到处都是它。

它的意义在于:在离散世界里,它就是二阶导数的对应物。

一阶导数衡量变化有多快,二阶导数衡量变化本身变化有多快,也就是曲线弯得有多急。爱因斯坦的工作表明,理解空间必须用到二阶导数。

Strang 由此得出一个结论:二阶导数在微积分教学里该有更大的位置。而它对应的这个矩阵,在 Strang 眼里是「一切都会算得刚刚好」的那种优雅。

把一个连续对象换成离散版本,通常要付出代价,边缘会出问题,精度会掉。这个矩阵好就好在代价极小:它保持对称,保持正定,边界条件干净地落在两头。所以做数值计算的人一看到它就放心。

他不喜欢考试,也不装

有一段回答挺打动人的。他说自己算不上好老师,因为他不喜欢考试那一部分,出题、评分、给 A 还是 B,他做只是因为职责所在。

他会在开学第一节课跟学生说:我来这里是教你们数学的,不会给你们打分。他说学生多半不信,心里想的还是这位老师最后会给 A− 还是 B+。

我告诉全班,我在这儿是教你们数学的,不是来给你们评分的。但他们心里在想,他到底会给我 A− 还是 B+。(Gilbert Strang)

他把自己定位在「教」那一端,那是他觉得有意思的部分:第一次跟一个人讲清楚矩阵是什么。

Lex 追问:有没有那种时刻,你从学生的眼睛里看到他们被点亮了,不需要看成绩单?

他的回答落到了具体的地方。教大课时,他能感觉到全班什么时候真的懂了,那个时刻通常出现在讲完四个基本子空间、讲完线性代数基本定理那张关系图之后。他说,那时候他觉得课堂「接住了」。

反面他也提到了。有些学生会说「我就是不擅长数学」,然后放弃。他的看法是,这多半要归到过去的教学方式头上,把人劝退了,跟能力上限关系不大。

别被劝退。这门东西太好了,错过太可惜。(Gilbert Strang)

同一件事在两个方向上都成立。好的讲解能把人拉进来,坏的讲解能把人推出去,而后者造成的伤害往往被误认成天赋的差距。一个学生把「我不擅长数学」当成自我认知,可能只是因为某一年遇到了一位没耐心的人。

数学为什么让人安心

访谈里有一段特别日常的对话。Lex 问他数学给人带来的那种确定感从哪来,他讲了个小时候补牙的故事。

躺在牙医椅子上,他就开始算 2 的幂:2、4、8、16,一直算到脑子开始疼。牙医说,你在数数吧。

你知道自己在哪里。2 乘自己 10 次是 1024,这件事谁算都是这个结果。(Gilbert Strang)

他自称不是哲学家,也不装深沉。他说自己就是个喜欢数字的人。这种确定性给了他一种近乎安慰的东西。

这段对话里还有个问题挺有意思:数学是工具还是艺术?他的回答是两者都是,而这正是数学的好处。你可以是艺术家然后喜欢数学,也可以是工程师然后使用数学。

他自己站在中间偏工程那一侧,明确说自己不是艺术家型、哲学家型的人,虽然在访谈里听起来有点像。他真正享受的是教工程师,因为工程师要的是答案。

他还提了 MIT 数学系的一个现实:系里多数人更喜欢教那些能抓住抽象概念的学生,而他对「想找答案的工程师」更自在。这不是降低标准,是另一种诚实。工程师会逼着讲的人把每一步落到实处,讲不清楚就过不了关。

国会里几乎没有工程师,他觉得这是问题

话题转到了公共生活。Lex 提到当时的总统候选人杨安泽(Andrew Yang),口号是把 MATH 印在帽子上,Make America Think Harder。

Strang 顺着说了句:国会议员里几乎没有工程或科学背景的人,总统也不是。

我们需要对数字、对数量有感觉的人。你说这个导致那个,他们能看明白,这是无法否认的。(Gilbert Strang)

他自己有过一次近距离的经历。大约 2000 年前后,他担任美国工业与应用数学学会(SIAM)主席,被安排去众议院的一个委员会讲十分钟数学。那次经历让他觉得有趣的地方是:在座的一位议员,当年上过他的课,来自新罕布什尔州。

他也很清楚那只是短暂的一段。他说那几年数学在华盛顿还算有点存在感,后来别的事情占了上风,数学又不那么显眼了。而今天华盛顿关心的议题里有 AI,AI 的内核是数学,只是这层关系被藏起来了,像是换了一顶帽子。

这段闲聊其实连着前面的话题。一个社会对数学的耐心,和它在课堂里给线性代数多少时间,处在同一条链条上。教得少,懂的人就少;懂的人少,做决策的时候就没有人替数字说话。

他认同的那句话,来自费曼

访谈结尾,Lex 引了费曼的一句话作为收束:

拼命去学你最感兴趣的东西,用最不守规矩、最不恭敬、最有原创性的方式。(Richard Feynman)

这句话和 Strang 讲的东西其实对得上。他在访谈里反复讲同一个意思:数学之所以让人着迷,是因为那里有秩序,东西不明摆着,但它是真的。这种「不明摆着但确实为真」,正是让人愿意学下去的动力。

2019 年录下这段对话时,他 84 岁。他还在想新办法讲课,还在琢磨怎么把线性代数基本定理讲得更让人信服。他说这是乐趣所在:某个瞬间你会说,哦,这样行得通。

那门 2000 年录的课,至今还有人点开。它靠的是把一件本来可以对所有人敞开的东西,真的敞开了。制作上的精良在这里几乎可以忽略不计,一块黑板、一支粗粉笔,加上一个还想把话讲明白的人,就够了。

  • 如果只打算学一门本科数学,从线性代数开始。它全是平的东西,从二维推到一百维不会翻车,而今天的绝大部分数据工作都建立在它上面。
  • 学的时候别死磕几何直觉。十维空间的箭头你画不出来,教授也画不出来。会做两件事就够了:两组十个数相加,一组十个数乘 3。抽象运算不依赖图像。
  • 如果接触数据,直接去学奇异值分解,别停在特征值。真实数据是长方形的,特征值只对方阵有效,这条工具你迟早要用上。
  • 做数据清洗时先做一次分解,看前一两项能解释多少。剩下的部分如果很小,那就是噪声,砍掉它比建模更省事。
  • 想理解神经网络为什么有效,别从反向传播公式入手。先想清楚一件事:把一条折线重复上百万次,能拟合出多复杂的形状。
  • 如果你曾经断定自己「不擅长数学」,先怀疑一下过去那个教你的人。放弃通常是教学方式造成的,跟能力上限关系不大。
  • 找一位还在享受自己讲的东西的老师。Strang 说的原话是,那种乐趣就在「哦,这样行得通」的那一刻。
文稿由本站用语音识别模型(基于官方发布音频)机器转写,可能有识别错误,人名与数字请以音频为准。
[00:00:00] The following is a conversation with Gilbert Strain. He's a professor of mathematics at MIT and perhaps one of the most famous and impactful teachers of math in the world. His MIT Open Courseware lectures on linear algebra have been viewed millions of times. As an undergraduate student, I was one of those millions of students. There's something inspiring about the way he teaches. There's a once calm, simple, yet full of passion for the elegance inherent to mathematics. I remember doing the exercises in his book Introduction of Linear Algebra, and slowly realizing that the world of matrices of vector spaces, of determinates and eigenvalues, of geometric transformations and matrix decompositions reveal a set of powerful tools in the toolbox of artificial intelligence from signals to images, from numerical optimization to robotics, computer vision, deep learning, computer graphics and everywhere outside A.I., including, of course, a quantum mechanical study of our universe. [00:01:01] This is the Artificial Intelligence Podcast. If you enjoy it, subscribe on YouTube, give it five stars, an Apple podcast, support on Patrón or simply connect with me on Twitter. Elex Friedman spelled Fridmann. [00:01:16] This podcast is supported by ZIP recruiter hiring great people, it's hard and to me is the most important element of a successful mission driven team. I've been fortunate to be a part of and to lead several great engineering teams. The hiring I've done in the past was mostly the tools that we built ourselves. But reinventing the wheel was painful. The recruiters, a tool that's readily available for you. It seeks to make hiring simple, fast and smart. For example, Kerbel co-founder Gretchen Hebner uses a preschooler to find a new game artist to join her education tech company by using zip recruiters screening questions to filter candidates. [00:01:56] Gretchen found it easier to focus on the best candidates and finally, hiring the perfect person for the role in less than two weeks from start to finish the recruiter, the smartest way to hire seaways recruiters effective for businesses of all sizes by signing up as I did for free as a recruiter dotcom slash flex pod. That's supercute or dotcom neglects pod. This show is presented by Kashyap, the number one finance app in the App Store. I personally use cash out to send money to friends, but you can also use it to buy, sell and deposit Bitcoin. [00:02:33] Most Bitcoin exchanges take days for bank transfer to become investible through cash. It takes seconds. Cash Up also has a new investing feature. You can buy fractions of a stock, which to me is a really interesting concept. So you can buy one dollar's worth no matter what the stock prices. Brokerage services are provided by cash up investing subsidiary of Square and member SIPC. I'm excited to be working with cash out to support one of my favorite organizations that many of you may know and have benefited from called first best known for their first robotics and Lego competitions. [00:03:10] They educate and inspire hundreds of thousands of students in over one hundred and ten countries and have a perfect rating. And Charity Navigator, which means that donated money is used to maximum effectiveness. When you get cash out from the App Store or Google Play and use code like podcast, you get ten dollars in cash. I will also donate ten dollars. The first, which again is an organization that I've personally seen, inspire girls and boys to dream of engineering a better world. [00:03:40] And now here's my conversation with Gilbert String. How does it feel to be. One of the modern day rock stars of mathematics, I don't feel like a rock star, that's kind of crazy for old math person, but it's true that the video is in linear algebra that I made way back in 2000. [00:04:23] I think I've been watched a lot and well, partly the importance of linear algebra, which I'm sure you'll ask me and give me a chance to say that linear algebra as a subject has just surged in importance. [00:04:39] But also it was a class that I taught a bunch of times. [00:04:43] So I kind of got it organized and and enjoyed doing it. There was just the videos were just the class. So there were on Open Courseware and on YouTube and translated. That's fun. [00:04:56] But there's something about that chalkboard and the and the simplicity of the way you explain the basic concepts at the beginning. You know, to be honest, when I went to undergrad, you can do linear algebra, probably. Of course. [00:05:10] Linear algebra. Yeah, of course. But I before going through the course at my university, I was going to open courseware. I was. You were my instructor. All right. Yeah. [00:05:22] And that I mean, we're using your book and I mean that, that the fact that there is thousands, you know, hundreds of thousands, millions of people that watch that video, I think that's. Yeah, that's really powerful. So how do you think the idea of putting lectures online would really MIT Open Courseware has innovated? [00:05:44] That was a wonderful idea. You know, I think the story that I've heard is the committee committee was appointed by the president, President W at that time, a wonderful guy. [00:05:57] And the idea of the committee was to figure out how I might could make be like other universities, market the market work we were doing, and then they didn't see a way. And after a weekend and they had an inspiration and came back to the president first and said, what if we just gave it away? And he decided that was OK. Good idea. So, you know, that's a crazy idea. That's if we think of a university as a thing that creates a product. [00:06:31] Yes. Isn't knowledge right. The you know, the kind of educational knowledge isn't the product and giving that away. [00:06:39] Are you surprised that they went through the result that he did it? Well, knowing a little bit of rest that was like him, I think. [00:06:50] And and it was really the right idea. You know, MIT is a kind of it's known for being high level technical things. And and this is the best way we can say till we can show what MIT really is like. Because the the in my case, those 18 06 videos are just teaching the class. They were there in twenty six. One hundred. They're kind of fun to look at. [00:07:22] People write to me and say, oh, you got a sense of humor, but I don't know where that comes through. Somehow I read Friendly with a class. I like students and and linear algebra, the subject. We got to give the subject most of the credit that it really has. Come forward and importance in these years. So let's talk about linear algebra a little bit, because it is such a it's both a powerful and beautiful subfield of mathematics. [00:07:56] So what's your favorite specific topic in linear algebra or even math in general to give a lecture on to find a way to tell a story, to teach students? OK, well, on the teaching side. [00:08:11] So it's not deep mathematics at all, but I am kind of proud of the idea of the four sub spaces for fundamental sub spaces. [00:08:23] Which are, of course, known before long before my name for them, but can you go through them? [00:08:31] Can you go to the floor? Sure I can, yeah. So the first one to understand is so the Matrix, maybe I should say The Matrix. What is The Matrix? What's a matrix? So we have like a rectangle of numbers. So it's got nine columns, got a bunch of columns and also got an M rose, let's say, and the relation between so of course the columns and the rows, it's the same numbers. So there's got to be connections there. [00:09:01] But they're not simple. The columns might be longer than the rows and they're all different. The numbers are mixed up. [00:09:10] First space to think about is take the columns. So those are vectors. Those are points in and dimensions. What's the vector? So I would imagine a vector or might imagine a vector as a arrow, you know, in space or the point it ends up in space for me. [00:09:32] It's a column of numbers you often think of. This is very interesting in terms of linear algebra of a vector. [00:09:41] You think a little bit more abstract than the how it's very commonly used. Perhaps you think this arbitrary space multidimensional right away. [00:09:52] I'm in high dimensions and in the rimland. That's right. In the lecture I try to. [00:09:59] So if you think of two vectors in ten dimensions, I do this in class and I'll readily admit that I have no good image in my mind of a vector of arrow in ten dimensional space, but whatever. You can you can add one bunch of 10 numbers to another bunch of 10 numbers so you can add a vector to a vector and you can multiply a vector by three. And that's if you know how to do those. You've got linear algebra, you know, 10 dimensions. [00:10:32] Yeah. There's this beautiful thing about math. If you look at string theory and all these theories which are really fundamentally derived through math but are very difficult to visualize. And how do you think about the things like a 10 dimensional vector that we can't really visualize? Yeah, you do. And yet math reveals some beauty. Oh, yeah. Our world in that weird thing we can't visualize. How do you think about that difference? [00:11:03] Well, probably I'm not a very geometric person, so I'm probably thinking in three dimensions. And the beauty of linear algebra is that is that it goes on to 10 dimensions with no problem. I mean that if you're just seeing what happens if you add two vectors in 3D. Yeah. Then you can add them intensity. You're just adding the 10 components. [00:11:28] So so I can't say that I have a picture, but yet I try to push the class to think of a flat surface in 10 dimensions. So a plane and 10 dimensions. And so that's one of the spaces. Take all the columns of the Matrix, take all their combinations. So, so much of this column, so much of this one. Then if you put all those together, you get some kind of a flat surface that I call a vector space space of vectors. [00:12:01] And my imagination is just seeing like a piece of paper in 3D. [00:12:08] But anyway, so that's one of the spaces in that space. Number one, the column space of the Matrix. And then there's the row space, which is, as I said, different, but came came from the same numbers. So we got the column space, our combinations of the columns, and then we got the row space, all combinations of the rows. So those those words are easy for me to say. And I can't really draw them on a blackboard. [00:12:37] But I try with my thick chalk. Everybody everybody likes that railroad, Chuck. And me too. I wouldn't use anything else now. Yeah. And and then the other two spaces are perpendicular to those. [00:12:52] So like if you have a plane in 3-D, just a plane is just a flat surface in 3D, then perpendicular to that plane would be a line. So that would be the null space. [00:13:07] So we've got to we've got a column Space Aerospace, and there are two perpendicular spaces. So those four fit together and in a beautiful picture of a matrix. [00:13:19] Yeah. Yeah. [00:13:20] That it's sort of a fundamental it's not a difficult idea. Comes comes pretty early in 18 or six. [00:13:27] And that basic planes in these multidimensional spaces, how how difficult of an idea is that to to come to. Do you think if you look back in time? Yeah, I think mathematically it makes sense, but I don't know if it's intuitive for us to imagine, just as we're talking about feels like calculus is easier to see into it. [00:13:52] Well, calculus, I have to admit that calculus came earlier, earlier than linear algebra. So Newton and Leibnitz, where the great man to understand the key ideas of calculus. But linear algebra to me is like, OK, it's the starting point, because it's all about flat things, calculus has got all the complications of calculus come from the curves, the bending with the curved surfaces, linear algebra, the surfaces are all flat, nothing better in linear algebra. [00:14:25] So it should have come first, but it didn't. And calculus also comes first. And in high school classes and college class, it'll be freshman math, AP calculus. And then I say enough of it, like, OK, I get to get to the good stuff. And do you think linear algebra should come first? [00:14:48] Well it really I'm OK with it not coming first, but it should. [00:14:52] Yeah, it should get simpler because everything is flat. Yeah, everything's flat. Well of course for that reason the calculus sort of sticks to one dimension or eventually you do multivariate, but that basically means two dimensions. Linear algebra. You take off into ten dimensions. No problem. [00:15:12] It just feels scary and dangerous to go beyond two dimensions. So if everything is flat, you can't go wrong. [00:15:20] So what concept theorem in linear algebra or in math you find most beautiful gives you pause. That leaves you and. [00:15:32] Oh, well, I'll stick with linear algebra here. I hope the viewer knows that really. [00:15:37] Mathematics is amazing, amazing subject and deep, deep connections between ideas that didn't look connected. So they turned out they were. [00:15:49] But if we stick with linear algebra, so we have a matrix that's like the basic thing, a rectangle of numbers and might be a rectangle of data. You're probably going to ask me later about data science, where an iPhone data comes in a matrix. You have, you know, maybe every column corresponds to to a drug in every row corresponds to a patient. And and if the patient reacted favorably to the drug, then you put up some positive number in there anyway. [00:16:28] Rectangle of numbers. A matrix is basic. So the big problem is to understand all those numbers. You've got a big, big set of numbers and what are the patterns, what's going on? And so one of the ways to break down that matrix into simple pieces is using something called singular values. And that's come on as fundamental in the last and certainly in my lifetime eigenvalues. If you have viewers who've done engineering, math or or or basic linear algebra eigenvalues were in there, but those are restricted to square matrices and data comes in rectangular matrices. [00:17:20] So you got to take that. You got to take that next step. I'm I'm always pushing math faculty. Get on, do it. Don't do it. Do it. [00:17:29] Singular values. So those are a way to break to to make to find the the important pieces of the matrix which add up to the whole matrix. So so you're breaking a matrix into simple pieces. And the first piece is the most important part of the data. The second piece is the second most important part. And then often so a data scientist. [00:17:57] Well, is like if you if a data scientist can find those first and second pieces, stop there. The rest of the data is probably roundoff. Experimental error maybe. So you're looking for the important part. Yeah. [00:18:17] So what do you find beautiful about singular values? Well, yeah, I don't give the theorem. So here's the here's the idea of singular values. Every matrix, every matrix, rectangular square or whatever can be written as a product of three very simple special matrices. So that's the thare every matrix can be written, as are rotation times, a stretch, which is just a matrix diagonal matrix. Otherwise all zeroes except on the one diagonal and then a third. [00:18:52] The third factor is another rotation. So rotation, stretch rotation is the breakup of of of any matrix the structure. [00:19:03] That's the ability that you can do that. What do you find appealing? What do you find beautiful about it? Well, geometrically, as I freely admit, the action of a matrix is not so easy to visualize. But everybody can visualize our rotation. [00:19:19] Take, take, take two dimensional space and just turn it around the around the center. Take three dimensional space so a pilot has to know about, well, what are the three to your is one of them. I've forgotten all the three turns that a pilot makes up to 10 dimensions. You've got ten ways to turn, but you can visualize a rotation, take the space and turn it and you can visualize a stretch. So to break a matrix with all those numbers in it into something you can visualize, rotate, stretch, rotate is pretty neat, pretty neat. [00:20:03] That's pretty powerful. And you YouTube just consuming a bunch of videos and just watching what people connect with and what they really enjoy and they're inspired by math seems to come up again and again. I'm trying to understand why that is. Perhaps you can help me give me clues. That's not just the let the kinds of lectures that you give, but it's also just other folks, like with no file, there's a channel where they just chat about things that are extremely complicated, actually. [00:20:36] Yeah. People nevertheless connect with them, you know. [00:20:40] What do you think that is? What it's wonderful, isn't it? [00:20:43] I mean, I wasn't really aware of it. So we're we're conditioned to think math is hard, math is abstract, math is just for a few people. But it isn't that way. [00:20:53] A lot of people quite like math and they like to I get messages from people saying, you know, now I'm retired. I'm going to learn some more math. I get a lot of those. It's really encouraging. [00:21:07] And I think what people like is that there's some order, a lot of order and or, you know, things are not obvious, but they're true. [00:21:17] So it's really cheering to think that that so many people really want to learn more about math. [00:21:25] Yeah, well, in terms of truth, again, sorry to slide into philosophy at times, but math does reveal pretty strongly what things are true. [00:21:38] Yeah, I mean, that's the whole point of proving things. [00:21:42] And yet sort of our real world is messy and complicated is what do you think about the nature of truth that math reveals? [00:21:51] Oh, wow. Because it is a source of comfort, like you've mentioned. Yeah, that's right. [00:21:56] Well, I have to say, I'm not much of a philosopher. I just like numbers, you know, I think. Yeah, I would you know, this was before you had you had to go in when you're filling in your teeth. Yeah, I kind of just take it. Yeah. So I what I did was think about math, you know, like take powers up to two, four, eight, 16 up until the time to stop hurting. [00:22:23] And the dentist said you're through or counting. [00:22:27] Yeah. So that was the source of just such a piece almost. Yeah. What, what, what is it about math. Do you think that brings that. Yeah. [00:22:37] What is that. Well you know where you are. Yeah. Symmetry. [00:22:41] It's certainly the fact that you know, if you two, if you multiply two by itself ten times you get a 1024 period that everybody's going to get that. [00:22:52] Do you see math as a powerful tool or as an art form? [00:22:56] So it's both. And that's that's really one of the neat things. You can you can be an artist and like math, you can be an engineer and use math. Which are you which wish to mine. [00:23:10] What did you connect with most? Yeah, I'm in between. I'm certainly not an artist type philosopher type person. Might sound that way this morning, but I'm not. Yeah, I really enjoy teaching engineers. [00:23:27] They, they, they go for an answer and yeah. [00:23:33] So I've probably within the MIT math department, most people enjoy teaching people, teaching students who get the abstract idea. [00:23:44] I'm OK with, with, I'm good with engineers who are looking for a way to find answers. Yeah. [00:23:52] So actually that's an interesting question. Do you think, do you think for teaching and in general thinking about new concepts, do you think it's better to plug in the numbers? Or to think more abstractly, so looking at theorems and proving the theorems or actually, you know, building up a basic intuition of the theorem or the method, the approach, and then just plugging in numbers and seeing it work. [00:24:20] Well, certainly many of us like to see examples first. We understand it might be a pretty abstract sounding example, like a three dimensional rotation. How are you going to how are you going to understand a rotation in 3-D or in 10 days or a butt? [00:24:45] And then some of us like to keep going with it to the point where you got numbers, where you got 10 angles, 10 axes, 10 angles. [00:24:55] But the best the great mathematicians probably I don't know if they do that because they they for them for them, an example would be a highly abstract thing to the rest of. [00:25:11] Right. But nevertheless is working in the space of examples. Yeah. Example it seems to examples of structure. [00:25:18] Our brains seem to connect with that. Yeah. Yeah. So I'm not sure if you're familiar with them, but Andrew Yang is a presidential candidate. Currently running with the math in all capital letters and his hats as a slogan I think stands for Make America Think Hard. [00:25:38] OK, I'll vote for so and his name rhymes with yours, Yang Strang's. But he also loves math and he comes from that world. [00:25:49] Right. But he's also looking at it makes me realize that math, science and engineering are not really part of our politics. Right. Political discourse about political government in general. Yeah. [00:26:03] What do you think that is? Well, what are your thoughts on that in general? [00:26:08] Was there any somewhere in the system? [00:26:10] We need people who are comfortable with numbers, comfortable with quantities. You know, if you say this leads to that, they see it. It's undeniable. But isn't it strange to you that we have almost no. I mean, I'm pretty sure we have no elected officials in Congress or obviously the president. Yes. That is either has an engineering degree or. [00:26:40] Yeah, well, that's too bad. If you could, uh, a few who could make the connection. Yeah. [00:26:48] It would have to be people who are who are who understand engineering or science and at the same time can make speeches and and lead. Yeah. [00:27:01] Inspire people. Yeah. Yeah. [00:27:03] You were speaking of inspiration, the president of the Society for Industrial Applied Mathematics. Oh yes. Uh, major organization in math and applied math. What do you see as a role of that society, you know, in our public discourse. [00:27:20] Right. In public. Yeah. So. Well, it was fun to be president at the time. At the time of year. The year to year is around around 2000. [00:27:30] Is president a pretty small society? But nevertheless, it was a time when math was getting some more attention in Washington. But yeah, I got to give a little ten minutes to, uh, to a committee of the House of Representatives talking about who I met. And then actually it was fun because one of the members of the House had been a student and had been in my class. [00:28:02] What do you think of that? Yeah, as you say, a pretty rare boast. Most members of the House have had a different training, different background. But there was one from New Hampshire who who was my friend, really, by by being in the class. [00:28:19] Yeah. So those years were good then. Of course, other things take take over and importance in Washington. And math, math just at this point is not so visible. But for a little moment it was there's some excitement, some concern about artificial intelligence in Washington now. Yes. But the future. Yeah. And I think at the core of that is math. Well, it is. Yeah. But maybe it's hidden. Maybe it's wearing a different hat, but. [00:28:52] Well, artificial intelligence and particularly can I use the words deep learning. It's a deep learning. Is there a particular approach to. [00:29:03] Understanding data again, you've got a big a whole lot of data where data is just swamping the computers of the world and to understand it, out of all those numbers, to find what's important, you know, in climate and everything. And artificial intelligence has two words for for one approach to data. Deep learning is a specific approach there, which uses a lot of linear algebra. So I got into it. I thought, OK, I've got to learn about this. [00:29:38] So maybe from your perspective, I mean, ask the most basic question. Yeah. How do you think of a neural network? What is it? And you're on the one. Yeah. [00:29:49] OK, so can I start with the idea about deep learning? What does that mean? Sure. What is deep learning? What is deep learning? Yeah. So so we're trying to learn from all this data. [00:30:03] We're trying to learn what's important, what, what, what they're telling us. [00:30:07] So you've you've got data. You've got some inputs for which, you know, the right outputs. The question is, can you see the pattern there? [00:30:19] Can you figure out a way for a new input, which we haven't seen to to get the data to understand what the output will be from that new input? [00:30:29] So we've got a million inputs with their outputs. So we're trying to create some patterns, some rule that will take those inputs, those million training inputs which we know about to the correct million outputs. And this idea of a neural net is part of the structure of the of our new way to create create a rule. [00:30:57] We're looking for a rule that will take these training inputs to the known outputs. [00:31:05] And then we're going to use that rule on new inputs that we don't know the output and see what comes. [00:31:13] The linear algebra is a big part of defining a finding that. That's right. Linear algebra is a big part. Not all the part people were leaning on. [00:31:22] Matrices that could still do linear is something special. It's all about straight lines and flat plains. And and data isn't quite like that. [00:31:35] You know, it's it's more complicated. So you got to introduce some complication. So you have to have some function that's not a straight line. And it turns out it nonlinear, non-linear, linear, and it turned out it was enough to use the function. That's one straight line and then a different one half way. [00:31:56] So piecewise, piecewise, least one piece has one slope, one piece, the other piece has the second slope. And so that the getting that nonlinear, simple non-linearity in blue, the problem open that little piece makes a sufficiently complicated to make things interesting because you're going to use that piece over and over a million times. [00:32:21] So you so you it has a it has a fold in the graph, the graph to pieces. And but when you fold something a million times, you've got you've got a pretty complicated function that's pretty realistic. [00:32:36] So that's the thing about neural networks is they have a lot of these. [00:32:41] A lot of these. [00:32:42] So why do you think neural networks by using a. So formulating an objective function, there is not a plane. Yeah, a function unfolds, lots of folds of the inputs, the outputs. What do you think they work to be able to find a rule that we don't know is optimal, but is just seems to be pretty good in a lot of cases. [00:33:10] What's your intuition? Is it surprising to you as it is to many people, you have an intuition of why this works at all? [00:33:18] Well, I'm beginning to have a better intuition. This idea of things that are piece wise, linear, flat pieces, but but with folds between them, like think of a roof of a complicated, infinitely complicated house or something that that that curved, almost curved. But but every piece is flat that's been used by engineers. [00:33:44] That idea has been used by engineers, is used by engineer big time, something called the finite element method. [00:33:51] If you want to if you want to design a bridge, design, a building design airplane, you're using this idea of piecewise flat as a good, simple computable approximation to be. [00:34:09] You have a sense that. That there's a lot of expressive power in this kind of piece, wise, linear that's combined together, you use the right word if you measure the expressive. How, how how complicated a thing can can this piecewise flat guys express? The answer is very complicated. Yeah. [00:34:32] So what do you think are the limits of such piece wise, linear or just neural networks, expressivity of neurons. [00:34:41] Well, you would have said a while ago that they're just computational limits. [00:34:46] You know, you problem beyond a certain size. A supercomputer isn't going to do it, but that those keep getting more powerful. So that's that limit has been moved to allow more and more complicated surfaces. [00:35:04] So in terms of just. Mapping from inputs and outputs, looking at data. Yeah, what do you think? Of, you know, in the context in your networks, in general, data is just tensor vectors matrices Tensas, right? [00:35:22] Or how do you think about learning from data? [00:35:26] What how much of our world can be expressed in this way? How useful is this process? I guess that's another way of asking what are the limits of this? [00:35:36] Well, that's a good question. Yeah. So I guess the whole idea of deep learning is that there's something there to learn. If the data is totally random, just produced by random number generators, then we're not going to find a useful rule because there isn't one. [00:35:55] So the extreme of having a rule is like knowing Newton's law, you know, if you hit a hit a ball and moves. So that's where you had laws of physics. [00:36:06] Newton and Einstein and other great, great people have have found those laws and laws of the the the the distribution of oil in an underground thing. I mean, that's so so engineers, petroleum engineers understand how how oil will sit in an underground basin. [00:36:35] So there were rules now. Now, the new idea of artificial intelligence is learn the rules instead of instead of figuring out the rules by with help from Newton or Einstein, the computer is looking for the rules. So that's another step. But if there are no rules at all that the computer could find, if it's totally random data, well, you've got nothing. [00:37:02] You've got no science to to discover it's automated search for the underlying rules. Yeah, search. [00:37:09] Search for the rules. Yeah, exactly. And there will be a lot of random parts. A lot. [00:37:15] I'm not knocking random because that's there the the the there's a lot of randomness built in, but there's got to be some basic it's almost always right in most there's got to be some signal. [00:37:30] If it's all noise then there's there is you're not going to get anywhere. Well, this world around us does seem to be does seem to always have a signal. Some kind. Yeah. Yeah. To be discovered. Right. That's it. [00:37:43] So. What excites you more? The we just talked about a little bit of application, we're excited more theri. Or the application of mathematics? Well, for myself, I'm probably a theory person, I'm not I'm speaking here pretty freely about applications, but I'm not the person who really I'm not a physicist or a chemist or a neuroscientist. [00:38:15] So for myself, I like the structure and the flat, some spaces and the and the relation of matrices columns, the rose. [00:38:29] That's my part in the spectrum. So really, science is a big spectrum of people from asking practical, practical questions and answering them, using some math, then some math guys like myself who are in the middle of it, and then the geniuses of math and physics and chemistry and who are finding fundamental rules and doing doing really understanding nature. That's incredible. [00:39:09] At its lowest, simplest level. Maybe just a quick in broad strokes from your perspective, what is where is linear algebra sit as a subfield of mathematics? What what are the various subfields that you're OK that you think about in relation to linear algebra? [00:39:29] So the big fields of math are algebra as a whole and problems like calculus and differential equations. So that's a second quite different field than maybe geometry. It deserves to be thought of as a different field. Understand the geometry of high dimensional surfaces. [00:39:53] So I think am I allowed to say this here, I think this this is this is our personal view comes and I think math or thinking about undergraduate math, what millions of students study, I think we overdo the calculus at the cost of the algebra, at the cost of linear entitled calculus versus linear. [00:40:22] That's right. And you say that linear algebra when so you can you can you dig into that a little bit. [00:40:31] Why does linear algebra when. [00:40:34] Right. Well, OK, I'm the viewer is going to think this guy is bias. Not true. I'm just telling the truth as it is. Yeah. So I feel linear algebra is just a nice part of math that people can get the idea of. They can understand something that's a little bit abstract because once you get to 10 or 100 dimensions and very, very, very useful, that's what's happened in my lifetime, is the the the importance of data, which does come in matrix form. [00:41:11] So it's really set up for algebra. It's not set up for differential equations. And let me fairly add probability. Ideas of probability and statistics have become very, very important, have also jumped forward. So and that's not that's different from linear algebra. Quite different. So now we really have three major areas to me, calculus. [00:41:40] Linear algebra matrices and probability statistics, and they all deserve a important place and calculus has traditionally had a barrel. [00:41:55] It's a lion's share of the time, a disproportionate share. This thank you. [00:42:00] Disproportionate that's a good word of the the love and attention from the excited young minds. Yeah. I know it's hard to pick favorites, but what is your favorite matrix, what's my favorite matrix? OK, so my favorite matrix is Square. It's a square bunch of numbers and it has tubes running down the main diagonal and on the next diagonal. So think of top left to bottom right. Tu's down down the middle of the matrix and minus ones just above those twos and minus ones just below those twos and otherwise all zeroes. [00:42:43] So mostly zeros, just three non-zero diagonals coming down. What is interesting about it? Well, all the different ways it comes up, you see it in engineering. You see it as analogous in calculus to second derivative. So calculus learns about taking the derivative, the figuring out how much how fast something's changing. [00:43:08] But second, derivative now that's also important. That's how fast the change is changing, how fast the graph is bending, how how fast it's it's curving. [00:43:23] And Einstein showed that that's fundamental to understand space. [00:43:29] So second, derivatives should have a bigger place in calculus. [00:43:34] Second, dormice matrices, which are like the linear algebra version of second derivatives are neat and in linear algebra. Yeah, just everything comes out right with those guys. [00:43:51] Beautiful. [00:43:52] What did you learn about the process of learning by having taught so many students math over the years? Who? [00:44:00] That is hard. I'll have to admit here that I'm not I'm not really a good teacher because I don't get into the exam part. The exams are part of my life that I don't like and grading them and giving the students A or B or whatever, I do it because I'm supposed to do it. [00:44:25] But but I tell the class at the beginning, I don't know if they believe me. Probably they don't. I tell the class, I'm here to teach you. I'm here to teach you math and not to grade you. And but they're thinking, OK, this guy is going to you know, when's it going to be? Is he going to give me an A minus? Is he going to give me a B plus? [00:44:47] What what what have you learned about the process of learning? [00:44:51] Of learning? Yeah, well, maybe to be able to give you a legitimate answer about learning, I should have paid more attention to the assessment, the evaluation part at the end. But I like the teaching part at the start. That's the sexy part to tell somebody for the first time about a matrix. [00:45:12] Wow. [00:45:13] Is there are there moments so you you are teaching a concept. Are there moments of learning that you just see in the students eyes? [00:45:23] You don't need to look at the grades you see in their eyes that that you hook them, that you know, that you connect with them in a way where you know what they they they fall in love with this with this beautiful world. [00:45:38] And they see that it's got some beauty or conversely, that they give up at that point is the opposite. The dark. I say the math. I'm just not good at math. [00:45:50] Yeah, yeah, yeah. Maybe because of the approach in the past, they were discouraged. But don't be discouraged. It's it's too good to miss. [00:46:01] Yeah. [00:46:03] Well if I'm teaching a big class do I know when I think maybe I do. Sort of. I mentioned at the very start the four fundamental sub spaces and the structure of the fundamental theorem of linear algebra, the fundamental theorem of linear algebra that is the relation of those four subspace. This has four spaces. Yeah. [00:46:31] So I think that I feel that the class gets it when they want to see. Yeah. What advice do you have to a student just starting their journey mathematics today. How do they get started. Oh no. Yeah that's hard. [00:46:47] Well I hope you have a teacher professor who is still enjoying what he's doing, what he's teaching. They still looking for new ways to teach and and to understand math, because that's the pleasure to the moment when you say, oh, yeah, that works. [00:47:12] So it's just about the material you. [00:47:14] Yeah, you study. It's more about the source of the teacher being full of passion for. [00:47:21] Yeah. More about the fun. Yeah. The the moment of, of getting it. But in terms of topics the algebra. [00:47:31] Well that's my, my topic but oh there's beautiful things in geometry to understand. What's wonderful is that in the end there, there's a pattern there. [00:47:44] There's, there are rules that that that are followed in biology as there are in every field you describe. [00:47:57] The life of a mathematician as much as 100 percent wonderful, except for the great stuff. Yeah, having the good grades for a grade. Yeah. When you look back at your life. Yeah. What memories bring you the most? Joy and pride. Well, that's a good question. I certainly feel good when I maybe I'm giving a class and in 18 06 that Mitty's linear algebra course that I started, so sort of as a good feeling that, OK, I started this course. [00:48:30] A lot of students take it quite if you like it. Yeah. So I'm I'm sort of happy when I feel I'm helping, helping make a connection between ideas and students, between theory and the reader. Yeah, it's I get a lot of very nice messages from people who watch the videos and it's inspiring. I just maybe take this chance to say thank you. Well, there's millions of students who you've taught, and I am grateful to be one of them. [00:49:11] So thank you so much. It's been an honor. Thank you for talking to. It was a pleasure. Thanks. Thank you for listening to this conversation with Gilbert Strang and thank you to our presenting sponsor cash app, download it, use code luks podcast. You'll get ten dollars and ten dollars will go to first, a STEM education nonprofit that inspires hundreds of thousands of young minds to learn and to dream of engineering our future. If you enjoy this podcast, subscribe on YouTube. [00:49:41] We had five stars in Apple podcast supporting our patron or connect with me on Twitter. Finally, some closing words of advice from the great Richard Feynman. Study hard. What interests you the most in the most undisciplined, irreverent and original manner possible? Thank you for listening and hope to see you next time.

本集资源与出处