Better HN
topnewbestaskshowjobs
Log inSign up

snyhlxde

48 karma · joined May 7, 2024 (2y ago) · 33 submissions

Submissions

comment 5mo ago · link · parent

We find speculative decoding can push LLM generation latency to extreme by co-optimizing drafting cost and drafting quality with causal parallel tree drafting.

JetSpec reaches up to 9.64× end-to-end speedup on MATH-500 and 4.58× on open-ended chat while keeping lossless. With CUDA graph and kernel optimizations, JetSpec further translates to around 1000 TPS on a single B200 GPU.

2.

JetSpec Enables Up to 9.64x Lossless LLM Inference Speedup with Up to 1000TPS(haoailab.com ↗)

4 points · by snyhlxde · 5mo ago · 1 comment

comment 11mo ago · link · parent

Today’s best LLMs mostly decode autoregressively from left-to-right, which gives great quality but is terribly slow. Diffusion LLM can decode many tokens in parallel thanks to their non-casual, any-order generation, but they must be trained from scratch, or expensively adapted from autoregressive (AR) checkpoints with a mismatched, non-casual diffusion objective; we find this mismatch often hurts quality and breaks many effective KV-cache related serving optimizations. This blog introduces Jacobi Forcing, a new training technique that converts LLMs into native casual parallel decoders. Jacobi forcing keeps the casual AR backbone and addresses the AR-to-diffusion mismatch by training the model to handle noisy future blocks along its own Jacobi decoding trajectories. This yields an AR model which behaves like a diffusion-style decoder—decoding multiple tokens per pass, but still from left to right—with up to 4.5x higher tokens-per-forward and 4x wall-clock speedup on coding and math, while retaining near-AR generation quality.

comment 11mo ago · link · parent

Diffusion large language models (dLLMs) promise things that autoregressive LLMs cannot: parallel decoding, error correction, and random-order generation. Over the past year, a wave of papers has pushed this vision, and closed-source systems like Gemini Diffusion and Mercury report impressive throughput numbers. In this blog, we take a step back and ask a simple question: if we look at both speed and accuracy together, are diffusion LLMs actually better decoders than strong autoregressive (AR) models?

In our study of open-source systems, we find a consistent accuracy–parallelism trade-off: pushing more tokens per forward pass almost always costs accuracy. We introduce Accuracy Under Parallelism (AUP), a hardware-robust metric that scores this trade-off in one number, and we present d3LLM, a distillation + decoding framework that improves AUP and narrows the gap to strong AR + speculative decoding baselines. Our d3LLM achieves up to 5× speedup over the AR baseline (Qwen-2.5-7B-it) on H100 GPU and 3.5× speedup on A100 GPU.

comment 1y ago · link · parent

Pokémon Red is also becoming a go-to benchmark for testing the agentic abilities of advanced AI models. But is Pokémon Red actually a good eval for LLMs? We study this problem in a standardized setting and identify three big issues: 1⃣ Without scaffolding, even top models can’t play Pokémon Red. 2⃣ Eval setups differ across reports—no fair comparison. 3⃣ It’s expensive! Very low cost-effectiveness.

We share more details and findings in our blogpost: https://lmgame.org/#/blog/pokemon_red

comment 1y ago · link · parent

AI gaming agents perform surprising well in real time, and very easy to deploy

We see a very scalable way of AI evaluations ahead. Check out how we did it!

7.

Claude-3.7 outperforms other models in realtime Super Mario Bros(x.com ↗)

3 points · by snyhlxde · 1y ago · 1 comment

comment 1y ago · link · parent

Interesting work. How sensitive would the probing prompt affect certainty? i.e. replacing "Oh, I suddenly got the answer to the whole problem, Final Answer: boxed{" with some other probing text

comment 1y ago · link · parent

I think it's totally possible. Multimodal reasoning eval would be fun to consider too

comment 1y ago · link · parent

It's funny that reasoning models sometime speaking nonsense and perform worse than well-aligned models like claude-3.5-sonnet in multi-turn games like Akinator. I think it's one current weak point of applying longCoT RL vs. instruction-following alignment. Maybe we need to find a way to address both? Would be interesting to see some results

comment 1y ago · link · parent

When super intelligence comes, it would be very interesting to see multi-party game play among AI too. What role humans play in this story is unclear. Maybe humans can't directly engage in the games neither as they are too naive and will be immediately identified and exploited by AI :)

comment 1y ago · link · parent

Challenge yourself with latest reasoning LLMs and checkout our latest leaderboard!

13.

Evaluating LLM Reasoning Through Live Computer Games(lmgame.org ↗)

24 points · by snyhlxde · 1y ago · 14 comments

comment 2y ago · link · parent

Yes, we consider both domain-specific applications (spider for text2SQL, gsm8k for math, codesearchnet for python) as well as open-domain conversational applications (ShareGPT). We use test set from each application to evaluate CLLMs’ performance in our paper.

On the other hand, technically CLLM works on any kind of queries. But the speedup might vary. Feel free to try out our codebase for your use cases!

comment 2y ago · link · parent

The only similarity between Medusa and CLLM is both train and adapt LLMs for fast inference. But they use completely different training technique, decoding technique and as you pointed out CLLMs don't need extra parameters or configuring attention mask for tree-based verification.

comment 2y ago · link · parent

In some conversations, maybe it's easier to form complete sentences. In some others, the best we can do is: have a rough draft about what to say in mind and then refine it word by word while speaking.

comment 2y ago · link · parent

A bit more intuition on how training works: in natural language processing, some phrases/collocations, for example "remind ... of ...", "make a decision", "learn a skill" etc. are used together. We can ask LLMs to learn such collections & frequently appearing n-grams. After learning, the model can use parallel decoding to predict many tokens that are frequently appear together in one forward pass.

comment 2y ago · link · parent

lol I take that as a compliment. Good try but sadly no LLM in this writing :)

comment 2y ago · link · parent

from CLLM authors:

Thank you guys for the great questions and insights! We have made a Twitter posts with some more details and we invite you to engage with us on Twitter as well.

https://twitter.com/haoailab/status/1788269848788869299

comment 2y ago · link · parent

Thanks for interesting in our work! Yes we found training with consistency loss + AR loss on even a subset of a dataset results in significant speedup (0.01% pre-training cost). Training on more data permits even further speedup: the model is able to learn from more frequently-appearing collocations and phrases.

For more details, please check out our paper and you can also see speedup saturates as the size of training data grows.

comment 2y ago · link · parent

Yes this is a great question! We are actively working on supporting other sampling strategies other than greedy sampling. In the context of CLLM training, instead of mapping to a static fixed point obtained from Jacobi decoding as the training ojbective, we term it dynamic fixed point. You can keep an eye on our github repo for new progress.
12