ykhli

Joined 5 years ago

Karma
307
Submissions
54
Member since
Mar 11
https://github.com/ykhli/
View on Hacker News

Recent submissions

Comment · 9 months ago
Thanks so much for the amazing feedback!!! Will update the app to incorporate these
Comment · 9 months ago
Most amazing tech blog I’ve read this week. What a great read!
Comment · 9 months ago
my unvalidated theory is that this comes down to the coding model’s training objective: Tetris is fundamentally an optimization problem with delayed rewards. Some models seem to aggressively over-optimize toward near term wins (clearing lines quickly), which looks good early but leads to brittle states and catastrophic failures later. Others appear to learn more stable heuristics like board smoothness, height control, long-term survivability even if that sacrifices short-term score

That difference in objective bias shows up very clearly in Tetris, but is much harder to notice in typical coding benchmarks. Just a theory though based on reviewing game results and logs

Comment · 9 months ago
oh that is super interesting. ty for the idea!
Comment · 9 months ago
Wow this is incredible!!
Comment · 9 months ago
answered this in a comment above! It's not turn or visual layout based since LLMs are not trained that way. The representation is a JSON structure, but LLMs plug in algorithms and keeps optimizing it as the game state evolves
Comment · 9 months ago
Thanks for all the questions! More details on how this works:

- Each model starts with an initial optimization function for evaluating Tetris moves.

- As the game progresses, the model sees the current board state and updates its algorithm—adapting its strategy based on how the game is evolving.

- The model continuously refines its optimizer. It decides when it needs to re-evaluate and when it should implement the next optimization function

- The model generates updated code, executes it to score all placements, and picks the best move.

- The reason I reframed this problem to a coding problem is Tetris is an optimization game in nature. At first I did try asking LLMs where to place each piece at every turn but models are just terrible at visual reasoning. What LLMs great at though is coding.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton