Hankcs (@hankcs) header
Hankcs (@hankcs) profile picture

自然言語処理、深層学習、形態素・係り受け解析

Georgia, USA
Joined April 2010
Photo by Hankcs (@hankcs)Photo by Hankcs (@hankcs)Photo by Hankcs (@hankcs)Photo by Hankcs (@hankcs)
Many people assume that LRM reasoning breaks down past a certain "complexity" or "number of steps" threshold. This is incorrect. It breaks down past an unfamiliarity threshold. And that threshold is very low. There is no limit to the complexity of tasks you can solve with these models, no limit to the number of steps in the reasoning chains they can master -- as long as they have been covered during training / tuning. However, show them something unfamiliar, even very simple and requiring just a handful of reasoning steps (e.g. an ARC 2 task), and they will fail. The reason you see a steps/complexity threshold when testing on problems like Towers of Hanoi is because these are familiar problems. To see a breakdown you need to turn such a familiar task into a novel one, and one way to achieve this is to scale up the problem variables. The complexity increase is just a roundabout way to generate novelty. It's not about simple vs complex. It's familiar vs novel. Always has been.
66
172
39
1,362
140,900
They totally didn't compile it
13
6
3
232
26,609
New paper - Transformers, but without normalization layers (1/n)
76
556
103
4,017
1,309,136
Ok, so I can finally talk about this! We spent the last year (actually a bit longer) training an LLM with recurrent depth at scale. The model has an internal latent space in which it can adaptively spend more compute to think longer. I think the tech report ...🐦‍⬛
54
198
53
2,148
376,860
Distributed training is notoriously hard to learn - knowledge is scattered across papers and complex codebases. Enter picotron: implementing all 4D parallelism concepts in separate, readable files totaling just 1988 LoC!
5
166
6
1,184
75,474
sneak preview 🍿 of our new embedding model: cde-small-v1 cde-small-v1 is the text embedding model that we (@srush_nlp and i) have been working on at Cornell for about a year tested the model yesterday on MTEB, the text embeddings benchmark; turns out we have state-of-the-art results cde stands for "Contextual Document Embeddings". our model works differently from other text embedding models. consequently, it's a little more involved to use. i'm actively working on this and should have instructions up in the next few days feels good to have the best small text embedding model in the world! (if only for a moment in time...)
25
47
5
633
67,487
From Deep Learning with Python: - Deep learning research is an evolution process driven by poorly-understood empirical results - Math in DL papers is usually worthless and was placed there purely as a signal of seriousness - The key to good research is understanding what *causes* your results, and that requires ablation studies (which few researchers attempt to do)
Replying to @fchollet
@fchollet on ablation studies in deep learning research:
26
141
15
1,056
128,520
It’s Sunday morning we have some time with the coffee so let me tell you about some of our recent surprising journey in synthetic data and small language models. This post is prompted by the coming release of an instant, in-browser model called SmolLM360 (link at the end) The journey started as Loubna and Anton, two of the leads of the BigCode and StarCoder projects were looking for a new topic to explore. Around that time Microsoft had released Phi1, a small model (1.7B), trained for half on synthetic data, which showed very impressive code capabilities and which was followed by Phi1.5 extending this approach to natural language. Benchmark number were really impressive but with the training dataset being kept private, people claimed that Phi1 was gaming the benchmark and maybe trained on very similar examples. Really intrigued by the performances and the secret here, Loubna and Anton decided to explore creating a large synthetic dataset. This led to the release of Cosmopedia 1 in winter 2024, 25B of synthetically created data by the best model at the time, Mixtral-8-7B and an associated model. Performance were fine but still falling somehow short of what Phi-1 and Phi-1.5 were showing so they decided to go deeper. A first breakthrough came in the spring when they dived in the audience of the synthetic prompt they were using. Let me explain a bit. In synthetic data generation, you ask a language model to general educative content on a topic of your choice. But educational content can span a very large spectrum of language and complexity, from content for toddlers up to graduate content for PhDs. Just like there is no need to teach PhD-level concept to toddlers, many of the prompts they were first using were creating educational content that was far too complex for the small model they were training and focusing the target audience for the model on middle-school helped tremendously on many benchmarks (apart from MMLU which is typically PhD level as well). A second and much more bittersweet discovery came later in the month as we were staying in a hotel in Lausanne in Switzerland, doing one of these remote « get-together-to-work-in-a-nice-place » we often have at Hugging Face. As a side project, to help Guilherme working on the release of a large dataset that would become FineWeb, they explored using similar prompt engineering techniques as they’d been using, but this time to filter a large chunk of the web, asking a LLM to rate the educational content of webpage instead of writing it from scratch. Using this heavily filtered web data made performances directly going up and passing all the other models of similar size, including Phi-1.5, on most benchmarks. This was bitter sweet in that, while the performances were higher than we’d never seen, they had also spend so much time crafting synthetic data prompt to discover that heavily filtering the web was still better and much more diverse with more than 1.3 trillion tokens available even when filtering heavily (in comparison to the difficulty to scale the size and diversity of synthetic data). Extending the same approach to code data, heavily filtering The Stack, the largest code dataset in the world, using prompt and language models also proved amazingly powerful, pushing the performances of a model which was stuck around 13% on HumanEval (a python code benchmark) up to above 20% out of the box. Boom! Are synthetic data still useful? Yes, but the web is so big and diverse that synthetic data really make more sense for some domain specific part where the right data is lacking, say reasoning or math. Now, right as they were excited by these new discoveries and results, they were joined by a new intern Elie, who proved a great specialist of various trainings techniques and they decided to push the experiments to the limits in term of model size, going from 1.7B down to 360M and even 170M, aka the sizes of the old GPT1, BERT and GPT2, to see how small a model could be while still keeping good performances. One of the recipes for these good performances proved to be simply training for longer and longer, ignoring the usual wisdom that dictated you should avoid training smaller models for too long. Right now even these very small model end up being trained on multiple trillions of tokens, just like they larger counterparts. Another element of the recipes they discovered was to anneal the data, which means keeping a special set of high quality training data for the last part of the training. This lead to training last week a 360M models (this is more than 1000 times smaller than current frontier models like Llama-3.1-405B) which was showing amazing performances on the benchmarks, beating all <500M models and even some larger. So what’s next? Alignment and benchmarks Given their small size these models are still struggling to answer very complex or graduate-level math/code questions. That’s perfectly fine because you don’t really need a model to be able to solve the math olympics in your daily life. But one problem is that our evals usually contains a mix of complex and simpler questions leading to noise in how we evaluate these simple models. Another problem is alignment, how to fine-tune these models to follow instructions. We’ve ben developing datasets and techniques which work really well for larger models (SFT, DPO, PPO, etc) but if you try the « Instant Smol » demo you’ll see that the aligned smog models are still lacking on this aspect and this comes likely from the alignment datasets for LLM which contained many concept too complex for small models (math, reasoning, etc) and lack simpler tasks that they are well designed for (grammar correction, translation, etc) So what’s next for SmolLM? It’s going to be a really exciting year for them. A 360M parameters models is basically 360 MB size which is tiny in today’s web sizes (much smaller than many videos), it’s also basically instantaneous responses (>50-70 tok/s in browser) as it runs locally so with the knowledge around these models being progressively uncovered, I can see them being used everywhere more and more locally, with private data which don’t leave your computer, with instant response, with small size and more energy efficiency versus larger models. An exciting year for Smol LMs 🚀
14
110
18
501
108,929
There's a big difference between solving a problem from first principles vs applying a solution template you previously memorized. It's like the difference between a senior software engineer and a script kiddie that can't code. A script kiddie that has a gigantic bank of scripts might give you the illusion that they can program on their own -- until they encounter a problem for which they don't have the right script. And that's exactly what you see with LLMs. They're interpolative databases of millions of text-completion vector programs. They can do a lot, as long as they're in known territory. But give them something a bit unfamiliar, like an ARC task, and they fail.
Full episode with @fchollet out tomorrow. I do quite a bit of socratic grilling throughout, but I think his LLM skeptic perspective is plausible and pretty interesting. And it was really fun discussing/debating the cruxes.
60
221
32
1,742
311,486
When I left Meta, I told Mark that using AI, the Infra org could easily be reduced to 1/10 of their current size while doing a better job (*). Large companies are like fast-food joints. You need lots of processes to create a bland product with consistent quality with average employees (you cannot have 70K employees that are all in the top 10% of the industry) Small companies are like Michelin-star restaurants. You can hire a few top notch people and let them do their magic to create amazing things. No OKRs, no performance reviews, no BS necessary. (*) He never replied, so I guess he thought I was crazy, or he ignored me because I was leaving already.
If AI allows companies to be smaller, that will be a qualitative change. Lots of things break once organizations get big. We take it for granted, even in the startup world. But imagine if that stopped happening.
73
208
35
2,058
1,306,108
one of the most important things I know about deep learning I learned from this paper: "Pretraining Without Attention" this what I found so surprising: these people developed an architecture very different from Transformers called BiGS, spent months and months optimizing it and training different configurations, only to discover that at the same parameter count, a wildly different architecture produces identical performance to transformers this may imply that as long as there are enough parameters, and things are reasonably well-conditioned (i.e. a decent number of nonlinearities and and connections between the pieces) then it really doesn't matter how you arrange them, i.e. any sufficiently good architecture works just fine i feel there's something really deep here, and we may be already very close to the upper bound of how well we can approximate a given function given a certain amount of compute. so we should spend more time thinking about other questions, such as what that function should actually look like (what data? which objective function?) and how to make it more efficient
92
400
54
3,074
489,718
This take on the FineWeb release is one of the most interesting feedback and also a reason FineWeb is very different from even larger datasets like RedPajama-V2 (which is double its size!) Surprisingly, the size of the dataset of 15T tokens is not very important, what is much more important is why we spend ~120k GPU hours on the H100 cluster to prepare/share a ... dataset? Let's take a moment to dive in it! First, where can you get data at scale for web-scale llm pretraining? Well we're all lucky that Common Crawl is there and has been doing in the open a large chunk of the work of crawling/archiving the web for years, work that otherwise only private teams like Google/Bing would have access to. Next question: can you just train directly on the petabytes common crawl corpus, maybe just extract the text from the html pages and train on it, the model will figure it out? You would have one of the largest possible dataset for sure! The answer me and a part of the Mistral team who participated in BigScience/Bloom training learned over time is: No! Like Sergey says below, you actually want a dataset which is both large but also high quality What is high quality for a web-scale LLM pretraining dataset and how do you know you have it? Maybe I should then just train on, like, wikipedia only! The answer to this is also no. First because wikipedia is too small ofc but more important because our intuitive notion of data quality is not always reflected in the performance of the models and some aspects of data filtering can be counter-intuitive. Before I dive more in this let me give you an example of unintuitive behavior. Between 2022 and 2023 the "LLM quality" of Common Crawl dropped significantly as in "training a LLM on the crawls btw 2022-2023 will give you lower performances on a set of evals". What happened? Well it turns out the Common Crawl team has been filtering more strongly domains with adult content. Not really the cause you'd be intuitively thinking about, right? So how do you know you have good quality data? Well the simple, kinda circular, answer is: you just train on it. You train smaller models so it's not (too) expensive but still models that are big enough and on sensitive enough evaluations to give you signal about the quality of a larger model trained on the same dataset: this is what we call ablation models in FineWeb. Which ablation models did we used? We settled on two ways of training ablation models: in the first option we trained a 1.8B parameters model on 28B tokens which took about 5h on 64 H100. In the second option we trained the same 1.8B params models but much longer, for 350B tokens (which took about 2.5 days on 64 H100). Note that in this second, larger, ablations we trained on more tokens than GPT3 or Bloom were trained for instance. For each of many options for the filters we explored (heuristics and ML models), we trained some of these ablation models and compared the performance of the models to see if we saw an improvement or regression. Overall we trained about 200 small ablation and 15 larger ones for a total of more than 120k GPU hours. You can see the results of these evaluations for instance in the performance plots we include in the dataset card where we train on 350B tokens (160k steps). Overall this is the main difference with a simple raw Common Crawl and RedPajama-V2. In these later case you still need to do the work of selecting how to filter the data yourself and it's the work we wanted to provide the community with in FineWeb. At least a first version of it since we see FineWeb as a ressource we will improve over time along various direction. Even better filtering for sure and also multilinguality which is very interesting as well. To finish, an important parallel work I really need to mention is the work of the Dolma team which have been working tirelessly on improving the filtering of Dolma and, in our on-going training we see that the very latest release of Dolma from last week is very promising. We'll include these numbers in the coming blog post that we are currently writing and we are super happy about the work of the AllenAI team. Excited to dive in your dataset as well, friends! Stay tuned for the blog post detailing all I mentioned above and other anecdotes in greater details! Cheers
People seem to over-index on the 15T number after Llama 3. While the number matters, what is even more important is the quality and diversity of those tokens. If there was a good way to measure those, that would have been an impressive result to report.
15
128
31
800
328,289
Hankcs retweeted
> superhuman performance > more than 20x cheaper than a human This is the state of AI, and it’s just getting started
24
130
11
1,068
95,315
this 30-min-read blog post on how to craft and generate a 25B+ tokens synthetic text dataset distills more information and alphas than a typical NeurIPS best paper
4
102
727
68,674
Today we are announcing the release of a new model, Genstruct 7B. Genstruct 7B is an instruction-generation model, designed to create valid instructions given a raw text corpus. This enables the creation of new, partially synthetic instruction finetuning datasets from any raw-text corpus. Download the model + notebook on our HuggingFace page, here: huggingface.co/NousResearch/… Inspired by the paper, Ada-Instruct, we took this approach further by grounding the generations in user-provided context passages. Further, the model is trained to generate questions involving complex scenarios that require detailed reasoning, allowing for models trained on the generated data to reason step-by-step. This project was led by @Euclaise_ at Nous Research.
12
78
14
535
128,041
Today we released OLMo and its 100% open! I'm incredibly proud of every single team member who worked tirelessly in the past few months to make this happen🏆 This release includes all the data, code, checkpoints, and more! #olmo @allen_ai
6
91
7
465
49,467
Hankcs retweeted
CulturaX: A Cleaned, Enormous, and Multilingual Dataset for Large Language Models in 167 Languages paper page: huggingface.co/papers/2309.0… present CulturaX, a substantial multilingual dataset with 6.3 trillion tokens in 167 languages, tailored for LLM development
9
71
5
231
52,847
bing chat seems to have really quite a different « personality » than chatGPT does it comes from the model and training data, how it’s used and integrated or users interactions we’ll likely just never know why since it’s all closed source research and deployment
4
2
1
31
8,149
Ben and I have released GPT-J, 6B JAX-based Transformer LM 🥳 - Performs on par with 6.7B GPT-3 - Performs better and decodes faster than GPT-Neo - repo + colab + free web demo article: https://teapawt.org/t.co/a3uDbYtHwg repo: https://teapawt.org/t.co/RL4vshKfXg
26
227
49
1,038
I’m not here to solve AGI in 5 years whatever it might be. I’ve read enough AI & neuroscience. I know we’re still years away I’m here to make the research communities healthier, fighting for more collaboration and sharing The journey is even more important than the destination
13
63
4
764