Better HN
topnewbestaskshowjobs
Log inSign up

bertday

270 karma · joined May 29, 2021 (5y ago) · 277 submissions

Submissions

comment 4y ago · link · parent

It’s fine when the library is a tight abstraction. Unfortunately, ML libraries are leaky.

Example: take a classification model and change the output dimensions without understanding the model.

comment 4y ago · link · parent

What are some of the things on the roadmap for the platform? Any immediate plans to close the command-line gap for TPU utilization, etc.?

My overall impression is TPUs are pretty awesome but the software stack is still a bit hard to use compared to mature GPU tools. I’d imagine it’s pretty hard for inexperienced users to use them.

comment 4y ago · link · parent

I make espresso, too. The problem is the espresso machine cost and quality impact the final product significantly. A high-ish grade machine is $700 or more. You can froth milk with less, but the coffee extraction usually is subpar. And actually, people who are snobby about espresso roast their own beans so it’s hardly comparable in effort. Espresso is basically the hot-rod of coffee.

comment 4y ago · link · parent

As another commenter said, if you don’t care for quality, you can get pre-ground. Then, you just boil water and brew, which is a few cups of coffee, so potentially less amortized work.

Cleanup is fair but it’s on the order of putting your hands in the grounds and throwing them in the trash. I suspect people think machines are easier because they don’t mind mold or scale building in their unclean tank.

comment 4y ago · link · parent

For coffee: French press + grinder is straightforward and has little maintenance. Machines have to be descaled.

comment 4y ago · link · parent

I’d say this goes with letters of recommendation, too.

comment 4y ago · link · parent

Yeah but that requires knowing control theory rather than “learning” it.

Control theory is better if you know what you’re doing. ML is technical debt for sure.

comment 4y ago · link · parent

You should cross-reference the author’s alias with the NN512 web-page.

comment 4y ago · link · parent

Tin is normal (and also the reason the loaf is rectangular with a mushroom top rather than round): https://www.kingarthurbaking.com/recipes/classic-sandwich-br...

For batter vs. dough: yes, they are not the same, but adding any fat to dough inhibits glutten (e.g., https://cooking.stackexchange.com/questions/36267/how-does-f...), which is why sandwich bread is soft and spongy. It may not pour, but neither does muffin batter or brownies, for example. My point is there is a whole spectrum for gluten formation.

Compare the cake recipe https://www.kingarthurbaking.com/recipes/classic-birthday-ca... to the bread recipe above. The main difference is that butter is added along with eggs, and the leavening is different. Artisan bread only has the 4 ingredients, sandwich bread adds sugar, milk, and oil, and cake changes leavening and adds eggs/butter. As you go up the spectrum, you are intentionally avoiding strong gluten development, resulting in smaller holes and softer texture. See challah bread for another data point of bread with eggs+oil https://www.kingarthurbaking.com/recipes/classic-challah-rec.... You can also make the gluten weak by using something like 100% rye, which has to be baked in the same tin (though that would have a harder crust).

comment 4y ago · link · parent

If you make artisan bread with sourdough, it can easily last 3-4 days. Mine don’t grow mold until 7-9 days.

comment 4y ago · link · parent

There is “artisan” bread, made by hand, which is the round kind. Then there is “sandwich bread”, which is the rectangular kind.

Ingredients: Artisan bread is usually just flour, water, salt, yeast (sourdough is just flour and water, too). Sandwich bread can include milk or other fats to make it softer and is more of a “cake”. In industrial settings, there are a lot of preservatives included in the sandwich bread.

Mixing: Artisan bread is mixed by hand. Sandwich bread is mixed in a mixer. The former thus has less worked gluten.

Shaping: Artisan bread is made into a ball (similar to “spinning” pizza dough). Sandwich bread is poured into a tin and requires no shaping.

Bake: Artisan bread is baked at high heat, around 500F, in steam. Sandwich bread is baked in a specific tin at lower heat, like a cake.

As you can see, the sandwich bread is easily scalable and, being essentially a cake, is preferred by many. A loaf of sandwich bread is around $1-$2 where an artisan bread is like 4x more.

Also, there are flours, like rye, which have to be made with sandwich-type methods. These flours don’t have enough gluten to hold shape on their own.

comment 4y ago · link · parent

The API of Tensorflow and PyTorch is quite large. Even Tensorflow has a dialect specifically for TPU, so the notion of accelerator independence (especially when considering performance) has not been realized yet (though this is still a work in progress).

Anyway, how could you reuse your code wholesale when one of the most common operations is calling “.cuda()” on a tensor?

comment 4y ago · link · parent

There isn’t much theory on why it works in the nonconvex case. You can similarly make discrete heuristic algorithms for sorting, etc. with no guarantees.

Anyway, as nonconvex models are usually stacked convex models, you can find works that incorporate these submodular functions as neural network layers.

comment 4y ago · link · parent

Even the tokenization is wonky. Imagine if you had no concept of math characters and instead has a lookup table of common-ngrams (BPE encoding). For example, the binary addition function “a+b” may be tokenized as a unary “3+b” because “3+b” occurs commonly. That tokenization is vastly different from “3.00000001+b”. GPT has to invert this tokenization artifact with finite training data.

comment 4y ago · link · parent

The greedy approach has an 1-1/e type of approximatation. You basically prove that the problem is in the class and then solve it greedily. It’s not much different than proving the problem is convex and then using gradient descent.

comment 4y ago · link · parent

There are discrete forms of “gradients” which generalize classical CS concepts. Submodular optimization, for example, covers many algorithms that search for optimal configurations of discrete sets, and it does so by arguments that are analogous to convex optimization.

comment 4y ago · link · parent

One factor for why is that bringing bad news may poorly reflect on the organization, and therefore the person’s career.

comment 4y ago · link · parent

That’s fine until you have to store the whole world’s cat videos on Youtube at minimal cost.

comment 4y ago · link · parent

In between those, VGG was parameterized by layers, though severely limited in scope (16-19 layers).

comment 4y ago · link · parent

I think this is more of a “reset jetlag” observation than one about nutrition. Food timings can affect circadian rhythms.

For example, this article discusses fasting to reset jet lag https://www.health.harvard.edu/blog/resetting-your-circadian...

comment 4y ago · link · parent

One guess: if the reliability of Intel is considered a national security issue, they may get funding specifically to be more reliable to offset these costs.

comment 4y ago · link · parent

FOSS eliminates more uncertainty than price “supply” uncertainty. Since it’s free, you don’t have to know the “demand” value it provides to make a good purchase. Furthermore, you can always add features you need.

All of this uncertainty is easy to deal with if you have a nice API. Swapping out databases, for example, is (in theory) near-zero cost. If the database vendor tells you they are charging more, it’s somewhat simple to switch (unlike, say, ad-hoc logging).

comment 4y ago · link · parent

Yes, and the professors are also part of the government and financial success of a research-based school. Undergraduate students are perhaps only 50% of the school’s priorities.

comment 4y ago · link · parent

There are a lot of older (and otherwise susceptible) people on campus. Regardless, no they can’t do that because if something did happen, they’d get blasted.

It’s the same with anything safety-related, really. Driving a car is super unsafe, but rather than banning cars, you wear a seatbelt.

comment 4y ago · link · parent

The vaccine doesn’t prevent infection; it mainly prevents death. The other way to interpret this is that they do not want to be responsible for deaths, but are fine with low-risk infections.

I anecdotally know people who had a booster and were still subsequently infected. Packing 200 people in a room over 100 days and these rare cases will happen.

comment 4y ago · link · parent

You missed the most fun option: pair them up with a problem that leads to nowhere!

comment 4y ago · link · parent

Ah well that requires a lot of manual inspection. Usually there isn’t enough attention span to do that in practice.

comment 4y ago · link · parent

What if there are many alternatives? Each implementation would be a challenge to optimize fairly. You’d be forced to have some open competition to make it convincing.

comment 4y ago · link · parent

I agree with you, but at the same time, I think it’s easy to dismiss this whole line of thought as quacky.

It’s very hard to argue with tables and plots.

Economics has a lot of mathematical work for similar “hard science” reasons.

comment 4y ago · link · parent

One of the quagmires with systems research is that it makes “stuff” (performance or usability) easier for the user. Research is supposed to be “scientific”, so you need ample evidence of those claims. This is difficult to obtain for very weird systems because usability is in human-computer interaction, which is hard to measure. If it’s so weird to not be portable and you have not measured humans, it must be impractical. That’s the line of thought that I encounter, at least.

The much more publishable paper is on fixing the existing interface and changing the implementation. Look at a paper like Tensorflow; the value add for users is huge, but at the end of the day all the results are on comparing to highly tuned assembly programming. There is some notion that each of the ~millions of ML practitioners that use TF would only use it if it had very good performance. Reality is that most practitioners just want a working implementation. In Pike’s slides, most users are “grandma”, which, in this case, severely distorts relevant metrics.

Also, CS tends to dislike revisiting problems and is seasonal in research topics (see the rise and fall of AI and Big Data frameworks). I’d guess most of this “hot topics” agenda is motivated by possible industrial use. The industrial utility of very new things is near zero (basically what the slides say). You basically see research doing a “I can do that, too” whenever something interesting hits the market.

I think an interesting thought experiment is to take something like databases or distributed systems and simulate inventing them today. It’s unclear how you’d argue for such big ideas. Afterall, you can write database queries by hand and buy bigger computers.

1
456
10