Better HN
topnewbestaskshowjobs
Log inSign up

PartiallyTyped

2,940 karma · joined Oct 16, 2020 (6y ago) · 2,890 submissions

me [at] [$handle].dev

----------------------------------------------------

Submissions

comment 3y ago · link · parent

> I’ve learned to be less surprised by is how often simply adding an element of randomness to a difficult problem can sometimes give you results comparable to a 10- or 100-times more complicated solution

We tend to use "Las Vegas" and "Monte Carlo" to classify randomised algorithms, where the former means using randomness to get a speedup, and the latter means using randomness to get an approximately correct solution.

An example of the former is QuickSort, where we shuffle the elements, giving the Expected nlogn time complexity* . An example of the latter is bloom filters. Other examples are found all over approximation algorithms like taking random cuts off graphs.

* Assuming something like Yates shuffling with O(N) complexity is used.

comment 3y ago · link · parent

They can also "see" much further than the average human can [1].

The only way I could imagine that we are superior to phone cameras is stabilisation, something that could be resolved with vertical integration that informs the sensors and image processing units about forces being applied to the vehicle (though this is coming from somebody outside the field so take it with many grains of salt).

[1] https://www.youtube.com/watch?v=kKMBx6x-lOI

comment 3y ago · link · parent

If you are referring to humans, we have a couple orders of magnitude more connections, our neurons can achieve the same functions at 1 order of magnitude fewer numbers, and our brain has better inductive biases.

comment 3y ago · link · parent

And Bitwarden recently came out and reaffirmed that the standard version does not sell user data of any kind and will remain free.

It’s also entirely possible to run your own instance / server of Bitwarden.

comment 3y ago · link · parent

Check out James Hoffmann on youtube [1]!

[1] https://www.youtube.com/@jameshoffmann

comment 3y ago · link · parent

I was making the claim that creators being more interested in shorts due to the higher return would actually be good for Google.

I do agree on the criticism of the format, plus the fact that I can't seem to scroll and the repetition are annoying to say the least.

comment 3y ago · link · parent

> and nobody cares about Shorts

Not creators though. Shorts give more revenue to the creators than TikTok equivalent.

Personally, I prefer shorts, simply because I don't have to download yet another app. Don't get me wrong. I am not searching for them, but if something interesting shows up, I will watch it.

comment 3y ago · link · parent

> software actually becoming less efficient?

I'd argue that software is becoming worse in some ways. It seems that the acceptable tolerance is _very_ low these days, with most people are just shrugging issues off.

Personally, I find this talk by Jonathan Blow to be rather inspiring:

https://www.youtube.com/watch?v=pW-SOdj4Kkk

As for software becoming less efficient specifically, I'd say that it is, for example, relying on microservices for everything is probably not a good idea for most companies. Not everyone is AWS, nor do they need to be.

comment 3y ago · link · parent

The sudden - N votes after responding to sibling comment without any comments below this one suggest that I hit some nerves.

comment 3y ago · link · parent

The fact that I can’t tell whether this is intentionally ironic to make a joke about the situation, or intended to argue is a testament to the issue.

After reading some of your other comments, I’d lean towards the latter.

I’d point out that nowhere did I imply about needing a ministry of truth, I just want better from humanity.

comment 3y ago · link · parent

I am surprised that this didn’t stay on the front page.

comment 3y ago · link · parent

I'd go as far as to claim that creation of such memes is downright dangerous [1].

Discourse that sways the masses is not long conversations and steel-person arguments, it is not thorough analysis, nor does it argue for causal relationships in complex systems.

Discourse for the masses has devolved to soundbites, straw-person arguments that appeal to prejudices (via cognitive shortcuts like confirmation bias), thinly hidden behind claims such as JAQing (Just Asking Questions)[2], (meta|post)-irony [3,4,5] and out of context snippets.

The problem is, we can't spend all of our time doing analysis of the context and intentions as that is both wasteful, and tiresome, nor can we expect the average person to commit such effort.

To see some proof of this, observe the rise of right wing populism, where politicians are looking for anyone (else) to blame without having an actual policy, or if they do, it is regressive and causes harm.

Don't get me wrong, i am not arguing that the average person can't see what's happening, but rather that we are constantly bombarded by them and so much so that filtering through not only becomes an effort, but also influences our behaviour even if we can't observe or identify the change.

[1] https://home-affairs.ec.europa.eu/networks/radicalisation-aw...

[2] https://rationalwiki.org/wiki/Just_asking_questions

[3] https://rationalwiki.org/wiki/Poe's_Law

[4] https://en.wikipedia.org/wiki/Post-irony

[4] https://en.wikipedia.org/wiki/Post-irony

[5] https://www.youtube.com/watch?v=nsuSveDAlpI

comment 3y ago · link · parent

This does not compute.

To generate more, you need to interact with an environment, and you also need an objective function. If we could magically generate more textual data, then we have a language model already and don't need to train another language model.

You can't bootstrap a model for language synthesis unless you give it access to the internet to interact with users, at which point ... you have a Tay [1]

[1] https://en.wikipedia.org/wiki/Tay_(bot)

comment 3y ago · link · parent

Those are all good points that I hadn't considered.

The idea behind microservices is separation of concerns with horizontal scalability. The microservices should be independent enough that it's possible to test the integration in stages without bringing the whole system down.

My team relies on services offered by cloud providers, we are just composing them together, which means that we don't have to create userpools for example.

comment 3y ago · link · parent

It's not that the parents are exploiting their children to fund their lifestyles, it's that they really have little to no income because people are living on poverty.

The government is not working for the average person, and it is beyond me why so many people in England still vote for Torries after so many years of ineptitude on public display.

comment 3y ago · link · parent

You and I are two datapoints. As we speak, there are millions of kids in UK without enough to eat. UK is a first world country, and this should not be happening.

comment 3y ago · link · parent

No human can ever stand up to stockfish, and yet people like Magnus still play the game, and this has been one of the best years in chess.

There’s already so many things to learn and understand that even if I could devote my life to learning, it won’t be enough. Heck, even if we solved all the big problems in math, a couple of lifetimes would still not be enough to understand them, and that’s just one field.

I can order takeout, but I prefer to cook in because I enjoy the process.

We have experiences to live through, people to share them with, and feelings to feel.

comment 3y ago · link · parent

I saw a great expression on this, it goes along the lines of:

I code for free, I am just paid to deal with the business side of things.

comment 3y ago · link · parent

We are already there.

comment 3y ago · link · parent

I did say that the networks are okay. In fact, I am arguing that the networks are even overcompensating for the weakness of optimisers. Neural nets are great even given that they are differentiable and we can propagate gradients through them without affecting the parameters.

I don’t think that this reply takes into consideration just how inefficient RL and the likes are. In fact, RL is so inefficient that current SOTA in RL is … causal transformers that perform in-context learning without gradient updates.

Depending on the approach one takes with RL, be it policy gradients or value networks, it still relies on gradient descent (and backprop).

Policy gradients are just increasing the likelihood of useful actions given the current state. It’s a likelihood model increasing probabilities based on observed random walks.

Value networks are even worse because one needs to derive not only the quality of the behaviour but also select an action.

Sure enough, alternative methods exist such as model based RL, etc, and for example ChatGPT use RL to train some value functions and learn how to rank options, but all of these rely on gradient descent.

Gradient descent, especially stochastic, is just garbage compared to stuff that we have for fixed functions that are not very expensive to evaluate.

With stochastic gradient descent, your loss landscape depends on the example or mini batch, so a way to think about it is that the landscape is a linear combination of all the training examples, but at any time you observe only some of them and cope that the gradient doesn’t mess up too bad.

But in general gradient descent shows linear convergence rate (cf Nocedal et al Numerical Opt, or Boyd and Vanderberghe’s proof where they bound the improvement of the iterates), and that’s a best case scenario (meaning non stochastic, non partial).

Second order methods can get quadratic convergence rate but they are prohibitly expensive for large models, or require hessians (good luck lol).

None of these though address limitations imposed by loss functions, eg needing exponentially higher values to increase a prediction optimised by cross entropy (see the logarithm). Nor do they address the bound on the information that we have about the minima.

So needing exponentially more steps (assuming each update is fixed in length) while relying on linear convergence is … problematic to say the list

comment 3y ago · link · parent

I’d add that everything is a micro service - usually that is - which simplifies the process of contributing.

comment 3y ago · link · parent

> Anyway, residual connections in NNs as well as distillation being only a 1% hit to performance imply our models are way too big.

I disagree with the conclusion.

It indicates that our optimisers are just not good enough, likely because gradient descent is just weak.

The argument for residual connections is that we can create a nested family of models which enables expressing more models, but also embedding the smaller ones into them.

The smaller models may be retrieved if our model learns to produce the the identity function at later layers.

The problem though is that that is very difficult, meaning that our optimisers are simply not good enough at constructing identify functions. With the residual layers, we can embed the identity function into the structure of the model, and we now need to learn to map to 0 (since a residual is f(x) = x+g(x)), we need only to learn g(x)=0).

As for our optimisers being bad, the argument is that with an overparameterised network, there is always a descent direction, but we land on local minima that are very close to the global one. The descend direction may exist in the batch, but when considering all the batches, we are at a local minimum.

We can find many such local minima via certain symmetries.

The general problem however is that even with the full dataset, we can only make local improvements in the landscape.

Thus, it’s that the better models are embedded within the larger ones, and more parameters enable us to find them because of nested families, symmetries, and because of always having a descent direction.

comment 3y ago · link · parent

There is a mountain of difference between:

We did not have good alternatives, until we did; and

We suppressed progress, had people killed, and squashed all attempts at public ownership of the goods, launched defamation campaigns, buried people in lawsuits, had them locked in their homes or jail for no reason other than being a block at corporate earnings.

If you have to slave away your life to pay for access to education, you clearly don’t have access to it, you are paying with your life for it.

What wall street and the rich are asking for is absurd. Gains on top of gains, chasing growth on rate of growth.

People in places of influence care about creating more wealth for themselves. They clearly don’t care about the average person because they are not the average person.

lets assume for a moment that we don’t have access to space, we are confined on earth, and have finite resources to work with. Certain people by virtue of chance end up consuming orders of magnitude more resources by virtue of their lineage and the place they were born it.

By said virtue, they impose onto the rest of us their will, and make it so they don’t face any repercussions for their wastefulness.

Can you argue, in good conscience, that all the resources spent on and by somebody like Musk, are better spent on Musk than feeding families in Africa, building infrastructure and providing top notch education to have more doctors and researchers do stuff like, idk find cures to all the different forms of cancer that we have?

comment 3y ago · link · parent

Are you ignoring that despite knowing the consequences of climate change for a hundred or so years, "we" chose to ignore them for corporate profits?

What's the point of lifting anyone out of poverty if we are actively ruining our environment through obviously unsustainable behaviour?

How many more billions of people could we have brought out of poverty if the goal wasn't to improve bottom lines? What about all the displaced people due to wars for oil?

comment 3y ago · link · parent

We are not cooperating at grand scales, not in what matters to the average person, but we certainly cooperate on helping the rich get richer.

comment 3y ago · link · parent

I have said this multiple times, but I am grateful for learning Rust as it helped shape the way I view memory ownership, and in the process made me a better developer.
1
616263
97