Wednesday, January 21, 2015

Reproducing Corn Kernel Space (RCKS)

The stuff on the left is from an old labmate who was visiting. I thought it needed a lifting map and a technical name. Those are baby corns on the right. You know, because it's a reproducing corn kernel space.
Old labmates can be very helpful. I'm not sure how appetizing green corn is though.

Thursday, January 15, 2015

My Review of Workshop on Algorithmic Challenges in Machine Learning 2015

Last week I had the privilege to attend the Workshop on Algorithmic Challenges in Machine Learning (2015) at UCSD. Kamalika and Shachar put together a wonderful set of speakers (PDF) who spoke on a wide range of topics including property testing, nearest neighbor, and sparse coding (and they provided free lunch all three days for a free workshop, which was a nice surprise). I won't go over all of the talks, just a couple that I enjoyed a lot.

Beyond Locality Sensitive Hashing, Piotr Indyk
Piotr talked about their recent results in nearest neighbor algorithms. He started with a nice review of the locality sensitive hashing literature, and apparently ball lattice hashing was the best up until now.

Their (Andoni, Indyk, Nguyen, and Razenshteyn) technique is to preprocess the data to remove "dense" clusters, and then to use a basic Hamming LSH on the rest. Specialized data structures are then used for the dense clusters. The clusters are translated closer to the origin to make them each sparse, and then minwise hashing is applied to each. Upon processing a query point, you see if it is in one of the dense clusters first, and then apply the appropriate subprocedure to return the answer.

He says that this is a small difference, but it allows for enough of an improvement to be significantly better. Furthermore, he talked about how the result by Andoni and Razenshteyn this year improves on this further by doing data-dependent hashing. I thought this was a nice, neat trick to attack the problem.

The Reusable Holdout: Preserving Validity in Adaptive Data, Moritz Hardt
This was probably my favorite talk out of the whole workshop. Moritz brought up Kaggle (a site where data owners can provide rewards for the best model on a dataset, and people compete for the prize by submitting models). The problem that competitors face on Kaggle is that if they're not aware of the problem, then they can overfit their model to the holdout set (a subset of the training set, also called the validation set if you're more used to that term), and do poorly on the test set.

He pointed out that this also happens when people do science ("p-hacking" is a term often used for this), when scientists repeatedly test against the same holdout set. Some proposals to combat the problem involve publishing the entire experimental plan ahead of time, but this isn't always desirable because often you want to explore different methods of obtaining results. Science is an adaptive process.

Moritz summed up overfitting with the following: overfitting is what you get when the expected loss computed over the holdout is less than the expected loss computed over the distribution. The claim is that there's a holdout that can be reused without overfitting. The key? Differential privacy. This is one of those ideas that makes you think "oh, of course" because it so elegantly addresses the problem.  (I also like this because it's one of those ideas that builds on differential privacy that has nothing to do with actual privacy.)

We need that the answer is close to the expectation, not the empirical average, or as Moritz put it, "differential privacy and accuracy on the sample implies accuracy on the distribution." He went into some specifics and an example which I won't get into here, but you should check out the paper.

Other talks
While I'm not going to go into much detail on the other talks, I'll say that the quality was pretty high. I could briefly describe them here but I'll let you browse the abstracts that I linked above. It was definitely worth the trip for a few days.

Wednesday, March 12, 2014

Status Update

Time to break my silence. Well, time to get around to posting something on my blog. There are several things that have happened since the last time I posted, in no particular order.

We got a paper into AISTATS 2014. Our paper, "A Geometric Algorithm for Scalable Multiple Kernel Learning" that I wrote with Suresh Venkatasubramanian, Avishek Saha, and Parasaran Raman will have a poster at AISTATS in Reykjavik. This is my first big conference paper where I'm "first author" (and also literally the first author, since my last name comes first in the alphabet). I'll post an arXiv version very soon and it will get a link here.

My student coauthors are no longer students. Avishek graduated some time ago and Parasaran graduated in December. Both are now at Yahoo. I'm now the most senior PhD student in the lab and I'm feeling the pressure.


I did an internship at Google last Summer. I may have talked about my age before, but it's no big secret -- I had my 37th birthday while I was at my internship. Since the movie The Internship came out last Summer, I of course got the receiving end of the jokes since I'm not that far behind Vince Vaughn chronologically. I know I'm not really "supposed" to be doing an internship "at my age," but I don't really care because I feel like I made the right decision to reboot my career.
 
I also did an internship in 2010, and my age kind of made me feel isolated. This time it was different. It was really amusing to talk to the twentysomethings and laugh when I started putting things in perspective for them. I got over the fact that the vast majority a large fraction of PhD students were born in the '90s. They haven't had a chance to feel old when the kids born in 2000 are going to be college freshmen in 5 years. It's delightful to see their reactions.

I didn't just poke fun at the youthful, I also got some work done. My work at Google NYC was in burst detection in topic streams, and it was a lot of fun. My host and I are orbiting around a paper for the work as well.

I interviewed at Google in February for a full-time position. This was my "conversion" interview related to the internship above (to "convert" from an intern to a full-timer). I believe that it went well and I've heard the same from my sources, but I have yet to hear a final decision. Fingers are crossed though.


Monday, May 13, 2013

Things to Remember about That Thing You’re Trying to Create

(My view of the creative process)
  1. The perfect is the enemy of the good.
  2. For a work to be good you have to start it.
  3. Everything has parts. To create a whole you must identify its parts.
  4. Write down the parts, even if you don't know about them.
  5. If you don't know about a part, research it. Then revise that part.
  6. Parts have parts. Go back to 4.
  7. No more parts? Are you sure? Go back to 4.
  8. Why this work? That's a part, go back to 4.
  9. Who else did work like this? That's a part, go back to 4.
  10. Does your work "work"? How do you prove it? That's a part, go back to 4.
  11. Pick the next part and start making it.
  12. If you hate the current part go back to 11.
  13. You hate all the parts? Too bad. Finish.
  14. Go back to 11 until you're done with all the parts.
  15. Ok, now you can make it good.
  16. You can't skip to 15. Go back to 11.
  17. All done? Make it awesome. Make it tell a story.
  18. You think it's awesome? No. It sucks. Show it to someone else.
  19. Did you listen to them? Good. Fix it. Go back to 18.
  20. Do you hate it yet? Yes? It's ready.

Tuesday, February 19, 2013

Research Retrospective

I've been quiet for a while on this blog simply because of work and other things. I tried to keep up with a couple online courses, like the Data Analysis course by Jeff Leek, and I've tried to keep an eye on John Langford & Yann LeCun's class, but Suresh's Computational Geometry course has kept me as busy as I'd like while working on research.

Research-wise, I've been prepping our submission for ICML Cycle III. Now that that's over I have some time to worry about other things, like applying and interviewing for internships.

With the breathing room, I got thinking about something that I enjoy doing now that I found tedious at the beginning of my research career. So here's a little retrospective from my 4th year, looking back at my first:

1st year: No clue how to form a research question
4th year: Able to weed out most of the bad questions myself

I started out thinking about research questions just as "stuff that I thought would be neat if it were true." This isn't the wording I'd have used at the time, but I've developed more experience about how to formulate a research question. Thoughts like

  • "would anyone give a crap?"
  • "someone surely thought of this before -- yep, they sure did," 
  • "OK, so someone thought of this, did they think about this aspect?"
  • "so they didn't think of that, how trivial is it for me to test/find out?"
are all thoughts that I wasn't able to form myself a few years ago. I've still got a ways to go on this front, but I'm able to ignore my own dumb questions. 

1st year: Tracking down a body of work is tedious but necessary
4th year: Tracking down a body of work is rewarding and enjoyable

By "tracking down a body of work" I mean taking the research question that you've vetted and finding all the prior relevant work, digging through citations, doing web searches, etc. I was quite surprised to realize yesterday that I enjoy it. When I first really started research I would avoid papers in favor of presentations (I know, I know). Then I started favoring the papers (reluctantly) and would plod through them.

Perhaps because I now know how to read papers, I can see the tendrils going through the papers and see how the authors, the conferences/pubs, and the work link together in time and space, like those slow-motion videos of a lightning bolt feeling its way to the ground. It sounds like I read too much sci-fi, but if you get it, you know what I mean. The endeavor is much more exciting and rewarding now. A researcher could only come to that point with experience.

1st year: Analyzing a body of work is rewarding and enjoyable
4th year: Analyzing a body of work is rewarding and enjoyable -- but I do it faster now

Analysis, and by that I mean poring over the work and figuring out what's going on, has been my strong suit. I was never a "hacker" in the sense of throwing code together and seeing if it'll work. I was always the kind of coder that figured out what needed to be done, nearly completely, and coded it up.

I think this mostly came from my background of backporting software and writing cross-language code. Both of those activities require you to know every line of code that you work with and what those lines are supposed to do. That, and probably my bachelor's in math (which also helps with theory CS and ML), equipped me to really understand what I was reading, given enough time. And I always loved it. I still do.

The difference now, as I mentioned before, is that I know how to read papers better.  So that process happens a lot faster. It takes me many more papers to become fatigued, which means that I understand the underlying context better.

1st year: Didn't know the process
4th year: Know the process

The rest of research is pretty much just practice (although I have a nagging feeling that I missed something). Any student can work on a problem, it's just a matter of how much padding you need. It's pretty clear in retrospect that a great deal of what your advisor does is to check the padding and take it off when you're ready. Writing, submitting, checking, revising, communicating, speaking, collaborating, all that good stuff comes with practice.

There's topics that I'm omitting on purpose, like grant writing, because I doubt that I'll ever have a lot of exposure to them. But feel free to talk about your experiences in the comments.

Monday, January 7, 2013

Large Scale Machine Learning Class

+Yann LeCun and John Langford are teaching a Large Scale Machine Learning class this semester at NYU:

Yann LeCun and I are coteaching a class on Large Scale Machine Learning starting late January at NYU. This class will cover many tricks to get machine learning working well on datasets with many features, examples, and classes, along with several elements of deep learning and support systems enabling the previous.

John says that this isn't a MOOC, but that the notes and lectures are going to be made available online:

We plan to videotape lectures and put them (as well as slides) online, but this is not a MOOC in the sense of online grading and class certificates. I’d prefer that it was, but there are two obstacles: NYU is still figuring out what to do as a University here, and this is not a class that has ever been taught before. Turning previous tutorials and class fragments into coherent subject matter for the 50 students we can support at NYU will be pretty challenging as is. My preference, however, is to enable external participation where it’s easily possible. 
Suggestions or thoughts on the class are welcome :-)

Saturday, December 22, 2012

Data Courses on Coursera

The desire to gain expertise in big data doesn't show any signs of going away, nor is there any slow in the flow of training on the topic: there's three courses on Coursera all starting at about the same time:

They all start next month, January 2nd, 7th, and 22nd respectively. The first looks like an intro course covering basic R programming and analysis basics, and lasts 4 weeks. The other two look like more in-depth analysis training and last 10 and 8 weeks.

Is anyone planning to take any of these courses? Which one?

Monday, December 17, 2012

Adam Coates: Demystifying UFL

I thought this was a really great talk by Adam Coates. I really like the interpretation of finding features as just another form of clustering.


H/T Derk Mus (G+ post).

Pop Quiz Answer, and Don't Trust the Program

Thursday I wrote a "pop quiz" post about a simple optimization that appears to be convex but isn't. I like this example because it's a clear example of why you shouldn't just trust your encoding of the program.

So in review, the problem is:

Given a set of points $x_i$, find a linear discriminator $w$ and a bias $b$ so that all of the points $x_i$ are on the "positive" side of the hyperplane described by $w$ and $b$. Easy enough, but also make sure that $b$ is as large as possible (in the signed sense). In other words,
and the program is:
$$\max b \quad\textrm{s.t. }\|w\|^2 \leq 1\textrm{ and }w'x_i \geq b.$$
So let's break down the program. Basically it's a dualization of the original problem. We're treating hyperplanes as points and points as linear operators. Let's assume that the $x_i$ are two-dimensional, so the $w$ and $b$ space is three-dimensional. Let's stand on the $b=0$ plane and let $b$ be our up-down direction.

The $\|w\|^2 \leq 1$ constraint basically tells us that the solutions are in a cylinder around the origin that extends up and down infinitely. Let's also assume that the cylinder is made of an easily-cuttable material like bamboo or cheese (bamboo will probably hold its shape better).

Let's start with one point, $x_1$. The $w'x_1 \geq b$ constraint basically says, "turn to look at the point through the bamboo and cut the stalk with an upward motion, keeping everything below." What you're left with is a shape much like a hypodermic needle. The program says to find the highest $b$, so the point of the whittled stalk will be the point we care about. The corresponding $w$ points in the direction of $x_1$.

Every point we add means another bit at the top that we lop off. Also, farther points will yield steeper cuts while closer points will yield shallower cuts. A shallow cut beats a steep cut (because it will cut into the part left by the steep cut), so closer points to the origin will be more likely to have a hyperplane up against them. This makes sense.

If you do this for all the points, then the highest point left on the stalk will correspond to the hyperplane solution. Easy, especially when all your points are on one side of the stalk. Now what if your points surround the stalk? Then your stalk looks more like a pencil and less like a hypodermic needle.

What does the pencil point look like though? One important observation to make is that all of the cuts go through the origin. That is, $\textbf{0}'x_i \geq 0$ is true for every $x_i$. That means that the pencil point has to be at the origin when the points surround the origin. So the solution in that case is the hyperplane $w = 0$ and $b=0$. The only problem is that that isn't a hyperplane. It's a degenerate solution.

The parameter space has a hole drilled through it, along the line $w = 0$. This makes that nice, convex cylinder non-convex. If all of your points are on one side of a hyperplane going through the origin, then you're fine; you can cut the parameter space on the other side away, leaving a convex search space. The solution is guaranteed to lie on the $\|w\|^2 = 1$ surface too, so you don't have to play any games with scaling.

If the points don't lie on one side of the origin though, then you simply don't have a convex program anymore, despite your steadfast insistence that you do. Take-home lesson: make sure you know where all the holes in your space are. Convex domains don't like holes.

Thursday, December 13, 2012

Pop Quiz

Yesterday I was chatting with Professor 1 about some research when Professor 2 came in very excitedly and described a problem that he wanted to solve with P1's help. I'm simplifying this a bit, but the problem is the same:

Given a set of points $x_i$, find a linear discriminator $w$ and a bias $b$ so that all of the points $x_i$ are on the "positive" side of the hyperplane described by $w$ and $b$. Easy enough, but also make sure that $b$ is as large as possible (in the signed sense). In other words,

$$\max b \quad\textrm{s.t. }\|w\|^2 \leq 1\textrm{ and }w'x_i \geq b.$$

P2 and I were convinced by the formulation that this is a convex program and should be straightforward to solve.

P1 says nope. Not a convex problem in general. P1 is correct. What's the exception? And why isn't the problem convex in this case?

P.S. P1, you are not allowed to spoil the solution!

Testing MathJax

$$ \log\sum_{i=1}^n\exp(f(x_i)) $$ \[ \log\sum_{i=1}^n\exp(f(x_i)) \] And inline: \( \log\sum_{i=1}^n\exp(f(x_i)) \) and $ \log\sum_{i=1}^n\exp(f(x_i)) $

Wednesday, December 12, 2012

Book: Category Theory by Steve Awodey

Programming Language researchers already know a bunch of basic category theory, but the rest of us Computer Scientists tend to be out of the loop when it comes to this basic language of math. I've been reticent to take any more math courses because of my near-complete lack of knowledge of the topic.

A colleague of mine recently introduced me to Category Theory by Steve Awodey (at CMU). A computer scientist like myself, he was frustrated with Categories for the Working Mathematician by Saunders Mac Lane (I also found CftWM to be impenetrable), and found Category Theory to be a much more digestible reference. So far it looks pretty good and is very readable. It's aimed at non-mathematicians, which certainly helps.

Has anyone else read this book and found it useful?

Tuesday, December 11, 2012

The Big NIPS Post

2012 was my first year at NIPS, and I'm still getting my legs when it comes to ML, so my impressions are very general. For other takes on NIPS, see Hal Daume's post (a veteran NIPS-goer), and my advisor Suresh Venkatasubramanian's post (a newbie to NIPS like myself).

Monday

Monday is tutorial day at NIPS, and I really only got something that I wanted out of one tutorial, by Joel Tropp. Joel did a great presentation on random matrices and distilled the very confusing body of work out there to a nice, clean idea. Basically, break random matrices down into a sum of simpler, independent random matrices, then apply concentration bounds on the sum. He worked through several examples and the ideas were easy to understand.

Tuesday

Scott Aaronson's talk was great, not surprisingly. Scott talked about "Quantum Information and the Brain," such as what QC's will be good at, and whether the human brain is or isn't probably a quantum computer. Scott thinks that the most likely place that QC's will be employed, when we get them working at a large enough scale to be useful, is in simulating QM, and probably not as much in other applications. He underscored the fact that most people have a fundamental misunderstanding of how QC's work, and that most QC theorists think that NP is not a subset of BQP (the complexity class that covers quantum algorithms). 

Scott doesn't believe that the human brain is a QC, and gave one of the most compelling arguments in my mind that it isn't. That is, we know what QC's are good at: factoring integers, discrete logarithms, and simulating QM. There isn't any evidence to date that humans are any good at any of these things. He says that the idea that the brain might be a QC is usually the product of thinking, "brain is mysterious, QM is mysterious, therefore brain = QC." 

I tend to agree with him, and it seems that the human brain is an exceptionally good pattern recognizer and identity factory (read "self-deluder"), but not really a great general-purpose computer, especially a quantum one.

Wednesday & Thursday

I'm going to freely admit that I didn't get much out of these days. As I get more accustomed to the material, I'll probably have a lot more to explore. There were a lot of posters to look at, and it was cool to see some kernel methods, metric learning, even Riemannian techniques.

Friday

Friday and Saturday are the workshop days, and I felt like I got a lot out of these. I visited the two social network workshops, and there was a lot of fun stuff to look at. The invited speakers were all great, and it was interesting to see more algorithms-related stuff going on along with ML.

Saturday

Saturday was all about the optimization workshop for me. Pablo Parillo and Francis Bach both had great talks, and this is where I presented our work (arXiv) and poster.  We got a lot of great feedback from the audience and a lot of directions to follow.

General Impressions

Primary impression: NIPS is exhausting! There's tons of stuff to look at and do. This year was definitely all about deep learning, so I'm going to make sure I know the basics before next year. 

Venue: They can definitely do better than S. Lake Tahoe CA/Stateline NV. The conference was at Harvey's and Harrah's on the NV side, and you're basically stuck at these casinos and the surrounding blocks if you don't want to fork out a bunch for a cab. 

There's not a whole lot of options around for food, but definitely go try Super Taco about a block from Harvey's. Great tortas and a really, really nice change from the casino options -- the owner is a great guy too (only outdoor seating, but a quick walk back to Harvey's). Don't go to the Cabo Wabo in Harvey's. It's a very pathetic tribute to Sammy Hagar and has overpriced, mediocre-to-crappy food. If you're into the crappy-coffee-steak-and-eggs thing, there's a diner in the basement of Harrah's underneath the conference floor.

I didn't ski, so you'll have to ask someone else about that. I was surprised that anyone was skiing on the rocks and ice I saw on the mountains, but I'm from Utah, so I guess I have a higher standard. 

Biggest gripe about the venue: you're stuck. It's really not worth it to rent a car, because you'd have to chain your tires to get over the mountains, and I have no idea what options Reno is going to have for rentals. It's not a big city. So you have to take a shuttle to get between Reno and Tahoe, and that takes as long or longer than the leg between Salt Lake and Reno. You also have to make that extra reservation, and account for about 2 extra hours to get to the airport.

Facilities: Nice rooms, but jeez, gimme more outlets! My con roomie and I were stuck in weird spots in the room to get power. Bring an extension cord or power strip. They had an old buffet room converted into the "Internet Cafe." The wifi reception was the best in this area and they had tables with lots of power strips, which was nice. This was the best alternative to getting reception in the hotel room. We stayed at Harvey's, and the beds, chairs, bathroom, and shower were all good. Comfy place to crash. HD televisions but no HD cable.

Like Hal said in his post, the walls were like paper. This made it really hard to listen to a quiet invited speaker while there was conversation in the hallways or a loud speaker in the next room. Also not a lot of ventilation for crowded rooms.

Conclusion

Overall, I definitely wouldn't mind coming back to NIPS, but I look forward to when they move the venue.  I also don't know if I have the energy for the whole conference. It's big!

Monday, December 10, 2012

Blog Intro

Hi, everyone. This is a new blog, and as of right now I plan to write about topics in machine learning and algorithms having to do with kernels and related technologies (MKL for example, or other technologies that touch on kernels, like representation learning).  I certainly don't know everything about these technologies, and as I learn about them I'll try to write a post here.  This will mostly be a technical blog, but I may post every now and again on topics that relate to the job market, to science policy, or other loosely-related items.

Now that that's out of the way, I want to write a quick introduction about myself. I'm currently a PhD student in computing at the University of Utah. My advisor, Suresh Venkatasubramanian, is part of the Data Group at the School of Computing, where we meet weekly to talk about big data, databases, algorithms, high-dimensional geometry, machine learning, and other topics related to data. My interests were initially in geometry and algorithms, but they've slowly moved over to machine learning and optimization. Because of my training though, I'm still interested in geometric interpretations of machine learning.

That's the dry version. Really, I love matrices and matrix math, so I like machine learning and optimization (arXiv version) a lot. When I read about a graph, I'm always a lot more interested in the adjacency matrix or the Laplacian or its spectrum than I am in the combinatorics. When I was working on the space of positive definite matrices, I was way more interested in the algebraic structure than I was in the points.  I like computing Lagrangians for some weird reason and I like hearing about neat matrix tricks, especially if they're easy to understand.

Subscribe to the feed, I'll try to keep you interested in the new stuff I learn about.