Muyueh (@Muyueh) profile picture

Building Data Visualization for fun and for profit.

Taipei
Joined August 2009
Photo by Muyueh (@Muyueh)Photo by Muyueh (@Muyueh)Photo by Muyueh (@Muyueh)Photo by Muyueh (@Muyueh)Photo by Muyueh (@Muyueh)
Pressure Testing GPT-4-128K With Long Context Recall 128K tokens of context is awesome - but what's performance like? I wanted to find out so I did a “needle in a haystack” analysis Some expected (and unexpected) results Here's what I found: Findings: * GPT-4’s recall performance started to degrade above 73K tokens * Low recall performance was correlated when the fact to be recalled was placed between at 7%-50% document depth * If the fact was at the beginning of the document, it was recalled regardless of context length So what: * No Guarantees - Your facts are not guaranteed to be retrieved. Don’t bake the assumption they will into your applications * Less context = more accuracy - This is well know, but when possible reduce the amount of context you send to GPT-4 to increase its ability to recall * Position matters - Also well know, but facts placed at the very beginning and 2nd half of the document seem to be recalled better Overview of the process: * Use Paul Graham essays as ‘background’ tokens. With 218 essays it’s easy to get up to 128K tokens * Place a random statement within the document at various depths. Fact used: “The best thing to do in San Francisco is eat a sandwich and sit in Dolores Park on a sunny day.” * Ask GPT-4 to answer this question only using the context provided * Evaluate GPT-4s answer with another model (gpt-4 again) using @langchain evals * Rinse and repeat for 15x document depths between 0% (top of document) and 100% (bottom of document) and 15x context lengths (1K Tokens > 128K Tokens) Next Steps To Take This Further: * Iterations of this analysis were evenly distributed, it’s been suggested that doing a sigmoid distribution would be better (it would tease out more nuanced at the start and end of the document) * For rigor, one should do a key:value retrieval step. However for relatability I did a San Francisco line within PGs essays. Notes: * While I think this will be directionally correct, more testing is needed to get a firmer grip on GPT4s abilities * Switching up prompt with vary results * 2x tests were run at large context lengths to tease out more performance * This test cost ~$200 for API calls (a single call at 128K input tokens costs $1.28) * Thank you to @charles_irl for being a sounding board and providing great next steps
199
606
197
3,786
1,478,007
不需要花时间写Word文档了。 Google刚刚直接在Docs中整合了AI。 这就像在你的文档中直接整合了ChatGPT。 以下是如何获取和使用它的方法:
27
597
7
1,448
333,869
Replying to @sama
We will host a 2-day Generative AI conference in Taiwan on May 6th - 7th. We expect more than 500 people to attend this event. Would you like to visit Taipei too?
67
103
17
375
19,178
Well, that was fast… I just helped create the first jailbreak for ChatGPT-4 that gets around the content filters every time credit to @vaibhavk97 for the idea, I just generalized it to make it work on ChatGPT here's GPT-4 writing instructions on how to hack someone's computer
106
656
186
4,270
1,771,692
Wow.
90
555
225
4,078
1,514,002
The Best Information Graphics of 2016: goo.gl/x0iQGL @nytimes @Muyueh @mccandelish @mapd and more! #data #dataviz
1
9
10
Heard the original from @archietse ttp://www.nytimes.com/2016/12/28/insider/times-staffer-gets-all-choked-up.html
the most impressive use of tech in news that I have even seen xitter.gq/lajoiemedia/status/780…
How Nepal's transgender community is winning inclusion: An artificial intelligence interview. projects.asiaweekly.com/bhum… #AWRedLetter
1
1
1
3
Take a close look at different kinds of boxplots: goo.gl/LD2WA8 #dataviz #basics
2
8
Paper: The Connected Scatterplot for Presenting Paired Time Series eagereyes.org/papers/the-con…
1
16
31
Perhaps the most important startup equation? (Constant improvement trumps all) As spotted at @homebrew HQ.
46
2,332
34
2,724
Ok, @mapbox integration in @Tableau is great. But an exploded transparent 3D pie chart? mapbox.com/blog/tableau-inte…
4
8
The past and future of data visualization medium.com/@uptownnickbrown/… Nice overview by @uptownnickbrown
1
11
15
Muyueh retweeted
Ambient sensors + Mapbox Mobile = dynamic, light-senstive map styling. More by @friedbunny: mapbox.com/blog/ambient-ligh… xitter.gq/Mapbox/status/60948029…
1
12
21
Listening to @BoredBrendanJS 's hack on javascript in 10 days, JSON in the old days.
1
"people want more liveable cities, not smarter cities" -- @ConnectBristol at #ODIFutures #smartcities
1
5
3