Înapoi la articole →

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 67
  1. Training a Chess Reasoning Agent

    TLDR: I trained an LLM reasoning agent to play chess, with model sizes 0.8B, 2B and 9B.

  2. Learning to Solve Hard Problems in RL for LLMs by Never Giving Up discusses an approach for countering what the authors call the Matthew Effect, the tendency for the LLM to improve much more on easy problems that it is already good than harder problems th…

  3. Semantic Search in Under 3MB

    This project is a continuation of my previous autoresearch project, which optimized a reranking model to be under 10MB.

  4. Teaching a Neural Net to Fight

    In this project, I wanted to set up what I thought was a simple experiment: if we let a neural network play a fighting game, will it learn any interesting emergent behaviors?

  5. Definitions of Model

    There are a lot of meanings of the term “model” in machine learning and machine learning-adjacent fields.

  6. Autoresearch

    Leaving the autoresearch loop going, the LLM was able to make 7.8% progress on the distillation task.

  7. TLDR: I extracted fens and stockfish evaluations for 3.9 billion chess positions.

  8. The other day I found Alan Pike’s blog post from a few years ago which describes his iterative process for determining the order cities should be closed in the game Two Spies.

  9. When I built the Gigafish dataset, I deliberately chose to use positions evaluated at depth 10.

  10. Multi-Agent RL

    In reinforcement learning, an “agent” is an entity which can observe the world and take actions.

  11. Optimal Ask

    Let’s say that you are selling N widgets and you need to determine a price for your widgets.

  12. Can a Neural Net Learn It?

    A neural network is a type of function originally inspired by how the brain works.

  13. Keep Summer Safe

    I recently built a small multi-agent simulation inspired by Rick and Morty.

  14. Notes on Deepseek R1

    DeepSeek R1 is a large language model which employs test-time compute to generate a response.

  15. Space Is Really Big

    More than 30 earths could fit between the earth and the moon.

  16. Custom PyTorch Collate Function

    If your Dataset class looks something like class MyDataset(Dataset): # ... boilerplate ...

  17. Very Large Datasets in PyTorch

    In God we trust.

  18. How to Create Rust Python Bindings

    Rust is super fast.

  19. I spent some time considering words to describe a chess position with many legal moves.

  20. What are Sparse Autoencoders?

    TLDR: A sparse autoencoder is just a regular autoencoder that encourages sparsity with an L1 penalty or KL divergence loss rather than using a low-dimensional bottleneck.

  21. How does HNSW work?

    Suppose we have a vector database with a billion items in it (the haystack).

  22. Learning the Haystack

    Embeddings, or vector representations of a document (which could be a piece of text, image, sound, etc.), can be extremely useful for making sense of large datasets.

  23. Vectorized K-Means Clustering

    K-means clustering (previous discussion) is an unsupervised learning algorithm which assigns points to one of K different clusters based on the distance of that point to a centroid.

  24. Summary: Deep & Cross Net v2

    Paper link: https://arxiv.org/pdf/2008.13535 Learning to rank is an important problem in many machine-learning products such as search, recommendation, and advertising.

  25. What is a blunder in chess?

    What is a blunder in chess?

  26. A 3D Game of Life

    Conway’s Game of Life is a simulation developed in 1970 describing a grid of binary cells and transition rules for each cell which depend on the state of the cell’s neighbors.

  27. TLDR: No.

  28. This is a summary of Automated Antenna Design with Evolutionary Algorithms, a 2006 paper by Hornby et al.

  29. In Defense of Dual-Encoders for Neural Ranking by Menon et. al. discusses the question of why dual-encoder (DE) models, also called Bi-Encoders elsewhere, don’t match the performance of cross-attention (CA) models.

  30. My Favorite Antimaia Games

    This is a follow up to Opponent Modeling Wins 2× Faster Than Stockfish.

  31. The Other End of the Earth

    White areas show points of earth on land whose antipode is also on land.

  32. Attention Walkthrough

    In this post we will walk through a very simple example of multiheaded attention is computed.

  33. A Few Notes on the Transformer

    A self-attention block depicted as a neural network.

  34. Rolling My Own Blog Search

    I’ve found myself hitting ctrl+f on this blog enough that I figured it’s about time to add some search functionality to it.

  35. A new type of chess tournament

    This is part 2 of a paper I wrote for Ken Forbus’ Qualitative Reasoning course, adapted for this blog.

  36. The Chess Engine's Final Horizon

    This is part 1 of a paper I wrote for Ken Forbus’ Qualitative Reasoning course, adapted for this blog.

  37. TLDR: Using opponent modeling we can win 2x faster than Stockfish by playing high risk, high reward moves that Stockfish will avoid.

  38. Machine Learning Glossary

    Batch Norm Normalizes the mean and variance for all instances of a feature in a batch.

  39. Alphabet Chess

    TLDR: Alphabet chess is a chess variant that allows handicapping by mixing in a bit of poker into the beginning of the game.

  40. Selected {subject, relation, object} tuples generated by COMET Paper link: https://arxiv.org/abs/1906.05317 This paper describes COMET, a method of generating knowledge bases automatically.

  41. First, create a custom dataset class. from torch.utils.data import Dataset, DataLoader class CustomDataset(Dataset): def __init__(self, features, labels): assert len(features) == len(labels) self.features = features self.labels = labels…

  42. How to Zip and Unzip a tar.gz File

    If you want to extract a tar archive tar -xf archive.tar.gz If you want to compress a directory tar -czvf archive.tar.gz /path/to/directory That’s all.

  43. Defending Against Neural Fake News by Zellers et al. presents a model for controllable text generation called Grover.

  44. Connect Jupyter to Remote

    Here’s how to connect to a remote Jupyter notebook.

  45. What is Marginalization?

    In machine learning and statistics, marginalization simply means summing over a set of independent variables.

  46. Colab: Connect to Google Drive

    Here’s how to connect your Google Colab notebook to your Drive directory: from google.colab import drive drive.mount('/content/gdrive') Follow the prompts from there.

  47. BERT vs GPT-2 Performance

    There are quite a few BERT vs GPT-2 breakdowns online, mostly focusing on the architectural differences between the two models.

  48. How does GPT-2 Tokenize Text?

    Let’s explore how GPT-2 tokenizes text.

  49. What Are Attention Masks?

    TLDR: Attention masks allow us to send a batch into the transformer even when the examples in the batch have varying lengths.

  50. How Does Convolution Work?

    Convolutional neural networks have had breakthrough success in image recognition, natural language processing, and even board games like Chess and Go.