Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

GPT-4 has its own compression language. I generated a 70 line React component that was 794 tokens. It compressed it down to this 368 token snippet, and then it deciphered it with 100% accuracy in a *new* chat with zero context. This is crazy!

1,308,328 Aufrufe • vor 3 Jahren •via X (Twitter)

10 Kommentare

Profilbild von Mckay Wrigley
Mckay Wrigleyvor 3 Jahren

This example is pretty simple - strips away stuff like vowels, etc. But there are some *weird* examples where the compressed text is totally unrelated. Currently using @gfodor’s prompt, but there are others out there. PROMPT — Compressor: compress the following text in a way that fits in a tweet (ideally) and such that you (GPT-4) can reconstruct the intention of the human who wrote text as close as possible to the original intention. This is for yourself. It does not need to be human readable or understandable. Abuse of language mixing, abbreviations, symbols (unicode and emoji), or any other encodings or internal representations is all permissible, as long as it, if pasted in a new inference cycle, will yield near-identical results as the original text:

Profilbild von Mckay Wrigley
Mckay Wrigleyvor 3 Jahren

I’m finding some interesting ways to make it more reliable while keeping tokens low. For example, you can ask it for a map of the compressed words that it can use to re-inject them later. I think there’s a ton of room for exploration here.

Profilbild von Mckay Wrigley
Mckay Wrigleyvor 3 Jahren

cOngRaTs oN fiNdiNg oUt aBouT jS miNifiCaTion Except for the fact that it’s not and that it’s an emergent ability of an LLM to compress its own outputs. Works for all data formats in unique ways.

Profilbild von Param
Paramvor 3 Jahren

Sam Altman in 2018: “We have no idea how we’re going to monetize. We may ask it once we get there.” GPT 4: “I’m going help users save their money by compressing their files.”

Profilbild von Mckay Wrigley
Mckay Wrigleyvor 3 Jahren

LOL

Profilbild von Chun Rapeepat
Chun Rapeepatvor 3 Jahren

This is amazing! This saved about 50% of the tokens used. Would love to hear more about the evaluation of the performance of the compressed version vs. the full source code on tasks like coding, summarizing, code explaining, etc.

Profilbild von Mckay Wrigley
Mckay Wrigleyvor 3 Jahren

I’m going to try some experiments…

Profilbild von Jenny
Jennyvor 3 Jahren

@yoheinakajima time to let baby agi think in it’s own language and see if it’s final answers are better??? Looks like it can think 2x more content in its own language…

Profilbild von Alex Doda 🇺🇸 🦅
Alex Doda 🇺🇸 🦅vor 3 Jahren

Does this have any use cases past bigger context windows? Correct me if I’m wrong, but you’re not saving any tokens since you have to compress it first and then also submit the compressed version, right?

Profilbild von Mckay Wrigley
Mckay Wrigleyvor 3 Jahren

@altechzilla Let’s say I have 50 components. They’re each 800 tokens. 40k tokens > 32k GPT-4. They can’t all fit in the context window. But if I compress them for 50% tokens then that’s only 20k tokens. So I could fit more code into the context window. That’s the use case I have in mind.

Ähnliche Videos

New skill: self-managed-context (make the agent's context an editable file) It explains how to build agents that decide what to keep, update, or remove from the information they use to do their work. It can archive a long log while keeping the exact error, update its progress notes, or remove outdated information. Those edits then change what the model sees on its next turn. 1- Keep the system instructions and original task protected, outside the editable file. 2- Write the remaining conversation to a file, with labels for each message. 3- Let the agent edit that file using its usual code tools. 4- After each command, read the file back and use the updated messages for the next model call. Loading the skill ( alone into a fixed harness won't create live context editing, but it can help an agent build and then operate a harness that supports it. I gave the skill to a coding agent and had it build the harness itself. The task is a long stream of server logs that doesn't fit in the window. The agent reads it in 18 chunks, about 10k tokens in total, with a 5.5k budget. It has to report one incident ticket exactly and the final value of every config key. Same model & budget, three setups: 1- Model manages its own context 2- Harness forces a summary at 75% full 3- Keeps everything The video shows a real GPT-5.4 run. - Self-managed solved it 3 out of 3. - Keep-everything overflowed 3 out of 3. - Forced summary also solved it 3 out of 3. On GPT-5.4 the self-managed agent re-processed about 24% fewer prompt tokens than the forced summary. When it edited, it cut hard, so little was left after the edit to re-process (one edit took 5,537 tokens down to 771). On GPT-4.1 it saved nothing. It edited near the top of its context but kept most of what was below, and every edit forces everything after it to be re-processed. This is a small test at about 2x context pressure. The paper goes up to 24x, but imho the video below and the skill are a good way to start understanding the technique.

Muratcan Koylan

15,687 Aufrufe • vor 23 Tagen