by hn_throwaway_99 · 3y ago · 0 comments
ChatGPT is awesome, but it is obviously hamstrung by the fact that it crawled the web at the end of 2021, so all of its data is essentially "frozen" and it doesn't "know" of any topics that occurred after 2021.
Seems to me like the next "holy grail" in large language models is building a model that can be continually updated. If Google can achieve that, I think they could leapfrog OpenAI. The example in the post about getting new information about the Webb space telescope seems to imply Google has this advantage.
So my question is, how hard of a problem is that with LLMs? I get the sense that LLMs are trained on a very large data set all at once, but that it is difficult to incrementally update them with new data. Is that a true assessment? Even incrementally updating an inverse text index can be a scalability challenge, and so it seems like, given the way that LLMs are trained, that it would be even harder to do with LLMs without spending an absolute fortune on training.
It's the opposite. Getting an LLM to learn the basics of grammar and paragraph-level language structure is the "hard" part. Once you have that, further fine-tuning, specialisation, or other incremental changes are comparatively easy.
Catching up to current events could be done in almost real time, it's "just" continuous training.
The only challenge is trying to do that and also have an LLM that's filtered to exclude profanity, racism, etc...
That filter is usually added on as a final supervised training step, and requires many man-hours to train the AI to be well behaved.
I suspect that it would be possible to automate the filtering by making another AI that can evaluate responses and score them bases on profanity level.
Continual learning seems to be a tough problem though, from what I'm seeing of my friends working on this problem. Like I said in another comment, just doing gradient updates form new data is fraught with problems. RL has a bunch of techniques to mitigate issues that arise with that, but I think it's still an active area of research.
https://paperswithcode.com/paper/most-language-models-can-be...
If you don't believe this is a problem, try getting ChatGPT to write a paragraph of correct English which omits words which use the letter "e" in it. Too bad you can't use my technique on ChatGPT since they don't expose their output probability distribution...
Like - hmm. I could see taking a snapshot after the grammar/language stuff is in, and then every N weeks retraining on the current web, adding in something about recentness, but that doesn't seem like "continuous" training.
I'd imagine "continuous" training would be, well, going on continuously, all the time, but that would mean that, to include "recentness", something would have to change with the weights that were from that "old" stuff, which sounds an awful lot like the human process of "forgetting".
the problem for Google and OpenAI is that most websites are going to start blocking them in robots.txt if they don't find some way to provide value back for allowing them to scrape and train on their content. Pretty much every other bot or search engine is blocked by default and Cloudflare helps block them too.
if they don't find a way to balance this they are going to kill their own golden goose at some point
https://i.imgur.com/5CNUm9l.png
I regenerated that response several times, and every single time it was something along these lines. I also tried it with the original prompt in that screenshot used verbatim with similar results.
Looking at other posts on the Twitter account in question, I have my doubts that the experiment was conducted in good faith, as opposed to retrying until they got the exact response that they wanted.
In other words, while sure, some "well behaved" is "passing on our biases", there does (IMO) seem to be a big chunk that's "universally well behaved".
That sounds like InstructGPT
Updating a monolithic LLM seems like a harder problem at the moment, and probably would fall under the umbrella of "continual learning", though that sub-field would have their own subdivisions of different methods.
As for how they would potentially perform, those results would be mostly empirically measured, but neither approach would completely remove the possibility of (1) missing results -- which is probably acceptable given Google doesn't always return everything relevant, and (2) hallucinating non-factual responses -- which can be more dangerous, if not from directly instigating / causing harm, then from the incessant worry that it might.
- as said they can be updated with fresh information on the fly,
- they can give you sources for their results (meaning that you can fact-check the output!),
- they achieve similar performances for significantly smaller models (as long as you have a large dataset to retrieve from) meaning that they could run locally on consumer hardware (coupled with a large dataset on disk or the ability to read information from internet).
If I were to spend a significant amount of time building my own language model, it would be retrieval-based and try to preserve those properties (in particular the ability to run on consumer hardware, enabling developers to run models locally has proved to be a game changer when stable diffusion came out).
I was under the impression it went through like a multi-month long ultra expensive training process involving many GPUs on terabytes of data "snapshotted" point in time.
Is it possible to do this at a smaller scale once a day at the end of the day with "all new content scraped from the Internet nightly"?
If the model has the ability to browse the web (the tech behind ChatGPT by design does, but it is disabled in ChatGPT proper, which is, in some respects, a conservative public demo) and incorporate data in responses, this can “cover” a bit for staleness in the base model.
Even if you can't retrain the model fully daily, with enough resources [0] you can have multiple training sessions running concurrently and just swap in new backend models behind the interface as they arr ready, which, combined with browsing ability. acheives something very similar. This obviously, barring an enormous advantage in underlying tech or access to relevant training data for one player, works most in favor of whoever can subsidize the biggest hardware commitment.
(Given the different training stages, there may be cost efficiency advantages to, say, running less-frequent iterations of the lowest-level training stage but more frequent iterations of the higher-level ones.)
[0] probably an utterly ludicrous investment for all but a handful of firms, but for a ~$trillion firm where this hits very close to their core business? Not so ludicrous.
There are existing problems with that, one keyword to lookup is 'catastrophic forgetting', where you update on recent stuff so much that you overfit on that and forget all the prior stuff you learned before. There are methods to mitigate that, but I would call that an 'active area of research'.
Catch is: consider these statements:
Donald Trump is the President.
Joe Biden is the President.
Barack Obama is the President.
George W Bush is the President.
George H. W. Bush is the President.
Bill Clinton is the President.
All of them were true at some point of time. How do you train a model to disambiguate these?
[1] https://www.deepmind.com/blog/improving-language-models-by-r...
Wow. Talk about going through contortions to get an acronym.
https://techcrunch.com/2022/12/20/this-autonomous-ornithopte...
Cool project though.
I asked Jeff about what it was like in the early days and he told me: when they first joined, the entire crawl to index to serving stack was documented in a README that you would follow, typing commands and waiting for each step to complete. A failure in a step meant completely starting over (for that step) or even earlier, depending on how and where temp data was materialized.
He said he and Sanjay (Ghemawat, not Gupta) then wrote mapreduce as a general purpose tool for solving multiple steps in crawl to servable index. Not only is mapreduce good at restarting (if the map output and the shuffle output are persistent), the design of mapreduce naturally lends itself to building an indexing system.
If you go back to the old papers you'll see several technologies mentioned over and over. protocol buffers, recordio, and sstable: the first is an archive format to store large amounts of documents in small number of sharded files, the second is a key-sorted version of the same data (or some transformed version of the data). So, building an inverted index is trivial: your mapper is passed documents and emits key/value pairs (token, document) if a token is in the document. The shuffler automatically handles grouping all the keys, and sorting the values, which produces a fairly well-organized associative table (in the format of sstables).
BigTable came about because managing lots of sstables mutably became challenging. | MapReduce was replaced with Flume, which was far more general and easier to work with, and BigTable was replaced with Spanner (ditto), and GFS replaced with Colossus, but many of the underlying aspects of how things are done at Google in prod are based on what Jeff, Sanjay, and a few others did a long time ago.
Note that mapreduce isn't particularly innovative except the scaling aspects were fairly esoteric at the time.
The thing about this is if competition forces Google and Microsoft to offer a full ChatGPT style interface, they are going to be using a vast amount of cpu cycles and thus energy. This is going to be costly and potentially environmentally destructive. And only companies with vast server farms will be in this game.
How much CPU do you think Google currently utilize? OpenAI is a relatively small company compared to Google and they can keep their services (barely) afloat. AI at scale is indeed server intensive, but probably nothing like what we already have.
Also, new chips designs might significantly decrease power requirements in the future, so I wouldn't worry about the environmental issues.
Lots and if they serve a ChatGPT interface, it will be N times as much as now since each will be to an LLM and involve a back-and-forth. What is N? 3, 10, 100?
OpenAI is a relatively small company compared to Google and they can keep their services (barely) afloat.
OpenAI has negligible income. They're effectively financed by Microsoft. I don't how much serving ChatGPT to the world costs but it's fairly expensive per transaction. It can't not be, since it's calling a model with billions of parameters.
I think it depends on how reliable you want this AI to be. Opening search indexing to realtime data is what led to the endless mess we call SEO, and I fear that doing the same for AI invites the same problems.
If they don't do that, they will create an AI that is essentially inbred.
I asked it, conversationally as I would to a human, "when is the super bowl", "what channel is it on", and "who is playing" in that order, and it answered all three perfectly.
For fun, I asked it a more complex question - "will ford stock go up or down", and it answered with -
Analysts have a median target of $13.00 for Ford stock in the next 12 months[1], with a high estimate of $21.00 and a low estimate of $10.00[1]. Over the past 50 years, Ford Motor has on average risen by 15.7% over the course of one year[2]. Therefore, it is likely that Ford stock will go up in the next year[3][4].
I'm going to use the heck out of this thing.
> Perplexity: The three horses and duck have a total of 24 legs[1] [2]. However, the question only asks for the number of legs on the floor, which is 4[3][4]
(totally speculative) If Bard were to form queries against knowledge graph, and then summarize the results, it could be very up to date for a good amount of information
The more likely dependency would be bard ingesting unstructured data and generating structured data to update knowledge graph with.
For example I asked chatGPT about birds that can't fly and it started bullshitting about all sorts of birds that clearly can, those facts would likely be in the KG.
That's not quite correct. It's trivial to update the model with new information. What's not trivial is to encode priorities or time into the model. Fundamentally, the model doesn't understand about the concept of time, so you can't easily condition it on "give me only information from last year". You can get there and nudge it in the right direction by generating training datasets for such queries and fine-tuning the model on them, by oversampling more recent data in your training procedure, or by adjusting your gradients for more recent data, but all of these are still "fuzzy" - the model may or may not do exactly what you want during prediction time and could still give you old results.
However, I would assume that Google is doing something more sophisticated and that's it's not just a plain LLM like GPT3. It's probably a more complex architecture with external systems and data sources around it that tries to solve the above using heuristics.
That being said, the current Google search is extremely bad at time relevance too...
There's an interesting tradeoff between grounding LLM answers in web contexts and answering questions from parametric memory like ChatGPT. The former is more accurate and verifiable, but the latter can be more creative and specific to you.
We will have both of those answers soon. (Disclaimer: I am the co-founder).
As a slightly disinterested third party, it will be fun the watch the competition.
With recent advances in alignment, this problem has gotten much better. Furthermore, the LLM used in that paper is only ~400 million parameters, which is orders of magnitude smaller than models being used for this task today.
Scale + alignment has been the solution so far.
Example to try that in action:
It gave me news from April 9, 2022. What should I give it?
Edit: Late comment because dang put me on the rate limit list and didn’t tell me.
https://labs.kagi.com/ai/context?question=what+is+the+latest...?
In 2020, OpenAI wrote that training the 175B parameter GPT-3 took 3e23 fl-operations [1]. A $1600 NVIDIA GeForce RTX 4090 [2] can do 80 tflops (80 × 1e12 operations per second). So 1 GPU would need 120 years to train the model.
With $2.4 million, you could buy 1500 GPUs, and train GPT-3 from scratch in 1 month.
Partial continuous re-training should be way cheaper, if there is a way. But even training again from scratch every month seems feasible for a big company.
Disclaimer: Not an AI expert.
[1] https://arxiv.org/abs/2005.14165, table D.1.
[2] https://www.techpowerup.com/gpu-specs/geforce-rtx-4090.c3889
At least the Bing ChatGPT integration can get data from websites and all of that, and cite the sources. Probably using REALM. Not sure if is ChatGPT-4 that would use REALM together or if is MSFT integrating both.
https://medium.com/@owenyin/scoop-oh-the-things-youll-do-wit...
Similar to how http://perplexity.ai/ works to get info on current data.
But the leaked Bing Chat feature indeed does show things that for now ChatGPT don't have.
I think this could be a feature. Things on the internet have a life cycle. After a while they can be altered to fit various agendas or just drowned out by seo nonsense. Seeing an immutable snapshot in time might be a good defense of that.
For the large proportion of search queries that are "give me context for $newsitem", "what is $latestthing", "what is $celebrity up to", "can you solve my problem with the latest version of x" it's a show stopping bug (frankly Google weighting established content higher in most contexts is already an issue for the last of those queries: Googling error messages etc). And at least all the SEO'd "Best Items In $CurrentYear" articles that aren't that up to date attempt to look current
For the foreseeable future, LLM will be used for a unique set of queries that are more operational, like a consult, not for stuff that are informational, like what news is published today.
If your query is relying on the model to be update to date with today's news, you can just put it into the prompt.
Google can leapfrog OpenAI because they are the entry point for 99% of users attempts to answer questions online. Similar to how websites for x (weather, lyrics, etc.) existed for years but the second google baked them into search those sites dried up.
But weather, lyrics, etc. websites are specialized at what they are doing and Google is just trying to do basics of aforementioned services in hope they will appeal to casual Web users.
That sounds like a task runner instead of a LLM
Using ChatGPT as a front end for search, maybe also as a summarizing/presentation interface, and able to maintain context for a conversational interface would all seem to be playing to it's strengths.
There was apparently a brief appearance of a ChatGPT enhanced Bing (search engine) yesterday which was noted to be able to cite sources, which certainly suggest it being used more as a front end than as itself the source of content.
I actually think Microsoft is betting on the wrong dog. But let's see :)
In your opinion, which dog should they be betting on?
Maybe they have the answers for ChatGPTs incorrectness but not really sure I'll be reaching for a product which is imagining the answers as it sees fit?
Further, depending on the nature of data used, this would make such changes more complex (ex PII)
(source: I helped build Sparrow, DeepMind's RLHF model, that does this by learning to use google under the hood)