News for hackers. Stuff that matters.
Re:LLMs use a surprisingly simple mechanism to retrieve some... by whatever1 on Thursday March 28, 2024 @11:28AM (#39852750)
Llms seem like a good compression mechanism.

It blows my mind that I can have a copy of llama locally on my PC and have access to virtually the entire internet

Re:LLMs use a surprisingly simple mechanism to retrieve some... by Culonavirus on Thursday March 28, 2024 @12:57PM (#39854293)
Yea except it's a lossy compression. With the lost part being hallucinated in at inference time.
Re:LLMs use a surprisingly simple mechanism to retrieve some... by Kuinox on Thursday March 28, 2024 @01:05PM (#39854434)
If you've read the article, the LLM hallucinations aren't due to the model not knowing the information but a function that choose to remember the wrong thing.
Re:LLMs use a surprisingly simple mechanism to retrieve some... by sinemetu11 on Thursday March 28, 2024 @02:23PM (#39855510)
From the paper:

> Finally, we use our dataset and LRE-estimating method to build a visualization tool we call an attribute lens. Instead of showing the next token distribution like Logit Lens (nostalgebraist, 2020) the attribute lens shows the object-token distribution at each layer for a given relation. This lets us visualize where and when the LM finishes retrieving knowledge about a specific relation, and can reveal the presence of knowledge about attributes even when that knowledge does not reach the output.

They're just looking at what lights up in the embedding when they feed something in, and whatever lights up is "knowing" about that topic. The function is an approximation they added on top of the model. It's important to not conflate this with the actual weights of the model.

You can't separate the hallucinations from the model -- they exist precisely because of the lossy compression.

Re:LLMs use a surprisingly simple mechanism to retrieve some... by ewild on Thursday March 28, 2024 @02:24PM (#39855524)
even this place has people not reading the articles. we are doomed
Re:LLMs use a surprisingly simple mechanism to retrieve some... by AnotherGoodName on Thursday March 28, 2024 @10:11PM (#39859854)
Lossy and lossless are way more transferable than people give credit.

Long winded explanation as best as i can in a HN comment. Essentially for state of the art compression both the encoder and the decoder have the same algorithm. They look at the bits encoded/decoded so far, they both run exactly the same prediction on those bits seen so far using some model that predicts based on past data (AI is fantastic for this). If the prediction was 99% likely that the next bit is a '1' the encoder only writes a fraction of a bit to represent that (assuming the prediction is correct) and on the other side the decoder will have the same prediction at that point and either read the next large number of bits to correct or it will be able to simple write '1' to the output and start on the prediction of the next bit given that now written '1'.

Essentially lossy predictions of the next data are great tools to losslessly compress data as those predictions of the next bit/byte/word minimize the data needed to losslessly encode that next bit/byte/word. Likewise you can trivially make a lossy compressor out of a lossless one. Lossy and lossless just aren't that different.

The longstanding Hutter prize for AI in fact judges the AI on how well it can compress data. http://prize.hutter1.net/ This is based in the fact that what we think of as AI and compression are quite interchangeable. There's a whole bunch of papers out on this.

http://prize.hutter1.net/hfaq.htm#compai

I have nothing to do with Hutter but i know all about AI and data compression and their relation.

Re:LLMs use a surprisingly simple mechanism to retrieve some... by krainboltgreene on Thursday March 28, 2024 @01:12PM (#39854525)
> have access to virtually the entire internet

It isn't even close to 1% of the internet, much less virtually the entire internet. According to the latest dump, Common Crawl has 4.3B pages, but Google in 2016 estimated there are 130T pages. The difference between 130T and 4.3B is about 130T. Even if you narrow it down to Google's searchable text index it's "100's of billions of pages" and roughly 100P compared to CommonCrawl's 400T.

Re:LLMs use a surprisingly simple mechanism to retrieve some... by fspeech on Thursday March 28, 2024 @02:04PM (#39855237)
130T unique pages? That seems highly unlikely as that averages to over 10000 pages for each human being alive. If gp merely wants texts of interest to self as opposed to an accurate snapshot it seems LLMs should be quite capable, one day.
Re:LLMs use a surprisingly simple mechanism to retrieve some... by cypress66 on Friday March 29, 2024 @08:14AM (#39863100)
Is it? Every user profile in every website is a page. Every single tweet is a page.
Re:LLMs use a surprisingly simple mechanism to retrieve some... by fspeech on Thursday April 11, 2024 @03:23PM (#40005820)
Tweets count. HN posts also count (actually as high quality texts :). IOT devices reporting status based on the same templates should not qualify as unique pages (count the number of templates if you want). Now if I do a search for some news, many almost verbatim copies would show up. They should only count as one, as we are looking for unique texts!
Re:LLMs use a surprisingly simple mechanism to retrieve some... by whatever1 on Friday March 29, 2024 @01:02AM (#39860884)
The internet to me and to most of the people is the 10 first search results for the various terms we search for.
Re:LLMs use a surprisingly simple mechanism to retrieve some... by nyrikki on Friday March 29, 2024 @11:45AM (#39865465)
PAC learning is compression.

PAC learnable, Finite VC dimensionality, and the following form of compression are fully equivalent.

https://arxiv.org/abs/1610.03592

Basically each individual neuron/perceptron just splits a space into two subspaces.