Knowledge 49

Spectral bias of Neural network

딥러닝을 공부하다가 inductive bias라는 개념은 CNN을 다룰 때나 transformer를 다룰 때 자주 들어보았지만, 최근 spectral bias라는 개념을 처음 접했다. 특정 task에서만 발생하는 bias라면 그냥 지나갔겠지만 짧게 알아본 바로는 모든 neural network 학습 과정에서 전반적으로 나타나는 bias여서 알아두어야 할 것 같았다. 그래서 이 글은 간략하게 나마 spectral bias가 뭔지 설명하고 그 파훼법을 정리하기 위해 적는다. Spectral bias On the Spectral Bias of Neural Networks 라는 제목의 논문에서 저자들이 처음 주장했다. By using tools from Fourier analysis, we highlight a..

Knowledge/Vision 2023.03.10

contiguous의 의미 (view, reshape, transpose, permute 이해하기)

numpy 나 torch를 이용해서 코딩을 해본 적이 있다면 가끔 array나 tensor가 contiguous하지 않다는 오류를 본 경험이 있을 것이다. "인접한, 근접한" 이라는 뜻을 가진 contiguous 단어 자체의 뜻만 보고는 직관적으로 이 오류가 무엇을 의미하는지 이해하기가 어렵다. 나또한 그랬고 오류를 고치기 위해 한 동안 고생했던 기억이 있다. 일단 글을 시작하기 전에 먼저 말하면, 규모가 큰 코드, 특히나 연산이 얽혀있는 코드, 를 작성할 때 contiguous 문제가 생기면 풀기가 쉽진 않다. 코드 레벨이 아닌 안 보이는 레벨에서 발생하는 오류이기 때문에 꽤 까다로운 문제 중 하나라고 할 수 있다. 그래서 이번 글에서는 애초에 문제를 예방했으면 좋겠다는 의미에서 이 contiguous..

Knowledge/Vision 2023.02.21

[Linear algebra] 33-34. Left and right inverses; pseudoinverse

*34강은 시험 해설 강의로 생략한다. Lecture https://ocw.mit.edu/courses/18-06-linear-algebra-spring-2010/resources/lecture-33-left-and-right-inverses-pseudoinverse/ Lecture 33: Left and right inverses; pseudoinverse | Linear Algebra | Mathematics | MIT OpenCourseWare MIT OpenCourseWare is a web based publication of virtually all MIT course content. OCW is open and available to the world and is a permanent MIT..

[Linear algebra] 31-32. Change of basis; image compression

*32강은 퀴즈 해설 강의로 생략함. Lecture https://ocw.mit.edu/courses/18-06-linear-algebra-spring-2010/resources/lecture-31-change-of-basis-image-compression/ Lecture 31: Change of basis; image compression | Linear Algebra | Mathematics | MIT OpenCourseWare MIT OpenCourseWare is a web based publication of virtually all MIT course content. OCW is open and available to the world and is a permanent MIT activity..

[Linear algebra] 30. Linear transformations and their matrices

Lecture https://ocw.mit.edu/courses/18-06-linear-algebra-spring-2010/resources/lecture-30-linear-transformations-and-their-matrices/ Lecture 30: Linear transformations and their matrices | Linear Algebra | Mathematics | MIT OpenCourseWare MIT OpenCourseWare is a web based publication of virtually all MIT course content. OCW is open and available to the world and is a permanent MIT activity ocw.m..

[Linear algebra] 28. Similar matrices and Jordan form

Lecture https://ocw.mit.edu/courses/18-06-linear-algebra-spring-2010/resources/lecture-28-similar-matrices-and-jordan-form/ Lecture 28: Similar matrices and Jordan form | Linear Algebra | Mathematics | MIT OpenCourseWare MIT OpenCourseWare is a web based publication of virtually all MIT course content. OCW is open and available to the world and is a permanent MIT activity ocw.mit.edu Note 지난 강의에..

[Linear algebra] 25. Symmetric matrices and positive definiteness

Lecture https://ocw.mit.edu/courses/18-06-linear-algebra-spring-2010/resources/lecture-25-symmetric-matrices-and-positive-definiteness/ Lecture 25: Symmetric matrices and positive definiteness | Linear Algebra | Mathematics | MIT OpenCourseWare MIT OpenCourseWare is a web based publication of virtually all MIT course content. OCW is open and available to the world and is a permanent MIT activity..