Is there an implementation of this anywhere?
Infinite Context LLMs: Going Beyond RAG with Extended Minds
21–30 of 43 posts
Re: Infinite Context LLMs: Going Beyond RAG with Extended Minds
#22Earlier quoted context omitted.
> Vector search+context stuffing (RAG) is clearly a hack that doesn't resemble how we actually think or do things in reality. How do you know?
Well, RAG is a form of lookup operation from an external set of documents that tries to work around anterograde amnesia. Humans don't suffer from that condition unless something has gone badly wrong. We don't carry around sets of documents and constantly consult them because we forgot what we read 10 seconds ago. Instead we have instead short term memory (e.g. what was the last paragraph I just read), a sort of mediu…
Re: Infinite Context LLMs: Going Beyond RAG with Extended Minds
#23It seems like it's limited to context length? So with 512 token chunks at 4096 context length that is 2 million tokens. Which could be good for some things but is not going to help for a really large knowledgebase.
Edit: I see the source code is in the Files section on the Hugging Face page.
Re: Infinite Context LLMs: Going Beyond RAG with Extended Minds
#24Earlier quoted context omitted.
Well, RAG is a form of lookup operation from an external set of documents that tries to work around anterograde amnesia. Humans don't suffer from that condition unless something has gone badly wrong. We don't carry around sets of documents and constantly consult them because we forgot what we read 10 seconds ago. Instead we have instead short term memory (e.g. what was the last paragraph I just read), a sort of mediu…
I don't know, it actually feels quite similar to something that seems to happen in my head. In a certain context, my brain resurfaces a bunch of memories and thoughts of things that are similar , even if they are not necessarily valuable to the current situation. I am not saying that the how is equivalent, but the what certainly seems at least related.
Re: Infinite Context LLMs: Going Beyond RAG with Extended Minds
#25Earlier quoted context omitted.
> Vector search+context stuffing (RAG) is clearly a hack that doesn't resemble how we actually think or do things in reality. How do you know?
Well, RAG is a form of lookup operation from an external set of documents that tries to work around anterograde amnesia. Humans don't suffer from that condition unless something has gone badly wrong. We don't carry around sets of documents and constantly consult them because we forgot what we read 10 seconds ago. Instead we have instead short term memory (e.g. what was the last paragraph I just read), a sort of mediu…
This is basically folk psychology though, not necessarily representative of the actual mechanisms that are being used. This is a common mistake I see in comparisons of ML and neuroscience or psychology.
ML is all about mechanistic models for things, where we know all the details. We simply don't have any such mechanistic models of how the brain works, all we have are speculative models and folk concepts, ie. how things seem to us not how they are. I'm just very skeptical that these are enough to be confident in claims like this not being how we actually do things in reality.
For instance, the anteretrograde amnesia you describe certainly isn't a common feature of the brain as a whole, but can you really say that it isn't a feature of some parts of the brain responsible for cognition, and then some RAG-like mechanism isn't used to eliminate that problem to give the outward appearance of no amnesia?
Re: Infinite Context LLMs: Going Beyond RAG with Extended Minds
#26Earlier quoted context omitted.
Well, RAG is a form of lookup operation from an external set of documents that tries to work around anterograde amnesia. Humans don't suffer from that condition unless something has gone badly wrong. We don't carry around sets of documents and constantly consult them because we forgot what we read 10 seconds ago. Instead we have instead short term memory (e.g. what was the last paragraph I just read), a sort of mediu…
> Instead we have short term memory [...], a sort of medium-term memory that can absorb lots of information [...], and a general long term memory that is rarely forgotten This is basically folk psychology though, not necessarily representative of the actual mechanisms that are being used. This is a common mistake I see in comparisons of ML and neuroscience or psychology. ML is all about mechanistic models for things,…
We don't even want to replicate the human mind exactly. If we did that what'd be the point? AI is useful exactly because it's not the same as how people work.
I don't think RAG is a good analogy for how the brain works because RAG is about finding original concrete sources (like books), not about matching and recalling digested and abstracted thoughts inside the "mind" itself. The article does talk about this a bit at the beginning.
Re: Infinite Context LLMs: Going Beyond RAG with Extended Minds
#27Earlier quoted context omitted.
> Vector search+context stuffing (RAG) is clearly a hack that doesn't resemble how we actually think or do things in reality. How do you know?
Well, RAG is a form of lookup operation from an external set of documents that tries to work around anterograde amnesia. Humans don't suffer from that condition unless something has gone badly wrong. We don't carry around sets of documents and constantly consult them because we forgot what we read 10 seconds ago. Instead we have instead short term memory (e.g. what was the last paragraph I just read), a sort of mediu…
I have always thought that a better RAG system would be to let the LLM use the search in the same way that a human would - think about good keywords and search the needed information iteratively until everything needed is retrieved. I have even wrote a proof of concept: https://github.com/zby/answerbot and wrote a blog post (mostly) about that approach: https://zzbbyy.substack.com/p/design-principles-for-llm-base... But then I discovered that it is very hard to tell the LLM to both use its reasoning and the search - for example if I ask GPT-4 "What is the weight proportion of oxygen in water? Think step by step" it lays out a very good thought process that takes the facts that it knows about the chemical formula of water, the atomic weights of hydrogen and oxygen and does the math to arrive at the good answer. But if I just add wikipedia search functions to the llm call (https://github.com/zby/answerbot/blob/ea792fbc7a84c6683dc2f3...) even without any additional prompting or examples in the prompt it starts searching and rather blindly - it stops any reasoning and tries to find the final answer in wikipedia instead of looking for the intermediate information - like the chemical formula, the atomic weights. I guess I'll find a workaround that problem with some clever prompting - but this difficulty surprised me.
Re: Infinite Context LLMs: Going Beyond RAG with Extended Minds
#28Earlier quoted context omitted.
Well, RAG is a form of lookup operation from an external set of documents that tries to work around anterograde amnesia. Humans don't suffer from that condition unless something has gone badly wrong. We don't carry around sets of documents and constantly consult them because we forgot what we read 10 seconds ago. Instead we have instead short term memory (e.g. what was the last paragraph I just read), a sort of mediu…
> RAG is quite the hack. All you start with is the question, but why should the documents you need for the answer be similar to the question? I have always thought that a better RAG system would be to let the LLM use the search in the same way that a human would - think about good keywords and search the needed information iteratively until everything needed is retrieved. I have even wrote a proof of concept: https:/…
Re: Infinite Context LLMs: Going Beyond RAG with Extended Minds
#29Their experiment seems to handle less than 100,000 tokens of text. I wonder if this method could scale to more than 1,000,000 or 10,000,000 tokens. It seems like it's limited to context length? So with 512 token chunks at 4096 context length that is 2 million tokens. Which could be good for some things but is not going to help for a really large knowledgebase. Edit: I see the source code is in the Files section on th…
Re: Infinite Context LLMs: Going Beyond RAG with Extended Minds
#30Earlier quoted context omitted.
> RAG is quite the hack. All you start with is the question, but why should the documents you need for the answer be similar to the question? I have always thought that a better RAG system would be to let the LLM use the search in the same way that a human would - think about good keywords and search the needed information iteratively until everything needed is retrieved. I have even wrote a proof of concept: https:/…
I think it will have been fine-tuned to use functions if they exist, as for most use cases if you specify a function then it means the other end of the connection is an automated program and not a human, so returning pure text without a function call would be a failure.