YouTube2Text

Julian McAuley Live Stream — Transcript

by Julian McAuley · 11,546 words · 2,259 segments · language en · Watch on YouTube

Full transcript

  1. 1:41I
  2. 3:39>> Okay.
  3. 3:40Hello everyone.
  4. 3:46Um so
  5. 3:48I am going to continue today talking
  6. 3:50about a bunch of case studies for the
  7. 3:53most part. Um
  8. 3:55like I suggested last time, the point
  9. 3:58this part of the course is
  10. 4:01uh you should know about recommender
  11. 4:03systems that
  12. 4:05um maybe your your competence to kind of
  13. 4:08read a paper on the topic
  14. 4:10um especially as you start to think
  15. 4:11about your open-ended projects and stuff
  16. 4:13like that.
  17. 4:14Um
  18. 4:15I think
  19. 4:16a lot of the specific models I'm talking
  20. 4:19about I mean this one's for generating
  21. 4:21playlists with latent factor models cool
  22. 4:24uh they're not
  23. 4:26really things that you're ever going to
  24. 4:27implement as part of your life. The
  25. 4:30point of talking about all these case
  26. 4:31studies is to give you
  27. 4:34more of a
  28. 4:36a general sense of what the recommended
  29. 4:38systems design process kind of looks
  30. 4:41like right? You're
  31. 4:43you're given some task
  32. 4:45by your tyrant bosses some big tech
  33. 4:48company.
  34. 4:49They say they want to generate
  35. 4:50playlists.
  36. 4:52You know something about recommender
  37. 4:53systems get to it. Uh you can just take
  38. 4:57your latent factor model off the shelf
  39. 4:58to some extent but probably you have to
  40. 5:02design models around each specific
  41. 5:04application.
  42. 5:05I think that is a
  43. 5:07kind of
  44. 5:08truism about recommended systems is
  45. 5:11there is no
  46. 5:13um
  47. 5:14there's no god model right? There's no
  48. 5:16one size fits all approach.
  49. 5:18Uh the way I designed assignment one is
  50. 5:20certainly such that the standard models
  51. 5:22kind of work but
  52. 5:24most of the time when you actually
  53. 5:26go to develop recommender systems
  54. 5:28the standard models are not that good.
  55. 5:30You know your latent factor model
  56. 5:33it captures like static latent
  57. 5:35preferences pretty well but real
  58. 5:37applications have kind of all of their
  59. 5:39own weird things going on.
  60. 5:42Uh think about clothing recommendation,
  61. 5:44grocery recommendation, song
  62. 5:46recommendation, playlist generation
  63. 5:48um
  64. 5:49recommending live streams on Twitch,
  65. 5:51recommending video games on Steam or
  66. 5:54something like that you know they're all
  67. 5:55just
  68. 5:56wildly different from each other. Maybe
  69. 6:00groceries tend to have lots of repeat
  70. 6:02purchases, maybe
  71. 6:04interactions are
  72. 6:07largely periodic as well as being very
  73. 6:09sequential. So you need a model that's
  74. 6:11kind of sequential, but it's kind of
  75. 6:13temporal. Maybe on a live streaming
  76. 6:14platform
  77. 6:16items only exist for a moment in time,
  78. 6:18so you can't really learn item models.
  79. 6:21Um
  80. 6:22but then [snorts] again, maybe
  81. 6:23preferences aren't really items. Maybe
  82. 6:25you have preferences to streamers, so
  83. 6:27you should
  84. 6:28recommend
  85. 6:31model you should build recommenders that
  86. 6:33learn latent preference models toward
  87. 6:36people rather than content. Maybe it's
  88. 6:38some relationship between the streamer
  89. 6:40and the game they're playing.
  90. 6:42Even so, you still have to consider
  91. 6:44what's actually available right now.
  92. 6:47Um
  93. 6:50you know, every application is going to
  94. 6:51be a little bit different, so
  95. 6:54developing recommender systems in
  96. 6:56industry really means designing bespoke
  97. 7:00models for every different application.
  98. 7:02I mean, maybe the other thing you've
  99. 7:03learned about recommender systems by now
  100. 7:04is that
  101. 7:06you have to be really careful about the
  102. 7:08number of parameters blowing up.
  103. 7:10Uh
  104. 7:11these models have parameters for every
  105. 7:14item, they have parameters for every
  106. 7:15user. If we want to incorporate things
  107. 7:17like temporal dynamics, um
  108. 7:21well, we can't just fit a different
  109. 7:22model for every month, we maybe have to
  110. 7:26only add a few a few additional
  111. 7:28parameters to capture monthly variation,
  112. 7:29whatever.
  113. 7:31So all of these reasons add up
  114. 7:33to explain why
  115. 7:35yeah, large general purpose
  116. 7:37recommendation models don't really
  117. 7:40exist,
  118. 7:41right? There's no
  119. 7:43there's no equivalent of of GPT-6 or
  120. 7:45whatever they're up to these days
  121. 7:48where it's just like, oh, if you're
  122. 7:49dealing with text
  123. 7:51just use the most performance general
  124. 7:54purpose language model, and that'll
  125. 7:56probably be the right thing to do.
  126. 7:57There's kind of no equivalent for
  127. 7:59recommender systems.
  128. 8:01People have to build highly specific
  129. 8:03models around every specific
  130. 8:04application.
  131. 8:06Um
  132. 8:07I mean, maybe it's true that those are
  133. 8:09built by language models, but whatever.
  134. 8:10You still need different models per
  135. 8:12application. You need to have some sense
  136. 8:14of what's going on. You need to design
  137. 8:15models around that.
  138. 8:18Hopefully I've I've made my point by
  139. 8:19now. Uh the good news about that is it
  140. 8:21means
  141. 8:23people are still getting jobs in this
  142. 8:24space. The
  143. 8:26problem is never solved. There's
  144. 8:28always a
  145. 8:30a new application or website or whatever
  146. 8:32that needs new recommender systems built
  147. 8:34for it.
  148. 8:35So yeah, let's see what that kind of
  149. 8:36looks like. How do you take a standard
  150. 8:39model, your
  151. 8:41latent factor recommender or whatever it
  152. 8:43is?
  153. 8:44Um why might that not be appropriate for
  154. 8:46playlist generation? What can we do
  155. 8:50to adapt it to playlist generation? So
  156. 8:51I've got a couple of case studies in the
  157. 8:53temporal slides and then there's some
  158. 8:55more case studies
  159. 8:56uh in the
  160. 8:58content and structure slides, mostly
  161. 8:59dealing with like
  162. 9:01social dynamics and things like that.
  163. 9:03Uh
  164. 9:05let's try and get through those today or
  165. 9:06I'll see how many I can get through.
  166. 9:09Uh I'll also talk about assignment two.
  167. 9:11I don't think there's much interesting
  168. 9:12to say and then next week we'll
  169. 9:15uh
  170. 9:16get on with a new topic and talk about
  171. 9:18text.
  172. 9:19Cool. So we are trying to build a
  173. 9:22recommender system that recommends
  174. 9:23sequences of songs.
  175. 9:25Um
  176. 9:28this is a specific implementation from
  177. 9:30some paper.
  178. 9:31The the first idea is to say, oh yeah,
  179. 9:33maybe like we discussed on Tuesday,
  180. 9:36um
  181. 9:38for song recommendation
  182. 9:42you might not want to use
  183. 9:45um
  184. 9:51uh inner product based model. You might
  185. 9:53want to use
  186. 9:55models based on the
  187. 9:59um
  188. 10:01Is there a question there in chat? Maybe
  189. 10:03I can see the rest of the question yet.
  190. 10:06Uh maybe you want to use models based on
  191. 10:07metric spaces, either between a user and
  192. 10:09an item or between
  193. 10:12pairs of items in a sequence.
  194. 10:15Um,
  195. 10:17so yeah, the idea being that for
  196. 10:21something like song recommendation, if
  197. 10:23you like
  198. 10:25slightly jazzy jazz, you don't want to
  199. 10:26be recommended extremely jazzy jazz,
  200. 10:28just other slightly jazzy jazz. So songs
  201. 10:32that are next to each other in a
  202. 10:33sequence should be
  203. 10:35sort of semantically similar in terms of
  204. 10:37their latent representations rather than
  205. 10:40projecting along the the same direction
  206. 10:42which would lead gradually lead to some
  207. 10:44kind of extremification.
  208. 10:46So yeah, they have this basic model. Um,
  209. 10:50this is
  210. 10:52a sequential recommendation model. So
  211. 10:53this is a model that says how should the
  212. 10:55next item relate to the previous item.
  213. 10:58There's no user here yet.
  214. 11:00Um,
  215. 11:02again, kind of ignore the notation. This
  216. 11:04is just
  217. 11:06making things into a probability
  218. 11:08distribution.
  219. 11:10Um,
  220. 11:12but the real part of the model is this
  221. 11:13guy
  222. 11:15which basically says we have a distance
  223. 11:17function
  224. 11:19of the form
  225. 11:21gamma i which is the next item minus the
  226. 11:25representation of the previous item
  227. 11:27should be close to each other in terms
  228. 11:29of a squared L2 distance. Cool,
  229. 11:31whatever.
  230. 11:32Um,
  231. 11:35and yes, you just take the negative of
  232. 11:37that and throw it in an exponential. So
  233. 11:39you're saying
  234. 11:41songs that have a
  235. 11:43low distance in this latent space, which
  236. 11:46we will learn, are more likely
  237. 11:50to
  238. 11:51occur near each other in playlists.
  239. 11:54That's essentially the probabilistic
  240. 11:55model they're trying to learn. They want
  241. 11:57to say songs that are nearby
  242. 12:01are in terms of their squared Euclidean
  243. 12:02distance have high probability of
  244. 12:06um
  245. 12:08occurring next to each other in in
  246. 12:09playlists.
  247. 12:11Um,
  248. 12:12so we'd like learn this this
  249. 12:16this position in in this metric space
  250. 12:19um,
  251. 12:21such that their
  252. 12:24squared Euclidean distance is like
  253. 12:26similar to their playlist distance.
  254. 12:29Um,
  255. 12:30so yeah, not much going on. You know,
  256. 12:32they have you can think what these
  257. 12:33latent dimensions might represent.
  258. 12:36For music, they could say how much jazz
  259. 12:38does it have?
  260. 12:39Um, is it
  261. 12:41does it have rock elements? Uh, is it
  262. 12:44you know, is it indie or is it
  263. 12:47big pop artists? Latent dimensions could
  264. 12:49be whatever you like.
  265. 12:51Um,
  266. 12:52and yeah, we have
  267. 12:54position of the previous song, gamma i
  268. 12:56minus one. The hypothesis here is that
  269. 13:00the next song in the playlist will be
  270. 13:02somewhere near that.
  271. 13:05Okay?
  272. 13:06So the distance between gamma i and
  273. 13:11gamma i minus one should be small.
  274. 13:21Um,
  275. 13:24this this paper has another really nice
  276. 13:26idea which
  277. 13:28um, slight spoiler alert, doesn't
  278. 13:30actually work very well, but it's a
  279. 13:31really good idea.
  280. 13:33Um,
  281. 13:34which is you know, that's what academic
  282. 13:35papers are all about.
  283. 13:37Uh, they say
  284. 13:39maybe you would actually be better to
  285. 13:41learn two embeddings for each song.
  286. 13:44There's an embedding of where the song
  287. 13:46starts
  288. 13:48um, and there's another embedding of
  289. 13:50where the song ends.
  290. 13:53Um,
  291. 13:55which sort of and then the the next song
  292. 13:57in the playlist
  293. 13:58should be close to the end point, not
  294. 14:00the start point. I guess the idea here
  295. 14:03is that like songs in a playlist should
  296. 14:04take you on a journey, right? If you're
  297. 14:06building a playlist
  298. 14:08I don't know, you you want to start off
  299. 14:09feeling one way, you want to get to the
  300. 14:11end of the playlist to feel a different
  301. 14:13way. So they shouldn't all be in the
  302. 14:14same point, but a song starts somewhere,
  303. 14:17it ends somewhere, and then you're ready
  304. 14:19for the next song to start off from that
  305. 14:22point. Like each, each song is
  306. 14:24moving you
  307. 14:26um in this, in this latent space
  308. 14:28somehow.
  309. 14:30It's a, it's a cool idea at least.
  310. 14:33Um it's the thought that counts with
  311. 14:35these papers, right?
  312. 14:37So,
  313. 14:38how do I convert the annotation to my
  314. 14:40own? You have to have something like
  315. 14:42um
  316. 14:44this is like gamma I for the start.
  317. 14:52And this is gamma I
  318. 14:54prime, which is the end point of the
  319. 14:56same song.
  320. 14:57Uh
  321. 14:59so yeah, one song
  322. 15:01um
  323. 15:04So, it's
  324. 15:06I forget exactly how the annotation
  325. 15:07works, but it's saying the next song's
  326. 15:10start point
  327. 15:12should be close to the previous song's
  328. 15:14end point
  329. 15:16basically.
  330. 15:17Um
  331. 15:19I mean what's the problem with this idea
  332. 15:20is that it doubles the size of your
  333. 15:22parameterization, right? You know have
  334. 15:24to learn two latent vectors per song and
  335. 15:27latent vector and a start latent vector
  336. 15:29um
  337. 15:30which I don't know, a lot of songs don't
  338. 15:32really go anywhere, do they? Uh so a lot
  339. 15:35of the time you're just going to be
  340. 15:36redundantly learning the same thing
  341. 15:38twice.
  342. 15:39Uh
  343. 15:40has it really been worth
  344. 15:42doubling the number of model parameters
  345. 15:44in order to do so? This is a very
  346. 15:46expensive addition to the model, which
  347. 15:50I think
  348. 15:52in principle adds something nice, but in
  349. 15:53practice maybe is not so useful.
  350. 15:56Okay, so
  351. 15:58what else is going on? They also have
  352. 15:59bias terms. I mean this paper is also a
  353. 16:02nice or maybe a horrible exercise in
  354. 16:04just
  355. 16:05figuring out how
  356. 16:07some random academic paper on the topic
  357. 16:09does the same thing with
  358. 16:11totally different notation.
  359. 16:13You see this equation that looks totally
  360. 16:15unfamiliar compared to anything I've
  361. 16:16taught in class and
  362. 16:18you have to stare at it just the right
  363. 16:19way
  364. 16:21to realize it's actually exactly the
  365. 16:22same model. So this is, you know,
  366. 16:24popularity bias. What is that really?
  367. 16:25It's basically a bias term.
  368. 16:29Um,
  369. 16:31a beta I associated with the song. So
  370. 16:33that's not, you know, a beta I is not
  371. 16:35really a popularity term. It's a learned
  372. 16:37parameter, right? It could be anything.
  373. 16:39It's just allowing for
  374. 16:42certain songs
  375. 16:46to show up with high probability across
  376. 16:47all playlists. It's a it's a biased term
  377. 16:50that can increase or decrease
  378. 16:53um
  379. 16:55the popularity of any given song
  380. 16:57regardless of the interaction term. So
  381. 17:00we have two terms here. We have the the
  382. 17:02interaction term. Is the song compatible
  383. 17:05with the
  384. 17:07previous song or is the song's start
  385. 17:09point compatible with the previous
  386. 17:10song's end point, if you want to do
  387. 17:12that?
  388. 17:13Um,
  389. 17:14plus is this song just
  390. 17:16more or less likely to show up compared
  391. 17:18to other songs?
  392. 17:21Um,
  393. 17:23and yeah, what else do they do? They
  394. 17:24have a personalization term. Now this is
  395. 17:26very similar to that factorized
  396. 17:28personalized Markov chain model
  397. 17:30um
  398. 17:31where you have these two terms. One is
  399. 17:34um the relationship of a song to the
  400. 17:36previous song.
  401. 17:38Um,
  402. 17:40so
  403. 17:45and the other one is the relationship of
  404. 17:48a song to a user. So that's like gamma I
  405. 17:52dot gamma U.
  406. 17:55And I don't know, the interesting thing
  407. 17:56about this equation here is that they
  408. 17:58actually end up using some mixture of
  409. 17:59two approaches. They say
  410. 18:01for the relationship between two
  411. 18:03consecutive songs
  412. 18:05maybe let's use Euclidean distance.
  413. 18:09Right? Songs should be kind of near each
  414. 18:10other on a playlist.
  415. 18:12Uh, they should not stray too far over
  416. 18:14time.
  417. 18:15But
  418. 18:17for
  419. 18:18the preference term, which says how much
  420. 18:19does the user like the song?
  421. 18:22Um, they use it in a product.
  422. 18:25Whatever. Uh, so yeah, you can you can
  423. 18:27mix and match these things if you're
  424. 18:28designing your own models.
  425. 18:30Uh,
  426. 18:32one type of compatibility function is
  427. 18:33good for for preference compatibility. A
  428. 18:36different type of compatibility function
  429. 18:37is good for
  430. 18:39um
  431. 18:43previous song to next song
  432. 18:44compatibility.
  433. 18:47What else do they do? Semantic tags, I
  434. 18:49mean, yeah, cool. Uh,
  435. 18:51this is kind of a form of cold start
  436. 18:53recommendation.
  437. 18:55Um,
  438. 18:56pretty neat how they do it. Although the
  439. 18:58equation is again scary to look at.
  440. 19:01Um, cold start something that always
  441. 19:02comes up in the questions in this class,
  442. 19:04right? What do you do about cold start?
  443. 19:06So
  444. 19:07here's an example. For a cold start
  445. 19:09song, maybe we don't
  446. 19:11have a lot of interactions associated
  447. 19:12with that song, but we have some set of
  448. 19:15binary features.
  449. 19:17So they call these binary features
  450. 19:19semantic tags, which could be, you know,
  451. 19:21it's jazzy, it's ダンス it's upbeat.
  452. 19:24Um, or they could be an encoding of what
  453. 19:27artists are in the song, anything you
  454. 19:28want. They're basically a set of binary
  455. 19:30labels.
  456. 19:31Um,
  457. 19:33what this
  458. 19:35funny looking equation does is that it
  459. 19:38says that the
  460. 19:41representation of some song, your gamma
  461. 19:44I,
  462. 19:47which lives at some point in space,
  463. 19:50um,
  464. 19:52could be close to the average
  465. 19:55of some set of semantic tags.
  466. 19:58Um,
  467. 20:00so, you know, here's my gamma I in the
  468. 20:02middle.
  469. 20:08And I have a bunch of semantic tags.
  470. 20:14Each of these tags has its own latent
  471. 20:16vector, which is again a learned
  472. 20:18parameter vector. So maybe my tags are
  473. 20:22rock or
  474. 20:25um
  475. 20:27I don't know. Taylor Swift could be a
  476. 20:29tag.
  477. 20:30Uh, there is some point in that latent
  478. 20:32space where the tag lives. This is like
  479. 20:35the representation of a tag.
  480. 20:38Yeah? Also a learned representation.
  481. 20:41Kind of a It's a really neat way of um
  482. 20:45combining binary features is as a way of
  483. 20:47doing cold start recommendation. Go
  484. 20:48ahead.
  485. 20:52>> representation of rock would you
  486. 20:55just label a bunch of rocks on find all
  487. 20:57their latent representations
  488. 20:59extract later or how do you how do you
  489. 21:00find the latent representation?
  490. 21:02>> How do you find the latent It's It's all
  491. 21:04learned. So
  492. 21:06um we're going to add this thing into
  493. 21:08our Is there an equation? Maybe not.
  494. 21:09We're going to add this thing into a
  495. 21:10probabilistic model. So we just have
  496. 21:13what we're assuming here is that there's
  497. 21:14a binary feature vector associated with
  498. 21:16every item.
  499. 21:18Pretty normal thing to have, right?
  500. 21:20Um
  501. 21:22and we're saying I'm going to add an
  502. 21:24additional term to my objective function
  503. 21:27which says that, you know, users should
  504. 21:30be compatible with items, items should
  505. 21:32be compatible with previous items
  506. 21:35and an item's representation
  507. 21:37should be
  508. 21:39close to the average
  509. 21:41of this
  510. 21:43all of the feature tag representations,
  511. 21:46right?
  512. 21:47Um
  513. 21:48a better way to think about something
  514. 21:49like this is to think about it more like
  515. 21:51a regularizer.
  516. 21:52You know, what does a regularizer do?
  517. 21:54Uh, if I have a regularizer that looks
  518. 21:56like looks like this
  519. 21:59gamma I guess, not gamma I
  520. 22:02in my objective function, that's a
  521. 22:03regularizer, right? I say the model
  522. 22:05should be accurate. It should also have
  523. 22:08low
  524. 22:10L2 parameter vectors.
  525. 22:13So it's basically saying my parameter
  526. 22:16vector should be close to zero. If I
  527. 22:17don't know much
  528. 22:20if I don't trust my data very well
  529. 22:23the regularizer will will squash my
  530. 22:24parameters to zero. If I have tons and
  531. 22:26tons and tons of data, the regularizer
  532. 22:29gradually gets ignored.
  533. 22:32And then my error terms will dominate
  534. 22:36the regularizer, right? That's how a
  535. 22:38regularizer works normally in machine
  536. 22:40learning.
  537. 22:40So this is another form of regularizer.
  538. 22:43It's saying if I don't know much about
  539. 22:45the song,
  540. 22:47well, I do know that
  541. 22:49um
  542. 22:52the song's representation should be
  543. 22:54close to the average of the semantic tag
  544. 22:56representations, right?
  545. 22:59If I
  546. 23:00So if I know nothing about the song, if
  547. 23:01I've never
  548. 23:03seen anyone interact with this song
  549. 23:04before, I have no interaction data
  550. 23:06associated with it,
  551. 23:08then the representation of the song will
  552. 23:11just be the average of all the tag
  553. 23:12representations. If I've seen the song
  554. 23:15be rated millions of times,
  555. 23:19who cares what the tags are? It doesn't
  556. 23:21matter. That That term is going to
  557. 23:23gradually be dominated by
  558. 23:26the
  559. 23:27interaction terms,
  560. 23:29you know?
  561. 23:30Um
  562. 23:34Does that largely clear things up?
  563. 23:36But then everything is just learned
  564. 23:37parameters, right? Like what is the
  565. 23:40what is the representation for this tag
  566. 23:42which happens to correspond to rock
  567. 23:44music? Again, rock music is an
  568. 23:46interpretation it's it's information the
  569. 23:48model doesn't really have access to.
  570. 23:50Um
  571. 23:51we just saying
  572. 23:53can we discover some latent
  573. 23:55representation of rock or of that tag
  574. 24:00that will cause it to be near
  575. 24:04items that have that label most of the
  576. 24:05time,
  577. 24:06right?
  578. 24:09So
  579. 24:10I mean you can think of these little
  580. 24:11guys here as like springs
  581. 24:15if an analogy to physics is helpful.
  582. 24:18You have two sets of parameters you're
  583. 24:19learning. You have the item parameters
  584. 24:21and you have the
  585. 24:23tag parameters and we're saying oh the
  586. 24:25item parameters should should close to
  587. 24:26the tag parameters most of the time.
  588. 24:28The item parameters should also be close
  589. 24:30to the user parameters in the inner
  590. 24:31product sense. The item parameters
  591. 24:33should also be close to the previous
  592. 24:35item parameters. So it's like you're
  593. 24:37getting pulled three ways.
  594. 24:40Um
  595. 24:41but
  596. 24:44this is going to have more impact for
  597. 24:45new items where features are the only
  598. 24:47thing you have and you don't have any
  599. 24:49interaction data to
  600. 24:51pull you in that direction.
  601. 24:53So if the interaction data is missing,
  602. 24:54this is this is all you get.
  603. 24:57And as you get more and more interaction
  604. 24:59data, those terms will dominate.
  605. 25:03Cool.
  606. 25:04Um I mean what else is in here?
  607. 25:09This is another way of incorporating
  608. 25:10features that are not semantic tags, but
  609. 25:12you know it goes on. I won't go I won't
  610. 25:14go through everything here.
  611. 25:16Um
  612. 25:17what do they apply this to? Again some
  613. 25:222010 era data set of playlists.
  614. 25:25Um no clue what yes.com is. It escaped
  615. 25:29my attention at the time.
  616. 25:31Um
  617. 25:34large data set by standards of the day.
  618. 25:37Uh
  619. 25:41so
  620. 25:42thousands of songs and and millions of
  621. 25:44transitions. I should sort of say in
  622. 25:46recommender systems there's there's
  623. 25:48never really large and small data sets.
  624. 25:50There's there's only sparse and dense
  625. 25:51data sets.
  626. 25:53Um
  627. 25:55which is what really determines how
  628. 25:57complex of a model you can fit.
  629. 25:59Having a larger data set generally
  630. 26:01doesn't allow you to fit more complex
  631. 26:03models for recommender systems.
  632. 26:06Only having denser data sets allows you
  633. 26:08to fit more complex models.
  634. 26:12But I digress. So yeah I mean what do
  635. 26:14they learn? I mean this is a
  636. 26:17representation of gamma I.
  637. 26:22Uh
  638. 26:23I forget how they did this. It's either
  639. 26:24they learned gamma I explicitly to be
  640. 26:26two-dimensional or they took a
  641. 26:28high-dimensional gamma I and then
  642. 26:30um embedded it into two dimensions using
  643. 26:33t-s-n-a or something. But yeah, somehow
  644. 26:34this is a representation of gamma i and
  645. 26:36saying
  646. 26:37what items are near each other
  647. 26:42in latent space visualized in two
  648. 26:44dimensions.
  649. 26:46Um
  650. 26:47and yeah, it it represents it discovers
  651. 26:49reasonable stuff.
  652. 26:51Although this should be pretty easy for
  653. 26:52a model to learn, right? Like
  654. 26:55Metallica songs are all near each other
  655. 26:57in latent space.
  656. 26:59Fine.
  657. 27:00Um
  658. 27:03the model should be able to learn this
  659. 27:04because their songs probably appear
  660. 27:06together in playlists, right?
  661. 27:09Uh and Metallica is
  662. 27:11very far from Bob Marley.
  663. 27:14Maybe they had beef. I'm not sure.
  664. 27:17Um
  665. 27:18what else?
  666. 27:20I don't know. I mean Michael Jackson I
  667. 27:22guess is a
  668. 27:24genre spanning artist.
  669. 27:27He goes all the way from
  670. 27:31t-i, don't know what that is, to to Lady
  671. 27:34Gaga.
  672. 27:36Um
  673. 27:38themes not too unreasonable, maybe.
  674. 27:42Um and yeah, they compare the different
  675. 27:44models. I think the
  676. 27:47nothing crazy here except to say that
  677. 27:49the model works fine. Um
  678. 27:51the dual point model, which is the one
  679. 27:53that has a different start and end
  680. 27:55representation for every song is
  681. 28:00occasionally very fractionally better,
  682. 28:03but but the most part not really worth
  683. 28:05it.
  684. 28:06And eventually it is sort of highly
  685. 28:08prone to overfitting because it doubles
  686. 28:10the number of parameters.
  687. 28:12Great.
  688. 28:14Um
  689. 28:17go ahead.
  690. 28:18>> So the semantic tags basically like
  691. 28:20punish
  692. 28:21in two dimensions
  693. 28:22different from the previous dimensions
  694. 28:24or
  695. 28:24that correct?
  696. 28:26>> The semantic tags I wouldn't say they
  697. 28:28punish items for being different to
  698. 28:30previous items. They are
  699. 28:33they're saying that
  700. 28:34items with the same semantic tags
  701. 28:38could have similar representations.
  702. 28:41So
  703. 28:44it would be weird if
  704. 28:46a song two songs had the same semantic
  705. 28:48tags with very different
  706. 28:49representations, right?
  707. 28:51So
  708. 28:52if you don't know much about a song,
  709. 28:54maybe trust the semantic tags. If you
  710. 28:56know lots about the song, then fine.
  711. 28:59This representation can live anywhere
  712. 29:01and is not as governed by what the
  713. 29:03semantic tags are.
  714. 29:05Um
  715. 29:07this is saying yes, a song is about the
  716. 29:09average of its semantic tags.
  717. 29:11Um
  718. 29:14you know, just as we said, two songs
  719. 29:15that are adjacent in a playlist should
  720. 29:17have similar representations. That's
  721. 29:19also like a a regularizing
  722. 29:22sort of constraint, saying things that
  723. 29:24are nearby in a playlist should be
  724. 29:26similar.
  725. 29:27Um
  726. 29:28I mean, that's also cold start
  727. 29:30information, right? If you've never seen
  728. 29:32a song before but uh
  729. 29:34you know, as soon as you see it in one
  730. 29:36playlist, you say, oh yes, it should be
  731. 29:37the average of the song after it and the
  732. 29:39song before it, probably.
  733. 29:41Um
  734. 29:43this is saying if you've never seen a
  735. 29:45song before, it's its representation is
  736. 29:47probably the average of its semantic
  737. 29:48tags.
  738. 29:52Um
  739. 29:54so yeah, I don't know. What what's the
  740. 29:56point of this paper? I mean, it's one
  741. 29:57that I just randomly found and thought
  742. 29:58was interesting and sort of reasonably
  743. 30:00easy to go through.
  744. 30:02I think what's nice about it is just how
  745. 30:05they thought about using metric spaces
  746. 30:07and inner product spaces and kind of
  747. 30:08mixing and matching them together.
  748. 30:10You have a sequential model, so it's
  749. 30:13it's got a preference component, it's
  750. 30:14got a sequence component.
  751. 30:16Um
  752. 30:17they have some way of dealing with cold
  753. 30:19start by combining
  754. 30:22by incorporating observed features.
  755. 30:25And yeah, don't overthink the details.
  756. 30:27Um
  757. 30:29it's just a it's a good gentle
  758. 30:31introduction to like the engineering and
  759. 30:34design process of like
  760. 30:36shoving all of these little extra bits
  761. 30:38to build a recommender system that
  762. 30:40really just
  763. 30:42works on exactly one data set
  764. 30:45and you don't care about anything else
  765. 30:46other than that data set because again
  766. 30:48that's
  767. 30:49that is typical of the development cycle
  768. 30:50of recommender systems. People in
  769. 30:52industry are not trying to build good
  770. 30:55general purpose recommenders. They are
  771. 30:57building recommenders that
  772. 31:00solve
  773. 31:02one data set and one data set only.
  774. 31:05And it's worth building a different
  775. 31:06model for every single data set in the
  776. 31:07universe.
  777. 31:11Okay. I think I'll skip the next one and
  778. 31:13go to something else.
  779. 31:19What was in the content and structure
  780. 31:21lectures? So yeah it
  781. 31:23last Tuesday we had been talking about
  782. 31:26um
  783. 31:29factorization machines. Those might come
  784. 31:30up again but mostly I just wanted to
  785. 31:32talk about those as a possible model you
  786. 31:34might try out for assignment one
  787. 31:37um which can implement many different
  788. 31:40types of recommender system.
  789. 31:43Um
  790. 31:45the rest of this slide deck is lots and
  791. 31:47lots of different applications
  792. 31:49um
  793. 31:51which just yeah like I said they don't
  794. 31:53fit the mold of
  795. 31:55regular old preference modeling with a
  796. 31:57latent factor model because we have
  797. 31:59budgets or social dynamics and all kinds
  798. 32:01of stuff like that. There's a
  799. 32:04a
  800. 32:06there's lots of things. There's a very
  801. 32:07long section on online advertising
  802. 32:09because it's really its own
  803. 32:11extremely unique beast.
  804. 32:14Uh I don't know if I'll spend a whole
  805. 32:15lecture going through online advertising
  806. 32:17this quarter or not.
  807. 32:19Um
  808. 32:20I did once once have a vote and online
  809. 32:22advertising was by far the most popular
  810. 32:25thing
  811. 32:26but what can I say I find it a bit
  812. 32:28boring.
  813. 32:29Um I think also advertising
  814. 32:33even though it seems very much like a
  815. 32:34recommender system it's turns out to be
  816. 32:37methodologically quite different because
  817. 32:39it has all these
  818. 32:40ideas that come from
  819. 32:42auctions and stuff like that.
  820. 32:45Um,
  821. 32:47it's in the slides. We'll see if we get
  822. 32:48to it or not.
  823. 32:50So the next UK studies are mostly about
  824. 32:53social dynamics.
  825. 32:55Um,
  826. 32:57I'll talk about a few of those.
  827. 32:59So yeah, so far we've looked at this
  828. 33:02basic question of
  829. 33:05what is a user more likely to interact
  830. 33:07with?
  831. 33:08We've been trying to learn these
  832. 33:09functions that look like
  833. 33:10f of UI, uh, maybe f of UI with a
  834. 33:15timestamp,
  835. 33:16whatever. Uh, so
  836. 33:19when is this basic model of
  837. 33:20recommendation maybe, um, not
  838. 33:23appropriate?
  839. 33:25Um,
  840. 33:26the most obvious one which comes up a
  841. 33:28lot is when
  842. 33:31the items are users.
  843. 33:36So this is when you're thinking about
  844. 33:37problems that are related to,
  845. 33:40I don't know, recommendation on a social
  846. 33:42network.
  847. 33:43So
  848. 33:45you know, online dating, something like
  849. 33:47that,
  850. 33:50or people you may know, is that what
  851. 33:52it's still called on on Facebook?
  852. 33:55Um,
  853. 33:57you need to develop different
  854. 33:58recommender systems for things like
  855. 33:59that. Online dating is a really good
  856. 34:00example because online dating is not
  857. 34:02really social.
  858. 34:04Um, you're recommending people to
  859. 34:05people, but there's no social graph,
  860. 34:08right?
  861. 34:09Um, you don't have
  862. 34:10friends on an online dating platform, I
  863. 34:13don't think, right?
  864. 34:15Maybe it's changed how they worked since
  865. 34:16my days.
  866. 34:18Um,
  867. 34:19on Facebook the social graph is the main
  868. 34:22feature, right? Who are you going to
  869. 34:23become friends with on Facebook?
  870. 34:25Um,
  871. 34:27people who close a lot of triangles
  872. 34:28basically, people who have lots of
  873. 34:30mutual friends with you.
  874. 34:32So that's a person that kind of closes a
  875. 34:33triangle in a social graph.
  876. 34:36Um,
  877. 34:36fine.
  878. 34:38Still kind of a recommender system's
  879. 34:39problem, but it is much more to do with
  880. 34:41the graph topology of the social
  881. 34:43network,
  882. 34:44and less to do with things like latent
  883. 34:47factor representations. Online dating on
  884. 34:49the other hand,
  885. 34:51yeah, these latent representations are
  886. 34:52much more useful because there is no
  887. 34:54social graph.
  888. 34:57Um,
  889. 35:00what else? So,
  890. 35:02problems dealing with budgets.
  891. 35:05So, advertising is the obvious one.
  892. 35:08Um, or just general constraints.
  893. 35:13There's another case study, I don't know
  894. 35:15if we'll go through it, but about
  895. 35:17things like trip planning, where
  896. 35:20okay, I want to travel to a bunch of
  897. 35:21places. I need to
  898. 35:24travel for a certain number of days.
  899. 35:27Um, I want to spend not more than a
  900. 35:29certain amount of money.
  901. 35:31Whatever. You have all these constraints
  902. 35:33you're trying to optimize for. A latent
  903. 35:35factor model is still kind of
  904. 35:36appropriate because there's this latent
  905. 35:37preference aspect, but yeah, there's all
  906. 35:39these additional constraints you need to
  907. 35:41capture.
  908. 35:43Um, and yeah, things like advertising
  909. 35:48are such an example. I mean, what makes
  910. 35:49advertising difficult is that
  911. 35:53there's user preference toward the item,
  912. 35:55you know, how much do you like the item,
  913. 35:56but there's also the item's preference
  914. 35:58toward you. Somehow the advertiser has a
  915. 36:01sense of which users they want their ad
  916. 36:04to be shown to,
  917. 36:06who they consider to be worth bidding on
  918. 36:09or spending the money. And yeah, then
  919. 36:10there's bids, which are their whole own
  920. 36:12thing.
  921. 36:13Um, and there's budgets. You you can't
  922. 36:18show the ad more than the advertiser is
  923. 36:22able to pay for.
  924. 36:24At the same time, even if some
  925. 36:26advertisers are willing to pay a lot and
  926. 36:27show their ads all the time, you need to
  927. 36:30include
  928. 36:32um, low budget advertisers in your model
  929. 36:34somehow. You can't just say, oh, we're
  930. 36:35never ever going to show your ad because
  931. 36:37somebody else is paying us more money.
  932. 36:39You need some mechanism to make sure
  933. 36:42no advertiser gets shown too much, but
  934. 36:44every advertiser still sometimes gets
  935. 36:46shown.
  936. 36:47Um,
  937. 36:48so you know, like I said, I may or may
  938. 36:50not go through ad recommendation.
  939. 36:53What else? Social dynamics in general.
  940. 36:56We'll go through a few of those today at
  941. 36:58least, so things like group
  942. 36:59recommendation.
  943. 37:02Um,
  944. 37:03I don't know if group recommendation's a
  945. 37:04real problem. I'm not aware of any
  946. 37:06website that is actually deployed a
  947. 37:08group recommender, but the idea is like,
  948. 37:09okay, you want to watch a movie on
  949. 37:11Netflix with a group of 10 people,
  950. 37:13or you all want to go to a restaurant
  951. 37:14together.
  952. 37:15Um,
  953. 37:17what should you do?
  954. 37:19Uh, how should you make a recommendation
  955. 37:20for a group?
  956. 37:22So yeah, let's just let's just go
  957. 37:23through a few. Uh, we'll see how we go
  958. 37:25for time, and then I'll
  959. 37:27I'll talk about assignment too, maybe on
  960. 37:29the hour.
  961. 37:30Um,
  962. 37:32so yeah, group recommendation says,
  963. 37:34look, we're make building a recommender
  964. 37:36system
  965. 37:38um
  966. 37:39to maximize
  967. 37:42item group compatibility. So a set of
  968. 37:45people watching a movie or a set of
  969. 37:46people visiting a restaurant,
  970. 37:48something along those lines.
  971. 37:51So instead of
  972. 37:52fitting a function that says how
  973. 37:54compatible is the user with the item,
  974. 37:56we're going to fit a function
  975. 37:58that says how compatible is a group of
  976. 37:59users with the item, which
  977. 38:02probably in some way or another will
  978. 38:04decompose
  979. 38:06into uh an aggregation of these
  980. 38:09individual user terms.
  981. 38:11This is just a a fun paper that studies
  982. 38:13like what is the correct group
  983. 38:16aggregation function to use?
  984. 38:18You know, should you use something like
  985. 38:19average compatibility
  986. 38:21where you just say my
  987. 38:24my group compatibility function
  988. 38:26is just equal to the average of the
  989. 38:29individual
  990. 38:31user compatibility function, so sum of
  991. 38:33all users in the group,
  992. 38:36and take the user item compatibility.
  993. 38:38Um,
  994. 38:39that's a
  995. 38:41by way of being a
  996. 38:43a dumb baseline, essentially.
  997. 38:46Um,
  998. 38:47why might this be a problem? You know,
  999. 38:49you're recommending restaurants to
  1000. 38:51people.
  1001. 38:52Um,
  1002. 38:53some of them are
  1003. 38:55vegetarian or gluten-free or something.
  1004. 38:58Um, they might have
  1005. 39:00a compatibility of of zero with certain
  1006. 39:03restaurants, right? They just can't go
  1007. 39:04to certain places.
  1008. 39:06They have a constraint, in other words.
  1009. 39:09Whereas if you optimize average
  1010. 39:10compatibility, you're just
  1011. 39:13ruling those people out from coming,
  1012. 39:15assuming that's something you don't want
  1013. 39:16to do. I mean, maybe same with the movie
  1014. 39:18recommendation. Is it Is it right for
  1015. 39:20everyone to be happy on average?
  1016. 39:23Um,
  1017. 39:24even if that possibly means
  1018. 39:26some people will be completely enraged
  1019. 39:29by your movie choice.
  1020. 39:32So an alternative to this that they
  1021. 39:33propose is to say, oh, let's optimize
  1022. 39:35least misery rather than average
  1023. 39:37compatibility.
  1024. 39:40Cool, fine.
  1025. 39:41Uh, so
  1026. 39:43the group compatibility is then equal to
  1027. 39:47the
  1028. 39:48compatibility of the user in the group
  1029. 39:51who
  1030. 39:52likes the thing the least.
  1031. 39:54Nobody should dislike it too much.
  1032. 39:57You know, the experience of
  1033. 39:58going to a movie or
  1034. 40:02going to a restaurant is a social
  1035. 40:03experience after all.
  1036. 40:05Uh, maybe
  1037. 40:08um, your own compatibility of the item
  1038. 40:10is is overruled by
  1039. 40:12making sure that nobody is too unhappy.
  1040. 40:16Uh,
  1041. 40:17this certainly is how it seems when
  1042. 40:18finding a restaurant to go to with a
  1043. 40:20bunch of children or something.
  1044. 40:23Uh, okay.
  1045. 40:25What else? I mean, the the
  1046. 40:27other thing they suggest, which is kind
  1047. 40:28of more wacky,
  1048. 40:30is about group consensus.
  1049. 40:32So that there shouldn't be too much
  1050. 40:35pairwise disagreement. So
  1051. 40:39maybe you want these two things
  1052. 40:40simultaneously. You want nobody to be
  1053. 40:42too unhappy,
  1054. 40:43but you also want
  1055. 40:46on average
  1056. 40:47any two people should agree with each
  1057. 40:50other.
  1058. 40:51This is saying for all pairs of users
  1059. 40:55um where the two users are different
  1060. 40:57the average difference
  1061. 41:00should be small.
  1062. 41:02Or the variance among differences among
  1063. 41:04compatibility should not be too large.
  1064. 41:07Um
  1065. 41:11Yes, or someone says in chat that seems
  1066. 41:13like it would be very useful. Maybe I I
  1067. 41:14guess I've just never seen anything like
  1068. 41:16this deployed. This is I mean it's a
  1069. 41:17purely academic study that I don't think
  1070. 41:19has any
  1071. 41:21real website behind it, but cool.
  1072. 41:25Um
  1073. 41:27Yeah, so they say yes the in practice
  1074. 41:29the the thing you want that they
  1075. 41:31empirically find is is best at
  1076. 41:33optimizing group satisfaction is to
  1077. 41:36maximize
  1078. 41:38um
  1079. 41:40relevance, but
  1080. 41:43there should be some combination of high
  1081. 41:46relevance and also low disagreement.
  1082. 41:49Okay.
  1083. 41:51Fine, kind of cool. Uh
  1084. 41:54I don't think it was ever actually
  1085. 41:55practically deployed.
  1086. 41:57Um
  1087. 41:58a few slides about online dating.
  1088. 42:01Um
  1089. 42:03I think there's only okay there's only
  1090. 42:05one paper that goes into detail here
  1091. 42:07which is about bartering.
  1092. 42:09Yes, what about recommended systems
  1093. 42:10where we have
  1094. 42:12pairs of users interacting with each
  1095. 42:13other rather than users interacting with
  1096. 42:16items. So for something like online
  1097. 42:18dating
  1098. 42:19typically you want to optimize goals
  1099. 42:22that are related to things like pairwise
  1100. 42:24compatibility
  1101. 42:26um sorry
  1102. 42:27reciprocal compatibility.
  1103. 42:29So
  1104. 42:31this particular one is saying
  1105. 42:33I should optimize the harmonic mean of
  1106. 42:35the compatibility between users
  1107. 42:39use compatibility toward V and V's
  1108. 42:41compatibility toward U.
  1109. 42:43So these are asymmetric compatibility
  1110. 42:45functions, you know you might like me
  1111. 42:47but I might not like you.
  1112. 42:49Um
  1113. 42:50what a
  1114. 42:51harmonic mean
  1115. 42:53is it strongly penalizes any of these
  1116. 42:56from being too close to zero. So a
  1117. 42:58regular average or arithmetic mean says
  1118. 43:03um
  1119. 43:05yeah, you know, take the average of two
  1120. 43:07things. If one person really likes the
  1121. 43:08other, that can potentially cancel out
  1122. 43:12them not being liked in return.
  1123. 43:14Harmonic mean says if either of them
  1124. 43:16doesn't like the other, the the harmonic
  1125. 43:18mean is going to be very small. So they
  1126. 43:20have to be both high simultaneously.
  1127. 43:23Cool.
  1128. 43:25Um,
  1129. 43:26this is a very similar one about
  1130. 43:27bartering, so people swapping things.
  1131. 43:30Um, this one is about
  1132. 43:33beers like like way back in week one.
  1133. 43:37So on these beer recommendation
  1134. 43:39platforms,
  1135. 43:41people can also swap beers.
  1136. 43:44Um,
  1137. 43:46a lot of fun stuff going on there. So
  1138. 43:48people are trying to
  1139. 43:51I guess they're trying to catch all the
  1140. 43:52Pokémon, right? They want to review
  1141. 43:54every single extremely exotic beer. I
  1142. 43:56mean the top users have
  1143. 43:58reviewed tens of thousands of different
  1144. 44:00beers, right?
  1145. 44:02Uh, the only way this can possibly work
  1146. 44:04is if they start trading beers with each
  1147. 44:06other
  1148. 44:07um
  1149. 44:09in order to get
  1150. 44:10rare and and
  1151. 44:12obscure ones.
  1152. 44:14So
  1153. 44:15this is kind of an interesting social
  1154. 44:16dynamic because everyone has a
  1155. 44:18preference for different items,
  1156. 44:20different beers they want.
  1157. 44:22Um,
  1158. 44:24so they need to find
  1159. 44:27two a pair of users
  1160. 44:29needs to find
  1161. 44:32each other
  1162. 44:34such that they have a pair of items that
  1163. 44:36they both
  1164. 44:37reciprocally want to swap.
  1165. 44:40You know?
  1166. 44:41So
  1167. 44:44user V has an item I that that you wants
  1168. 44:49and
  1169. 44:51user U has an item that wants.
  1170. 44:55Uh,
  1171. 44:57so this has something to do with
  1172. 44:59user to item compatibility and something
  1173. 45:01to do with potentially user to user
  1174. 45:02compatibility. Are these two people who
  1175. 45:04just like each other or want to trade a
  1176. 45:06bunch?
  1177. 45:09probably nothing to do with item to item
  1178. 45:10compatibility. But yes, there's multiple
  1179. 45:11things going on here at once. So they
  1180. 45:13say there's this complex compatibility
  1181. 45:15function
  1182. 45:16between
  1183. 45:17the pair of users and the pair of items
  1184. 45:22which can be kind of decomposed
  1185. 45:25uh
  1186. 45:27as
  1187. 45:33some function to do with item one
  1188. 45:36and another function to do with
  1189. 45:38item two
  1190. 45:40which goes in the opposite direction. So
  1191. 45:42the item that
  1192. 45:44um
  1193. 45:46you wants and the item that V wants
  1194. 45:52and this compatibility function
  1195. 45:55looks this is so this is user
  1196. 45:58compatibility with item I and user V.
  1197. 46:03So that's going to be given by
  1198. 46:05um how much does you want
  1199. 46:08the item I? So that's a regular old
  1200. 46:10compatibility function
  1201. 46:12um something like gamma U dot gamma I.
  1202. 46:15And they also have this social
  1203. 46:16compatibility term
  1204. 46:19um
  1205. 46:20between user U and user V. I forget how
  1206. 46:23that was defined, but something like U
  1207. 46:26gamma U dot gamma V or something
  1208. 46:28um which basically says sometimes two
  1209. 46:30people just like to trade with each
  1210. 46:31other
  1211. 46:33in a way that can potentially overrule
  1212. 46:35their actual preference for items,
  1213. 46:37right? They just
  1214. 46:39have high social compatibility. They
  1215. 46:41like trading
  1216. 46:43um so it doesn't necessarily matter that
  1217. 46:46one of them has an item that the other
  1218. 46:47one doesn't really want. They'll just be
  1219. 46:49nice and trade with each other.
  1220. 46:52Okay, yeah, not too much to say about
  1221. 46:54those ones. Uh, just saying yes, we can
  1222. 46:56these recommender systems to include
  1223. 47:00relationships among users as well as
  1224. 47:02relationships among items.
  1225. 47:06All right, a bit more on socially aware
  1226. 47:07recommendation since I still have
  1227. 47:11I think a decent amount of time to
  1228. 47:13go through this one.
  1229. 47:15Uh
  1230. 47:18cool.
  1231. 47:19Um
  1232. 47:22so yes, this is looking at recommender
  1233. 47:24systems in the context where you have
  1234. 47:26users and items and users have
  1235. 47:29preferences toward items,
  1236. 47:31but you also have a social graph.
  1237. 47:35Um there are various websites that look
  1238. 47:37kind of like this.
  1239. 47:38Um
  1240. 47:40maybe
  1241. 47:42I don't know. Where's a website where
  1242. 47:43you consume items but also have friends?
  1243. 47:45I mean this happens to some extent on
  1244. 47:46Facebook or any any social media website
  1245. 47:49where you also click on ads or
  1246. 47:52or videos or anything like that where
  1247. 47:53there's a social graph,
  1248. 47:55um but there's also
  1249. 47:58users and items and user to item
  1250. 48:01interactions.
  1251. 48:03So
  1252. 48:04yeah, the basic idea here is if you have
  1253. 48:07this additional source of information,
  1254. 48:09which is the social graph,
  1255. 48:11um
  1256. 48:12that social graph should tell you
  1257. 48:14something
  1258. 48:15about
  1259. 48:17what user item interactions are likely.
  1260. 48:19So yeah, think about
  1261. 48:21I don't know. Is is TikTok a social
  1262. 48:23platform? Is there a social graph on
  1263. 48:25TikTok? But think about some website
  1264. 48:26where you have social links between
  1265. 48:28users,
  1266. 48:30um
  1267. 48:31even YouTube or something where users
  1268. 48:33can interact with each other, they can
  1269. 48:34also interact with items.
  1270. 48:37Um
  1271. 48:38so again, maybe your item
  1272. 48:40representations are really are really
  1273. 48:41sparse. We go of cold start problems,
  1274. 48:44things like that,
  1275. 48:45but
  1276. 48:46somehow the social graph should give us
  1277. 48:49well, you know, the user information
  1278. 48:51could be sparse too. Maybe you have new
  1279. 48:52users who haven't interacted with much,
  1280. 48:54but maybe the social graph will tell us
  1281. 48:56something additional.
  1282. 48:57It's an additional piece of information.
  1283. 49:00Um,
  1284. 49:01so
  1285. 49:03might as well use it, right?
  1286. 49:05What could the social graph possibly
  1287. 49:07tell us?
  1288. 49:09Um,
  1289. 49:10one, you know, maybe our friends are
  1290. 49:11just similar to us. If
  1291. 49:14I know who your friends are in a social
  1292. 49:16graph, I could say my
  1293. 49:20user representation for gamma U is
  1294. 49:22likely to be similar to the user
  1295. 49:24representations of people connected to
  1296. 49:26me.
  1297. 49:27Same as we did with semantic tags for
  1298. 49:29item representations a few papers ago,
  1299. 49:31right?
  1300. 49:33Um, just say, oh yes, a user's
  1301. 49:34preference model should somehow be
  1302. 49:36similar to that of
  1303. 49:39um
  1304. 49:41people they're connected to.
  1305. 49:43Alternately, um
  1306. 49:46you know,
  1307. 49:47seeing that your friends watch a movie
  1308. 49:49is just a likely predictor of that being
  1309. 49:50the next movie you're going to watch.
  1310. 49:54Okay, so yeah, now our data set kind of
  1311. 49:56looks like this. We have
  1312. 49:58at least
  1313. 50:00two sources of information that that go
  1314. 50:02together.
  1315. 50:04Uh, we have this sparse
  1316. 50:06rating or interaction matrix
  1317. 50:09of users cross items.
  1318. 50:13And we also have this social graph,
  1319. 50:15which is like users cross users, right?
  1320. 50:19How can we use this to make our models
  1321. 50:21more accurate? Assuming our goal is to
  1322. 50:23recommend items, right?
  1323. 50:25Two ways to do that.
  1324. 50:27Um,
  1325. 50:30one is to say
  1326. 50:33yeah, let's treat it like a regularizer.
  1327. 50:35This is the one that's very similar to
  1328. 50:36what I was talking about with semantic
  1329. 50:37tags,
  1330. 50:39um which just says
  1331. 50:41yeah, on average, your latent
  1332. 50:42representation should be similar to
  1333. 50:45latent representations of your friends.
  1334. 50:47If I don't know much about you yet, I
  1335. 50:49can just borrow your friends'
  1336. 50:50representations and kind of average
  1337. 50:52them.
  1338. 50:53So again, everything's like a it's like
  1339. 50:55a spring. I have this one spring which
  1340. 50:57is saying
  1341. 50:59user representations should be similar
  1342. 51:01to item representations and it's kind of
  1343. 51:03pulling those things close. I have
  1344. 51:04another spring that says user
  1345. 51:06representations should be similar to
  1346. 51:08friends representations and it's pulling
  1347. 51:10them close. And depending on which type
  1348. 51:12of data I have more of,
  1349. 51:14I'm going to rely more on that type of
  1350. 51:16data. That's what a regularizer does.
  1351. 51:18It's just a more complex regularizer
  1352. 51:21rather than saying, oh, if I don't know
  1353. 51:23much about a user,
  1354. 51:24just
  1355. 51:27just squash the user parameters towards
  1356. 51:29zero, right? That's a very dumb
  1357. 51:32regularizer. It's an extremely blunt
  1358. 51:34instrument just saying, oh yes, zero
  1359. 51:35everything out.
  1360. 51:37The alternative is to say
  1361. 51:40if I don't know much about a user from
  1362. 51:42their item data, I can still potentially
  1363. 51:44learn something from their social data
  1364. 51:46or or vice versa.
  1365. 51:51Um
  1366. 51:53yes, so that's that's one option and
  1367. 51:55that'll maybe look familiar
  1368. 51:57based on our discussion earlier today
  1369. 51:58about semantic tags.
  1370. 52:00The other is, this is kind of more
  1371. 52:02subtle, where
  1372. 52:04I mentioned this a few weeks ago in
  1373. 52:05response to someone's question,
  1374. 52:07uh which is to say maybe
  1375. 52:10our friends' interactions are kind of
  1376. 52:12like a
  1377. 52:13a a loose
  1378. 52:15signal of preferences.
  1379. 52:18Um
  1380. 52:20when we're talking about interaction
  1381. 52:21data, there's the things you like or the
  1382. 52:24things you explicitly choose to click
  1383. 52:26on, the movies you watch to the end.
  1384. 52:29There's things you don't click on which
  1385. 52:30are not quite negatives, they're just
  1386. 52:32not positives.
  1387. 52:33And then there's something in between.
  1388. 52:35There's the stuff your friends do. Is
  1389. 52:36that positive? Is it negative?
  1390. 52:40Is it somewhere in between? Is it more
  1391. 52:42positive than a positive interaction? Is
  1392. 52:44it more negative than a negative
  1393. 52:45interaction? Where does it live?
  1394. 52:48But somehow it's an additional signal
  1395. 52:49that
  1396. 52:51tells us about preferences.
  1397. 52:53So yeah, here's how those two ideas are
  1398. 52:55implemented.
  1399. 52:56Um
  1400. 52:59with the regularizer,
  1401. 53:01um we're just saying,
  1402. 53:03okay, my parameter gamma
  1403. 53:06could do two things at once.
  1404. 53:10Uh, it should be
  1405. 53:11able to predict interactions with items
  1406. 53:13and it should also be able to predict
  1407. 53:15interactions with users. It's like I
  1408. 53:17say, it's that spring that's getting
  1409. 53:19pulled in both directions.
  1410. 53:21Um,
  1411. 53:24so
  1412. 53:26you know, you have all of your items you
  1413. 53:27interact with.
  1414. 53:29You have
  1415. 53:30gamma I for every item
  1416. 53:32and then for every user who's
  1417. 53:33interacting with that item
  1418. 53:36you have their gamma U,
  1419. 53:38but you also have
  1420. 53:40the friends they've interacted with,
  1421. 53:42yeah?
  1422. 53:44Um,
  1423. 53:45and the way this is actually implemented
  1424. 53:47in the
  1425. 53:48um
  1426. 53:49in the in the paper is is very
  1427. 53:51straightforward. We just break the model
  1428. 53:53up into two predictors. I won't bother
  1429. 53:55writing it out.
  1430. 53:56Um,
  1431. 53:58so
  1432. 54:00yeah, there's two parts to the model.
  1433. 54:03There's one which says
  1434. 54:07okay, the
  1435. 54:10user and item latent vectors
  1436. 54:13should be capable of predicting ratings
  1437. 54:15accurately. This is our regular old
  1438. 54:17error term.
  1439. 54:19Errors made by the model should be
  1440. 54:20small.
  1441. 54:22Um,
  1442. 54:24and then this term is the social term
  1443. 54:27which says
  1444. 54:29your representation should be similar to
  1445. 54:32other users because you know, if you
  1446. 54:34didn't like the same movies as someone
  1447. 54:35else, you couldn't possibly be friends
  1448. 54:37with them, right?
  1449. 54:38That's kind of the assumption this model
  1450. 54:40is making.
  1451. 54:41Um,
  1452. 54:43so yeah, the
  1453. 54:46your user representation should be
  1454. 54:47similar to your friends' representation.
  1455. 54:49Again, there's some weird weirdness here
  1456. 54:51where they actually learn a separate
  1457. 54:53latent vector for this part.
  1458. 54:55So there's
  1459. 54:57there's a latent vector that's shared
  1460. 54:59for the user. There's also a latent
  1461. 55:01vector that's not shared which allows
  1462. 55:03for the possibility that there are some
  1463. 55:04elements of social trust which are
  1464. 55:06different from
  1465. 55:09the elements that are used to predict
  1466. 55:10ratings.
  1467. 55:12But yeah, there's two terms to the
  1468. 55:13model.
  1469. 55:14One which predicts the sparse
  1470. 55:18rating graph. You're saying I assume
  1471. 55:20this thing is approximately low rank
  1472. 55:22and I fit it using a term gamma
  1473. 55:27and
  1474. 55:28another term which predicts the social
  1475. 55:30graph. So I'm just predicting two things
  1476. 55:31simultaneously.
  1477. 55:33In practice, I really probably only care
  1478. 55:35about predicting one thing. I only care
  1479. 55:37about predicting the rating graph. My
  1480. 55:38real application here is to predict the
  1481. 55:41rating graph. It is not to predict
  1482. 55:44the social graph.
  1483. 55:46But
  1484. 55:48the way I write down the problem is as
  1485. 55:50if I'm predicting two things.
  1486. 55:53How well can I predict the rating graph?
  1487. 55:55How well can I predict the social graph?
  1488. 55:57And another regularizer.
  1489. 55:59Um
  1490. 56:00why do I do that if I don't really care
  1491. 56:02about predicting the social graph?
  1492. 56:04Again, it's just a a better
  1493. 56:08subtler form of regularization. Um
  1494. 56:12I'm going to tune this second
  1495. 56:14regularization parameter
  1496. 56:17so that
  1497. 56:18my rating prediction error is as low as
  1498. 56:20possible. I still want to just minimize
  1499. 56:22my prediction of ratings, right? That's
  1500. 56:24all I care about.
  1501. 56:26Um but the best way to do that might be
  1502. 56:29a model that has this social graph based
  1503. 56:31regularizer.
  1504. 56:33Um and yeah, I've got
  1505. 56:36two regularization parameters to tune,
  1506. 56:38but no big deal.
  1507. 56:40Fine. That's an idea. So yes, I have
  1508. 56:43this this shared term. I've got to
  1509. 56:44predict both things simultaneously. I I
  1510. 56:48tune some weight which says how much do
  1511. 56:50I care about predicting ratings versus
  1512. 56:52how much do I care about predicting the
  1513. 56:54graph?
  1514. 56:55And then I use my validation set to pick
  1515. 56:57the best model at rating prediction.
  1516. 57:00Everything's lovely.
  1517. 57:02So yes, the the other option is to say
  1518. 57:04let's use those social links as
  1519. 57:07a way to generate positive or negative
  1520. 57:09samples.
  1521. 57:11So if you remember, a of weeks back,
  1522. 57:12when we're developing Bayesian
  1523. 57:14personalized ranking,
  1524. 57:16um
  1525. 57:18we said we should build data sets that
  1526. 57:21consist of user
  1527. 57:25positive item and negative item
  1528. 57:28triples.
  1529. 57:29The negative item's not really a
  1530. 57:31negative item. It's just an item you
  1531. 57:32haven't interacted with. And then we
  1532. 57:34should train
  1533. 57:36kind of classifiers
  1534. 57:38that are capable of guessing which of
  1535. 57:40the two items
  1536. 57:42is the positive one.
  1537. 57:44So they're really deciding of these two
  1538. 57:47things which is the user more likely to
  1539. 57:49interact with. They're classifiers that
  1540. 57:52are built
  1541. 57:54for the purpose of ranking.
  1542. 57:56They're capable of a ranking these two
  1543. 57:58items.
  1544. 58:01Um
  1545. 58:03so yeah, can we do the same thing with
  1546. 58:04our social graph? Uh can we use these
  1547. 58:07friends' interactions to generate
  1548. 58:09positive or negative samples? There are
  1549. 58:11lots of ways you could do this.
  1550. 58:13And this this paper which is
  1551. 58:17linked somewhere, I think.
  1552. 58:19Did I also forget to link the paper
  1553. 58:20here? Maybe I did.
  1554. 58:22I'm terrible.
  1555. 58:23I am better these days.
  1556. 58:26Um
  1557. 58:28but there's there's two ways you can do
  1558. 58:30this.
  1559. 58:31Uh well, I mean, think about what does
  1560. 58:34what does a friend having interacted
  1561. 58:35with something mean?
  1562. 58:38So if you haven't interacted with the
  1563. 58:39item and your friend has,
  1564. 58:41what does that tell us?
  1565. 58:44One option is that it's a weak
  1566. 58:46positive signal.
  1567. 58:48Right?
  1568. 58:49Um you don't like it as much as
  1569. 58:51something you have interacted with,
  1570. 58:53which is an explicit positive signal. I
  1571. 58:55know you like that thing or I know it
  1572. 58:57has a high interaction probability.
  1573. 58:59Um but a social signal is still stronger
  1574. 59:02than a
  1575. 59:03um
  1576. 59:05negative signal. It's a bit positive.
  1577. 59:07That's the argument here. So I can now
  1578. 59:09extract from my data set
  1579. 59:12two kinds of triples
  1580. 59:14from which I can make relative sort of
  1581. 59:16ranking statements. I can say
  1582. 59:20I can build triples that look like
  1583. 59:22what do they look like U I A
  1584. 59:28um
  1585. 59:29and U
  1586. 59:31A J
  1587. 59:33where
  1588. 59:35I believe that
  1589. 59:37positive interactions should rank higher
  1590. 59:39than social links
  1591. 59:40or social interactions, so things your
  1592. 59:42friends have interacted with
  1593. 59:44and things your friends have interacted
  1594. 59:46with should rank higher than
  1595. 59:49things you haven't interacted with.
  1596. 59:51Ideally, that should allow us to learn a
  1597. 59:53better, more accurate ranking function
  1598. 59:57that is more likely to put the good
  1599. 59:59stuff near the top, especially because
  1600. 1:00:02your positive interactions, the things
  1601. 1:00:04you have interacted with are extremely
  1602. 1:00:06sparse compared to all those negatives
  1603. 1:00:09about which we know almost nothing.
  1604. 1:00:11But social interactions
  1605. 1:00:14are orders of magnitude more common. I
  1606. 1:00:16can harvest
  1607. 1:00:1810 100x times as many items from your
  1608. 1:00:22social graph as I can from you directly.
  1609. 1:00:25That's the idea.
  1610. 1:00:27um
  1611. 1:00:30So the other way of thinking about this,
  1612. 1:00:32I mean this is just one option,
  1613. 1:00:34try it out, see if it works.
  1614. 1:00:36The other way to think about this is
  1615. 1:00:38that
  1616. 1:00:39if our friends have interacted with an
  1617. 1:00:41item
  1618. 1:00:42um
  1619. 1:00:44then you're actually less likely to
  1620. 1:00:46interact with it.
  1621. 1:00:48uh
  1622. 1:00:49Why might that be? Well
  1623. 1:00:52um
  1624. 1:00:56maybe the more of your friends you've
  1625. 1:00:58seen interact with it
  1626. 1:01:00the more confident you eventually become
  1627. 1:01:02that
  1628. 1:01:03the reason you're not interacting with
  1629. 1:01:04it is because you really don't like it.
  1630. 1:01:07Right? Like seeing that all of your
  1631. 1:01:08friends like Taylor Swift means
  1632. 1:01:11you must know about Taylor Swift, right?
  1633. 1:01:13You must have discovered her music by
  1634. 1:01:15now.
  1635. 1:01:16Maybe she's a bad example. She's too
  1636. 1:01:17popular. But, you know, all of your
  1637. 1:01:18friends know about the same indie band,
  1638. 1:01:21right?
  1639. 1:01:24Then the fact that you're not into it
  1640. 1:01:26and you've never interacted with it
  1641. 1:01:27means
  1642. 1:01:30that negative is a real negative, right?
  1643. 1:01:31You have made a conscious choice not to
  1644. 1:01:34interact with this rare item.
  1645. 1:01:37Cuz you must know about it.
  1646. 1:01:40So yes, repeated exposure without an
  1647. 1:01:42interaction is actually evidence of
  1648. 1:01:45negative sentiment.
  1649. 1:01:48So if that's the case, they they sort of
  1650. 1:01:50suggest using this weaker statement that
  1651. 1:01:53says positive links are greater than
  1652. 1:01:54social links.
  1653. 1:01:57And also that positive links, the
  1654. 1:01:59regular old ones are user just we have
  1655. 1:02:03u i k and we have u
  1656. 1:02:06i plus and i minus.
  1657. 1:02:15There isn't actually an expression here
  1658. 1:02:16that says
  1659. 1:02:19negative is greater than social or
  1660. 1:02:21anything. This is just kind of a weaker
  1661. 1:02:22assumption than the previous one which
  1662. 1:02:24says
  1663. 1:02:25we can't conclude
  1664. 1:02:27that
  1665. 1:02:29social is greater than negative.
  1666. 1:02:31We can only conclude that social is
  1667. 1:02:32positive is greater than social and
  1668. 1:02:34positive is greater than negative, yeah?
  1669. 1:02:37>> Do these models have any
  1670. 1:02:38update I mean regarding friends of
  1671. 1:02:41friends or random people on each other?
  1672. 1:02:45>> These models are any way of measuring
  1673. 1:02:47who your friends are? Not really, no.
  1674. 1:02:50There's
  1675. 1:02:52This is just a way of generating
  1676. 1:02:53conditional samples. There's no like
  1677. 1:02:55there's no way of measuring the the
  1678. 1:02:57strength of a friendship or something.
  1679. 1:03:03How do we even go about doing that? I
  1680. 1:03:05mean certainly a model like this one
  1681. 1:03:06like it is allowable for sometimes your
  1682. 1:03:09friends can just be really far away from
  1683. 1:03:10You can have friends whose whose latent
  1684. 1:03:12representation is very very very
  1685. 1:03:14different from yours.
  1686. 1:03:16It just shouldn't happen too often.
  1687. 1:03:18You should be or you could be the
  1688. 1:03:19outlier yourself. You could be the
  1689. 1:03:21person who's very far away from your
  1690. 1:03:22friends. It's just saying
  1691. 1:03:25that
  1692. 1:03:27if that does happen, I'm going to need a
  1693. 1:03:29lot more interaction data before I
  1694. 1:03:30really believe that you are so unique
  1695. 1:03:33and not like the rest of your friends.
  1696. 1:03:35And if I don't have much interaction
  1697. 1:03:36data, I'll rely more on your friends.
  1698. 1:03:39So,
  1699. 1:03:40you know, any anything is possible. It's
  1700. 1:03:42just describing what happens on average.
  1701. 1:03:45Um,
  1702. 1:03:47does your friends having very similar
  1703. 1:03:48preferences mean that they're your good
  1704. 1:03:50friends or not? I don't know. Uh,
  1705. 1:03:52sometimes if a person likes the same
  1706. 1:03:54things as you too much, it is
  1707. 1:03:57causes other problems, doesn't it?
  1708. 1:03:59Uh, you should have some homophily and
  1709. 1:04:00some heterophily, you know,
  1710. 1:04:02in a friendship. But yeah, I don't know.
  1711. 1:04:04I mean, there's a lot more interesting
  1712. 1:04:06studies about
  1713. 1:04:08social dynamics that are not the topic
  1714. 1:04:11of this this class. I mean, I tried to
  1715. 1:04:12find examples here
  1716. 1:04:14which are really just about recommender
  1717. 1:04:16systems.
  1718. 1:04:18Um,
  1719. 1:04:19whereas once you get into social
  1720. 1:04:21recommendation, like actual friend
  1721. 1:04:24recommendation and stuff,
  1722. 1:04:26there's a lot more going on about social
  1723. 1:04:29dynamics and groups and
  1724. 1:04:31do you form friendships with people
  1725. 1:04:35who have similar preferences to you or
  1726. 1:04:36do you form friendships with people who
  1727. 1:04:39close ties in a social graph?
  1728. 1:04:41Um,
  1729. 1:04:45that stuff's very interesting, but it's
  1730. 1:04:46it's yeah, it's more about social
  1731. 1:04:48network analysis and less about
  1732. 1:04:49recommender systems. For what it's
  1733. 1:04:51worth, I do have like
  1734. 1:04:53three lectures worth of content about
  1735. 1:04:55that which I eventually deleted from
  1736. 1:04:57this class because it was like, oh, it's
  1737. 1:04:58too
  1738. 1:05:00it's too different.
  1739. 1:05:01It's this whole
  1740. 1:05:03it's its own beast looking at
  1741. 1:05:05recommendation
  1742. 1:05:06when the social graph is the main entity
  1743. 1:05:09to be studied.
  1744. 1:05:11Um,
  1745. 1:05:12so this is its applications where all I
  1746. 1:05:14care about is predicting user item
  1747. 1:05:17interactions accurately.
  1748. 1:05:19Um, friend recommendation on on
  1749. 1:05:21Facebook, very different thing. I mean,
  1750. 1:05:23it uses features too, but
  1751. 1:05:25the the shape of the social graph is by
  1752. 1:05:28far the most important element.
  1753. 1:05:31Um,
  1754. 1:05:33still, if you if you look at a very very
  1755. 1:05:35old podcast page, it sure will be
  1756. 1:05:37online, you can
  1757. 1:05:38you can find me talking about
  1758. 1:05:40social network recommendation. Okay,
  1759. 1:05:42it's after 3:00 p.m.
  1760. 1:05:44I'm going to talk about the assignment.
  1761. 1:05:47Um,
  1762. 1:05:52I did download it, I think.
  1763. 1:06:00There's not too much to say. I just want
  1764. 1:06:02to make sure I did bring it up in the
  1765. 1:06:03lecture
  1766. 1:06:04at some point. The spec is online, it's
  1767. 1:06:06open-ended.
  1768. 1:06:08Um,
  1769. 1:06:11what do we have to do? We have
  1770. 1:06:14an open-ended assignment consisting of
  1771. 1:06:15five rubric items, pick a data set, come
  1772. 1:06:18up with a predictive task on the data
  1773. 1:06:20set, probably related to recommender
  1774. 1:06:22systems ideally,
  1775. 1:06:24use some models, discuss literature, and
  1776. 1:06:27analyze your results.
  1777. 1:06:29Um,
  1778. 1:06:31this is pretty rough. I mean, I think
  1779. 1:06:33you can you can grade it liberally, but
  1780. 1:06:36there is a rubric that says you should
  1781. 1:06:37do these five things. You can do them
  1782. 1:06:39out of order as long as they're all
  1783. 1:06:40covered and everything's very obvious.
  1784. 1:06:43Make a team of one to four, that's a
  1785. 1:06:45reasonably strict requirement.
  1786. 1:06:47Um,
  1787. 1:06:50is friend recommendation on Facebook the
  1788. 1:06:52same as what it had been when Zuckerberg
  1789. 1:06:54created it first? I don't know. Good
  1790. 1:06:57question. Um,
  1791. 1:06:59I'm sure it is still mostly based on the
  1792. 1:07:02topology of the social graph. I I'd be
  1793. 1:07:04very surprised if it wasn't,
  1794. 1:07:06just because that feature is so
  1795. 1:07:08important. What do I mean by the
  1796. 1:07:10topology of the social graph? I just
  1797. 1:07:11mean
  1798. 1:07:14if these two people are not friends with
  1799. 1:07:16each other,
  1800. 1:07:18then the likelihood that they'll become
  1801. 1:07:20friends with each other is sort of
  1802. 1:07:21proportional to the number of
  1803. 1:07:23that would become closed by making them
  1804. 1:07:25triangles, right? Does it close a lot of
  1805. 1:07:28triangles?
  1806. 1:07:30That's it. There are other things going
  1807. 1:07:31on, but that one is so powerful. Uh
  1808. 1:07:34I mean, what does that really mean? It's
  1809. 1:07:35it's very similar to like Jaccard
  1810. 1:07:37similarity or something probably. It's
  1811. 1:07:39like these two users have extremely high
  1812. 1:07:41overlap
  1813. 1:07:42in terms of
  1814. 1:07:44their own social groups.
  1815. 1:07:48Um features and latent representations
  1816. 1:07:50and stuff less important.
  1817. 1:07:54Um so make a team. I mean, I always
  1818. 1:07:56stress this assignment is is pretty
  1819. 1:07:57small really. It's called assignment
  1820. 1:07:59two, which makes it sound big and scary.
  1821. 1:08:00Assignment one is the big and scary one.
  1822. 1:08:02Assignment two is just
  1823. 1:08:04yes, do something of your own personal
  1824. 1:08:06choice based on what you've learned in
  1825. 1:08:08the course.
  1826. 1:08:10Um you can do it as a team of one. I
  1827. 1:08:12always hated group projects
  1828. 1:08:14when I was in school.
  1829. 1:08:16Uh so if I had the option to do things
  1830. 1:08:18by myself, I would.
  1831. 1:08:20Um
  1832. 1:08:22I promise I'm not that antisocial, but
  1833. 1:08:23it was just
  1834. 1:08:25I wanted to keep a high GPA, long story.
  1835. 1:08:27Uh nobody will know. So for the most
  1836. 1:08:30part,
  1837. 1:08:31these assignments to be to be submitted
  1838. 1:08:33anonymously unless you choose to include
  1839. 1:08:35your name or your names of your group
  1840. 1:08:37members on them.
  1841. 1:08:38Nobody will know the size of your group
  1842. 1:08:40when they're grading it.
  1843. 1:08:42Any restrictions on the type of data
  1844. 1:08:43sets? I mean, I would say the
  1845. 1:08:45restriction is you should be
  1846. 1:08:46implementing models that I taught,
  1847. 1:08:48right?
  1848. 1:08:49At least. You can implement other models
  1849. 1:08:50that I didn't teach, but you should at
  1850. 1:08:52least implement models that I taught. So
  1851. 1:08:54there should be data sets for which the
  1852. 1:08:56models I taught
  1853. 1:08:58can be used, which is I think that's
  1854. 1:09:00already like extremely open ended. You
  1855. 1:09:02know, there should be recommended
  1856. 1:09:03systems ish
  1857. 1:09:05or maybe things related to regression
  1858. 1:09:07and classification if you want to go
  1859. 1:09:08back that far in the class.
  1860. 1:09:10Probably stick to recommended systems
  1861. 1:09:11though.
  1862. 1:09:13Um
  1863. 1:09:14the data sets should probably not be
  1864. 1:09:16tiny as well. I I I there's no rule that
  1865. 1:09:19says what a tiny data set is. Again,
  1866. 1:09:20that means
  1867. 1:09:22you should be able to implement
  1868. 1:09:25the kinds of models I described, which
  1869. 1:09:27generally are data hungry, right?
  1870. 1:09:30Any resources for data sets? Absolutely.
  1871. 1:09:32Um,
  1872. 1:09:33there it is on the very next slide. So
  1873. 1:09:35this is my own labs data set web page.
  1874. 1:09:38This is just data sets from my own
  1875. 1:09:40papers. There's lots of recommended
  1876. 1:09:41systems data sets out there, but this is
  1877. 1:09:43like one of the
  1878. 1:09:45I guess it's the biggest repository of
  1879. 1:09:46specifically recommended systems data
  1880. 1:09:48sets, but there are lots of others.
  1881. 1:09:51Um,
  1882. 1:09:53SNAP is another
  1883. 1:09:56This one's moved actually.
  1884. 1:09:59These are This is another data set
  1885. 1:10:01repository that also contains
  1886. 1:10:04um
  1887. 1:10:05some recommended systems data sets.
  1888. 1:10:08Start here though.
  1889. 1:10:09Um,
  1890. 1:10:10a lot of other people
  1891. 1:10:13um
  1892. 1:10:15use data sets from things like
  1893. 1:10:18government agencies,
  1894. 1:10:20um
  1895. 1:10:22things like crime data sets and and
  1896. 1:10:24stuff like that, which are can be
  1897. 1:10:26reasonably interesting data sets because
  1898. 1:10:27the the features can be quite rich and
  1899. 1:10:29have a lot of
  1900. 1:10:30temporal dynamics. They have
  1901. 1:10:31geographical features.
  1902. 1:10:33Uh, so they're
  1903. 1:10:35pretty suitable for implementing
  1904. 1:10:36recommended systems like models.
  1905. 1:10:38Um, I have this word big here, but don't
  1906. 1:10:41don't
  1907. 1:10:42don't worry about the definition of the
  1908. 1:10:44word big. Somebody will post on Piazza
  1909. 1:10:46saying what is meant by big.
  1910. 1:10:48I just mean
  1911. 1:10:49make sure you can use the models from
  1912. 1:10:51class. That's it.
  1913. 1:10:54Which generally require
  1914. 1:10:56biggish data sets. So in the in this
  1915. 1:10:59slide deck, there's kind of this worked
  1916. 1:11:00example of studying
  1917. 1:11:03post popularity on Reddit or something.
  1918. 1:11:06Um,
  1919. 1:11:08what ranking should we aim for for 100%
  1920. 1:11:10on the ranking part of assignment one?
  1921. 1:11:13Um,
  1922. 1:11:18I'm going to say you should aim to be
  1923. 1:11:20literally the best person in the whole
  1924. 1:11:21class.
  1925. 1:11:23That's maybe a glib answer. I I I might
  1926. 1:11:25give full marks to everyone in the top.
  1927. 1:11:29How many marks is it out of? Is it out
  1928. 1:11:31of three? I usually divide it by half.
  1929. 1:11:34So I mean I make so I don't divide it by
  1930. 1:11:36I do I I rank people in half mark
  1931. 1:11:38buckets.
  1932. 1:11:40But then a lot of people got annoyed
  1933. 1:11:42that
  1934. 1:11:43this meant that there's a single ranking
  1935. 1:11:44you can change and it changes your grade
  1936. 1:11:46by a half mark. I I used to say get over
  1937. 1:11:49it, it's half a mark.
  1938. 1:11:50But eventually I did change the auto
  1939. 1:11:53grader so that it
  1940. 1:11:55will then linearly interpolate based on
  1941. 1:11:58how close you are. You know I might do
  1942. 1:11:59that again.
  1943. 1:12:01Um the downside of that is it means that
  1944. 1:12:04there are these tiny little grade
  1945. 1:12:05increments that are smaller than half a
  1946. 1:12:07mark. So there will probably be some
  1947. 1:12:09fraction of people I just give full
  1948. 1:12:10marks to.
  1949. 1:12:11Um then may or may not then be half mark
  1950. 1:12:14increments.
  1951. 1:12:15Um
  1952. 1:12:18so it is I I will
  1953. 1:12:21I don't have it I I realize I'm
  1954. 1:12:23waffling. I don't have a precise answer
  1955. 1:12:24for you. I think to to get within 0.5
  1956. 1:12:27marks of full marks
  1957. 1:12:30you should be within the top I think
  1958. 1:12:331/6 of the class because I think it's
  1959. 1:12:35out of three.
  1960. 1:12:36Or if it's out of four you should be in
  1961. 1:12:37the top 1/8.
  1962. 1:12:39Um
  1963. 1:12:41but I I I will try to grade it such that
  1964. 1:12:45it is possible to literally get full
  1965. 1:12:47marks for
  1966. 1:12:49some group of people before I start
  1967. 1:12:51interpolating things, whatever.
  1968. 1:12:54Um
  1969. 1:12:56and yeah remember that it's it's best
  1970. 1:12:58out of best [snorts] out of three tasks.
  1971. 1:13:00So best three out of six tasks.
  1972. 1:13:03So I think this year there should be
  1973. 1:13:04hopefully fewer complaints about people
  1974. 1:13:06being subject to randomness.
  1975. 1:13:08Um
  1976. 1:13:09would that be total members of the class
  1977. 1:13:11or only those who turn in the
  1978. 1:13:12assignment? Only those who turn in the
  1979. 1:13:14assignment.
  1980. 1:13:15Um
  1981. 1:13:18that should be basically everyone
  1982. 1:13:19though. It would be very unusual to skip
  1983. 1:13:20this assignment is big so people should
  1984. 1:13:23not people who are taking the class pass
  1985. 1:13:25fail sometimes skip one assignment.
  1986. 1:13:28Um
  1987. 1:13:30that's very few learn.
  1988. 1:13:33Um,
  1989. 1:13:34I think only a bit over half of people
  1990. 1:13:36have actually started the assignment, so
  1991. 1:13:38better get serious. I guess everyone's
  1992. 1:13:39done it through homework one,
  1993. 1:13:41homework three,
  1994. 1:13:42um, but not everyone's actually uploaded
  1995. 1:13:44anything.
  1996. 1:13:46Um, okay, anyway. So,
  1997. 1:13:49you know, what do you have to do
  1998. 1:13:50assignment two, exploratory analysis,
  1999. 1:13:52find some interesting phenomena in the
  2000. 1:13:54data. This is about
  2001. 1:13:55post popularity over time on Reddit,
  2002. 1:13:57which says there's certain times of day
  2003. 1:13:59when
  2004. 1:14:00certain kinds of posts are more likely
  2005. 1:14:02or less likely to be successful in
  2006. 1:14:04different communities.
  2007. 1:14:06This second plot is a weird one that
  2008. 1:14:08says it's this is actually a data set
  2009. 1:14:10about reposting on Reddit rather than
  2010. 1:14:11posting on Reddit. It kind of says that
  2011. 1:14:13if a
  2012. 1:14:15a post has been popular in a big
  2013. 1:14:16community, it's very unlikely to then be
  2014. 1:14:19popular in a small community, but you
  2015. 1:14:22can steal content from small communities
  2016. 1:14:23and repost it to big ones.
  2017. 1:14:26Um, basically the the purpose of the
  2018. 1:14:28exploratory analysis is to say, okay, if
  2019. 1:14:31I'm building a model of reposts,
  2020. 1:14:33it should probably have some temporal
  2021. 1:14:35component,
  2022. 1:14:37and it should probably have some
  2023. 1:14:38component to do with the interaction
  2024. 1:14:40between the two communities
  2025. 1:14:42that that post showed up in.
  2026. 1:14:45Um, so it's to motivate
  2027. 1:14:47what are the
  2028. 1:14:48modeling components that you you need to
  2029. 1:14:51solve your particular task.
  2030. 1:14:53So yeah, then what do you do? What's a
  2031. 1:14:55predictive task?
  2032. 1:14:56Most people's predictive tasks are very
  2033. 1:14:58standard stuff, estimator rating,
  2034. 1:15:00predict interaction,
  2035. 1:15:01estimate the
  2036. 1:15:03fare of a taxi cab trip.
  2037. 1:15:06Um, so it's like a regression or a
  2038. 1:15:07ranking task
  2039. 1:15:09or a classification task but with some
  2040. 1:15:12recommender systems user item
  2041. 1:15:14interaction component.
  2042. 1:15:16Um,
  2043. 1:15:17talk about what you had to do to the
  2044. 1:15:18data set. Some of these data sets are
  2045. 1:15:20just clean, perfect entities that are
  2046. 1:15:22given to you that you can make
  2047. 1:15:24predictions on right away. Sometimes
  2048. 1:15:26data sets are messy and you got to
  2049. 1:15:27process them. What did you do? So all
  2050. 1:15:30that analysis, all that processing, just
  2051. 1:15:32it.
  2052. 1:15:33Um,
  2053. 1:15:35build some models.
  2054. 1:15:37Uh,
  2055. 1:15:39I would say you should at least cover
  2056. 1:15:40models from class. If you want to go
  2057. 1:15:42crazy and try all kinds of different
  2058. 1:15:44models and
  2059. 1:15:45the ones in class aren't very good,
  2060. 1:15:47that's fine, but just make sure the ones
  2061. 1:15:49in class are also there as a baseline
  2062. 1:15:52so that you have at least covered course
  2063. 1:15:53content.
  2064. 1:15:55If you don't do anything but models from
  2065. 1:15:56class, that's also fine. It's just it's
  2066. 1:15:59a bit problematic when someone
  2067. 1:16:02says, oh yes, I have this regression
  2068. 1:16:03task from computer vision
  2069. 1:16:05where I'm
  2070. 1:16:07deciding what is the age of a person in
  2071. 1:16:09an image or something.
  2072. 1:16:11And it's like the models that are good
  2073. 1:16:12for that task have nothing to do with
  2074. 1:16:14this class.
  2075. 1:16:15They're probably reusing an assignment
  2076. 1:16:17from another class, whatever.
  2077. 1:16:19Make sure the models in this class are
  2078. 1:16:21appropriate. Make sure you're picking a
  2079. 1:16:22task for which the models are
  2080. 1:16:24appropriate.
  2081. 1:16:25Um,
  2082. 1:16:28talk about different models you're
  2083. 1:16:29comparing. Um, talk about how you do
  2084. 1:16:31feature representation and data
  2085. 1:16:33processing.
  2086. 1:16:34How you get the features into your
  2087. 1:16:35model. We did, you know, we spent a
  2088. 1:16:36whole week basically talking about
  2089. 1:16:38feature engineering, so that should be
  2090. 1:16:39included too.
  2091. 1:16:40Um, all this boring modeling stuff. How
  2092. 1:16:43did you scale things up?
  2093. 1:16:45What did you do about overfitting? How
  2094. 1:16:46does your regularizer work? Um, how did
  2095. 1:16:49you validate and tune your model
  2096. 1:16:51parameters, all that stuff? How did you
  2097. 1:16:53deal with missing data?
  2098. 1:16:55Um, literature. There's always related
  2099. 1:16:58literature. Some people say, oh my
  2100. 1:16:59problem's so unique, there's no
  2101. 1:17:01literature to talk about. There's always
  2102. 1:17:02something. Talk about
  2103. 1:17:04other papers that had a similar looking
  2104. 1:17:06task, other papers that used the same
  2105. 1:17:07data set.
  2106. 1:17:08Even if your data set has never been
  2107. 1:17:10used before,
  2108. 1:17:12there are probably other tasks that have
  2109. 1:17:13kind of the same input output spec,
  2110. 1:17:15right? Like you're trying to predict
  2111. 1:17:16interactions, it doesn't matter if
  2112. 1:17:18they're about
  2113. 1:17:20movies or groceries or whatever.
  2114. 1:17:23Find the most similar ideas to the
  2115. 1:17:25things you're describing and discuss the
  2116. 1:17:27literature.
  2117. 1:17:28Um, and yeah, talk about your results.
  2118. 1:17:30Talk about what worked, what didn't
  2119. 1:17:32work, how do you interpret model
  2120. 1:17:34parameters,
  2121. 1:17:35what features were
  2122. 1:17:38and you draw some conclusions.
  2123. 1:17:40The slides have more examples, but I
  2124. 1:17:42don't have to belabor them. So there's
  2125. 1:17:44another worked example here about
  2126. 1:17:47restaurant data. So this is a
  2127. 1:17:49a data set that my lab made from from
  2128. 1:17:52Google Maps where you have people
  2129. 1:17:54reviewing restaurants. You know what
  2130. 1:17:55Google Maps is.
  2131. 1:17:57Um
  2132. 1:17:58and saying can we extend recommender
  2133. 1:18:00systems that say
  2134. 1:18:03can we use geographical information? We
  2135. 1:18:04know the location of the items and maybe
  2136. 1:18:06the location of the users and other
  2137. 1:18:08things as well
  2138. 1:18:09to make the recommender system more
  2139. 1:18:11accurate. So can you make a latent
  2140. 1:18:13factor model more accurate
  2141. 1:18:16for Google Maps? You have geography,
  2142. 1:18:19you have text associated with the
  2143. 1:18:20restaurants, you know when they open and
  2144. 1:18:22close, all that kind of boring stuff.
  2145. 1:18:24Um you know whether they have takeout,
  2146. 1:18:26you know whether they have you know how
  2147. 1:18:28many dollar signs they have.
  2148. 1:18:31Can you use all that information to make
  2149. 1:18:33a latent factor model more accurate?
  2150. 1:18:35Uh several people always do literally
  2151. 1:18:38this assignment
  2152. 1:18:39and they come up with a different model.
  2153. 1:18:42Um
  2154. 1:18:43but that's like a nice pre-baked kind of
  2155. 1:18:45assignment to do.
  2156. 1:18:47Take one of these data sets that has
  2157. 1:18:48lots of additional features,
  2158. 1:18:50um build something that is more accurate
  2159. 1:18:53than a vanilla latent factor model.
  2160. 1:18:56Just like what I was describing in this
  2161. 1:18:57lecture, right? How can we use the
  2162. 1:18:58features we have in a particular data
  2163. 1:19:00set to make things more accurate?
  2164. 1:19:02Um
  2165. 1:19:04yeah, another worked example about
  2166. 1:19:05Reddit.
  2167. 1:19:07Uh
  2168. 1:19:09yes, the assignment is peer-graded. I
  2169. 1:19:11have been peer-grading it since 2022. I
  2170. 1:19:14I started peer-grading because there was
  2171. 1:19:15this TA TA strike.
  2172. 1:19:18Probably none of you were here back
  2173. 1:19:19then, or it might have been your very
  2174. 1:19:20first year, I don't know.
  2175. 1:19:22Um
  2176. 1:19:24so I had no TAs and we had to we had to
  2177. 1:19:26grade all these things. It turned out
  2178. 1:19:28that peer-grading is much better than
  2179. 1:19:30having
  2180. 1:19:31each TA grade 100 assignments by
  2181. 1:19:32themselves, right?
  2182. 1:19:34You get a lot more feedback from a a
  2183. 1:19:36more people.
  2184. 1:19:38Um
  2185. 1:19:39they were a lot less frustrated than a
  2186. 1:19:41TA
  2187. 1:19:42reading their 90th assignment.
  2188. 1:19:46Um,
  2189. 1:19:47it just works better. And
  2190. 1:19:49probably you're all nicer to each other
  2191. 1:19:51than the TAs were being to you anyway.
  2192. 1:19:54And the grades get delivered on time,
  2193. 1:19:55which is more more critical.
  2194. 1:19:57Um,
  2195. 1:19:59how do I do this? So there are they're
  2196. 1:20:00group assignments, and then you get a
  2197. 1:20:02bunch of
  2198. 1:20:03assignments to peer grade. I think it's
  2199. 1:20:05going to be four again. You get a mark
  2200. 1:20:07for each peer grade you do.
  2201. 1:20:10Um,
  2202. 1:20:13and then in practice that means you get
  2203. 1:20:16something like eight people grading each
  2204. 1:20:18assignment because they're group
  2205. 1:20:19assignments and then you whatever.
  2206. 1:20:21There's fewer assignments than there are
  2207. 1:20:23people basically.
  2208. 1:20:25And the grade I give you is going to be
  2209. 1:20:27the median of peer graders' grades. The
  2210. 1:20:30reason for using the median is so that
  2211. 1:20:32you won't complain about outlier grades
  2212. 1:20:35because the outliers mostly don't change
  2213. 1:20:38the median very much, right? So
  2214. 1:20:41if somebody
  2215. 1:20:42just hates you, um,
  2216. 1:20:44or hates your assignment, I should say,
  2217. 1:20:46it's probably not going to change the
  2218. 1:20:48median unless lots of people hate your
  2219. 1:20:49assignment. And if you do want to
  2220. 1:20:54dispute your grades, you need to very
  2221. 1:20:56carefully compute what the median will
  2222. 1:20:57be
  2223. 1:20:59with a single grader removed.
  2224. 1:21:01Um,
  2225. 1:21:02most people use some incorrect
  2226. 1:21:04computation of the median in order to do
  2227. 1:21:05that.
  2228. 1:21:06Uh, there's lots of examples of previous
  2229. 1:21:08assignments in here other than that. Um,
  2230. 1:21:10I did post on Piazza because somebody
  2231. 1:21:12asked whether there were previous
  2232. 1:21:13examples, and I shared the entire folder
  2233. 1:21:15from last year. I'm happy to share it
  2234. 1:21:17because like I said, they're all
  2235. 1:21:18anonymous. So you can see every single
  2236. 1:21:21assignment people submitted.
  2237. 1:21:22These are just some examples that I I
  2238. 1:21:24liked
  2239. 1:21:25or maybe they're ones that generated
  2240. 1:21:27interesting visualizations,
  2241. 1:21:29things like
  2242. 1:21:30taxi tips and bike durations. They they
  2243. 1:21:33these ones are really good because they
  2244. 1:21:35have so many different features. They
  2245. 1:21:36have users, they have geographical
  2246. 1:21:39information, they have temporal
  2247. 1:21:40information. Sometimes they have they
  2248. 1:21:42have text and
  2249. 1:21:44somehow you've got to model all of these
  2250. 1:21:45things together.
  2251. 1:21:47Um,
  2252. 1:21:48I'm about out of time. Any Any last
  2253. 1:21:50minute questions about the assignment?
  2254. 1:21:52At least for the moment, form a group.
  2255. 1:21:54Other than that, I guess good luck for
  2256. 1:21:56assignment one because it'll I think be
  2257. 1:21:58due before we next meet.
  2258. 1:22:01Um, okay. Have a good weekend.
  2259. 1:22:10>> Yeah.

About this transcript

This page contains the full transcript of Julian McAuley Live Stream by Julian McAuley, generated from the public captions YouTube serves with the video. The transcript has 11,546 words across 2,259 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.

Free YouTube transcript tool

YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.