Julian McAuley Live Stream — Transcript
Full transcript
- 1:41I
- 3:39>> Okay.
- 3:40Hello everyone.
- 3:46Um so
- 3:48I am going to continue today talking
- 3:50about a bunch of case studies for the
- 3:53most part. Um
- 3:55like I suggested last time, the point
- 3:58this part of the course is
- 4:01uh you should know about recommender
- 4:03systems that
- 4:05um maybe your your competence to kind of
- 4:08read a paper on the topic
- 4:10um especially as you start to think
- 4:11about your open-ended projects and stuff
- 4:13like that.
- 4:14Um
- 4:15I think
- 4:16a lot of the specific models I'm talking
- 4:19about I mean this one's for generating
- 4:21playlists with latent factor models cool
- 4:24uh they're not
- 4:26really things that you're ever going to
- 4:27implement as part of your life. The
- 4:30point of talking about all these case
- 4:31studies is to give you
- 4:34more of a
- 4:36a general sense of what the recommended
- 4:38systems design process kind of looks
- 4:41like right? You're
- 4:43you're given some task
- 4:45by your tyrant bosses some big tech
- 4:48company.
- 4:49They say they want to generate
- 4:50playlists.
- 4:52You know something about recommender
- 4:53systems get to it. Uh you can just take
- 4:57your latent factor model off the shelf
- 4:58to some extent but probably you have to
- 5:02design models around each specific
- 5:04application.
- 5:05I think that is a
- 5:07kind of
- 5:08truism about recommended systems is
- 5:11there is no
- 5:13um
- 5:14there's no god model right? There's no
- 5:16one size fits all approach.
- 5:18Uh the way I designed assignment one is
- 5:20certainly such that the standard models
- 5:22kind of work but
- 5:24most of the time when you actually
- 5:26go to develop recommender systems
- 5:28the standard models are not that good.
- 5:30You know your latent factor model
- 5:33it captures like static latent
- 5:35preferences pretty well but real
- 5:37applications have kind of all of their
- 5:39own weird things going on.
- 5:42Uh think about clothing recommendation,
- 5:44grocery recommendation, song
- 5:46recommendation, playlist generation
- 5:48um
- 5:49recommending live streams on Twitch,
- 5:51recommending video games on Steam or
- 5:54something like that you know they're all
- 5:55just
- 5:56wildly different from each other. Maybe
- 6:00groceries tend to have lots of repeat
- 6:02purchases, maybe
- 6:04interactions are
- 6:07largely periodic as well as being very
- 6:09sequential. So you need a model that's
- 6:11kind of sequential, but it's kind of
- 6:13temporal. Maybe on a live streaming
- 6:14platform
- 6:16items only exist for a moment in time,
- 6:18so you can't really learn item models.
- 6:21Um
- 6:22but then [snorts] again, maybe
- 6:23preferences aren't really items. Maybe
- 6:25you have preferences to streamers, so
- 6:27you should
- 6:28recommend
- 6:31model you should build recommenders that
- 6:33learn latent preference models toward
- 6:36people rather than content. Maybe it's
- 6:38some relationship between the streamer
- 6:40and the game they're playing.
- 6:42Even so, you still have to consider
- 6:44what's actually available right now.
- 6:47Um
- 6:50you know, every application is going to
- 6:51be a little bit different, so
- 6:54developing recommender systems in
- 6:56industry really means designing bespoke
- 7:00models for every different application.
- 7:02I mean, maybe the other thing you've
- 7:03learned about recommender systems by now
- 7:04is that
- 7:06you have to be really careful about the
- 7:08number of parameters blowing up.
- 7:10Uh
- 7:11these models have parameters for every
- 7:14item, they have parameters for every
- 7:15user. If we want to incorporate things
- 7:17like temporal dynamics, um
- 7:21well, we can't just fit a different
- 7:22model for every month, we maybe have to
- 7:26only add a few a few additional
- 7:28parameters to capture monthly variation,
- 7:29whatever.
- 7:31So all of these reasons add up
- 7:33to explain why
- 7:35yeah, large general purpose
- 7:37recommendation models don't really
- 7:40exist,
- 7:41right? There's no
- 7:43there's no equivalent of of GPT-6 or
- 7:45whatever they're up to these days
- 7:48where it's just like, oh, if you're
- 7:49dealing with text
- 7:51just use the most performance general
- 7:54purpose language model, and that'll
- 7:56probably be the right thing to do.
- 7:57There's kind of no equivalent for
- 7:59recommender systems.
- 8:01People have to build highly specific
- 8:03models around every specific
- 8:04application.
- 8:06Um
- 8:07I mean, maybe it's true that those are
- 8:09built by language models, but whatever.
- 8:10You still need different models per
- 8:12application. You need to have some sense
- 8:14of what's going on. You need to design
- 8:15models around that.
- 8:18Hopefully I've I've made my point by
- 8:19now. Uh the good news about that is it
- 8:21means
- 8:23people are still getting jobs in this
- 8:24space. The
- 8:26problem is never solved. There's
- 8:28always a
- 8:30a new application or website or whatever
- 8:32that needs new recommender systems built
- 8:34for it.
- 8:35So yeah, let's see what that kind of
- 8:36looks like. How do you take a standard
- 8:39model, your
- 8:41latent factor recommender or whatever it
- 8:43is?
- 8:44Um why might that not be appropriate for
- 8:46playlist generation? What can we do
- 8:50to adapt it to playlist generation? So
- 8:51I've got a couple of case studies in the
- 8:53temporal slides and then there's some
- 8:55more case studies
- 8:56uh in the
- 8:58content and structure slides, mostly
- 8:59dealing with like
- 9:01social dynamics and things like that.
- 9:03Uh
- 9:05let's try and get through those today or
- 9:06I'll see how many I can get through.
- 9:09Uh I'll also talk about assignment two.
- 9:11I don't think there's much interesting
- 9:12to say and then next week we'll
- 9:15uh
- 9:16get on with a new topic and talk about
- 9:18text.
- 9:19Cool. So we are trying to build a
- 9:22recommender system that recommends
- 9:23sequences of songs.
- 9:25Um
- 9:28this is a specific implementation from
- 9:30some paper.
- 9:31The the first idea is to say, oh yeah,
- 9:33maybe like we discussed on Tuesday,
- 9:36um
- 9:38for song recommendation
- 9:42you might not want to use
- 9:45um
- 9:51uh inner product based model. You might
- 9:53want to use
- 9:55models based on the
- 9:59um
- 10:01Is there a question there in chat? Maybe
- 10:03I can see the rest of the question yet.
- 10:06Uh maybe you want to use models based on
- 10:07metric spaces, either between a user and
- 10:09an item or between
- 10:12pairs of items in a sequence.
- 10:15Um,
- 10:17so yeah, the idea being that for
- 10:21something like song recommendation, if
- 10:23you like
- 10:25slightly jazzy jazz, you don't want to
- 10:26be recommended extremely jazzy jazz,
- 10:28just other slightly jazzy jazz. So songs
- 10:32that are next to each other in a
- 10:33sequence should be
- 10:35sort of semantically similar in terms of
- 10:37their latent representations rather than
- 10:40projecting along the the same direction
- 10:42which would lead gradually lead to some
- 10:44kind of extremification.
- 10:46So yeah, they have this basic model. Um,
- 10:50this is
- 10:52a sequential recommendation model. So
- 10:53this is a model that says how should the
- 10:55next item relate to the previous item.
- 10:58There's no user here yet.
- 11:00Um,
- 11:02again, kind of ignore the notation. This
- 11:04is just
- 11:06making things into a probability
- 11:08distribution.
- 11:10Um,
- 11:12but the real part of the model is this
- 11:13guy
- 11:15which basically says we have a distance
- 11:17function
- 11:19of the form
- 11:21gamma i which is the next item minus the
- 11:25representation of the previous item
- 11:27should be close to each other in terms
- 11:29of a squared L2 distance. Cool,
- 11:31whatever.
- 11:32Um,
- 11:35and yes, you just take the negative of
- 11:37that and throw it in an exponential. So
- 11:39you're saying
- 11:41songs that have a
- 11:43low distance in this latent space, which
- 11:46we will learn, are more likely
- 11:50to
- 11:51occur near each other in playlists.
- 11:54That's essentially the probabilistic
- 11:55model they're trying to learn. They want
- 11:57to say songs that are nearby
- 12:01are in terms of their squared Euclidean
- 12:02distance have high probability of
- 12:06um
- 12:08occurring next to each other in in
- 12:09playlists.
- 12:11Um,
- 12:12so we'd like learn this this
- 12:16this position in in this metric space
- 12:19um,
- 12:21such that their
- 12:24squared Euclidean distance is like
- 12:26similar to their playlist distance.
- 12:29Um,
- 12:30so yeah, not much going on. You know,
- 12:32they have you can think what these
- 12:33latent dimensions might represent.
- 12:36For music, they could say how much jazz
- 12:38does it have?
- 12:39Um, is it
- 12:41does it have rock elements? Uh, is it
- 12:44you know, is it indie or is it
- 12:47big pop artists? Latent dimensions could
- 12:49be whatever you like.
- 12:51Um,
- 12:52and yeah, we have
- 12:54position of the previous song, gamma i
- 12:56minus one. The hypothesis here is that
- 13:00the next song in the playlist will be
- 13:02somewhere near that.
- 13:05Okay?
- 13:06So the distance between gamma i and
- 13:11gamma i minus one should be small.
- 13:21Um,
- 13:24this this paper has another really nice
- 13:26idea which
- 13:28um, slight spoiler alert, doesn't
- 13:30actually work very well, but it's a
- 13:31really good idea.
- 13:33Um,
- 13:34which is you know, that's what academic
- 13:35papers are all about.
- 13:37Uh, they say
- 13:39maybe you would actually be better to
- 13:41learn two embeddings for each song.
- 13:44There's an embedding of where the song
- 13:46starts
- 13:48um, and there's another embedding of
- 13:50where the song ends.
- 13:53Um,
- 13:55which sort of and then the the next song
- 13:57in the playlist
- 13:58should be close to the end point, not
- 14:00the start point. I guess the idea here
- 14:03is that like songs in a playlist should
- 14:04take you on a journey, right? If you're
- 14:06building a playlist
- 14:08I don't know, you you want to start off
- 14:09feeling one way, you want to get to the
- 14:11end of the playlist to feel a different
- 14:13way. So they shouldn't all be in the
- 14:14same point, but a song starts somewhere,
- 14:17it ends somewhere, and then you're ready
- 14:19for the next song to start off from that
- 14:22point. Like each, each song is
- 14:24moving you
- 14:26um in this, in this latent space
- 14:28somehow.
- 14:30It's a, it's a cool idea at least.
- 14:33Um it's the thought that counts with
- 14:35these papers, right?
- 14:37So,
- 14:38how do I convert the annotation to my
- 14:40own? You have to have something like
- 14:42um
- 14:44this is like gamma I for the start.
- 14:52And this is gamma I
- 14:54prime, which is the end point of the
- 14:56same song.
- 14:57Uh
- 14:59so yeah, one song
- 15:01um
- 15:04So, it's
- 15:06I forget exactly how the annotation
- 15:07works, but it's saying the next song's
- 15:10start point
- 15:12should be close to the previous song's
- 15:14end point
- 15:16basically.
- 15:17Um
- 15:19I mean what's the problem with this idea
- 15:20is that it doubles the size of your
- 15:22parameterization, right? You know have
- 15:24to learn two latent vectors per song and
- 15:27latent vector and a start latent vector
- 15:29um
- 15:30which I don't know, a lot of songs don't
- 15:32really go anywhere, do they? Uh so a lot
- 15:35of the time you're just going to be
- 15:36redundantly learning the same thing
- 15:38twice.
- 15:39Uh
- 15:40has it really been worth
- 15:42doubling the number of model parameters
- 15:44in order to do so? This is a very
- 15:46expensive addition to the model, which
- 15:50I think
- 15:52in principle adds something nice, but in
- 15:53practice maybe is not so useful.
- 15:56Okay, so
- 15:58what else is going on? They also have
- 15:59bias terms. I mean this paper is also a
- 16:02nice or maybe a horrible exercise in
- 16:04just
- 16:05figuring out how
- 16:07some random academic paper on the topic
- 16:09does the same thing with
- 16:11totally different notation.
- 16:13You see this equation that looks totally
- 16:15unfamiliar compared to anything I've
- 16:16taught in class and
- 16:18you have to stare at it just the right
- 16:19way
- 16:21to realize it's actually exactly the
- 16:22same model. So this is, you know,
- 16:24popularity bias. What is that really?
- 16:25It's basically a bias term.
- 16:29Um,
- 16:31a beta I associated with the song. So
- 16:33that's not, you know, a beta I is not
- 16:35really a popularity term. It's a learned
- 16:37parameter, right? It could be anything.
- 16:39It's just allowing for
- 16:42certain songs
- 16:46to show up with high probability across
- 16:47all playlists. It's a it's a biased term
- 16:50that can increase or decrease
- 16:53um
- 16:55the popularity of any given song
- 16:57regardless of the interaction term. So
- 17:00we have two terms here. We have the the
- 17:02interaction term. Is the song compatible
- 17:05with the
- 17:07previous song or is the song's start
- 17:09point compatible with the previous
- 17:10song's end point, if you want to do
- 17:12that?
- 17:13Um,
- 17:14plus is this song just
- 17:16more or less likely to show up compared
- 17:18to other songs?
- 17:21Um,
- 17:23and yeah, what else do they do? They
- 17:24have a personalization term. Now this is
- 17:26very similar to that factorized
- 17:28personalized Markov chain model
- 17:30um
- 17:31where you have these two terms. One is
- 17:34um the relationship of a song to the
- 17:36previous song.
- 17:38Um,
- 17:40so
- 17:45and the other one is the relationship of
- 17:48a song to a user. So that's like gamma I
- 17:52dot gamma U.
- 17:55And I don't know, the interesting thing
- 17:56about this equation here is that they
- 17:58actually end up using some mixture of
- 17:59two approaches. They say
- 18:01for the relationship between two
- 18:03consecutive songs
- 18:05maybe let's use Euclidean distance.
- 18:09Right? Songs should be kind of near each
- 18:10other on a playlist.
- 18:12Uh, they should not stray too far over
- 18:14time.
- 18:15But
- 18:17for
- 18:18the preference term, which says how much
- 18:19does the user like the song?
- 18:22Um, they use it in a product.
- 18:25Whatever. Uh, so yeah, you can you can
- 18:27mix and match these things if you're
- 18:28designing your own models.
- 18:30Uh,
- 18:32one type of compatibility function is
- 18:33good for for preference compatibility. A
- 18:36different type of compatibility function
- 18:37is good for
- 18:39um
- 18:43previous song to next song
- 18:44compatibility.
- 18:47What else do they do? Semantic tags, I
- 18:49mean, yeah, cool. Uh,
- 18:51this is kind of a form of cold start
- 18:53recommendation.
- 18:55Um,
- 18:56pretty neat how they do it. Although the
- 18:58equation is again scary to look at.
- 19:01Um, cold start something that always
- 19:02comes up in the questions in this class,
- 19:04right? What do you do about cold start?
- 19:06So
- 19:07here's an example. For a cold start
- 19:09song, maybe we don't
- 19:11have a lot of interactions associated
- 19:12with that song, but we have some set of
- 19:15binary features.
- 19:17So they call these binary features
- 19:19semantic tags, which could be, you know,
- 19:21it's jazzy, it's ダンス it's upbeat.
- 19:24Um, or they could be an encoding of what
- 19:27artists are in the song, anything you
- 19:28want. They're basically a set of binary
- 19:30labels.
- 19:31Um,
- 19:33what this
- 19:35funny looking equation does is that it
- 19:38says that the
- 19:41representation of some song, your gamma
- 19:44I,
- 19:47which lives at some point in space,
- 19:50um,
- 19:52could be close to the average
- 19:55of some set of semantic tags.
- 19:58Um,
- 20:00so, you know, here's my gamma I in the
- 20:02middle.
- 20:08And I have a bunch of semantic tags.
- 20:14Each of these tags has its own latent
- 20:16vector, which is again a learned
- 20:18parameter vector. So maybe my tags are
- 20:22rock or
- 20:25um
- 20:27I don't know. Taylor Swift could be a
- 20:29tag.
- 20:30Uh, there is some point in that latent
- 20:32space where the tag lives. This is like
- 20:35the representation of a tag.
- 20:38Yeah? Also a learned representation.
- 20:41Kind of a It's a really neat way of um
- 20:45combining binary features is as a way of
- 20:47doing cold start recommendation. Go
- 20:48ahead.
- 20:52>> representation of rock would you
- 20:55just label a bunch of rocks on find all
- 20:57their latent representations
- 20:59extract later or how do you how do you
- 21:00find the latent representation?
- 21:02>> How do you find the latent It's It's all
- 21:04learned. So
- 21:06um we're going to add this thing into
- 21:08our Is there an equation? Maybe not.
- 21:09We're going to add this thing into a
- 21:10probabilistic model. So we just have
- 21:13what we're assuming here is that there's
- 21:14a binary feature vector associated with
- 21:16every item.
- 21:18Pretty normal thing to have, right?
- 21:20Um
- 21:22and we're saying I'm going to add an
- 21:24additional term to my objective function
- 21:27which says that, you know, users should
- 21:30be compatible with items, items should
- 21:32be compatible with previous items
- 21:35and an item's representation
- 21:37should be
- 21:39close to the average
- 21:41of this
- 21:43all of the feature tag representations,
- 21:46right?
- 21:47Um
- 21:48a better way to think about something
- 21:49like this is to think about it more like
- 21:51a regularizer.
- 21:52You know, what does a regularizer do?
- 21:54Uh, if I have a regularizer that looks
- 21:56like looks like this
- 21:59gamma I guess, not gamma I
- 22:02in my objective function, that's a
- 22:03regularizer, right? I say the model
- 22:05should be accurate. It should also have
- 22:08low
- 22:10L2 parameter vectors.
- 22:13So it's basically saying my parameter
- 22:16vector should be close to zero. If I
- 22:17don't know much
- 22:20if I don't trust my data very well
- 22:23the regularizer will will squash my
- 22:24parameters to zero. If I have tons and
- 22:26tons and tons of data, the regularizer
- 22:29gradually gets ignored.
- 22:32And then my error terms will dominate
- 22:36the regularizer, right? That's how a
- 22:38regularizer works normally in machine
- 22:40learning.
- 22:40So this is another form of regularizer.
- 22:43It's saying if I don't know much about
- 22:45the song,
- 22:47well, I do know that
- 22:49um
- 22:52the song's representation should be
- 22:54close to the average of the semantic tag
- 22:56representations, right?
- 22:59If I
- 23:00So if I know nothing about the song, if
- 23:01I've never
- 23:03seen anyone interact with this song
- 23:04before, I have no interaction data
- 23:06associated with it,
- 23:08then the representation of the song will
- 23:11just be the average of all the tag
- 23:12representations. If I've seen the song
- 23:15be rated millions of times,
- 23:19who cares what the tags are? It doesn't
- 23:21matter. That That term is going to
- 23:23gradually be dominated by
- 23:26the
- 23:27interaction terms,
- 23:29you know?
- 23:30Um
- 23:34Does that largely clear things up?
- 23:36But then everything is just learned
- 23:37parameters, right? Like what is the
- 23:40what is the representation for this tag
- 23:42which happens to correspond to rock
- 23:44music? Again, rock music is an
- 23:46interpretation it's it's information the
- 23:48model doesn't really have access to.
- 23:50Um
- 23:51we just saying
- 23:53can we discover some latent
- 23:55representation of rock or of that tag
- 24:00that will cause it to be near
- 24:04items that have that label most of the
- 24:05time,
- 24:06right?
- 24:09So
- 24:10I mean you can think of these little
- 24:11guys here as like springs
- 24:15if an analogy to physics is helpful.
- 24:18You have two sets of parameters you're
- 24:19learning. You have the item parameters
- 24:21and you have the
- 24:23tag parameters and we're saying oh the
- 24:25item parameters should should close to
- 24:26the tag parameters most of the time.
- 24:28The item parameters should also be close
- 24:30to the user parameters in the inner
- 24:31product sense. The item parameters
- 24:33should also be close to the previous
- 24:35item parameters. So it's like you're
- 24:37getting pulled three ways.
- 24:40Um
- 24:41but
- 24:44this is going to have more impact for
- 24:45new items where features are the only
- 24:47thing you have and you don't have any
- 24:49interaction data to
- 24:51pull you in that direction.
- 24:53So if the interaction data is missing,
- 24:54this is this is all you get.
- 24:57And as you get more and more interaction
- 24:59data, those terms will dominate.
- 25:03Cool.
- 25:04Um I mean what else is in here?
- 25:09This is another way of incorporating
- 25:10features that are not semantic tags, but
- 25:12you know it goes on. I won't go I won't
- 25:14go through everything here.
- 25:16Um
- 25:17what do they apply this to? Again some
- 25:222010 era data set of playlists.
- 25:25Um no clue what yes.com is. It escaped
- 25:29my attention at the time.
- 25:31Um
- 25:34large data set by standards of the day.
- 25:37Uh
- 25:41so
- 25:42thousands of songs and and millions of
- 25:44transitions. I should sort of say in
- 25:46recommender systems there's there's
- 25:48never really large and small data sets.
- 25:50There's there's only sparse and dense
- 25:51data sets.
- 25:53Um
- 25:55which is what really determines how
- 25:57complex of a model you can fit.
- 25:59Having a larger data set generally
- 26:01doesn't allow you to fit more complex
- 26:03models for recommender systems.
- 26:06Only having denser data sets allows you
- 26:08to fit more complex models.
- 26:12But I digress. So yeah I mean what do
- 26:14they learn? I mean this is a
- 26:17representation of gamma I.
- 26:22Uh
- 26:23I forget how they did this. It's either
- 26:24they learned gamma I explicitly to be
- 26:26two-dimensional or they took a
- 26:28high-dimensional gamma I and then
- 26:30um embedded it into two dimensions using
- 26:33t-s-n-a or something. But yeah, somehow
- 26:34this is a representation of gamma i and
- 26:36saying
- 26:37what items are near each other
- 26:42in latent space visualized in two
- 26:44dimensions.
- 26:46Um
- 26:47and yeah, it it represents it discovers
- 26:49reasonable stuff.
- 26:51Although this should be pretty easy for
- 26:52a model to learn, right? Like
- 26:55Metallica songs are all near each other
- 26:57in latent space.
- 26:59Fine.
- 27:00Um
- 27:03the model should be able to learn this
- 27:04because their songs probably appear
- 27:06together in playlists, right?
- 27:09Uh and Metallica is
- 27:11very far from Bob Marley.
- 27:14Maybe they had beef. I'm not sure.
- 27:17Um
- 27:18what else?
- 27:20I don't know. I mean Michael Jackson I
- 27:22guess is a
- 27:24genre spanning artist.
- 27:27He goes all the way from
- 27:31t-i, don't know what that is, to to Lady
- 27:34Gaga.
- 27:36Um
- 27:38themes not too unreasonable, maybe.
- 27:42Um and yeah, they compare the different
- 27:44models. I think the
- 27:47nothing crazy here except to say that
- 27:49the model works fine. Um
- 27:51the dual point model, which is the one
- 27:53that has a different start and end
- 27:55representation for every song is
- 28:00occasionally very fractionally better,
- 28:03but but the most part not really worth
- 28:05it.
- 28:06And eventually it is sort of highly
- 28:08prone to overfitting because it doubles
- 28:10the number of parameters.
- 28:12Great.
- 28:14Um
- 28:17go ahead.
- 28:18>> So the semantic tags basically like
- 28:20punish
- 28:21in two dimensions
- 28:22different from the previous dimensions
- 28:24or
- 28:24that correct?
- 28:26>> The semantic tags I wouldn't say they
- 28:28punish items for being different to
- 28:30previous items. They are
- 28:33they're saying that
- 28:34items with the same semantic tags
- 28:38could have similar representations.
- 28:41So
- 28:44it would be weird if
- 28:46a song two songs had the same semantic
- 28:48tags with very different
- 28:49representations, right?
- 28:51So
- 28:52if you don't know much about a song,
- 28:54maybe trust the semantic tags. If you
- 28:56know lots about the song, then fine.
- 28:59This representation can live anywhere
- 29:01and is not as governed by what the
- 29:03semantic tags are.
- 29:05Um
- 29:07this is saying yes, a song is about the
- 29:09average of its semantic tags.
- 29:11Um
- 29:14you know, just as we said, two songs
- 29:15that are adjacent in a playlist should
- 29:17have similar representations. That's
- 29:19also like a a regularizing
- 29:22sort of constraint, saying things that
- 29:24are nearby in a playlist should be
- 29:26similar.
- 29:27Um
- 29:28I mean, that's also cold start
- 29:30information, right? If you've never seen
- 29:32a song before but uh
- 29:34you know, as soon as you see it in one
- 29:36playlist, you say, oh yes, it should be
- 29:37the average of the song after it and the
- 29:39song before it, probably.
- 29:41Um
- 29:43this is saying if you've never seen a
- 29:45song before, it's its representation is
- 29:47probably the average of its semantic
- 29:48tags.
- 29:52Um
- 29:54so yeah, I don't know. What what's the
- 29:56point of this paper? I mean, it's one
- 29:57that I just randomly found and thought
- 29:58was interesting and sort of reasonably
- 30:00easy to go through.
- 30:02I think what's nice about it is just how
- 30:05they thought about using metric spaces
- 30:07and inner product spaces and kind of
- 30:08mixing and matching them together.
- 30:10You have a sequential model, so it's
- 30:13it's got a preference component, it's
- 30:14got a sequence component.
- 30:16Um
- 30:17they have some way of dealing with cold
- 30:19start by combining
- 30:22by incorporating observed features.
- 30:25And yeah, don't overthink the details.
- 30:27Um
- 30:29it's just a it's a good gentle
- 30:31introduction to like the engineering and
- 30:34design process of like
- 30:36shoving all of these little extra bits
- 30:38to build a recommender system that
- 30:40really just
- 30:42works on exactly one data set
- 30:45and you don't care about anything else
- 30:46other than that data set because again
- 30:48that's
- 30:49that is typical of the development cycle
- 30:50of recommender systems. People in
- 30:52industry are not trying to build good
- 30:55general purpose recommenders. They are
- 30:57building recommenders that
- 31:00solve
- 31:02one data set and one data set only.
- 31:05And it's worth building a different
- 31:06model for every single data set in the
- 31:07universe.
- 31:11Okay. I think I'll skip the next one and
- 31:13go to something else.
- 31:19What was in the content and structure
- 31:21lectures? So yeah it
- 31:23last Tuesday we had been talking about
- 31:26um
- 31:29factorization machines. Those might come
- 31:30up again but mostly I just wanted to
- 31:32talk about those as a possible model you
- 31:34might try out for assignment one
- 31:37um which can implement many different
- 31:40types of recommender system.
- 31:43Um
- 31:45the rest of this slide deck is lots and
- 31:47lots of different applications
- 31:49um
- 31:51which just yeah like I said they don't
- 31:53fit the mold of
- 31:55regular old preference modeling with a
- 31:57latent factor model because we have
- 31:59budgets or social dynamics and all kinds
- 32:01of stuff like that. There's a
- 32:04a
- 32:06there's lots of things. There's a very
- 32:07long section on online advertising
- 32:09because it's really its own
- 32:11extremely unique beast.
- 32:14Uh I don't know if I'll spend a whole
- 32:15lecture going through online advertising
- 32:17this quarter or not.
- 32:19Um
- 32:20I did once once have a vote and online
- 32:22advertising was by far the most popular
- 32:25thing
- 32:26but what can I say I find it a bit
- 32:28boring.
- 32:29Um I think also advertising
- 32:33even though it seems very much like a
- 32:34recommender system it's turns out to be
- 32:37methodologically quite different because
- 32:39it has all these
- 32:40ideas that come from
- 32:42auctions and stuff like that.
- 32:45Um,
- 32:47it's in the slides. We'll see if we get
- 32:48to it or not.
- 32:50So the next UK studies are mostly about
- 32:53social dynamics.
- 32:55Um,
- 32:57I'll talk about a few of those.
- 32:59So yeah, so far we've looked at this
- 33:02basic question of
- 33:05what is a user more likely to interact
- 33:07with?
- 33:08We've been trying to learn these
- 33:09functions that look like
- 33:10f of UI, uh, maybe f of UI with a
- 33:15timestamp,
- 33:16whatever. Uh, so
- 33:19when is this basic model of
- 33:20recommendation maybe, um, not
- 33:23appropriate?
- 33:25Um,
- 33:26the most obvious one which comes up a
- 33:28lot is when
- 33:31the items are users.
- 33:36So this is when you're thinking about
- 33:37problems that are related to,
- 33:40I don't know, recommendation on a social
- 33:42network.
- 33:43So
- 33:45you know, online dating, something like
- 33:47that,
- 33:50or people you may know, is that what
- 33:52it's still called on on Facebook?
- 33:55Um,
- 33:57you need to develop different
- 33:58recommender systems for things like
- 33:59that. Online dating is a really good
- 34:00example because online dating is not
- 34:02really social.
- 34:04Um, you're recommending people to
- 34:05people, but there's no social graph,
- 34:08right?
- 34:09Um, you don't have
- 34:10friends on an online dating platform, I
- 34:13don't think, right?
- 34:15Maybe it's changed how they worked since
- 34:16my days.
- 34:18Um,
- 34:19on Facebook the social graph is the main
- 34:22feature, right? Who are you going to
- 34:23become friends with on Facebook?
- 34:25Um,
- 34:27people who close a lot of triangles
- 34:28basically, people who have lots of
- 34:30mutual friends with you.
- 34:32So that's a person that kind of closes a
- 34:33triangle in a social graph.
- 34:36Um,
- 34:36fine.
- 34:38Still kind of a recommender system's
- 34:39problem, but it is much more to do with
- 34:41the graph topology of the social
- 34:43network,
- 34:44and less to do with things like latent
- 34:47factor representations. Online dating on
- 34:49the other hand,
- 34:51yeah, these latent representations are
- 34:52much more useful because there is no
- 34:54social graph.
- 34:57Um,
- 35:00what else? So,
- 35:02problems dealing with budgets.
- 35:05So, advertising is the obvious one.
- 35:08Um, or just general constraints.
- 35:13There's another case study, I don't know
- 35:15if we'll go through it, but about
- 35:17things like trip planning, where
- 35:20okay, I want to travel to a bunch of
- 35:21places. I need to
- 35:24travel for a certain number of days.
- 35:27Um, I want to spend not more than a
- 35:29certain amount of money.
- 35:31Whatever. You have all these constraints
- 35:33you're trying to optimize for. A latent
- 35:35factor model is still kind of
- 35:36appropriate because there's this latent
- 35:37preference aspect, but yeah, there's all
- 35:39these additional constraints you need to
- 35:41capture.
- 35:43Um, and yeah, things like advertising
- 35:48are such an example. I mean, what makes
- 35:49advertising difficult is that
- 35:53there's user preference toward the item,
- 35:55you know, how much do you like the item,
- 35:56but there's also the item's preference
- 35:58toward you. Somehow the advertiser has a
- 36:01sense of which users they want their ad
- 36:04to be shown to,
- 36:06who they consider to be worth bidding on
- 36:09or spending the money. And yeah, then
- 36:10there's bids, which are their whole own
- 36:12thing.
- 36:13Um, and there's budgets. You you can't
- 36:18show the ad more than the advertiser is
- 36:22able to pay for.
- 36:24At the same time, even if some
- 36:26advertisers are willing to pay a lot and
- 36:27show their ads all the time, you need to
- 36:30include
- 36:32um, low budget advertisers in your model
- 36:34somehow. You can't just say, oh, we're
- 36:35never ever going to show your ad because
- 36:37somebody else is paying us more money.
- 36:39You need some mechanism to make sure
- 36:42no advertiser gets shown too much, but
- 36:44every advertiser still sometimes gets
- 36:46shown.
- 36:47Um,
- 36:48so you know, like I said, I may or may
- 36:50not go through ad recommendation.
- 36:53What else? Social dynamics in general.
- 36:56We'll go through a few of those today at
- 36:58least, so things like group
- 36:59recommendation.
- 37:02Um,
- 37:03I don't know if group recommendation's a
- 37:04real problem. I'm not aware of any
- 37:06website that is actually deployed a
- 37:08group recommender, but the idea is like,
- 37:09okay, you want to watch a movie on
- 37:11Netflix with a group of 10 people,
- 37:13or you all want to go to a restaurant
- 37:14together.
- 37:15Um,
- 37:17what should you do?
- 37:19Uh, how should you make a recommendation
- 37:20for a group?
- 37:22So yeah, let's just let's just go
- 37:23through a few. Uh, we'll see how we go
- 37:25for time, and then I'll
- 37:27I'll talk about assignment too, maybe on
- 37:29the hour.
- 37:30Um,
- 37:32so yeah, group recommendation says,
- 37:34look, we're make building a recommender
- 37:36system
- 37:38um
- 37:39to maximize
- 37:42item group compatibility. So a set of
- 37:45people watching a movie or a set of
- 37:46people visiting a restaurant,
- 37:48something along those lines.
- 37:51So instead of
- 37:52fitting a function that says how
- 37:54compatible is the user with the item,
- 37:56we're going to fit a function
- 37:58that says how compatible is a group of
- 37:59users with the item, which
- 38:02probably in some way or another will
- 38:04decompose
- 38:06into uh an aggregation of these
- 38:09individual user terms.
- 38:11This is just a a fun paper that studies
- 38:13like what is the correct group
- 38:16aggregation function to use?
- 38:18You know, should you use something like
- 38:19average compatibility
- 38:21where you just say my
- 38:24my group compatibility function
- 38:26is just equal to the average of the
- 38:29individual
- 38:31user compatibility function, so sum of
- 38:33all users in the group,
- 38:36and take the user item compatibility.
- 38:38Um,
- 38:39that's a
- 38:41by way of being a
- 38:43a dumb baseline, essentially.
- 38:46Um,
- 38:47why might this be a problem? You know,
- 38:49you're recommending restaurants to
- 38:51people.
- 38:52Um,
- 38:53some of them are
- 38:55vegetarian or gluten-free or something.
- 38:58Um, they might have
- 39:00a compatibility of of zero with certain
- 39:03restaurants, right? They just can't go
- 39:04to certain places.
- 39:06They have a constraint, in other words.
- 39:09Whereas if you optimize average
- 39:10compatibility, you're just
- 39:13ruling those people out from coming,
- 39:15assuming that's something you don't want
- 39:16to do. I mean, maybe same with the movie
- 39:18recommendation. Is it Is it right for
- 39:20everyone to be happy on average?
- 39:23Um,
- 39:24even if that possibly means
- 39:26some people will be completely enraged
- 39:29by your movie choice.
- 39:32So an alternative to this that they
- 39:33propose is to say, oh, let's optimize
- 39:35least misery rather than average
- 39:37compatibility.
- 39:40Cool, fine.
- 39:41Uh, so
- 39:43the group compatibility is then equal to
- 39:47the
- 39:48compatibility of the user in the group
- 39:51who
- 39:52likes the thing the least.
- 39:54Nobody should dislike it too much.
- 39:57You know, the experience of
- 39:58going to a movie or
- 40:02going to a restaurant is a social
- 40:03experience after all.
- 40:05Uh, maybe
- 40:08um, your own compatibility of the item
- 40:10is is overruled by
- 40:12making sure that nobody is too unhappy.
- 40:16Uh,
- 40:17this certainly is how it seems when
- 40:18finding a restaurant to go to with a
- 40:20bunch of children or something.
- 40:23Uh, okay.
- 40:25What else? I mean, the the
- 40:27other thing they suggest, which is kind
- 40:28of more wacky,
- 40:30is about group consensus.
- 40:32So that there shouldn't be too much
- 40:35pairwise disagreement. So
- 40:39maybe you want these two things
- 40:40simultaneously. You want nobody to be
- 40:42too unhappy,
- 40:43but you also want
- 40:46on average
- 40:47any two people should agree with each
- 40:50other.
- 40:51This is saying for all pairs of users
- 40:55um where the two users are different
- 40:57the average difference
- 41:00should be small.
- 41:02Or the variance among differences among
- 41:04compatibility should not be too large.
- 41:07Um
- 41:11Yes, or someone says in chat that seems
- 41:13like it would be very useful. Maybe I I
- 41:14guess I've just never seen anything like
- 41:16this deployed. This is I mean it's a
- 41:17purely academic study that I don't think
- 41:19has any
- 41:21real website behind it, but cool.
- 41:25Um
- 41:27Yeah, so they say yes the in practice
- 41:29the the thing you want that they
- 41:31empirically find is is best at
- 41:33optimizing group satisfaction is to
- 41:36maximize
- 41:38um
- 41:40relevance, but
- 41:43there should be some combination of high
- 41:46relevance and also low disagreement.
- 41:49Okay.
- 41:51Fine, kind of cool. Uh
- 41:54I don't think it was ever actually
- 41:55practically deployed.
- 41:57Um
- 41:58a few slides about online dating.
- 42:01Um
- 42:03I think there's only okay there's only
- 42:05one paper that goes into detail here
- 42:07which is about bartering.
- 42:09Yes, what about recommended systems
- 42:10where we have
- 42:12pairs of users interacting with each
- 42:13other rather than users interacting with
- 42:16items. So for something like online
- 42:18dating
- 42:19typically you want to optimize goals
- 42:22that are related to things like pairwise
- 42:24compatibility
- 42:26um sorry
- 42:27reciprocal compatibility.
- 42:29So
- 42:31this particular one is saying
- 42:33I should optimize the harmonic mean of
- 42:35the compatibility between users
- 42:39use compatibility toward V and V's
- 42:41compatibility toward U.
- 42:43So these are asymmetric compatibility
- 42:45functions, you know you might like me
- 42:47but I might not like you.
- 42:49Um
- 42:50what a
- 42:51harmonic mean
- 42:53is it strongly penalizes any of these
- 42:56from being too close to zero. So a
- 42:58regular average or arithmetic mean says
- 43:03um
- 43:05yeah, you know, take the average of two
- 43:07things. If one person really likes the
- 43:08other, that can potentially cancel out
- 43:12them not being liked in return.
- 43:14Harmonic mean says if either of them
- 43:16doesn't like the other, the the harmonic
- 43:18mean is going to be very small. So they
- 43:20have to be both high simultaneously.
- 43:23Cool.
- 43:25Um,
- 43:26this is a very similar one about
- 43:27bartering, so people swapping things.
- 43:30Um, this one is about
- 43:33beers like like way back in week one.
- 43:37So on these beer recommendation
- 43:39platforms,
- 43:41people can also swap beers.
- 43:44Um,
- 43:46a lot of fun stuff going on there. So
- 43:48people are trying to
- 43:51I guess they're trying to catch all the
- 43:52Pokémon, right? They want to review
- 43:54every single extremely exotic beer. I
- 43:56mean the top users have
- 43:58reviewed tens of thousands of different
- 44:00beers, right?
- 44:02Uh, the only way this can possibly work
- 44:04is if they start trading beers with each
- 44:06other
- 44:07um
- 44:09in order to get
- 44:10rare and and
- 44:12obscure ones.
- 44:14So
- 44:15this is kind of an interesting social
- 44:16dynamic because everyone has a
- 44:18preference for different items,
- 44:20different beers they want.
- 44:22Um,
- 44:24so they need to find
- 44:27two a pair of users
- 44:29needs to find
- 44:32each other
- 44:34such that they have a pair of items that
- 44:36they both
- 44:37reciprocally want to swap.
- 44:40You know?
- 44:41So
- 44:44user V has an item I that that you wants
- 44:49and
- 44:51user U has an item that wants.
- 44:55Uh,
- 44:57so this has something to do with
- 44:59user to item compatibility and something
- 45:01to do with potentially user to user
- 45:02compatibility. Are these two people who
- 45:04just like each other or want to trade a
- 45:06bunch?
- 45:09probably nothing to do with item to item
- 45:10compatibility. But yes, there's multiple
- 45:11things going on here at once. So they
- 45:13say there's this complex compatibility
- 45:15function
- 45:16between
- 45:17the pair of users and the pair of items
- 45:22which can be kind of decomposed
- 45:25uh
- 45:27as
- 45:33some function to do with item one
- 45:36and another function to do with
- 45:38item two
- 45:40which goes in the opposite direction. So
- 45:42the item that
- 45:44um
- 45:46you wants and the item that V wants
- 45:52and this compatibility function
- 45:55looks this is so this is user
- 45:58compatibility with item I and user V.
- 46:03So that's going to be given by
- 46:05um how much does you want
- 46:08the item I? So that's a regular old
- 46:10compatibility function
- 46:12um something like gamma U dot gamma I.
- 46:15And they also have this social
- 46:16compatibility term
- 46:19um
- 46:20between user U and user V. I forget how
- 46:23that was defined, but something like U
- 46:26gamma U dot gamma V or something
- 46:28um which basically says sometimes two
- 46:30people just like to trade with each
- 46:31other
- 46:33in a way that can potentially overrule
- 46:35their actual preference for items,
- 46:37right? They just
- 46:39have high social compatibility. They
- 46:41like trading
- 46:43um so it doesn't necessarily matter that
- 46:46one of them has an item that the other
- 46:47one doesn't really want. They'll just be
- 46:49nice and trade with each other.
- 46:52Okay, yeah, not too much to say about
- 46:54those ones. Uh, just saying yes, we can
- 46:56these recommender systems to include
- 47:00relationships among users as well as
- 47:02relationships among items.
- 47:06All right, a bit more on socially aware
- 47:07recommendation since I still have
- 47:11I think a decent amount of time to
- 47:13go through this one.
- 47:15Uh
- 47:18cool.
- 47:19Um
- 47:22so yes, this is looking at recommender
- 47:24systems in the context where you have
- 47:26users and items and users have
- 47:29preferences toward items,
- 47:31but you also have a social graph.
- 47:35Um there are various websites that look
- 47:37kind of like this.
- 47:38Um
- 47:40maybe
- 47:42I don't know. Where's a website where
- 47:43you consume items but also have friends?
- 47:45I mean this happens to some extent on
- 47:46Facebook or any any social media website
- 47:49where you also click on ads or
- 47:52or videos or anything like that where
- 47:53there's a social graph,
- 47:55um but there's also
- 47:58users and items and user to item
- 48:01interactions.
- 48:03So
- 48:04yeah, the basic idea here is if you have
- 48:07this additional source of information,
- 48:09which is the social graph,
- 48:11um
- 48:12that social graph should tell you
- 48:14something
- 48:15about
- 48:17what user item interactions are likely.
- 48:19So yeah, think about
- 48:21I don't know. Is is TikTok a social
- 48:23platform? Is there a social graph on
- 48:25TikTok? But think about some website
- 48:26where you have social links between
- 48:28users,
- 48:30um
- 48:31even YouTube or something where users
- 48:33can interact with each other, they can
- 48:34also interact with items.
- 48:37Um
- 48:38so again, maybe your item
- 48:40representations are really are really
- 48:41sparse. We go of cold start problems,
- 48:44things like that,
- 48:45but
- 48:46somehow the social graph should give us
- 48:49well, you know, the user information
- 48:51could be sparse too. Maybe you have new
- 48:52users who haven't interacted with much,
- 48:54but maybe the social graph will tell us
- 48:56something additional.
- 48:57It's an additional piece of information.
- 49:00Um,
- 49:01so
- 49:03might as well use it, right?
- 49:05What could the social graph possibly
- 49:07tell us?
- 49:09Um,
- 49:10one, you know, maybe our friends are
- 49:11just similar to us. If
- 49:14I know who your friends are in a social
- 49:16graph, I could say my
- 49:20user representation for gamma U is
- 49:22likely to be similar to the user
- 49:24representations of people connected to
- 49:26me.
- 49:27Same as we did with semantic tags for
- 49:29item representations a few papers ago,
- 49:31right?
- 49:33Um, just say, oh yes, a user's
- 49:34preference model should somehow be
- 49:36similar to that of
- 49:39um
- 49:41people they're connected to.
- 49:43Alternately, um
- 49:46you know,
- 49:47seeing that your friends watch a movie
- 49:49is just a likely predictor of that being
- 49:50the next movie you're going to watch.
- 49:54Okay, so yeah, now our data set kind of
- 49:56looks like this. We have
- 49:58at least
- 50:00two sources of information that that go
- 50:02together.
- 50:04Uh, we have this sparse
- 50:06rating or interaction matrix
- 50:09of users cross items.
- 50:13And we also have this social graph,
- 50:15which is like users cross users, right?
- 50:19How can we use this to make our models
- 50:21more accurate? Assuming our goal is to
- 50:23recommend items, right?
- 50:25Two ways to do that.
- 50:27Um,
- 50:30one is to say
- 50:33yeah, let's treat it like a regularizer.
- 50:35This is the one that's very similar to
- 50:36what I was talking about with semantic
- 50:37tags,
- 50:39um which just says
- 50:41yeah, on average, your latent
- 50:42representation should be similar to
- 50:45latent representations of your friends.
- 50:47If I don't know much about you yet, I
- 50:49can just borrow your friends'
- 50:50representations and kind of average
- 50:52them.
- 50:53So again, everything's like a it's like
- 50:55a spring. I have this one spring which
- 50:57is saying
- 50:59user representations should be similar
- 51:01to item representations and it's kind of
- 51:03pulling those things close. I have
- 51:04another spring that says user
- 51:06representations should be similar to
- 51:08friends representations and it's pulling
- 51:10them close. And depending on which type
- 51:12of data I have more of,
- 51:14I'm going to rely more on that type of
- 51:16data. That's what a regularizer does.
- 51:18It's just a more complex regularizer
- 51:21rather than saying, oh, if I don't know
- 51:23much about a user,
- 51:24just
- 51:27just squash the user parameters towards
- 51:29zero, right? That's a very dumb
- 51:32regularizer. It's an extremely blunt
- 51:34instrument just saying, oh yes, zero
- 51:35everything out.
- 51:37The alternative is to say
- 51:40if I don't know much about a user from
- 51:42their item data, I can still potentially
- 51:44learn something from their social data
- 51:46or or vice versa.
- 51:51Um
- 51:53yes, so that's that's one option and
- 51:55that'll maybe look familiar
- 51:57based on our discussion earlier today
- 51:58about semantic tags.
- 52:00The other is, this is kind of more
- 52:02subtle, where
- 52:04I mentioned this a few weeks ago in
- 52:05response to someone's question,
- 52:07uh which is to say maybe
- 52:10our friends' interactions are kind of
- 52:12like a
- 52:13a a loose
- 52:15signal of preferences.
- 52:18Um
- 52:20when we're talking about interaction
- 52:21data, there's the things you like or the
- 52:24things you explicitly choose to click
- 52:26on, the movies you watch to the end.
- 52:29There's things you don't click on which
- 52:30are not quite negatives, they're just
- 52:32not positives.
- 52:33And then there's something in between.
- 52:35There's the stuff your friends do. Is
- 52:36that positive? Is it negative?
- 52:40Is it somewhere in between? Is it more
- 52:42positive than a positive interaction? Is
- 52:44it more negative than a negative
- 52:45interaction? Where does it live?
- 52:48But somehow it's an additional signal
- 52:49that
- 52:51tells us about preferences.
- 52:53So yeah, here's how those two ideas are
- 52:55implemented.
- 52:56Um
- 52:59with the regularizer,
- 53:01um we're just saying,
- 53:03okay, my parameter gamma
- 53:06could do two things at once.
- 53:10Uh, it should be
- 53:11able to predict interactions with items
- 53:13and it should also be able to predict
- 53:15interactions with users. It's like I
- 53:17say, it's that spring that's getting
- 53:19pulled in both directions.
- 53:21Um,
- 53:24so
- 53:26you know, you have all of your items you
- 53:27interact with.
- 53:29You have
- 53:30gamma I for every item
- 53:32and then for every user who's
- 53:33interacting with that item
- 53:36you have their gamma U,
- 53:38but you also have
- 53:40the friends they've interacted with,
- 53:42yeah?
- 53:44Um,
- 53:45and the way this is actually implemented
- 53:47in the
- 53:48um
- 53:49in the in the paper is is very
- 53:51straightforward. We just break the model
- 53:53up into two predictors. I won't bother
- 53:55writing it out.
- 53:56Um,
- 53:58so
- 54:00yeah, there's two parts to the model.
- 54:03There's one which says
- 54:07okay, the
- 54:10user and item latent vectors
- 54:13should be capable of predicting ratings
- 54:15accurately. This is our regular old
- 54:17error term.
- 54:19Errors made by the model should be
- 54:20small.
- 54:22Um,
- 54:24and then this term is the social term
- 54:27which says
- 54:29your representation should be similar to
- 54:32other users because you know, if you
- 54:34didn't like the same movies as someone
- 54:35else, you couldn't possibly be friends
- 54:37with them, right?
- 54:38That's kind of the assumption this model
- 54:40is making.
- 54:41Um,
- 54:43so yeah, the
- 54:46your user representation should be
- 54:47similar to your friends' representation.
- 54:49Again, there's some weird weirdness here
- 54:51where they actually learn a separate
- 54:53latent vector for this part.
- 54:55So there's
- 54:57there's a latent vector that's shared
- 54:59for the user. There's also a latent
- 55:01vector that's not shared which allows
- 55:03for the possibility that there are some
- 55:04elements of social trust which are
- 55:06different from
- 55:09the elements that are used to predict
- 55:10ratings.
- 55:12But yeah, there's two terms to the
- 55:13model.
- 55:14One which predicts the sparse
- 55:18rating graph. You're saying I assume
- 55:20this thing is approximately low rank
- 55:22and I fit it using a term gamma
- 55:27and
- 55:28another term which predicts the social
- 55:30graph. So I'm just predicting two things
- 55:31simultaneously.
- 55:33In practice, I really probably only care
- 55:35about predicting one thing. I only care
- 55:37about predicting the rating graph. My
- 55:38real application here is to predict the
- 55:41rating graph. It is not to predict
- 55:44the social graph.
- 55:46But
- 55:48the way I write down the problem is as
- 55:50if I'm predicting two things.
- 55:53How well can I predict the rating graph?
- 55:55How well can I predict the social graph?
- 55:57And another regularizer.
- 55:59Um
- 56:00why do I do that if I don't really care
- 56:02about predicting the social graph?
- 56:04Again, it's just a a better
- 56:08subtler form of regularization. Um
- 56:12I'm going to tune this second
- 56:14regularization parameter
- 56:17so that
- 56:18my rating prediction error is as low as
- 56:20possible. I still want to just minimize
- 56:22my prediction of ratings, right? That's
- 56:24all I care about.
- 56:26Um but the best way to do that might be
- 56:29a model that has this social graph based
- 56:31regularizer.
- 56:33Um and yeah, I've got
- 56:36two regularization parameters to tune,
- 56:38but no big deal.
- 56:40Fine. That's an idea. So yes, I have
- 56:43this this shared term. I've got to
- 56:44predict both things simultaneously. I I
- 56:48tune some weight which says how much do
- 56:50I care about predicting ratings versus
- 56:52how much do I care about predicting the
- 56:54graph?
- 56:55And then I use my validation set to pick
- 56:57the best model at rating prediction.
- 57:00Everything's lovely.
- 57:02So yes, the the other option is to say
- 57:04let's use those social links as
- 57:07a way to generate positive or negative
- 57:09samples.
- 57:11So if you remember, a of weeks back,
- 57:12when we're developing Bayesian
- 57:14personalized ranking,
- 57:16um
- 57:18we said we should build data sets that
- 57:21consist of user
- 57:25positive item and negative item
- 57:28triples.
- 57:29The negative item's not really a
- 57:31negative item. It's just an item you
- 57:32haven't interacted with. And then we
- 57:34should train
- 57:36kind of classifiers
- 57:38that are capable of guessing which of
- 57:40the two items
- 57:42is the positive one.
- 57:44So they're really deciding of these two
- 57:47things which is the user more likely to
- 57:49interact with. They're classifiers that
- 57:52are built
- 57:54for the purpose of ranking.
- 57:56They're capable of a ranking these two
- 57:58items.
- 58:01Um
- 58:03so yeah, can we do the same thing with
- 58:04our social graph? Uh can we use these
- 58:07friends' interactions to generate
- 58:09positive or negative samples? There are
- 58:11lots of ways you could do this.
- 58:13And this this paper which is
- 58:17linked somewhere, I think.
- 58:19Did I also forget to link the paper
- 58:20here? Maybe I did.
- 58:22I'm terrible.
- 58:23I am better these days.
- 58:26Um
- 58:28but there's there's two ways you can do
- 58:30this.
- 58:31Uh well, I mean, think about what does
- 58:34what does a friend having interacted
- 58:35with something mean?
- 58:38So if you haven't interacted with the
- 58:39item and your friend has,
- 58:41what does that tell us?
- 58:44One option is that it's a weak
- 58:46positive signal.
- 58:48Right?
- 58:49Um you don't like it as much as
- 58:51something you have interacted with,
- 58:53which is an explicit positive signal. I
- 58:55know you like that thing or I know it
- 58:57has a high interaction probability.
- 58:59Um but a social signal is still stronger
- 59:02than a
- 59:03um
- 59:05negative signal. It's a bit positive.
- 59:07That's the argument here. So I can now
- 59:09extract from my data set
- 59:12two kinds of triples
- 59:14from which I can make relative sort of
- 59:16ranking statements. I can say
- 59:20I can build triples that look like
- 59:22what do they look like U I A
- 59:28um
- 59:29and U
- 59:31A J
- 59:33where
- 59:35I believe that
- 59:37positive interactions should rank higher
- 59:39than social links
- 59:40or social interactions, so things your
- 59:42friends have interacted with
- 59:44and things your friends have interacted
- 59:46with should rank higher than
- 59:49things you haven't interacted with.
- 59:51Ideally, that should allow us to learn a
- 59:53better, more accurate ranking function
- 59:57that is more likely to put the good
- 59:59stuff near the top, especially because
- 1:00:02your positive interactions, the things
- 1:00:04you have interacted with are extremely
- 1:00:06sparse compared to all those negatives
- 1:00:09about which we know almost nothing.
- 1:00:11But social interactions
- 1:00:14are orders of magnitude more common. I
- 1:00:16can harvest
- 1:00:1810 100x times as many items from your
- 1:00:22social graph as I can from you directly.
- 1:00:25That's the idea.
- 1:00:27um
- 1:00:30So the other way of thinking about this,
- 1:00:32I mean this is just one option,
- 1:00:34try it out, see if it works.
- 1:00:36The other way to think about this is
- 1:00:38that
- 1:00:39if our friends have interacted with an
- 1:00:41item
- 1:00:42um
- 1:00:44then you're actually less likely to
- 1:00:46interact with it.
- 1:00:48uh
- 1:00:49Why might that be? Well
- 1:00:52um
- 1:00:56maybe the more of your friends you've
- 1:00:58seen interact with it
- 1:01:00the more confident you eventually become
- 1:01:02that
- 1:01:03the reason you're not interacting with
- 1:01:04it is because you really don't like it.
- 1:01:07Right? Like seeing that all of your
- 1:01:08friends like Taylor Swift means
- 1:01:11you must know about Taylor Swift, right?
- 1:01:13You must have discovered her music by
- 1:01:15now.
- 1:01:16Maybe she's a bad example. She's too
- 1:01:17popular. But, you know, all of your
- 1:01:18friends know about the same indie band,
- 1:01:21right?
- 1:01:24Then the fact that you're not into it
- 1:01:26and you've never interacted with it
- 1:01:27means
- 1:01:30that negative is a real negative, right?
- 1:01:31You have made a conscious choice not to
- 1:01:34interact with this rare item.
- 1:01:37Cuz you must know about it.
- 1:01:40So yes, repeated exposure without an
- 1:01:42interaction is actually evidence of
- 1:01:45negative sentiment.
- 1:01:48So if that's the case, they they sort of
- 1:01:50suggest using this weaker statement that
- 1:01:53says positive links are greater than
- 1:01:54social links.
- 1:01:57And also that positive links, the
- 1:01:59regular old ones are user just we have
- 1:02:03u i k and we have u
- 1:02:06i plus and i minus.
- 1:02:15There isn't actually an expression here
- 1:02:16that says
- 1:02:19negative is greater than social or
- 1:02:21anything. This is just kind of a weaker
- 1:02:22assumption than the previous one which
- 1:02:24says
- 1:02:25we can't conclude
- 1:02:27that
- 1:02:29social is greater than negative.
- 1:02:31We can only conclude that social is
- 1:02:32positive is greater than social and
- 1:02:34positive is greater than negative, yeah?
- 1:02:37>> Do these models have any
- 1:02:38update I mean regarding friends of
- 1:02:41friends or random people on each other?
- 1:02:45>> These models are any way of measuring
- 1:02:47who your friends are? Not really, no.
- 1:02:50There's
- 1:02:52This is just a way of generating
- 1:02:53conditional samples. There's no like
- 1:02:55there's no way of measuring the the
- 1:02:57strength of a friendship or something.
- 1:03:03How do we even go about doing that? I
- 1:03:05mean certainly a model like this one
- 1:03:06like it is allowable for sometimes your
- 1:03:09friends can just be really far away from
- 1:03:10You can have friends whose whose latent
- 1:03:12representation is very very very
- 1:03:14different from yours.
- 1:03:16It just shouldn't happen too often.
- 1:03:18You should be or you could be the
- 1:03:19outlier yourself. You could be the
- 1:03:21person who's very far away from your
- 1:03:22friends. It's just saying
- 1:03:25that
- 1:03:27if that does happen, I'm going to need a
- 1:03:29lot more interaction data before I
- 1:03:30really believe that you are so unique
- 1:03:33and not like the rest of your friends.
- 1:03:35And if I don't have much interaction
- 1:03:36data, I'll rely more on your friends.
- 1:03:39So,
- 1:03:40you know, any anything is possible. It's
- 1:03:42just describing what happens on average.
- 1:03:45Um,
- 1:03:47does your friends having very similar
- 1:03:48preferences mean that they're your good
- 1:03:50friends or not? I don't know. Uh,
- 1:03:52sometimes if a person likes the same
- 1:03:54things as you too much, it is
- 1:03:57causes other problems, doesn't it?
- 1:03:59Uh, you should have some homophily and
- 1:04:00some heterophily, you know,
- 1:04:02in a friendship. But yeah, I don't know.
- 1:04:04I mean, there's a lot more interesting
- 1:04:06studies about
- 1:04:08social dynamics that are not the topic
- 1:04:11of this this class. I mean, I tried to
- 1:04:12find examples here
- 1:04:14which are really just about recommender
- 1:04:16systems.
- 1:04:18Um,
- 1:04:19whereas once you get into social
- 1:04:21recommendation, like actual friend
- 1:04:24recommendation and stuff,
- 1:04:26there's a lot more going on about social
- 1:04:29dynamics and groups and
- 1:04:31do you form friendships with people
- 1:04:35who have similar preferences to you or
- 1:04:36do you form friendships with people who
- 1:04:39close ties in a social graph?
- 1:04:41Um,
- 1:04:45that stuff's very interesting, but it's
- 1:04:46it's yeah, it's more about social
- 1:04:48network analysis and less about
- 1:04:49recommender systems. For what it's
- 1:04:51worth, I do have like
- 1:04:53three lectures worth of content about
- 1:04:55that which I eventually deleted from
- 1:04:57this class because it was like, oh, it's
- 1:04:58too
- 1:05:00it's too different.
- 1:05:01It's this whole
- 1:05:03it's its own beast looking at
- 1:05:05recommendation
- 1:05:06when the social graph is the main entity
- 1:05:09to be studied.
- 1:05:11Um,
- 1:05:12so this is its applications where all I
- 1:05:14care about is predicting user item
- 1:05:17interactions accurately.
- 1:05:19Um, friend recommendation on on
- 1:05:21Facebook, very different thing. I mean,
- 1:05:23it uses features too, but
- 1:05:25the the shape of the social graph is by
- 1:05:28far the most important element.
- 1:05:31Um,
- 1:05:33still, if you if you look at a very very
- 1:05:35old podcast page, it sure will be
- 1:05:37online, you can
- 1:05:38you can find me talking about
- 1:05:40social network recommendation. Okay,
- 1:05:42it's after 3:00 p.m.
- 1:05:44I'm going to talk about the assignment.
- 1:05:47Um,
- 1:05:52I did download it, I think.
- 1:06:00There's not too much to say. I just want
- 1:06:02to make sure I did bring it up in the
- 1:06:03lecture
- 1:06:04at some point. The spec is online, it's
- 1:06:06open-ended.
- 1:06:08Um,
- 1:06:11what do we have to do? We have
- 1:06:14an open-ended assignment consisting of
- 1:06:15five rubric items, pick a data set, come
- 1:06:18up with a predictive task on the data
- 1:06:20set, probably related to recommender
- 1:06:22systems ideally,
- 1:06:24use some models, discuss literature, and
- 1:06:27analyze your results.
- 1:06:29Um,
- 1:06:31this is pretty rough. I mean, I think
- 1:06:33you can you can grade it liberally, but
- 1:06:36there is a rubric that says you should
- 1:06:37do these five things. You can do them
- 1:06:39out of order as long as they're all
- 1:06:40covered and everything's very obvious.
- 1:06:43Make a team of one to four, that's a
- 1:06:45reasonably strict requirement.
- 1:06:47Um,
- 1:06:50is friend recommendation on Facebook the
- 1:06:52same as what it had been when Zuckerberg
- 1:06:54created it first? I don't know. Good
- 1:06:57question. Um,
- 1:06:59I'm sure it is still mostly based on the
- 1:07:02topology of the social graph. I I'd be
- 1:07:04very surprised if it wasn't,
- 1:07:06just because that feature is so
- 1:07:08important. What do I mean by the
- 1:07:10topology of the social graph? I just
- 1:07:11mean
- 1:07:14if these two people are not friends with
- 1:07:16each other,
- 1:07:18then the likelihood that they'll become
- 1:07:20friends with each other is sort of
- 1:07:21proportional to the number of
- 1:07:23that would become closed by making them
- 1:07:25triangles, right? Does it close a lot of
- 1:07:28triangles?
- 1:07:30That's it. There are other things going
- 1:07:31on, but that one is so powerful. Uh
- 1:07:34I mean, what does that really mean? It's
- 1:07:35it's very similar to like Jaccard
- 1:07:37similarity or something probably. It's
- 1:07:39like these two users have extremely high
- 1:07:41overlap
- 1:07:42in terms of
- 1:07:44their own social groups.
- 1:07:48Um features and latent representations
- 1:07:50and stuff less important.
- 1:07:54Um so make a team. I mean, I always
- 1:07:56stress this assignment is is pretty
- 1:07:57small really. It's called assignment
- 1:07:59two, which makes it sound big and scary.
- 1:08:00Assignment one is the big and scary one.
- 1:08:02Assignment two is just
- 1:08:04yes, do something of your own personal
- 1:08:06choice based on what you've learned in
- 1:08:08the course.
- 1:08:10Um you can do it as a team of one. I
- 1:08:12always hated group projects
- 1:08:14when I was in school.
- 1:08:16Uh so if I had the option to do things
- 1:08:18by myself, I would.
- 1:08:20Um
- 1:08:22I promise I'm not that antisocial, but
- 1:08:23it was just
- 1:08:25I wanted to keep a high GPA, long story.
- 1:08:27Uh nobody will know. So for the most
- 1:08:30part,
- 1:08:31these assignments to be to be submitted
- 1:08:33anonymously unless you choose to include
- 1:08:35your name or your names of your group
- 1:08:37members on them.
- 1:08:38Nobody will know the size of your group
- 1:08:40when they're grading it.
- 1:08:42Any restrictions on the type of data
- 1:08:43sets? I mean, I would say the
- 1:08:45restriction is you should be
- 1:08:46implementing models that I taught,
- 1:08:48right?
- 1:08:49At least. You can implement other models
- 1:08:50that I didn't teach, but you should at
- 1:08:52least implement models that I taught. So
- 1:08:54there should be data sets for which the
- 1:08:56models I taught
- 1:08:58can be used, which is I think that's
- 1:09:00already like extremely open ended. You
- 1:09:02know, there should be recommended
- 1:09:03systems ish
- 1:09:05or maybe things related to regression
- 1:09:07and classification if you want to go
- 1:09:08back that far in the class.
- 1:09:10Probably stick to recommended systems
- 1:09:11though.
- 1:09:13Um
- 1:09:14the data sets should probably not be
- 1:09:16tiny as well. I I I there's no rule that
- 1:09:19says what a tiny data set is. Again,
- 1:09:20that means
- 1:09:22you should be able to implement
- 1:09:25the kinds of models I described, which
- 1:09:27generally are data hungry, right?
- 1:09:30Any resources for data sets? Absolutely.
- 1:09:32Um,
- 1:09:33there it is on the very next slide. So
- 1:09:35this is my own labs data set web page.
- 1:09:38This is just data sets from my own
- 1:09:40papers. There's lots of recommended
- 1:09:41systems data sets out there, but this is
- 1:09:43like one of the
- 1:09:45I guess it's the biggest repository of
- 1:09:46specifically recommended systems data
- 1:09:48sets, but there are lots of others.
- 1:09:51Um,
- 1:09:53SNAP is another
- 1:09:56This one's moved actually.
- 1:09:59These are This is another data set
- 1:10:01repository that also contains
- 1:10:04um
- 1:10:05some recommended systems data sets.
- 1:10:08Start here though.
- 1:10:09Um,
- 1:10:10a lot of other people
- 1:10:13um
- 1:10:15use data sets from things like
- 1:10:18government agencies,
- 1:10:20um
- 1:10:22things like crime data sets and and
- 1:10:24stuff like that, which are can be
- 1:10:26reasonably interesting data sets because
- 1:10:27the the features can be quite rich and
- 1:10:29have a lot of
- 1:10:30temporal dynamics. They have
- 1:10:31geographical features.
- 1:10:33Uh, so they're
- 1:10:35pretty suitable for implementing
- 1:10:36recommended systems like models.
- 1:10:38Um, I have this word big here, but don't
- 1:10:41don't
- 1:10:42don't worry about the definition of the
- 1:10:44word big. Somebody will post on Piazza
- 1:10:46saying what is meant by big.
- 1:10:48I just mean
- 1:10:49make sure you can use the models from
- 1:10:51class. That's it.
- 1:10:54Which generally require
- 1:10:56biggish data sets. So in the in this
- 1:10:59slide deck, there's kind of this worked
- 1:11:00example of studying
- 1:11:03post popularity on Reddit or something.
- 1:11:06Um,
- 1:11:08what ranking should we aim for for 100%
- 1:11:10on the ranking part of assignment one?
- 1:11:13Um,
- 1:11:18I'm going to say you should aim to be
- 1:11:20literally the best person in the whole
- 1:11:21class.
- 1:11:23That's maybe a glib answer. I I I might
- 1:11:25give full marks to everyone in the top.
- 1:11:29How many marks is it out of? Is it out
- 1:11:31of three? I usually divide it by half.
- 1:11:34So I mean I make so I don't divide it by
- 1:11:36I do I I rank people in half mark
- 1:11:38buckets.
- 1:11:40But then a lot of people got annoyed
- 1:11:42that
- 1:11:43this meant that there's a single ranking
- 1:11:44you can change and it changes your grade
- 1:11:46by a half mark. I I used to say get over
- 1:11:49it, it's half a mark.
- 1:11:50But eventually I did change the auto
- 1:11:53grader so that it
- 1:11:55will then linearly interpolate based on
- 1:11:58how close you are. You know I might do
- 1:11:59that again.
- 1:12:01Um the downside of that is it means that
- 1:12:04there are these tiny little grade
- 1:12:05increments that are smaller than half a
- 1:12:07mark. So there will probably be some
- 1:12:09fraction of people I just give full
- 1:12:10marks to.
- 1:12:11Um then may or may not then be half mark
- 1:12:14increments.
- 1:12:15Um
- 1:12:18so it is I I will
- 1:12:21I don't have it I I realize I'm
- 1:12:23waffling. I don't have a precise answer
- 1:12:24for you. I think to to get within 0.5
- 1:12:27marks of full marks
- 1:12:30you should be within the top I think
- 1:12:331/6 of the class because I think it's
- 1:12:35out of three.
- 1:12:36Or if it's out of four you should be in
- 1:12:37the top 1/8.
- 1:12:39Um
- 1:12:41but I I I will try to grade it such that
- 1:12:45it is possible to literally get full
- 1:12:47marks for
- 1:12:49some group of people before I start
- 1:12:51interpolating things, whatever.
- 1:12:54Um
- 1:12:56and yeah remember that it's it's best
- 1:12:58out of best [snorts] out of three tasks.
- 1:13:00So best three out of six tasks.
- 1:13:03So I think this year there should be
- 1:13:04hopefully fewer complaints about people
- 1:13:06being subject to randomness.
- 1:13:08Um
- 1:13:09would that be total members of the class
- 1:13:11or only those who turn in the
- 1:13:12assignment? Only those who turn in the
- 1:13:14assignment.
- 1:13:15Um
- 1:13:18that should be basically everyone
- 1:13:19though. It would be very unusual to skip
- 1:13:20this assignment is big so people should
- 1:13:23not people who are taking the class pass
- 1:13:25fail sometimes skip one assignment.
- 1:13:28Um
- 1:13:30that's very few learn.
- 1:13:33Um,
- 1:13:34I think only a bit over half of people
- 1:13:36have actually started the assignment, so
- 1:13:38better get serious. I guess everyone's
- 1:13:39done it through homework one,
- 1:13:41homework three,
- 1:13:42um, but not everyone's actually uploaded
- 1:13:44anything.
- 1:13:46Um, okay, anyway. So,
- 1:13:49you know, what do you have to do
- 1:13:50assignment two, exploratory analysis,
- 1:13:52find some interesting phenomena in the
- 1:13:54data. This is about
- 1:13:55post popularity over time on Reddit,
- 1:13:57which says there's certain times of day
- 1:13:59when
- 1:14:00certain kinds of posts are more likely
- 1:14:02or less likely to be successful in
- 1:14:04different communities.
- 1:14:06This second plot is a weird one that
- 1:14:08says it's this is actually a data set
- 1:14:10about reposting on Reddit rather than
- 1:14:11posting on Reddit. It kind of says that
- 1:14:13if a
- 1:14:15a post has been popular in a big
- 1:14:16community, it's very unlikely to then be
- 1:14:19popular in a small community, but you
- 1:14:22can steal content from small communities
- 1:14:23and repost it to big ones.
- 1:14:26Um, basically the the purpose of the
- 1:14:28exploratory analysis is to say, okay, if
- 1:14:31I'm building a model of reposts,
- 1:14:33it should probably have some temporal
- 1:14:35component,
- 1:14:37and it should probably have some
- 1:14:38component to do with the interaction
- 1:14:40between the two communities
- 1:14:42that that post showed up in.
- 1:14:45Um, so it's to motivate
- 1:14:47what are the
- 1:14:48modeling components that you you need to
- 1:14:51solve your particular task.
- 1:14:53So yeah, then what do you do? What's a
- 1:14:55predictive task?
- 1:14:56Most people's predictive tasks are very
- 1:14:58standard stuff, estimator rating,
- 1:15:00predict interaction,
- 1:15:01estimate the
- 1:15:03fare of a taxi cab trip.
- 1:15:06Um, so it's like a regression or a
- 1:15:07ranking task
- 1:15:09or a classification task but with some
- 1:15:12recommender systems user item
- 1:15:14interaction component.
- 1:15:16Um,
- 1:15:17talk about what you had to do to the
- 1:15:18data set. Some of these data sets are
- 1:15:20just clean, perfect entities that are
- 1:15:22given to you that you can make
- 1:15:24predictions on right away. Sometimes
- 1:15:26data sets are messy and you got to
- 1:15:27process them. What did you do? So all
- 1:15:30that analysis, all that processing, just
- 1:15:32it.
- 1:15:33Um,
- 1:15:35build some models.
- 1:15:37Uh,
- 1:15:39I would say you should at least cover
- 1:15:40models from class. If you want to go
- 1:15:42crazy and try all kinds of different
- 1:15:44models and
- 1:15:45the ones in class aren't very good,
- 1:15:47that's fine, but just make sure the ones
- 1:15:49in class are also there as a baseline
- 1:15:52so that you have at least covered course
- 1:15:53content.
- 1:15:55If you don't do anything but models from
- 1:15:56class, that's also fine. It's just it's
- 1:15:59a bit problematic when someone
- 1:16:02says, oh yes, I have this regression
- 1:16:03task from computer vision
- 1:16:05where I'm
- 1:16:07deciding what is the age of a person in
- 1:16:09an image or something.
- 1:16:11And it's like the models that are good
- 1:16:12for that task have nothing to do with
- 1:16:14this class.
- 1:16:15They're probably reusing an assignment
- 1:16:17from another class, whatever.
- 1:16:19Make sure the models in this class are
- 1:16:21appropriate. Make sure you're picking a
- 1:16:22task for which the models are
- 1:16:24appropriate.
- 1:16:25Um,
- 1:16:28talk about different models you're
- 1:16:29comparing. Um, talk about how you do
- 1:16:31feature representation and data
- 1:16:33processing.
- 1:16:34How you get the features into your
- 1:16:35model. We did, you know, we spent a
- 1:16:36whole week basically talking about
- 1:16:38feature engineering, so that should be
- 1:16:39included too.
- 1:16:40Um, all this boring modeling stuff. How
- 1:16:43did you scale things up?
- 1:16:45What did you do about overfitting? How
- 1:16:46does your regularizer work? Um, how did
- 1:16:49you validate and tune your model
- 1:16:51parameters, all that stuff? How did you
- 1:16:53deal with missing data?
- 1:16:55Um, literature. There's always related
- 1:16:58literature. Some people say, oh my
- 1:16:59problem's so unique, there's no
- 1:17:01literature to talk about. There's always
- 1:17:02something. Talk about
- 1:17:04other papers that had a similar looking
- 1:17:06task, other papers that used the same
- 1:17:07data set.
- 1:17:08Even if your data set has never been
- 1:17:10used before,
- 1:17:12there are probably other tasks that have
- 1:17:13kind of the same input output spec,
- 1:17:15right? Like you're trying to predict
- 1:17:16interactions, it doesn't matter if
- 1:17:18they're about
- 1:17:20movies or groceries or whatever.
- 1:17:23Find the most similar ideas to the
- 1:17:25things you're describing and discuss the
- 1:17:27literature.
- 1:17:28Um, and yeah, talk about your results.
- 1:17:30Talk about what worked, what didn't
- 1:17:32work, how do you interpret model
- 1:17:34parameters,
- 1:17:35what features were
- 1:17:38and you draw some conclusions.
- 1:17:40The slides have more examples, but I
- 1:17:42don't have to belabor them. So there's
- 1:17:44another worked example here about
- 1:17:47restaurant data. So this is a
- 1:17:49a data set that my lab made from from
- 1:17:52Google Maps where you have people
- 1:17:54reviewing restaurants. You know what
- 1:17:55Google Maps is.
- 1:17:57Um
- 1:17:58and saying can we extend recommender
- 1:18:00systems that say
- 1:18:03can we use geographical information? We
- 1:18:04know the location of the items and maybe
- 1:18:06the location of the users and other
- 1:18:08things as well
- 1:18:09to make the recommender system more
- 1:18:11accurate. So can you make a latent
- 1:18:13factor model more accurate
- 1:18:16for Google Maps? You have geography,
- 1:18:19you have text associated with the
- 1:18:20restaurants, you know when they open and
- 1:18:22close, all that kind of boring stuff.
- 1:18:24Um you know whether they have takeout,
- 1:18:26you know whether they have you know how
- 1:18:28many dollar signs they have.
- 1:18:31Can you use all that information to make
- 1:18:33a latent factor model more accurate?
- 1:18:35Uh several people always do literally
- 1:18:38this assignment
- 1:18:39and they come up with a different model.
- 1:18:42Um
- 1:18:43but that's like a nice pre-baked kind of
- 1:18:45assignment to do.
- 1:18:47Take one of these data sets that has
- 1:18:48lots of additional features,
- 1:18:50um build something that is more accurate
- 1:18:53than a vanilla latent factor model.
- 1:18:56Just like what I was describing in this
- 1:18:57lecture, right? How can we use the
- 1:18:58features we have in a particular data
- 1:19:00set to make things more accurate?
- 1:19:02Um
- 1:19:04yeah, another worked example about
- 1:19:05Reddit.
- 1:19:07Uh
- 1:19:09yes, the assignment is peer-graded. I
- 1:19:11have been peer-grading it since 2022. I
- 1:19:14I started peer-grading because there was
- 1:19:15this TA TA strike.
- 1:19:18Probably none of you were here back
- 1:19:19then, or it might have been your very
- 1:19:20first year, I don't know.
- 1:19:22Um
- 1:19:24so I had no TAs and we had to we had to
- 1:19:26grade all these things. It turned out
- 1:19:28that peer-grading is much better than
- 1:19:30having
- 1:19:31each TA grade 100 assignments by
- 1:19:32themselves, right?
- 1:19:34You get a lot more feedback from a a
- 1:19:36more people.
- 1:19:38Um
- 1:19:39they were a lot less frustrated than a
- 1:19:41TA
- 1:19:42reading their 90th assignment.
- 1:19:46Um,
- 1:19:47it just works better. And
- 1:19:49probably you're all nicer to each other
- 1:19:51than the TAs were being to you anyway.
- 1:19:54And the grades get delivered on time,
- 1:19:55which is more more critical.
- 1:19:57Um,
- 1:19:59how do I do this? So there are they're
- 1:20:00group assignments, and then you get a
- 1:20:02bunch of
- 1:20:03assignments to peer grade. I think it's
- 1:20:05going to be four again. You get a mark
- 1:20:07for each peer grade you do.
- 1:20:10Um,
- 1:20:13and then in practice that means you get
- 1:20:16something like eight people grading each
- 1:20:18assignment because they're group
- 1:20:19assignments and then you whatever.
- 1:20:21There's fewer assignments than there are
- 1:20:23people basically.
- 1:20:25And the grade I give you is going to be
- 1:20:27the median of peer graders' grades. The
- 1:20:30reason for using the median is so that
- 1:20:32you won't complain about outlier grades
- 1:20:35because the outliers mostly don't change
- 1:20:38the median very much, right? So
- 1:20:41if somebody
- 1:20:42just hates you, um,
- 1:20:44or hates your assignment, I should say,
- 1:20:46it's probably not going to change the
- 1:20:48median unless lots of people hate your
- 1:20:49assignment. And if you do want to
- 1:20:54dispute your grades, you need to very
- 1:20:56carefully compute what the median will
- 1:20:57be
- 1:20:59with a single grader removed.
- 1:21:01Um,
- 1:21:02most people use some incorrect
- 1:21:04computation of the median in order to do
- 1:21:05that.
- 1:21:06Uh, there's lots of examples of previous
- 1:21:08assignments in here other than that. Um,
- 1:21:10I did post on Piazza because somebody
- 1:21:12asked whether there were previous
- 1:21:13examples, and I shared the entire folder
- 1:21:15from last year. I'm happy to share it
- 1:21:17because like I said, they're all
- 1:21:18anonymous. So you can see every single
- 1:21:21assignment people submitted.
- 1:21:22These are just some examples that I I
- 1:21:24liked
- 1:21:25or maybe they're ones that generated
- 1:21:27interesting visualizations,
- 1:21:29things like
- 1:21:30taxi tips and bike durations. They they
- 1:21:33these ones are really good because they
- 1:21:35have so many different features. They
- 1:21:36have users, they have geographical
- 1:21:39information, they have temporal
- 1:21:40information. Sometimes they have they
- 1:21:42have text and
- 1:21:44somehow you've got to model all of these
- 1:21:45things together.
- 1:21:47Um,
- 1:21:48I'm about out of time. Any Any last
- 1:21:50minute questions about the assignment?
- 1:21:52At least for the moment, form a group.
- 1:21:54Other than that, I guess good luck for
- 1:21:56assignment one because it'll I think be
- 1:21:58due before we next meet.
- 1:22:01Um, okay. Have a good weekend.
- 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.