545 karma · joined Oct 13, 2020 (6y ago) · 86 submissions
* https://x.com/hazrmard
* https://github.com/hazrmard
* https://iahmed.mecomment 2d ago · link · parent
Perplexity is the degree of surprise the model has in predicting the next token, over a sequence of tokens. At the worst case, perplexity is equal to the size of the vocabulary. At the best case, perplexity is 1.
So, given a sequence of tokens, "e = m c ^ 2", if the p(token | prev tokens) = 1 for every token, perplexity ends up being 1. If, however, it's a random predictor, the p(token | prev tokens) is 1/vocab for every token, and perplexity ends up being len(vocab).
The article plots log(perplexity) on the y-axis, which puts the best case at 0 (i.e. log 1).
comment 1w ago · link · parent
In the planning stage, by factoring out the optimization step from the rollout step, you can free the model to focus on learning the dynamics in latent space. (The other case, where the rollout+optimization happen in the learning loop, just becomes model-free RL.)
My background straddles classical & data-driven controls. This was the first similarity that popped out to me when I first started learning about world models.
Is JEPA just MPC but where the "M" is a latent-space model?
comment 3w ago · link · parent
Authors analyzed ~300 workers doing ~1000 tasks. They collected self-reported measure of using critical thinking [yes/no], and estimate of cognitive effort of doing the task. Authors also measured workers' confidence in themselves doing the task or the AI doing the task.
They found: if someone is confident that AI can do the task, they report using critical thinking less, even though they think the task is easy. When someone is confident in doing the task and in evaluating AI responses, they use critical thinking more, even though they think the task is harder.
I think the paper is saying: low-domain expertise (read: confidence) + unrestricted AI tooling can eliminate the human from the loop. The fallout is better automation or unreliable systems. We need to resolve this ambiguity.
The question is: should low-domain expertise be coupled with more restricted AI tooling as a critical thinking forcing function? Are schools/workplaces right in restricting AI so students/new workers can reach the point of high domain expertise?
comment 1mo ago · link · parent
- A neutrino is an elementary subatomic particle. Neutrinos are produced by nuclear reactions inside stars, supernovae, radioactive decay. They are one of the most abundant particles in the universe.
- Neutrinos are known as "ghost particles". They have 0 charge and near-zero mass. They only react with the weak nuclear force and gravity. Incredibly hard to detect. Trillions can pass through a whole planet without hitting a single atom!
- Neutrinos give us a pristine snapshot into the origin of the universe. They have travelled billions of years and trillions of miles without interacting with anything. Unless...we catch them!
- Ice Cube does this. Located in Antarctica, the project turns a cubic kilometer of ice into a neutrino detector. How? Scientists drilled boreholes 2.5km deep into the ice and placed 5000 optical detectors to catch a neutrino interaction.
- When a neutrino, rarely, collides with an atom, it produces charged particles. In ice - not vacuum! - certain particles can travel faster than light. This produces something similar to a sonic boom. A faint, blue glow known as Cherenkov radiation (see it in action https://youtube.com/watch?v=hSuSG19Pcoc).
- IceCube was first to detect neutrinos coming from outside the solar system, establishing the source of high energy cosmic radiation. It also opened a whole new chapter of neutrino astronomy.comment 2mo ago · link · parent
1. Cost to launch / mass lowering due to technological advancements.
2. Mass / compute lowering due to technological advancements.
3. Compute hardware evolution stagnating to the pace, relative to compute payloads, where CapEx is amortized over longer duration.
4. Compute & energy hardware reliability improving so OpEx is lower, and remaining useful life predictably keeps hardware running over its designed lifetime.
(I work on #4).A wishy-washy inequality (per time, factoring out launch cost from OpEx):
Revenue - CapEx/lifetime - (launch_cost + OpEx) * (1 + failures) > 0
Presumably, any one of these could see a x100 improvement and make the whole equation in the green. But, I believe this is a low-earth-orbit-shot bet on the sum getting better.Note: I did 1+failures to denote baseline cost (initial launch, nominal OpEx).
comment 3mo ago · link · parent
What I read about is a more sophisticated supply chain attack. But these days, search previews use retrieval-augmented generation to parse websites to generate answers on the fly. In that case you don't need to poison the supply chain; good SEO is enough.
comment 3mo ago · link · parent
I use hugo to build my website and I wrote my own theme. It's clunky, but control over the design/build lets me:
- Put PyIodide into posts to make ML code explainers interactive (https://iahmed.me/post/poor_mans_autograd/)
- Inject custom widgets to illustrate theoretical ideas (https://iahmed.me/post/surprise-derivation-entropy/)
- Have multiple layouts to suit my needs (https://iahmed.me/resume/ rendered from json at build time for SEO)
On the flip side, I'm not good at SEO :) It works because SEO is not my primary goal, but I'd love to have a bigger audience. The flexibility I'm afforded is an ok compromise.comment 4mo ago · link · parent
comment 4mo ago · link · parent
In summary: I take F=ma and extend it for rotational motion. (1) Calculating linear motion when the vehicle containing sensors is rotating. (2) Calculating rotation of the vehicle itself due to thrust/yaw force acting about its center of mass.
I'll echo what the other commenter said: this is no way PhD math. It may appear so - but I'm only being verbose with simpler concepts like cross products and rotation matrices.
comment 4mo ago · link · parent
[1]: https://en.wikipedia.org/wiki/Singular_value_decomposition#/...
comment 4mo ago · link · parent
For folks who are interested in UAV physics, I wrote up an explainer[2].
[1]: https://drive.google.com/file/d/1RTEVRd0XCWLuDXY2nkbmYuOaa5x...
19.
14 points · by hazrmard · 5mo ago · discuss
comment 6mo ago · link · parent
An auto-encoder is trained on [activation] -AV-> [text] -AR-> [activation], where [activation] belongs to one layer in the LLM model M.
Architecture.:
Model being analyzed (M): >|||||>
Auto-Verbalizer (AV) same as M, with tokens for activation: >|||||>
Auto-Reconstructor (AR) truncated up to the layer being analyzed: ||>
The AV, AR models are initialized using supervised learning on a summarization task. The assumption being that model thoughts are similar to context summary.The AR is trained on a simple reconstruction loss.
The AV is trained using an RL objective of reconstruction loss with a KL penalty to keep the verbalizations similar to the initial weights (to maintain linguistic fluency).
- Authors acknowledge, and expect, confabulations in verbalizations: factually incorrect or unsubstantiated statements. But, the internal thought we seek is itself, by definition, unsubstantiated. How can we tell if it is not duplicitous?
- They test this on a layer 2/3 deep into the models. I wonder how shallow and deep abstractions affect thought verbalization?
comment 8mo ago · link · parent
[1]: https://github.com/ddclient/ddclient
[2]: https://kb.netgear.com/1058/What-is-Dynamic-DNS-DDNScomment 9mo ago · link · parent
____.----.____
______/ \______
_____/ \_____
________________________________________
(simulations) (real world data) (simulations)
Seems like it, no?We started with physics-based simulators for training policies. Then put them in the real world using modular perception/prediction/planning systems. Once enough data was collected, we went back to making simulators. This time, they're physics "informed" deep learning models.
comment 10mo ago · link · parent
For example
- how can I reliably have a decision block to end the loop (or keep it running)?
- how can I reliably call tools with the right schema?
- how can I reliably summarize context / excise noise from the conversation?
Perhaps, as the models get better, they'll approach some threshold where my worries just go away. However, I can't quantify that threshold myself and that leaves a cloud of uncertainty hanging over any agentic loops I build.
Perhaps I should accept that it's a feature and not a bug? :)
comment 10mo ago · link · parent
- For LLM-assisted output, the more complex the LLM-writing is, the less likely the paper is to be published. From eyeballing, at WC=-30, both have similar chances of publication (~46%). At the upper range of WC=25, LLM-assisted papers are ~17% less likely to be published.
- LLM-assisted authors produced more preprints (+36%).
I wonder:
- What is the distribution of writing complexity?
* Does the 17% publication deficit at WC=25 correspond to 17% of the 36% excess LLM-assisted papers being WC=25, thus nullifying the effect? Although, it puts extra strain on the review process.27.
A Derivation of Entropy(iahmed.me ↗)
2 points · by hazrmard · 10mo ago · discuss
comment 10mo ago · link · parent
Back in grad school, I was out making new friends. I was playing tennis 4-5 times a week. I'd invite players for post-game coffees (in the morning) and dinner (evenings) at every game. Consistency mattered. I'd ask every time. Slowly we had our regulars. Our coffee times became an institution in and of themselves.
People are busy, yes. But, people also want to be in demand. People also don't want to be rejected. And, people also don't want to be left out.
Asking around, I was exposing myself to rejection. Some folks appreciated their time being demanded. More still joined because they didn't want to be left out.