‹ BackHN Continuity

Thread

Thinking fast and slow in AI: The role of metacognition (2021)

177 points · 84 comments · teleforce

  1. gchamonlive · · focus · HN ↗
    There was this post a few days ago <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=49797323">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=49797323

    It had this to say in the linked post:

      This led to the natural question: can gzip do language modeling? (...). Here’s some real, unedited output after priming it on tiny Shakespeare:
    
      gzipt --corpus data&#x2F;tinyshakespeare.txt --prompt $&#x27;MENENIUS:\n&#x27; --length 200
    
      MENENIUS:
      &#x27;Though all at once canq
    
      MARCIUS:
      Pray now, nocamest thou to a morsel.
    
      LARTIUS:
      Hence, and
      I&#x27; the end admire, where G
      again; and after it ag .
    
    Now thinking back, what&#x27;s missing so that gzip could unwind the correct body of work from Shakespeare is just a correct sequence of bytes. One way to arrive at this is by just getting the body of work and doing the inverse, compressing it to get that golden sequence of bytes.

    The other is what thinking does, it tries to predict the missing sequence of tokens from a high entropy source, the prompt, in order to increase the likelihood of correctly decompressing the desired results from its weights.

    1. Obscurity4340 · · focus · HN ↗
      How can things be compressed without losing information or structure?

      Like for text, what would that involve? How do you compress a string or multi-line string without losing information and hopefully structure (paragraphs, would it be like replacing periods and the following space with just sticking the starting capitalized letter of the following word to the previous sentence&#x27;s last letter and when it decompresses theres some kind of note that converts that back into the. First letter of the next sentence

      1. fizzbuzzbarbazz · · focus · HN ↗
        comments would be omitted.

        ``` th #1 - numbers are just comments ng #2, this has a space at the end information #3 compress #4 letter #5 this has a space at the start and #6 this has a space at the start and end sentence #7 this has a space at the start

        How can 1ings be 4ed without losi23 or structure?

        Like for text, what would 1at involve? How do you 4 a stri2or multi-line stri2wi1out losi236hopefully structure (paragraphs, would it be like replaci2periods61e followi2space wi1 just sticki21e starti2capitalized5 of 1e followi2word to 1e previous7&#x27;s last56when it de4es 1eres some kind of note 1at converts 1at back into 1e. First5of the next7 ```

        I&#x27;m on a phone, so I may have mistakes here, but I&#x27;m pretty sure that&#x27;s shorter than your original text, in bytes, by about (9+18+20+21+12+12+16=108), minus the dictionary size of 51 -- so, 57 bytes shorter, but still containing your full text. With predistributed compressor binaries and a lot of analysis, you can even predistribute a global dictionary for common sequences, and simply specify &quot;xyz0&quot;, x, y, and z being 24-bit numbers, or whatever bit size can index into your full reference dictionary, and 0 meaning end-of-file-dictonary. then, assuming the byte sequences in your text above are common enough to be in the 24-bit indexed dictionary, that initial dictionary could be just 22 bytes (21 and a terminator) -- so, 86 bytes shorter than the original, but still containing your original message unaltered. ..assuming i didn&#x27;t make mistakes in my hand-compression.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.