Better HN
topnewbestaskshowjobs
Log inSign up

programjames

953 karma · joined Sep 6, 2023 (3y ago) · 548 submissions

Submissions

comment 1y ago · link · parent

I think the primary difference is other countries track their students. Not just in separate classrooms, not a self-selected honours programme, but actually different high schools for people who score higher on the entrance exams.

comment 1y ago · link · parent

I saw an interesting post on LessWrong[1] that essentially argues education got so bad because all the education studies are using metrics biased towards the bottom. If you can't measure improvement in the top (10% for standardized tests, 80% for typical definitions of 'achievement'), and then you tie money to which schools are measurably improving learning outcomes, you incentivize schools to teach to the bottom. You end up with schools desparately trying not to suspend/expel students, because it looks bad on their metrics and decreases their funding, while holding back their more diligent students as teachers/babysitters for the less diligent students.

[1]: https://www.lesswrong.com/posts/LPyqPrgtyWwizJxKP/how-do-we-...

comment 1y ago · link · parent

Anyone willing to give an intuitive summary of what they did mathwise? The math in the paper is super ugly to churn through.

comment 1y ago · link · parent

The proper way to make lossy encoders is to minimize the mutual information between the original image and the encoding, while minimizing the necessary error correction between the reconstructed image and the original image. It's difficult to measure the mutual information, but you can make an adversarial neural network that approximates it. For the error correction bits, if you assume a normal source of randomness you can just use the mean-squared error, but it's probably better to output a full distribution, and assume your source image has a normal source of randomness:

     pixel value = p ---> "correct" distribution = exp(-(x-p)^2 / temperature)
Then you can take a KL-divergence. The temperature should be another parameter in your model.

comment 1y ago · link · parent

I agree, z should be absorbed into μ and Σ, e.g. you always input `[1 0 0 ... 0]`, and the first layer of the neural network would essentially output z. They would have to stop approximating the KL(q(θ)||p(θ)) as O(θ^2) though, so maybe this is more computationally efficient?

comment 1y ago · link · parent

> Intelligence is compressing information into irreducible representation

I thought that was physics ;)

https://en.wikipedia.org/wiki/Wigner%27s_classification

comment 1y ago · link · parent

Boo, go read the other comments that explain all of this instead of wasting people's time.

comment 1y ago · link · parent

Sure! I'll try to give a more intuitive explanation. Basically, it's been known for awhile that intelligence is very related to compression. Why? Suppose you're trying to describe a phenomena you see (such as an IQ test). To precisely describe what's going on, you'd have to write it in some kind of formal language, like a programming language. Maybe your description looks like:

This wavey piece can be described by algorithm #1, while this spikey piece can be described by algorithm #2, while this...

More precisely, you try to write your phenomena as a weighted sum of these algorithms:

    phenomena = sum weight * algorithm
There are exponentialy more algorithms that have more bits, so if you want this sum to ever converge, you need to have exponentially smaller weights for longer algorithms. Thus, most of the weight is concentrated in shorter algorithms, so a simple explanation is going to be a really good one!

What the authors are trying to do is find a simple (small number of bits) algorithm that reconstructs the puzzles and the example solutions they're given. As a byproduct, the algorithm will construct a solution to the final problem that's part of the puzzle. If the algorithm is simple enough, it won't be able to just memorize the given examples—it has to actually learn the trick to solving the puzzle.

Now, they could have just started enumerating out programs, beginning with `0`, `1`, `00`, `01`, ..., and seeing what their computer did with the bits. Eventually, they might hit on a simple bit sequence that the computer interprets as an actual program, and in fact one that solves the puzzle. But, that's very slow, and in fact the halting problem says you can't rule out some of your programs running forever (and your search getting stuck). So the authors turned to a specialized kind of computer, one that they know will stop in a finite number of steps...

...and that "computer" is a fixed-size neural network! The bit sequence they feed in goes to determine (1) the inputs to the neural network, and (2) the weights in the neural network. Now, they cheat a little, and actually just specify the inputs/weights, and then figure out what bits would have given them those inputs/weights. That's because it's easier to search in the input/weight space—people do this all the time with neural networks.

They initialize the space of inputs/weights as random normal distributions, but they want to change these distributions to be concentrated in areas that correctly solve the puzzle. This means they need additional bits to specify how to change the distributions. How many extra bits does it take to specify a distribution q, if you started with a distribution p? Well, it's

       - sum q(x) log p(x)         +        sum p(x) log p(x)
    (expected # bits for random q)  (expected # bits for random p)
This is known as the KL-divergence, which we write as KL(q||p). They want to minimize the length of their program, which means they want to minimize the expected number of additional bits they have to use, i.e. KL(q(inputs)||p(inputs)) + KL(q(weights)||p(weights)).

There's a final piece of the puzzle: they want their computer to exactly give the correct answer for the example solutions they know. So, if the neural network outputs an incorrect value, they need extra bits to say it was incorrect, and actually here's the correct value. Again, the expected number of bits is just going to be a KL-divergence, this time between the neural network's output, and the correct answers.

Putting this altogether, they have a simple computer (neural network + corrector), and a way to measure the bitlength for various "programs" they can feed into the computer (inputs/weights). Every program will give the correct answers for the known information, but the very simplest programs are much more likely to give the correct answer for the unknown puzzles too! So, they just have to train their distributions q(inputs), q(weights) to concentrate on programs that have short bitlengths, by minimizing the loss function

    KL(q(inputs)||p(inputs)) + KL(q(weights)||p(weights)) + KL(outputs||correct answers)
They specify p(inputs) as the usual normal distribtuion, p(weights) as a normal distribution with variance around 1/(dimension of inputs) (so the values in the neural network don't explode), and finally have trainable parameters for the mean and variance of q(inputs) and q(weights).

comment 1y ago · link · parent

Here's what they did:

1. Choose random samples z ~ N(μ, Σ) as the "encoding" of a puzzle, and a distribution of neural network weights p(θ) ~ N(θ, <very small variance>).

2. For a given z and θ, you can decode to get a distribution of pixel colors. We want these pixel colors to match the ones in our samples, but they're not guaranteed to, so we'll have to add some correction ε.

3. Specifying ε takes KL(decoded colors || actual colors) bits. If we had sources of randomness q(z), q(θ), specifying z and θ would take KL(p(z) || q(z)) and KL(p(θ) || q(θ)) bits.

4. The authors choose q(z) ~ N(0, 1) so KL(p(z) || q(z)) = 0.5(μ^2 + Σ^2 - 1 - 2ln Σ). Similarly, they choose q(θ) ~ N(0, 1/2λ), and since Var(θ) is very small, this gives KL(p(θ) || q(θ)) = λθ^2.

5. The fewer bits they use, the lower the Kolmogorov complexity, and the more likely it is to be correct. So, they want to minimize the number of bits

a * 0.5(μ^2 + Σ^2 - 1 - 2ln Σ) + λ * θ^2 + c * KL(decoded colors || actual colors).

6. Larger a gives a smaller latent, larger λ gives a smaller neural network, and larger c gives a more accurate solution. I think all they mention is they choose c = 10a, and that λ was pretty large.

They can then train μ, Σ, θ until it solves the examples for a given puzzle. Decoding will then give all the answers, including the unknown answer! The main drawback to this method is, like Gaussian splatting, they have to train an entire neural network for every puzzle. But, the neural networks are pretty small, so you could train a "hypernetwork" that predicts μ, Σ, θ for a given puzzle, and even predicts how to train these parameters.

comment 1y ago · link · parent

I seem to be much more confident that technology could solve the aging problem. Two routes come to mind:

1. We can already splice up DNA with decent accuracy, so it's just a matter of finding what DNA to splice in/out to have the desired effects, and then a method to apply this to every cell.

2. We're close to being able to disassemble someone's nerves and simulate them with a very high accuracy. So, at the very least we could give people new robot bodies.

Now, it's true that even the wealthiest people in the world several hundred years ago had no hope to get either of these done. But it seems entirely plausible that if everyone came together to work on this now, it could be solved in a few decades. I think it isn't happening because (1) people's discount factors aren't high enough to throw everything to their future; (2) the wealthiest people are older, and have the least chance of success; (3) it's a coordination problem that most people aren't even aware they can coordinate on; (4) a significant number of people don't even think it's a problem (because of the stories their ancestors told about death maybe not being the end). The last two are solvable, but the first are just mismatched preferences that you can't really get around.

comment 1y ago · link · parent

You're currently dying of the "being human" cancer. Are you working on or donating to anti-aging research, or do you prefer to do other things with your time? It just comes down to your discount factor. Based on inflation, it's typically about 0.95/year, so you would expect to care about ~10% as much for things 50 years in the future. This means if you had a ~10% better quality of life not working on anti-aging, you're guaranteed to be better off. In reality, you should hedge your bets; if everyone spent just a little time on the disease, we could cure "being human". The same applies to dying fighting cancer. You should be willing to do some experimental procedures, but not if it eliminates your happiness for the rest of your life.

comment 1y ago · link · parent

There's a rather simple proof for this "add one to the top, n to the bottom" posterior. Take a unit-perimeter circle, and divide it into n regions for each of the possible outcomes. Then lay out your k outcomes into their corresponding regions. You have n dividers and k outcomes for a total of n + k points. By rotational symmetry, the distance between any two points is equal in expectation. Thus, the expected size of any region is (1 + # outcomes in the region) / (n + k). So, if you were to take one more sample

E[sample in region i] = (1 + # outcomes in the region) / (n + k)

But, the indicator variable "sample in region i" is always either zero or one, so this must equal the probability!

comment 1y ago · link · parent

Imagine a study where all you're given are people's SAT scores, but then told some are "more physically attractive as reported by their peers". For some reason I think this study would find the opposite result.

comment 1y ago · link · parent

Just switch dealers each round and have them sit out...

comment 1y ago · link · parent

I think it's because there's usually only a couple players at any given time, so live matching would never fill.

comment 1y ago · link · parent

About 8μs, or a couple trades.

comment 1y ago · link · parent

Only ~5,000 people get E1 visas each year. That's 0.003% of the people who want to immigrate. There are surely many, many more people that are highly skilled and would be beneficial to have in America. Maybe it would be "easy" for you and your friends to get an E1 visa, but it should still be much easier to get a permanent visa for skilled work.

comment 1y ago · link · parent

I feel like the reason immigration is a controversial issue is because people don't feel like one's circumstance of birth is really their "fault". If you don't have a choice in the matter, can you really be blamed? And thus, there's no reason people born in America should get any special privileges compared to those born elsewhere.

I agree. If we could snap our fingers, and fix everything that went wrong in someone's life due to unforutunate circumstances, there is no reason they should be blamed. However, until we can, we have to blame people, even if they are not complicit in their circumstance.

For example, if someone puts a gun to your head, and tells you to shoot a random passerby, I won't blame you very much when you stand in trial without a gun to your head. However, if that gun never leaves your head, e.g. you're part of an enemy military, it seems rather justified to shoot to kill on sight. Maybe you don't want to be there, but you cannot change your circumstance and neither can I, so I have to find fault (or die).

Immigration seems similar. People who want to immigrate to the US are not complicit in their circumstance. If they could have been born in America, and gotten the education, resources, and connections Americans have, they would have. We can snap our fingers, and let them change nationalities, but it will not magically give them the same education, resources, or connections Americans have. And thus, we must find fault in them unless they come in with said education, resources, and connections.

This is just game theory. I consider the purpose of "fault" or "blame" to determine who gets punished so that I am better off. Thus, if I will not be better off with someone immigrating into my country, I should blame them for the circumstances of their birth. Is it fair? "Fair" is a tricky word. At the very least, it seems right.

An issue I find with lots of people on the pro-immigration side is they claim immigrants (1) take jobs I wouldn't want anyway, (2) boost the economy, (3) increase birthrates, and so on, but this doesn't answer why we should allow immigration. Everyone, even the restrict-immigration crowd, is pretty pro-immigration when it comes to people that will make their lives better. But, in America at least, the pro-immigration crowd seems to want completely open movement. Why would that be better than having your cake and eating it too? I.e. let anyone who is good for the economy in, and leave everyone else out?

comment 1y ago · link · parent

Trying to limit birth rates is a tragedy of the commons (no individual in your community is incentivized to limit themselves), while trying to limit immigration is a competition between two commons (and thus cooperative within your community).

comment 1y ago · link · parent

I mean, you've just invented eugenics. Restrict the number of children being born that would not help the economy out. The government did do this once upon a time, but there are tradeoffs like riots you have to take into account. The difference between immigrants and babies is the immigrants can't riot within the US, so the US has no need to cater to their desires. However, immigrants that create more jobs than they take, or raise wages and innovation do have a pretty easy time immigrating to the US (e.g. investor and o1/e1 visas).

comment 1y ago · link · parent

In the early 1900s, the government implemented eugenics for this reason. Nowadays, people feel the country is better off just letting people plan their own pregnancies, which is a looser form of this. The difference between restricted immigration and open immigration would be akin to having a baby when you want to have a baby, versus being assigned random kids to foster.

comment 1y ago · link · parent

So, I agree that there isn't a big enough shortage of engineers to prompt a need for easier immigration there, but I also agree that Americans aren't as technically skilled as they should be compared to foreigners.

comment 1y ago · link · parent

I'm perfectly aware most people would fail this easy task, but a thousand years ago most people would fail to read. Just because it's easy, doesn't mean most people will succeed.

comment 1y ago · link · parent

I think movement is pretty free for people that can demonstrate they would be net-positive to the country they're moving to. I don't really see why movement should be free for anyone who would be net-negative. It's true that demonstrating the ability =/= having the ability, and I think most systems could be improved to filter for that better, but I don't think that's significantly affecting America's immigration process. It isn't very hard to get an O1/E1 visa, or at least a student visa, if you're decent in your subject area.

comment 1y ago · link · parent

It really isn't very hard to get a temporary O1 Visa, which can turn into a permanent E1/E2 visa. You just have to be extra-ordinary in your field. Pretty much every country wants to import people they know will make their country a better place—even North Korea lets Americans ("the enemy") teach at their universities—and it's not hard to demonstrate this.

comment 1y ago · link · parent

It's pretty hard to believe the article's authors when the third sentence in the abstract labels "arithmetic" as "complex calculations". There is nothing complex about arithmetic.

comment 1y ago · link · parent

Or, the famous AoPS Proofs Without Words: https://artofproblemsolving.com/wiki/index.php/Proofs_withou...

comment 1y ago · link · parent

Yes, this is how I learned it. Suppose you have a line of charges with density p moving up at velocity v, and want to find the force on a stationary particle with charge q and distance r to the right. The classical Gauss' law gives

F = (p / 2πrε) * q

If we switch to a moving reference frame (up at velocity v), the charge density decreases to

p' = p*sqrt(1-v^2/c^2) = p - pv^2/2c^2 + O(v^4/c^4) (from Taylor series)

The force should stay the same, so

(p / 2πrε) * q = (p' / 2πrε) * q + F'

where F' is some other magnetic force created by the current. Solving, to second-order we have

F' = pqv^2/4πrεc^2

If we introduce a new constant

µ = 1 / εc^2,

we get

F' = (µ / 4π) * pqv^2 / r

Now, we know

F' = B * qv

where B is the magnetic field, so

B = dF'/d(qv) = µpv / 2πr = µI / 2πr (where I is the current in the wire).

This agrees with the Biot-Savart Law for an infinitely long wire.

comment 1y ago · link · parent

This is where the "critical mass" argument comes in: you (allegedly) need people who superficially look like you in the roles to inspire you to learn the skills needed for that position. Thus, working to correct poor education due to systemic racism isn't enough, you need to also temporarily fill role-model positions with less-qualified candidates.
1
91011
19