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

Given a sufficiently advanced AI, I don’t see why it won’t be able to dogfood itself. Humans do it all the time by building knowledge and learning off it.

comment 3y ago · link · parent

I think I was misunderstood, or more likely did not convey the message correctly. Given a set of acceptable configurations that pass your litmus test, there's little - if any - reason to waste effort in deciding which to go with.

I assumed that the commenter had a relatively narrow list of what they deem acceptable, e.g. 2 or 3 or even 4 configurations.

The approach though is more general than this scenario and can be applied in almost every case with low stakes while absolving the person of the regret they might feel for their choice and reduce the time spent deciding in search for "perfection". The goal is to reduce regret and indecisiveness.

comment 3y ago · link · parent

The best way to deal with such situations in my opinion is flipping a coin and letting everything up to chance. Given the [minimal] stakes, the cost of analysis / paralysis is far greater than any regret from an imperfect config.

comment 3y ago · link · parent

Peter Principle or perhaps the people have different perceptions of what is good?

Story time.

I wanted to check the IT vending machine a few days ago which involved visiting different floor. My jaw dropped (on the floor) at how different life could be.

I heard laughter, cheers, happiness even, and talk lots of talk. At that point I realised I was not on a dev floor but accounting, HR and so on.

Maybe it was the time, maybe it was just a single time event, but it made an impression on me. The open office environment clearly was working for them.

I made haste to the elevator, the doors closed and the world was silent again. I returned to my little corner where I was at peace. Me, my laptop, and some books.

comment 3y ago · link · parent

There’s no way that TBs of ram will be accessible to the average consumer. Even in the previous decade we did not see any improvement. In memory availability. There has not been any need to go further than 32 GB for the general public for a long time now and even the average consumer does not have more than 16.

There must be a real necessity for that to happen, and I do not see how LLMs provide substantial benefits to push for a change.

comment 3y ago · link · parent

I cant tell whether the parent comment is disingenuous though it looks a lot like it, but I will take it at face value.

The models created by the oil companies back in the 70s seem to be “breathtakingly accurate” [1]

Second, the problem with your analogy is that with football you expect the prediction to be X team will win, and similarly expect the predictions to be X weather event at $place will occur. The problem with your expectations of predictions regarding the latter is the sample space.

The sample space is so large that extreme weather events will occur $somewhere. Predicting exactly where and their trajectories is difficult due to chaos and the complexity of the system. There is a bound on our capacity to predict exact events long ahead of time. However, what we can do is give a probability of the event occurring over a large enough region. When you scale said region to the earth, we can ignore very small details and focus on the bigger picture, which is that the variance in weather in creases.

The problem with an increasing variance is that extreme events occur more frequently in all directions. Meaning high and low temperatures, droughts and floods and so on.

To observe this in action, a year or so ago europe had severe floods that killed many people and simultaneously over the next summer experienced historic droughts.

The sample space strikes again and we saw historic droughts in China too.

[1] https://www.theguardian.com/business/2023/jan/12/exxon-clima...

[2] Firmament, by Dr Simon Clark

comment 3y ago · link · parent

Yes, the state for both is a long window / sequence. Under this view, for the transformer we do not need to compute anything for the previous tokens as due to the causal nature of the model, the tokens at [0, ... N-1] are oblivious to the token N. For token N we can use the previous computations since they do not change.

comment 3y ago · link · parent

"just" is doing a lot of heavy lifting.

ChatGPT needs a language model and a selection model. The language model is a predictive model that given a state generates tokens. For chatGPT it's a decoder model (meaning auto-regressive / causal transformer). The state for the language model is the fixed length window.

For a Markov chain, you need to define what "state" means. In the simplest case you have a unigram where each next token is completely independent of all previously seen tokens. You can have a bi-gram model, where the next state is dependent on the last token, or an n-gram model that uses the last N-1 tokens.

The problem with creating a markov chain with n-token state is that it simply doesn't generalize at all.

The chain may be missing states and can't produce a probability distribution. e.g. since we use a fixed window for the state, our training data can have a state like "AA" that transitions to B, thus the sentence is "AAB". The model however may keep producing stuff, thus we need to get the new state, which is "AB". If "AB" is out of the dataset, well... tough luck, you need to improvise on how to deal with this. Approaches exist but nowhere near as good of a performance as a basic RNN let alone LSTMs and transformers.

comment 3y ago · link · parent

That's not correct. In a Markov chain, the current state is a sufficient characteristic of the future. For all intents and purposes you can create a state with sufficiently long history to look at a long sequence of words.

comment 3y ago · link · parent

For mobile devices it’s probably the oled screens.

comment 3y ago · link · parent

You first need the basic building blocks which is matrix multiplication. You may use libraries here.

Then it’s a matter of loading the model correctly.

If you are just reimplementing and not doing research you don’t need the mathematics.

The algorithm is rather simple too. The issue is more about engineering than machine learning.

comment 3y ago · link · parent

> If yes, good luck burning out while blocking your own career progression.

Is there a career blockage if you don't stick around? The more you do, the more you learn, the more you learn the faster you do, the faster you do, the more you do.

> management won’t want to promote them out of the situation

Management can pay a higher salary to retain them. A vertical career into management is not for everyone.

> they will ruin their health through stress, and then the consequences of returning to 1x workload and being an “under-performer” will follow anyway.

Doesn't look like that if you leave a paper trail of everything you do.

comment 3y ago · link · parent

For code, I have found that copilot is significantly better and I don't mind paying for it.

comment 3y ago · link · parent

Given that ML has been exploited to drive polarization which fuels said wars and causes instability, can you claim that there is no impact with respect to said wars?

Power is not just about being more intelligent than us. An isolated airgaped super intelligence is powerless.

comment 3y ago · link · parent

This is ChatGPT Turbo's response to that and some follow-up prompts.

https://gist.github.com/partiallytyped/deb53061e26f7a77ebde0...

Given the self-referential nature of this response, one might even express that to some degree they do.

AFAICT, the only difference between human brains understanding relationships and LLMs is that the former is grounded on the real world and the other is not. That doesn't imply that the LLMs have no understanding assuming understanding is creating associations at different degrees of abstraction. Only that their understanding is not grounded in things we perceive as true through our interactions.

The claim however assumes that there is an objective reality that is true which is a whole different can of worms that needs to be opened before we can even argue whether there is sentience or understanding in the first place.

Furthermore, humans themselves are not grounded in an objective reality either. While LLMs might hallucinate reality in one way, we hallucinate in others (cf religions), we hold irrational opinions, we perform irrational actions that are not beneficial to us, our brains become narrowminded in the physical sense, and so on.

comment 3y ago · link · parent

I probe humans. When I am on (HN | Reddit) and I find an interesting discussion I ask the person to tell me more, link articles, blog posts, and textbooks.

comment 3y ago · link · parent

I believe that you conflate “power” with capabilities wrt AGI.

I’d argue that power is in relation to reach and the capacity to influence. In this regard, ML has quite a bit of power these days, from deciding whether you are allowed to take a loan, to driving engagement in social media, to predicting and influencing what you will watch, to the way our language is even used.

There are also quite a few implicit ways that ML models have influenced society, eg GPGPUs with emphasis on ML, and ML accelerators everywhere. The effectiveness of certain algorithms made us use them more often which influenced NVDA and Google towards developing hardware to accelerate those common cases thereby creating a feedback loop where our algorithms are chosen based on works well on our GPUs (cf transformers).

As such systems become more prevalent and influential, ensuring safety and explainability will help us prevent pitfalls that put humans at risk.

comment 3y ago · link · parent

With great power comes great responsibility. If we start plugging ML everywhere - which we are currently doing - we better be sure that it is behaving as expected.

comment 3y ago · link · parent

The textbooks are exactly what I needed! Thank you!

comment 3y ago · link · parent

It's more about the unintended consequences, the implied/contextual information and getting it to do what we want in a way actually fulfills our goals instead of merely satisfying a condition.

A task such as "bring me a cup of tea" has lots of implied information such as not making it too hot to burn the person, not breaking anything in the process, not harming other people in the process and so on.

comment 3y ago · link · parent

I think I was misunderstood. My point is that not only do we need to consider the cases where the AI is smarter than us, but also the cases where it is dumber than we expect it.

An aligned agent will not fall into stupid errors, thus solving the lower bound of performance is a necessity for complete alignment.

comment 3y ago · link · parent

> There's zero reward in punishing someone for past behaviour

A similar argument regarding Roko's Basilisk is that it is effectively a prisoner's dilemma, where the Basilisk torturing us and us not helping it is the Defect-Defect scenario. It makes no sense for either party to defect.

> except in the context of altering their future behaviour.

It really seems like a very contrived version of Pascal's mugging.

comment 3y ago · link · parent

> It's about the risk that an AI smarter than us

It's also about the risk that AI is dumber than what we expect it to be and fails to properly solve the issue.

A sufficiently smart AI should be able to understand our intentions and - assuming it is aligned with us - attempt to fulfill that purpose.

Dumb "AI" will fail in ways that don't actually solve the task, or solve it only on the surface / do reward hacking.

comment 3y ago · link · parent

Similar benefits exist for the TAs in the Department of Computer Science of the University of Copenhagen / DIKU.

comment 3y ago · link · parent

Why would a male even bother to

- take HRT long enough to pass, which is in months if not years

- destroy their libido

- sterilize himself

- gain weight

- reduce the size of his penis

- experience near constant pain on his penis due to atrophy

- have his testicles shrink

- have erectile dysfunction

- experience all that bullying

- risk getting disowned by family

- lose friendships

so that he can commit an __opportunity__ crime?

Do you honestly find that reasonable?

Maybe the problem is not that trans women and girls exist, but that men and boys seem to be opportunistic predators.

If your claim is that the boy or man can just self-id as trans, and then enter the bathroom, then my question is, what stops them from entering it anyway? Why go through all the trouble of a possibly social transition and all that entails just to commit an opportunity crime when they could very well just go in?

comment 3y ago · link · parent

Okay, is there like a book or some other resource besides your awesome blog that you'd recommend for people looking to get into this some more?

comment 3y ago · link · parent

Construct was not the correct word. The intention was to express that you do need to parse the object into something more specific that captures the properties that you require.

Take for example APIGatewayProxyEvent [1], which has a property `queryStringParameters` with type:

    export interface APIGatewayProxyEventQueryStringParameters {
        [name: string]: string | undefined;
    }
You can then create a branded type like

    type AuthCodeEvent = APIGatewayProxyEvent & {
         queryStringParameters: {
             code: string;
             state: string;
         };
    };
The branded type here means that as soon as you verify that the event has that structure above, and you can assume that it is correct in the code handles these specific cases.

Though as the blog author mentioned in the other chain, the TS compiler is not particularly sound, so it's probably entirely possible to mess the structure and break the type without the compiler knowing about it.

[1] https://github.com/DefinitelyTyped/DefinitelyTyped/blob/mast...

1
515253
97