953 karma · joined Sep 6, 2023 (3y ago) · 548 submissions
comment 1y ago · link · parent
[1]: https://www.lesswrong.com/posts/LPyqPrgtyWwizJxKP/how-do-we-...
comment 1y ago · link · parent
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
comment 1y ago · link · parent
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
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
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
comment 1y ago · link · parent
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
comment 1y ago · link · parent
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
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
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